diff --git a/accesscontextmanager/v1/accesscontextmanager-api.json b/accesscontextmanager/v1/accesscontextmanager-api.json index 91ff9ddbf39..9b6880446fa 100644 --- a/accesscontextmanager/v1/accesscontextmanager-api.json +++ b/accesscontextmanager/v1/accesscontextmanager-api.json @@ -12,7 +12,7 @@ "baseUrl": "https://accesscontextmanager.googleapis.com/", "batchPath": "batch", "canonicalName": "Access Context Manager", - "description": "An API for setting attribute based access control to requests to GCP services.", + "description": "An API for setting attribute based access control to requests to Google Cloud services.", "discoveryVersion": "v1", "documentationLink": "https://cloud.google.com/access-context-manager/docs/reference/rest/", "fullyEncodeReservedExpansion": true, @@ -568,7 +568,7 @@ "authorizedOrgsDescs": { "methods": { "create": { - "description": "Creates a authorized orgs desc. The long-running operation from this RPC has a successful status after the authorized orgs desc propagates to long-lasting storage. If a authorized orgs desc contains errors, an error response is returned for the first error encountered. The name of this `AuthorizedOrgsDesc` will be assigned during creation.", + "description": "Creates an authorized orgs desc. The long-running operation from this RPC has a successful status after the authorized orgs desc propagates to long-lasting storage. If a authorized orgs desc contains errors, an error response is returned for the first error encountered. The name of this `AuthorizedOrgsDesc` will be assigned during creation.", "flatPath": "v1/accessPolicies/{accessPoliciesId}/authorizedOrgsDescs", "httpMethod": "POST", "id": "accesscontextmanager.accessPolicies.authorizedOrgsDescs.create", @@ -596,7 +596,7 @@ ] }, "delete": { - "description": "Deletes a authorized orgs desc based on the resource name. The long-running operation from this RPC has a successful status after the authorized orgs desc is removed from long-lasting storage.", + "description": "Deletes an authorized orgs desc based on the resource name. The long-running operation from this RPC has a successful status after the authorized orgs desc is removed from long-lasting storage.", "flatPath": "v1/accessPolicies/{accessPoliciesId}/authorizedOrgsDescs/{authorizedOrgsDescsId}", "httpMethod": "DELETE", "id": "accesscontextmanager.accessPolicies.authorizedOrgsDescs.delete", @@ -621,7 +621,7 @@ ] }, "get": { - "description": "Gets a authorized orgs desc based on the resource name.", + "description": "Gets an authorized orgs desc based on the resource name.", "flatPath": "v1/accessPolicies/{accessPoliciesId}/authorizedOrgsDescs/{authorizedOrgsDescsId}", "httpMethod": "GET", "id": "accesscontextmanager.accessPolicies.authorizedOrgsDescs.get", @@ -682,7 +682,7 @@ ] }, "patch": { - "description": "Updates a authorized orgs desc. The long-running operation from this RPC has a successful status after the authorized orgs desc propagates to long-lasting storage. If a authorized orgs desc contains errors, an error response is returned for the first error encountered. Only the organization list in `AuthorizedOrgsDesc` can be updated. The name, authorization_type, asset_type and authorization_direction cannot be updated.", + "description": "Updates an authorized orgs desc. The long-running operation from this RPC has a successful status after the authorized orgs desc propagates to long-lasting storage. If a authorized orgs desc contains errors, an error response is returned for the first error encountered. Only the organization list in `AuthorizedOrgsDesc` can be updated. The name, authorization_type, asset_type and authorization_direction cannot be updated.", "flatPath": "v1/accessPolicies/{accessPoliciesId}/authorizedOrgsDescs/{authorizedOrgsDescsId}", "httpMethod": "PATCH", "id": "accesscontextmanager.accessPolicies.authorizedOrgsDescs.patch", @@ -691,7 +691,7 @@ ], "parameters": { "name": { - "description": "Assigned by the server during creation. The last segment has an arbitrary length and has only URI unreserved characters (as defined by [RFC 3986 Section 2.3](https://tools.ietf.org/html/rfc3986#section-2.3)). Should not be specified by the client during creation. Example: \"accessPolicies/122256/authorizedOrgs/b3-BhcX_Ud5N\"", + "description": "Resource name for the `AuthorizedOrgsDesc`. Format: `accessPolicies/{access_policy}/authorizedOrgsDescs/{authorized_orgs_desc}`. The `authorized_orgs_desc` component must begin with a letter, followed by alphanumeric characters or `_`. After you create an `AuthorizedOrgsDesc`, you cannot change its `name`.", "location": "path", "pattern": "^accessPolicies/[^/]+/authorizedOrgsDescs/[^/]+$", "required": true, @@ -1235,7 +1235,7 @@ } } }, - "revision": "20230109", + "revision": "20230130", "rootUrl": "https://accesscontextmanager.googleapis.com/", "schemas": { "AccessContextManagerOperationMetadata": { @@ -1368,11 +1368,11 @@ "type": "object" }, "AuthorizedOrgsDesc": { - "description": "`AuthorizedOrgsDesc` is a resource that contains a list of organizations for a authorization type and asset type and its authorization direction.", + "description": "`AuthorizedOrgsDesc` contains data for an organization's authorization policy.", "id": "AuthorizedOrgsDesc", "properties": { "assetType": { - "description": "The asset type of this authorized orgs desc. e.g. device, credential strength.", + "description": "The asset type of this authorized orgs desc. Valid values are `ASSET_TYPE_DEVICE`, and `ASSET_TYPE_CREDENTIAL_STRENGTH`.", "enum": [ "ASSET_TYPE_UNSPECIFIED", "ASSET_TYPE_DEVICE", @@ -1381,12 +1381,12 @@ "enumDescriptions": [ "No asset type specified.", "Device asset type.", - "credential strength asset type." + "Credential strength asset type." ], "type": "string" }, "authorizationDirection": { - "description": "Authorization direction of this authorization relationship. i.e. Whether to allow specified orgs to evaluate this org's traffic, or allow specified orgs' traffic to be evaluated by this org. Orgs specified as `AUTHORIZATION_DIRECTION_TO` in this AuthorizedOrgsDesc[com.google.identity.accesscontextmanager.v1.AuthorizedOrgsDesc] must also specify this org as the `AUTHORIZATION_DIRECTION_FROM` in their own AuthorizedOrgsDesc in order for this relationship to take effect. Orgs specified as `AUTHORIZATION_DIRECTION_FROM` in this AuthorizedOrgsDesc[com.google.identity.accesscontextmanager.v1.AuthorizedOrgsDesc] must also specify this org as the `AUTHORIZATION_DIRECTION_TO` in their own AuthorizedOrgsDesc in order for this relationship to take effect.", + "description": "The direction of the authorization relationship between this organization and the organizations listed in the `orgs` field. The valid values for this field include the following: `AUTHORIZATION_DIRECTION_FROM`: Allows this organization to evaluate traffic in the organizations listed in the `orgs` field. `AUTHORIZATION_DIRECTION_TO`: Allows the organizations listed in the `orgs` field to evaluate the traffic in this organization. For the authorization relationship to take effect, all of the organizations must authorize and specify the appropriate relationship direction. For example, if organization A authorized organization B and C to evaluate its traffic, by specifying `AUTHORIZATION_DIRECTION_TO` as the authorization direction, organizations B and C must specify `AUTHORIZATION_DIRECTION_FROM` as the authorization direction in their `AuthorizedOrgsDesc` resource.", "enum": [ "AUTHORIZATION_DIRECTION_UNSPECIFIED", "AUTHORIZATION_DIRECTION_TO", @@ -1394,13 +1394,13 @@ ], "enumDescriptions": [ "No direction specified.", - "Specified orgs will evaluate traffic.", - "Specified orgs' traffic will be evaluated." + "The specified organizations are authorized to evaluate traffic in this organization.", + "The traffic of the specified organizations can be evaluated by this organization." ], "type": "string" }, "authorizationType": { - "description": "The authorization type of this authorized orgs desc. e.g.authorization, troubleshooting or logging.", + "description": "A granular control type for authorization levels. Valid value is `AUTHORIZATION_TYPE_TRUST`.", "enum": [ "AUTHORIZATION_TYPE_UNSPECIFIED", "AUTHORIZATION_TYPE_TRUST" @@ -1412,11 +1412,11 @@ "type": "string" }, "name": { - "description": "Assigned by the server during creation. The last segment has an arbitrary length and has only URI unreserved characters (as defined by [RFC 3986 Section 2.3](https://tools.ietf.org/html/rfc3986#section-2.3)). Should not be specified by the client during creation. Example: \"accessPolicies/122256/authorizedOrgs/b3-BhcX_Ud5N\"", + "description": "Resource name for the `AuthorizedOrgsDesc`. Format: `accessPolicies/{access_policy}/authorizedOrgsDescs/{authorized_orgs_desc}`. The `authorized_orgs_desc` component must begin with a letter, followed by alphanumeric characters or `_`. After you create an `AuthorizedOrgsDesc`, you cannot change its `name`.", "type": "string" }, "orgs": { - "description": "The list of organization ids in this AuthorizedOrgsDesc.", + "description": "The list of organization ids in this AuthorizedOrgsDesc. Format: `organizations/` Example: `organizations/123456`", "items": { "type": "string" }, @@ -1460,7 +1460,7 @@ "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", + "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.", "items": { "type": "string" }, @@ -1836,7 +1836,7 @@ "type": "string" }, "resource": { - "description": "A Google Cloud resource that is allowed to ingress the perimeter. Requests from these resources will be allowed to access perimeter data. Currently only projects and VPCs are allowed. Project format: `projects/{project_number}` VPC format: `//compute.googleapis.com/projects/{PROJECT_ID}/global/networks/{NAME}`. The project may be in any Google Cloud organization, not just the organization that the perimeter is defined in. `*` is not allowed, the case of allowing all Google Cloud resources only is not supported.", + "description": "A Google Cloud resource that is allowed to ingress the perimeter. Requests from these resources will be allowed to access perimeter data. Currently only projects and VPCs are allowed. Project format: `projects/{project_number}` VPC network format: `//compute.googleapis.com/projects/{PROJECT_ID}/global/networks/{NAME}`. The project may be in any Google Cloud organization, not just the organization that the perimeter is defined in. `*` is not allowed, the case of allowing all Google Cloud resources only is not supported.", "type": "string" } }, @@ -1904,7 +1904,7 @@ "id": "ListAuthorizedOrgsDescsResponse", "properties": { "authorizedOrgsDescs": { - "description": "List of the Authorized Orgs Desc instances.", + "description": "List of all the Authorized Orgs Desc instances.", "items": { "$ref": "AuthorizedOrgsDesc" }, @@ -2154,7 +2154,7 @@ "type": "object" }, "ServicePerimeter": { - "description": "`ServicePerimeter` describes a set of Google Cloud resources which can freely import and export data amongst themselves, but not export outside of the `ServicePerimeter`. If a request with a source within this `ServicePerimeter` has a target outside of the `ServicePerimeter`, the request will be blocked. Otherwise the request is allowed. There are two types of Service Perimeter - Regular and Bridge. Regular Service Perimeters cannot overlap, a single Google Cloud project can only belong to a single regular Service Perimeter. Service Perimeter Bridges can contain only Google Cloud projects as members, a single Google Cloud project may belong to multiple Service Perimeter Bridges.", + "description": "`ServicePerimeter` describes a set of Google Cloud resources which can freely import and export data amongst themselves, but not export outside of the `ServicePerimeter`. If a request with a source within this `ServicePerimeter` has a target outside of the `ServicePerimeter`, the request will be blocked. Otherwise the request is allowed. There are two types of Service Perimeter - Regular and Bridge. Regular Service Perimeters cannot overlap, a single Google Cloud project or VPC network can only belong to a single regular Service Perimeter. Service Perimeter Bridges can contain only Google Cloud projects as members, a single Google Cloud project may belong to multiple Service Perimeter Bridges.", "id": "ServicePerimeter", "properties": { "description": { @@ -2166,7 +2166,7 @@ "type": "string" }, "perimeterType": { - "description": "Perimeter type indicator. A single project is allowed to be a member of single regular perimeter, but multiple service perimeter bridges. A project cannot be a included in a perimeter bridge without being included in regular perimeter. For perimeter bridges, the restricted service list as well as access level lists must be empty.", + "description": "Perimeter type indicator. A single project or VPC network is allowed to be a member of single regular perimeter, but multiple service perimeter bridges. A project cannot be a included in a perimeter bridge without being included in regular perimeter. For perimeter bridges, the restricted service list as well as access level lists must be empty.", "enum": [ "PERIMETER_TYPE_REGULAR", "PERIMETER_TYPE_BRIDGE" @@ -2222,7 +2222,7 @@ "type": "array" }, "resources": { - "description": "A list of Google Cloud resources that are inside of the service perimeter. Currently only projects and VPCs are allowed. Project format: `projects/{project_number}` VPC format: `//compute.googleapis.com/projects/{PROJECT_ID}/global/networks/{NAME}`.", + "description": "A list of Google Cloud resources that are inside of the service perimeter. Currently only projects and VPCs are allowed. Project format: `projects/{project_number}` VPC network format: `//compute.googleapis.com/projects/{PROJECT_ID}/global/networks/{NAME}`.", "items": { "type": "string" }, diff --git a/accesscontextmanager/v1/accesscontextmanager-gen.go b/accesscontextmanager/v1/accesscontextmanager-gen.go index def5d66b14c..4a2750194a5 100644 --- a/accesscontextmanager/v1/accesscontextmanager-gen.go +++ b/accesscontextmanager/v1/accesscontextmanager-gen.go @@ -478,43 +478,43 @@ func (s *AuditLogConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AuthorizedOrgsDesc: `AuthorizedOrgsDesc` is a resource that contains -// a list of organizations for a authorization type and asset type and -// its authorization direction. +// AuthorizedOrgsDesc: `AuthorizedOrgsDesc` contains data for an +// organization's authorization policy. type AuthorizedOrgsDesc struct { - // AssetType: The asset type of this authorized orgs desc. e.g. device, - // credential strength. + // AssetType: The asset type of this authorized orgs desc. Valid values + // are `ASSET_TYPE_DEVICE`, and `ASSET_TYPE_CREDENTIAL_STRENGTH`. // // Possible values: // "ASSET_TYPE_UNSPECIFIED" - No asset type specified. // "ASSET_TYPE_DEVICE" - Device asset type. - // "ASSET_TYPE_CREDENTIAL_STRENGTH" - credential strength asset type. + // "ASSET_TYPE_CREDENTIAL_STRENGTH" - Credential strength asset type. AssetType string `json:"assetType,omitempty"` - // AuthorizationDirection: Authorization direction of this authorization - // relationship. i.e. Whether to allow specified orgs to evaluate this - // org's traffic, or allow specified orgs' traffic to be evaluated by - // this org. Orgs specified as `AUTHORIZATION_DIRECTION_TO` in this - // AuthorizedOrgsDesc[com.google.identity.accesscontextmanager.v1.Authori - // zedOrgsDesc] must also specify this org as the - // `AUTHORIZATION_DIRECTION_FROM` in their own AuthorizedOrgsDesc in - // order for this relationship to take effect. Orgs specified as - // `AUTHORIZATION_DIRECTION_FROM` in this - // AuthorizedOrgsDesc[com.google.identity.accesscontextmanager.v1.Authori - // zedOrgsDesc] must also specify this org as the - // `AUTHORIZATION_DIRECTION_TO` in their own AuthorizedOrgsDesc in order - // for this relationship to take effect. + // AuthorizationDirection: The direction of the authorization + // relationship between this organization and the organizations listed + // in the `orgs` field. The valid values for this field include the + // following: `AUTHORIZATION_DIRECTION_FROM`: Allows this organization + // to evaluate traffic in the organizations listed in the `orgs` field. + // `AUTHORIZATION_DIRECTION_TO`: Allows the organizations listed in the + // `orgs` field to evaluate the traffic in this organization. For the + // authorization relationship to take effect, all of the organizations + // must authorize and specify the appropriate relationship direction. + // For example, if organization A authorized organization B and C to + // evaluate its traffic, by specifying `AUTHORIZATION_DIRECTION_TO` as + // the authorization direction, organizations B and C must specify + // `AUTHORIZATION_DIRECTION_FROM` as the authorization direction in + // their `AuthorizedOrgsDesc` resource. // // Possible values: // "AUTHORIZATION_DIRECTION_UNSPECIFIED" - No direction specified. - // "AUTHORIZATION_DIRECTION_TO" - Specified orgs will evaluate - // traffic. - // "AUTHORIZATION_DIRECTION_FROM" - Specified orgs' traffic will be - // evaluated. + // "AUTHORIZATION_DIRECTION_TO" - The specified organizations are + // authorized to evaluate traffic in this organization. + // "AUTHORIZATION_DIRECTION_FROM" - The traffic of the specified + // organizations can be evaluated by this organization. AuthorizationDirection string `json:"authorizationDirection,omitempty"` - // AuthorizationType: The authorization type of this authorized orgs - // desc. e.g.authorization, troubleshooting or logging. + // AuthorizationType: A granular control type for authorization levels. + // Valid value is `AUTHORIZATION_TYPE_TRUST`. // // Possible values: // "AUTHORIZATION_TYPE_UNSPECIFIED" - No authorization type specified. @@ -522,15 +522,15 @@ type AuthorizedOrgsDesc struct { // "trust". AuthorizationType string `json:"authorizationType,omitempty"` - // Name: Assigned by the server during creation. The last segment has an - // arbitrary length and has only URI unreserved characters (as defined - // by RFC 3986 Section 2.3 - // (https://tools.ietf.org/html/rfc3986#section-2.3)). Should not be - // specified by the client during creation. Example: - // "accessPolicies/122256/authorizedOrgs/b3-BhcX_Ud5N" + // Name: Resource name for the `AuthorizedOrgsDesc`. Format: + // `accessPolicies/{access_policy}/authorizedOrgsDescs/{authorized_orgs_d + // esc}`. The `authorized_orgs_desc` component must begin with a letter, + // followed by alphanumeric characters or `_`. After you create an + // `AuthorizedOrgsDesc`, you cannot change its `name`. Name string `json:"name,omitempty"` // Orgs: The list of organization ids in this AuthorizedOrgsDesc. + // Format: `organizations/` Example: `organizations/123456` Orgs []string `json:"orgs,omitempty"` // ServerResponse contains the HTTP response code and headers from the @@ -634,7 +634,9 @@ type Binding struct { // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. // * `group:{emailid}`: An email address that represents a Google group. - // For example, `admins@example.com`. * + // For example, `admins@example.com`. * `domain:{domain}`: The G Suite + // domain (primary) that represents all the users of that domain. For + // example, `google.com` or `example.com`. * // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus // unique identifier) representing a user that has been recently // deleted. For example, `alice@example.com?uid=123456789012345678901`. @@ -651,9 +653,7 @@ type Binding struct { // that has been recently deleted. For example, // `admins@example.com?uid=123456789012345678901`. If the group is // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. * `domain:{domain}`: The G - // Suite domain (primary) that represents all the users of that domain. - // For example, `google.com` or `example.com`. + // group retains the role in the binding. Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. @@ -1392,7 +1392,7 @@ type IngressSource struct { // Resource: A Google Cloud resource that is allowed to ingress the // perimeter. Requests from these resources will be allowed to access // perimeter data. Currently only projects and VPCs are allowed. Project - // format: `projects/{project_number}` VPC format: + // format: `projects/{project_number}` VPC network format: // `//compute.googleapis.com/projects/{PROJECT_ID}/global/networks/{NAME} // `. The project may be in any Google Cloud organization, not just the // organization that the perimeter is defined in. `*` is not allowed, @@ -1541,7 +1541,7 @@ func (s *ListAccessPoliciesResponse) MarshalJSON() ([]byte, error) { // ListAuthorizedOrgsDescsResponse: A response to // `ListAuthorizedOrgsDescsRequest`. type ListAuthorizedOrgsDescsResponse struct { - // AuthorizedOrgsDescs: List of the Authorized Orgs Desc instances. + // AuthorizedOrgsDescs: List of all the Authorized Orgs Desc instances. AuthorizedOrgsDescs []*AuthorizedOrgsDesc `json:"authorizedOrgsDescs,omitempty"` // NextPageToken: The pagination token to retrieve the next page of @@ -2095,10 +2095,10 @@ func (s *ReplaceServicePerimetersResponse) MarshalJSON() ([]byte, error) { // `ServicePerimeter`, the request will be blocked. Otherwise the // request is allowed. There are two types of Service Perimeter - // Regular and Bridge. Regular Service Perimeters cannot overlap, a -// single Google Cloud project can only belong to a single regular -// Service Perimeter. Service Perimeter Bridges can contain only Google -// Cloud projects as members, a single Google Cloud project may belong -// to multiple Service Perimeter Bridges. +// single Google Cloud project or VPC network can only belong to a +// single regular Service Perimeter. Service Perimeter Bridges can +// contain only Google Cloud projects as members, a single Google Cloud +// project may belong to multiple Service Perimeter Bridges. type ServicePerimeter struct { // Description: Description of the `ServicePerimeter` and its use. Does // not affect behavior. @@ -2111,12 +2111,12 @@ type ServicePerimeter struct { // `ServicePerimeter`, you cannot change its `name`. Name string `json:"name,omitempty"` - // PerimeterType: Perimeter type indicator. A single project is allowed - // to be a member of single regular perimeter, but multiple service - // perimeter bridges. A project cannot be a included in a perimeter - // bridge without being included in regular perimeter. For perimeter - // bridges, the restricted service list as well as access level lists - // must be empty. + // PerimeterType: Perimeter type indicator. A single project or VPC + // network is allowed to be a member of single regular perimeter, but + // multiple service perimeter bridges. A project cannot be a included in + // a perimeter bridge without being included in regular perimeter. For + // perimeter bridges, the restricted service list as well as access + // level lists must be empty. // // Possible values: // "PERIMETER_TYPE_REGULAR" - Regular Perimeter. When no value is @@ -2207,7 +2207,7 @@ type ServicePerimeterConfig struct { // Resources: A list of Google Cloud resources that are inside of the // service perimeter. Currently only projects and VPCs are allowed. - // Project format: `projects/{project_number}` VPC format: + // Project format: `projects/{project_number}` VPC network format: // `//compute.googleapis.com/projects/{PROJECT_ID}/global/networks/{NAME} // `. Resources []string `json:"resources,omitempty"` @@ -4804,7 +4804,7 @@ type AccessPoliciesAuthorizedOrgsDescsCreateCall struct { header_ http.Header } -// Create: Creates a authorized orgs desc. The long-running operation +// Create: Creates an authorized orgs desc. The long-running operation // from this RPC has a successful status after the authorized orgs desc // propagates to long-lasting storage. If a authorized orgs desc // contains errors, an error response is returned for the first error @@ -4911,7 +4911,7 @@ func (c *AccessPoliciesAuthorizedOrgsDescsCreateCall) Do(opts ...googleapi.CallO } return ret, nil // { - // "description": "Creates a authorized orgs desc. The long-running operation from this RPC has a successful status after the authorized orgs desc propagates to long-lasting storage. If a authorized orgs desc contains errors, an error response is returned for the first error encountered. The name of this `AuthorizedOrgsDesc` will be assigned during creation.", + // "description": "Creates an authorized orgs desc. The long-running operation from this RPC has a successful status after the authorized orgs desc propagates to long-lasting storage. If a authorized orgs desc contains errors, an error response is returned for the first error encountered. The name of this `AuthorizedOrgsDesc` will be assigned during creation.", // "flatPath": "v1/accessPolicies/{accessPoliciesId}/authorizedOrgsDescs", // "httpMethod": "POST", // "id": "accesscontextmanager.accessPolicies.authorizedOrgsDescs.create", @@ -4951,7 +4951,7 @@ type AccessPoliciesAuthorizedOrgsDescsDeleteCall struct { header_ http.Header } -// Delete: Deletes a authorized orgs desc based on the resource name. +// Delete: Deletes an authorized orgs desc based on the resource name. // The long-running operation from this RPC has a successful status // after the authorized orgs desc is removed from long-lasting storage. // @@ -5050,7 +5050,7 @@ func (c *AccessPoliciesAuthorizedOrgsDescsDeleteCall) Do(opts ...googleapi.CallO } return ret, nil // { - // "description": "Deletes a authorized orgs desc based on the resource name. The long-running operation from this RPC has a successful status after the authorized orgs desc is removed from long-lasting storage.", + // "description": "Deletes an authorized orgs desc based on the resource name. The long-running operation from this RPC has a successful status after the authorized orgs desc is removed from long-lasting storage.", // "flatPath": "v1/accessPolicies/{accessPoliciesId}/authorizedOrgsDescs/{authorizedOrgsDescsId}", // "httpMethod": "DELETE", // "id": "accesscontextmanager.accessPolicies.authorizedOrgsDescs.delete", @@ -5088,7 +5088,7 @@ type AccessPoliciesAuthorizedOrgsDescsGetCall struct { header_ http.Header } -// Get: Gets a authorized orgs desc based on the resource name. +// Get: Gets an authorized orgs desc based on the resource name. // // - name: Resource name for the Authorized Orgs Desc. Format: // `accessPolicies/{policy_id}/authorizedOrgsDescs/{authorized_orgs_des @@ -5198,7 +5198,7 @@ func (c *AccessPoliciesAuthorizedOrgsDescsGetCall) Do(opts ...googleapi.CallOpti } return ret, nil // { - // "description": "Gets a authorized orgs desc based on the resource name.", + // "description": "Gets an authorized orgs desc based on the resource name.", // "flatPath": "v1/accessPolicies/{accessPoliciesId}/authorizedOrgsDescs/{authorizedOrgsDescsId}", // "httpMethod": "GET", // "id": "accesscontextmanager.accessPolicies.authorizedOrgsDescs.get", @@ -5430,7 +5430,7 @@ type AccessPoliciesAuthorizedOrgsDescsPatchCall struct { header_ http.Header } -// Patch: Updates a authorized orgs desc. The long-running operation +// Patch: Updates an authorized orgs desc. The long-running operation // from this RPC has a successful status after the authorized orgs desc // propagates to long-lasting storage. If a authorized orgs desc // contains errors, an error response is returned for the first error @@ -5438,12 +5438,11 @@ type AccessPoliciesAuthorizedOrgsDescsPatchCall struct { // be updated. The name, authorization_type, asset_type and // authorization_direction cannot be updated. // -// - name: Assigned by the server during creation. The last segment has -// an arbitrary length and has only URI unreserved characters (as -// defined by RFC 3986 Section 2.3 -// (https://tools.ietf.org/html/rfc3986#section-2.3)). Should not be -// specified by the client during creation. Example: -// "accessPolicies/122256/authorizedOrgs/b3-BhcX_Ud5N". +// - name: Resource name for the `AuthorizedOrgsDesc`. Format: +// `accessPolicies/{access_policy}/authorizedOrgsDescs/{authorized_orgs +// _desc}`. The `authorized_orgs_desc` component must begin with a +// letter, followed by alphanumeric characters or `_`. After you +// create an `AuthorizedOrgsDesc`, you cannot change its `name`. func (r *AccessPoliciesAuthorizedOrgsDescsService) Patch(name string, authorizedorgsdesc *AuthorizedOrgsDesc) *AccessPoliciesAuthorizedOrgsDescsPatchCall { c := &AccessPoliciesAuthorizedOrgsDescsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -5549,7 +5548,7 @@ func (c *AccessPoliciesAuthorizedOrgsDescsPatchCall) Do(opts ...googleapi.CallOp } return ret, nil // { - // "description": "Updates a authorized orgs desc. The long-running operation from this RPC has a successful status after the authorized orgs desc propagates to long-lasting storage. If a authorized orgs desc contains errors, an error response is returned for the first error encountered. Only the organization list in `AuthorizedOrgsDesc` can be updated. The name, authorization_type, asset_type and authorization_direction cannot be updated.", + // "description": "Updates an authorized orgs desc. The long-running operation from this RPC has a successful status after the authorized orgs desc propagates to long-lasting storage. If a authorized orgs desc contains errors, an error response is returned for the first error encountered. Only the organization list in `AuthorizedOrgsDesc` can be updated. The name, authorization_type, asset_type and authorization_direction cannot be updated.", // "flatPath": "v1/accessPolicies/{accessPoliciesId}/authorizedOrgsDescs/{authorizedOrgsDescsId}", // "httpMethod": "PATCH", // "id": "accesscontextmanager.accessPolicies.authorizedOrgsDescs.patch", @@ -5558,7 +5557,7 @@ func (c *AccessPoliciesAuthorizedOrgsDescsPatchCall) Do(opts ...googleapi.CallOp // ], // "parameters": { // "name": { - // "description": "Assigned by the server during creation. The last segment has an arbitrary length and has only URI unreserved characters (as defined by [RFC 3986 Section 2.3](https://tools.ietf.org/html/rfc3986#section-2.3)). Should not be specified by the client during creation. Example: \"accessPolicies/122256/authorizedOrgs/b3-BhcX_Ud5N\"", + // "description": "Resource name for the `AuthorizedOrgsDesc`. Format: `accessPolicies/{access_policy}/authorizedOrgsDescs/{authorized_orgs_desc}`. The `authorized_orgs_desc` component must begin with a letter, followed by alphanumeric characters or `_`. After you create an `AuthorizedOrgsDesc`, you cannot change its `name`.", // "location": "path", // "pattern": "^accessPolicies/[^/]+/authorizedOrgsDescs/[^/]+$", // "required": true, diff --git a/accesscontextmanager/v1beta/accesscontextmanager-api.json b/accesscontextmanager/v1beta/accesscontextmanager-api.json index 4084818df2d..4d2c1da4a55 100644 --- a/accesscontextmanager/v1beta/accesscontextmanager-api.json +++ b/accesscontextmanager/v1beta/accesscontextmanager-api.json @@ -12,7 +12,7 @@ "baseUrl": "https://accesscontextmanager.googleapis.com/", "batchPath": "batch", "canonicalName": "Access Context Manager", - "description": "An API for setting attribute based access control to requests to GCP services.", + "description": "An API for setting attribute based access control to requests to Google Cloud services.", "discoveryVersion": "v1", "documentationLink": "https://cloud.google.com/access-context-manager/docs/reference/rest/", "fullyEncodeReservedExpansion": true, @@ -609,7 +609,7 @@ } } }, - "revision": "20221205", + "revision": "20230130", "rootUrl": "https://accesscontextmanager.googleapis.com/", "schemas": { "AccessContextManagerOperationMetadata": { diff --git a/analyticsadmin/v1alpha/analyticsadmin-api.json b/analyticsadmin/v1alpha/analyticsadmin-api.json index 81483d55883..0f9747f90bd 100644 --- a/analyticsadmin/v1alpha/analyticsadmin-api.json +++ b/analyticsadmin/v1alpha/analyticsadmin-api.json @@ -713,6 +713,25 @@ "https://www.googleapis.com/auth/analytics.edit" ] }, + "fetchAutomatedGa4ConfigurationOptOut": { + "description": "Fetches the opt out status for the automated GA4 setup process for a UA property. Note: this has no effect on GA4 property.", + "flatPath": "v1alpha/properties:fetchAutomatedGa4ConfigurationOptOut", + "httpMethod": "POST", + "id": "analyticsadmin.properties.fetchAutomatedGa4ConfigurationOptOut", + "parameterOrder": [], + "parameters": {}, + "path": "v1alpha/properties:fetchAutomatedGa4ConfigurationOptOut", + "request": { + "$ref": "GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutRequest" + }, + "response": { + "$ref": "GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/analytics.edit", + "https://www.googleapis.com/auth/analytics.readonly" + ] + }, "get": { "description": "Lookup for a single \"GA4\" Property.", "flatPath": "v1alpha/properties/{propertiesId}", @@ -918,6 +937,24 @@ "https://www.googleapis.com/auth/analytics.readonly" ] }, + "setAutomatedGa4ConfigurationOptOut": { + "description": "Sets the opt out status for the automated GA4 setup process for a UA property. Note: this has no effect on GA4 property.", + "flatPath": "v1alpha/properties:setAutomatedGa4ConfigurationOptOut", + "httpMethod": "POST", + "id": "analyticsadmin.properties.setAutomatedGa4ConfigurationOptOut", + "parameterOrder": [], + "parameters": {}, + "path": "v1alpha/properties:setAutomatedGa4ConfigurationOptOut", + "request": { + "$ref": "GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutRequest" + }, + "response": { + "$ref": "GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/analytics.edit" + ] + }, "updateAttributionSettings": { "description": "Updates attribution settings on a property.", "flatPath": "v1alpha/properties/{propertiesId}/attributionSettings", @@ -3023,7 +3060,7 @@ } } }, - "revision": "20221205", + "revision": "20230201", "rootUrl": "https://analyticsadmin.googleapis.com/", "schemas": { "GoogleAnalyticsAdminV1alphaAccessBetweenFilter": { @@ -4930,6 +4967,28 @@ }, "type": "object" }, + "GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutRequest": { + "description": "Request for fetching the opt out status for the automated GA4 setup process.", + "id": "GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutRequest", + "properties": { + "property": { + "description": "Required. The UA property to get the opt out status. Note this request uses the internal property ID, not the tracking ID of the form UA-XXXXXX-YY. Format: properties/{internalWebPropertyId} Example: properties/1234", + "type": "string" + } + }, + "type": "object" + }, + "GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutResponse": { + "description": "Response message for fetching the opt out status for the automated GA4 setup process.", + "id": "GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutResponse", + "properties": { + "optOut": { + "description": "The opt out status for the UA property.", + "type": "boolean" + } + }, + "type": "object" + }, "GoogleAnalyticsAdminV1alphaFirebaseLink": { "description": "A link between a GA4 property and a Firebase project.", "id": "GoogleAnalyticsAdminV1alphaFirebaseLink", @@ -5893,6 +5952,27 @@ }, "type": "object" }, + "GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutRequest": { + "description": "Request for setting the opt out status for the automated GA4 setup process.", + "id": "GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutRequest", + "properties": { + "optOut": { + "description": "The status to set.", + "type": "boolean" + }, + "property": { + "description": "Required. The UA property to set the opt out status. Note this request uses the internal property ID, not the tracking ID of the form UA-XXXXXX-YY. Format: properties/{internalWebPropertyId} Example: properties/1234", + "type": "string" + } + }, + "type": "object" + }, + "GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutResponse": { + "description": "Response message for setting the opt out status for the automated GA4 setup process.", + "id": "GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutResponse", + "properties": {}, + "type": "object" + }, "GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest": { "description": "Request message for UpdateUserLink RPC.", "id": "GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest", diff --git a/analyticsadmin/v1alpha/analyticsadmin-gen.go b/analyticsadmin/v1alpha/analyticsadmin-gen.go index 9221f3ecbbb..741dfdd3092 100644 --- a/analyticsadmin/v1alpha/analyticsadmin-gen.go +++ b/analyticsadmin/v1alpha/analyticsadmin-gen.go @@ -3627,6 +3627,73 @@ func (s *GoogleAnalyticsAdminV1alphaExpandedDataSetFilterStringFilter) MarshalJS return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutRequest +// : Request for fetching the opt out status for the automated GA4 setup +// process. +type GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutRequest struct { + // Property: Required. The UA property to get the opt out status. Note + // this request uses the internal property ID, not the tracking ID of + // the form UA-XXXXXX-YY. Format: properties/{internalWebPropertyId} + // Example: properties/1234 + Property string `json:"property,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Property") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Property") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutRespons +// e: Response message for fetching the opt out status for the automated +// GA4 setup process. +type GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutResponse struct { + // OptOut: The opt out status for the UA property. + OptOut bool `json:"optOut,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "OptOut") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "OptOut") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleAnalyticsAdminV1alphaFirebaseLink: A link between a GA4 // property and a Firebase project. type GoogleAnalyticsAdminV1alphaFirebaseLink struct { @@ -5221,6 +5288,53 @@ func (s *GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsResponse) MarshalJS return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutRequest: +// Request for setting the opt out status for the automated GA4 setup +// process. +type GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutRequest struct { + // OptOut: The status to set. + OptOut bool `json:"optOut,omitempty"` + + // Property: Required. The UA property to set the opt out status. Note + // this request uses the internal property ID, not the tracking ID of + // the form UA-XXXXXX-YY. Format: properties/{internalWebPropertyId} + // Example: properties/1234 + Property string `json:"property,omitempty"` + + // ForceSendFields is a list of field names (e.g. "OptOut") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "OptOut") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutResponse: +// +// Response message for setting the opt out status for the automated +// +// GA4 setup process. +type GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutResponse struct { + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` +} + // GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest: Request message for // UpdateUserLink RPC. type GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest struct { @@ -8574,6 +8688,137 @@ func (c *PropertiesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleAnalytic } +// method id "analyticsadmin.properties.fetchAutomatedGa4ConfigurationOptOut": + +type PropertiesFetchAutomatedGa4ConfigurationOptOutCall struct { + s *Service + googleanalyticsadminv1alphafetchautomatedga4configurationoptoutrequest *GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// FetchAutomatedGa4ConfigurationOptOut: Fetches the opt out status for +// the automated GA4 setup process for a UA property. Note: this has no +// effect on GA4 property. +func (r *PropertiesService) FetchAutomatedGa4ConfigurationOptOut(googleanalyticsadminv1alphafetchautomatedga4configurationoptoutrequest *GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutRequest) *PropertiesFetchAutomatedGa4ConfigurationOptOutCall { + c := &PropertiesFetchAutomatedGa4ConfigurationOptOutCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.googleanalyticsadminv1alphafetchautomatedga4configurationoptoutrequest = googleanalyticsadminv1alphafetchautomatedga4configurationoptoutrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *PropertiesFetchAutomatedGa4ConfigurationOptOutCall) Fields(s ...googleapi.Field) *PropertiesFetchAutomatedGa4ConfigurationOptOutCall { + 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 *PropertiesFetchAutomatedGa4ConfigurationOptOutCall) Context(ctx context.Context) *PropertiesFetchAutomatedGa4ConfigurationOptOutCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *PropertiesFetchAutomatedGa4ConfigurationOptOutCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *PropertiesFetchAutomatedGa4ConfigurationOptOutCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-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.googleanalyticsadminv1alphafetchautomatedga4configurationoptoutrequest) + 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/properties:fetchAutomatedGa4ConfigurationOptOut") + 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 "analyticsadmin.properties.fetchAutomatedGa4ConfigurationOptOut" call. +// Exactly one of +// *GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutRespon +// se or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutRespon +// 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 *PropertiesFetchAutomatedGa4ConfigurationOptOutCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Fetches the opt out status for the automated GA4 setup process for a UA property. Note: this has no effect on GA4 property.", + // "flatPath": "v1alpha/properties:fetchAutomatedGa4ConfigurationOptOut", + // "httpMethod": "POST", + // "id": "analyticsadmin.properties.fetchAutomatedGa4ConfigurationOptOut", + // "parameterOrder": [], + // "parameters": {}, + // "path": "v1alpha/properties:fetchAutomatedGa4ConfigurationOptOut", + // "request": { + // "$ref": "GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutRequest" + // }, + // "response": { + // "$ref": "GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/analytics.edit", + // "https://www.googleapis.com/auth/analytics.readonly" + // ] + // } + +} + // method id "analyticsadmin.properties.get": type PropertiesGetCall struct { @@ -9721,6 +9966,138 @@ func (c *PropertiesRunAccessReportCall) Do(opts ...googleapi.CallOption) (*Googl } +// method id "analyticsadmin.properties.setAutomatedGa4ConfigurationOptOut": + +type PropertiesSetAutomatedGa4ConfigurationOptOutCall struct { + s *Service + googleanalyticsadminv1alphasetautomatedga4configurationoptoutrequest *GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SetAutomatedGa4ConfigurationOptOut: Sets the opt out status for the +// automated GA4 setup process for a UA property. Note: this has no +// effect on GA4 property. +func (r *PropertiesService) SetAutomatedGa4ConfigurationOptOut(googleanalyticsadminv1alphasetautomatedga4configurationoptoutrequest *GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutRequest) *PropertiesSetAutomatedGa4ConfigurationOptOutCall { + c := &PropertiesSetAutomatedGa4ConfigurationOptOutCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.googleanalyticsadminv1alphasetautomatedga4configurationoptoutrequest = googleanalyticsadminv1alphasetautomatedga4configurationoptoutrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *PropertiesSetAutomatedGa4ConfigurationOptOutCall) Fields(s ...googleapi.Field) *PropertiesSetAutomatedGa4ConfigurationOptOutCall { + 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 *PropertiesSetAutomatedGa4ConfigurationOptOutCall) Context(ctx context.Context) *PropertiesSetAutomatedGa4ConfigurationOptOutCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *PropertiesSetAutomatedGa4ConfigurationOptOutCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *PropertiesSetAutomatedGa4ConfigurationOptOutCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-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.googleanalyticsadminv1alphasetautomatedga4configurationoptoutrequest) + 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/properties:setAutomatedGa4ConfigurationOptOut") + 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 "analyticsadmin.properties.setAutomatedGa4ConfigurationOptOut" call. +// Exactly one of +// *GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutResponse +// +// or error will be non-nil. Any non-2xx status code is an error. +// +// Response headers are in either +// *GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutResponse +// .ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *PropertiesSetAutomatedGa4ConfigurationOptOutCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutResponse{ + ServerResponse: googleapi.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 opt out status for the automated GA4 setup process for a UA property. Note: this has no effect on GA4 property.", + // "flatPath": "v1alpha/properties:setAutomatedGa4ConfigurationOptOut", + // "httpMethod": "POST", + // "id": "analyticsadmin.properties.setAutomatedGa4ConfigurationOptOut", + // "parameterOrder": [], + // "parameters": {}, + // "path": "v1alpha/properties:setAutomatedGa4ConfigurationOptOut", + // "request": { + // "$ref": "GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutRequest" + // }, + // "response": { + // "$ref": "GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/analytics.edit" + // ] + // } + +} + // method id "analyticsadmin.properties.updateAttributionSettings": type PropertiesUpdateAttributionSettingsCall struct { diff --git a/analyticshub/v1/analyticshub-api.json b/analyticshub/v1/analyticshub-api.json index e113cd5ac2a..835ac9cf114 100644 --- a/analyticshub/v1/analyticshub-api.json +++ b/analyticshub/v1/analyticshub-api.json @@ -695,7 +695,7 @@ } } }, - "revision": "20230116", + "revision": "20230127", "rootUrl": "https://analyticshub.googleapis.com/", "schemas": { "AuditConfig": { @@ -766,7 +766,7 @@ "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", + "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.", "items": { "type": "string" }, diff --git a/analyticshub/v1/analyticshub-gen.go b/analyticshub/v1/analyticshub-gen.go index 6daa9574dc2..6acf209f8d0 100644 --- a/analyticshub/v1/analyticshub-gen.go +++ b/analyticshub/v1/analyticshub-gen.go @@ -388,7 +388,9 @@ type Binding struct { // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. // * `group:{emailid}`: An email address that represents a Google group. - // For example, `admins@example.com`. * + // For example, `admins@example.com`. * `domain:{domain}`: The G Suite + // domain (primary) that represents all the users of that domain. For + // example, `google.com` or `example.com`. * // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus // unique identifier) representing a user that has been recently // deleted. For example, `alice@example.com?uid=123456789012345678901`. @@ -405,9 +407,7 @@ type Binding struct { // that has been recently deleted. For example, // `admins@example.com?uid=123456789012345678901`. If the group is // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. * `domain:{domain}`: The G - // Suite domain (primary) that represents all the users of that domain. - // For example, `google.com` or `example.com`. + // group retains the role in the binding. Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. diff --git a/analyticshub/v1beta1/analyticshub-api.json b/analyticshub/v1beta1/analyticshub-api.json index 77f899faecc..15d70486b35 100644 --- a/analyticshub/v1beta1/analyticshub-api.json +++ b/analyticshub/v1beta1/analyticshub-api.json @@ -695,7 +695,7 @@ } } }, - "revision": "20230116", + "revision": "20230127", "rootUrl": "https://analyticshub.googleapis.com/", "schemas": { "AuditConfig": { @@ -766,7 +766,7 @@ "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", + "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.", "items": { "type": "string" }, diff --git a/analyticshub/v1beta1/analyticshub-gen.go b/analyticshub/v1beta1/analyticshub-gen.go index e262cac1a99..2975c6f4ce2 100644 --- a/analyticshub/v1beta1/analyticshub-gen.go +++ b/analyticshub/v1beta1/analyticshub-gen.go @@ -388,7 +388,9 @@ type Binding struct { // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. // * `group:{emailid}`: An email address that represents a Google group. - // For example, `admins@example.com`. * + // For example, `admins@example.com`. * `domain:{domain}`: The G Suite + // domain (primary) that represents all the users of that domain. For + // example, `google.com` or `example.com`. * // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus // unique identifier) representing a user that has been recently // deleted. For example, `alice@example.com?uid=123456789012345678901`. @@ -405,9 +407,7 @@ type Binding struct { // that has been recently deleted. For example, // `admins@example.com?uid=123456789012345678901`. If the group is // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. * `domain:{domain}`: The G - // Suite domain (primary) that represents all the users of that domain. - // For example, `google.com` or `example.com`. + // group retains the role in the binding. Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. diff --git a/api-list.json b/api-list.json index b1a52c5d081..89e5c15f656 100644 --- a/api-list.json +++ b/api-list.json @@ -53,7 +53,7 @@ "name": "accesscontextmanager", "version": "v1beta", "title": "Access Context Manager API", - "description": "An API for setting attribute based access control to requests to GCP services.", + "description": "An API for setting attribute based access control to requests to Google Cloud services.", "discoveryRestUrl": "https://accesscontextmanager.googleapis.com/$discovery/rest?version=v1beta", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", @@ -68,7 +68,7 @@ "name": "accesscontextmanager", "version": "v1", "title": "Access Context Manager API", - "description": "An API for setting attribute based access control to requests to GCP services.", + "description": "An API for setting attribute based access control to requests to Google Cloud services.", "discoveryRestUrl": "https://accesscontextmanager.googleapis.com/$discovery/rest?version=v1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", diff --git a/artifactregistry/v1beta1/artifactregistry-api.json b/artifactregistry/v1beta1/artifactregistry-api.json index 0a5a186fd69..128d57fcbea 100644 --- a/artifactregistry/v1beta1/artifactregistry-api.json +++ b/artifactregistry/v1beta1/artifactregistry-api.json @@ -929,7 +929,7 @@ } } }, - "revision": "20221022", + "revision": "20230131", "rootUrl": "https://artifactregistry.googleapis.com/", "schemas": { "Binding": { @@ -941,7 +941,7 @@ "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", + "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.", "items": { "type": "string" }, diff --git a/artifactregistry/v1beta1/artifactregistry-gen.go b/artifactregistry/v1beta1/artifactregistry-gen.go index 42c880f8bde..2d0066bba8a 100644 --- a/artifactregistry/v1beta1/artifactregistry-gen.go +++ b/artifactregistry/v1beta1/artifactregistry-gen.go @@ -268,7 +268,9 @@ type Binding struct { // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. // * `group:{emailid}`: An email address that represents a Google group. - // For example, `admins@example.com`. * + // For example, `admins@example.com`. * `domain:{domain}`: The G Suite + // domain (primary) that represents all the users of that domain. For + // example, `google.com` or `example.com`. * // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus // unique identifier) representing a user that has been recently // deleted. For example, `alice@example.com?uid=123456789012345678901`. @@ -285,9 +287,7 @@ type Binding struct { // that has been recently deleted. For example, // `admins@example.com?uid=123456789012345678901`. If the group is // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. * `domain:{domain}`: The G - // Suite domain (primary) that represents all the users of that domain. - // For example, `google.com` or `example.com`. + // group retains the role in the binding. Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. diff --git a/artifactregistry/v1beta2/artifactregistry-api.json b/artifactregistry/v1beta2/artifactregistry-api.json index e8bd6e61889..a74c204cb16 100644 --- a/artifactregistry/v1beta2/artifactregistry-api.json +++ b/artifactregistry/v1beta2/artifactregistry-api.json @@ -1135,7 +1135,7 @@ } } }, - "revision": "20221022", + "revision": "20230131", "rootUrl": "https://artifactregistry.googleapis.com/", "schemas": { "AptArtifact": { @@ -1195,7 +1195,7 @@ "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", + "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.", "items": { "type": "string" }, diff --git a/artifactregistry/v1beta2/artifactregistry-gen.go b/artifactregistry/v1beta2/artifactregistry-gen.go index 2abbba8c619..a901f06b9bc 100644 --- a/artifactregistry/v1beta2/artifactregistry-gen.go +++ b/artifactregistry/v1beta2/artifactregistry-gen.go @@ -345,7 +345,9 @@ type Binding struct { // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. // * `group:{emailid}`: An email address that represents a Google group. - // For example, `admins@example.com`. * + // For example, `admins@example.com`. * `domain:{domain}`: The G Suite + // domain (primary) that represents all the users of that domain. For + // example, `google.com` or `example.com`. * // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus // unique identifier) representing a user that has been recently // deleted. For example, `alice@example.com?uid=123456789012345678901`. @@ -362,9 +364,7 @@ type Binding struct { // that has been recently deleted. For example, // `admins@example.com?uid=123456789012345678901`. If the group is // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. * `domain:{domain}`: The G - // Suite domain (primary) that represents all the users of that domain. - // For example, `google.com` or `example.com`. + // group retains the role in the binding. Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. diff --git a/cloudfunctions/v1/cloudfunctions-api.json b/cloudfunctions/v1/cloudfunctions-api.json index 52373d368f5..33d709c5291 100644 --- a/cloudfunctions/v1/cloudfunctions-api.json +++ b/cloudfunctions/v1/cloudfunctions-api.json @@ -546,7 +546,7 @@ } } }, - "revision": "20220824", + "revision": "20230126", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AuditConfig": { @@ -606,7 +606,7 @@ "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", + "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.", "items": { "type": "string" }, diff --git a/cloudfunctions/v1/cloudfunctions-gen.go b/cloudfunctions/v1/cloudfunctions-gen.go index 883a099e84f..60bdf1b710a 100644 --- a/cloudfunctions/v1/cloudfunctions-gen.go +++ b/cloudfunctions/v1/cloudfunctions-gen.go @@ -308,7 +308,9 @@ type Binding struct { // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. // * `group:{emailid}`: An email address that represents a Google group. - // For example, `admins@example.com`. * + // For example, `admins@example.com`. * `domain:{domain}`: The G Suite + // domain (primary) that represents all the users of that domain. For + // example, `google.com` or `example.com`. * // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus // unique identifier) representing a user that has been recently // deleted. For example, `alice@example.com?uid=123456789012345678901`. @@ -325,9 +327,7 @@ type Binding struct { // that has been recently deleted. For example, // `admins@example.com?uid=123456789012345678901`. If the group is // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. * `domain:{domain}`: The G - // Suite domain (primary) that represents all the users of that domain. - // For example, `google.com` or `example.com`. + // group retains the role in the binding. Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. diff --git a/cloudfunctions/v2/cloudfunctions-api.json b/cloudfunctions/v2/cloudfunctions-api.json index 235403fde8a..dac3cc09dcc 100644 --- a/cloudfunctions/v2/cloudfunctions-api.json +++ b/cloudfunctions/v2/cloudfunctions-api.json @@ -571,7 +571,7 @@ } } }, - "revision": "20221207", + "revision": "20230126", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AuditConfig": { @@ -631,7 +631,7 @@ "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", + "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.", "items": { "type": "string" }, diff --git a/cloudfunctions/v2/cloudfunctions-gen.go b/cloudfunctions/v2/cloudfunctions-gen.go index 5c61780e043..2b305761569 100644 --- a/cloudfunctions/v2/cloudfunctions-gen.go +++ b/cloudfunctions/v2/cloudfunctions-gen.go @@ -320,7 +320,9 @@ type Binding struct { // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. // * `group:{emailid}`: An email address that represents a Google group. - // For example, `admins@example.com`. * + // For example, `admins@example.com`. * `domain:{domain}`: The G Suite + // domain (primary) that represents all the users of that domain. For + // example, `google.com` or `example.com`. * // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus // unique identifier) representing a user that has been recently // deleted. For example, `alice@example.com?uid=123456789012345678901`. @@ -337,9 +339,7 @@ type Binding struct { // that has been recently deleted. For example, // `admins@example.com?uid=123456789012345678901`. If the group is // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. * `domain:{domain}`: The G - // Suite domain (primary) that represents all the users of that domain. - // For example, `google.com` or `example.com`. + // group retains the role in the binding. Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. diff --git a/cloudfunctions/v2alpha/cloudfunctions-api.json b/cloudfunctions/v2alpha/cloudfunctions-api.json index 726b2d9379b..4d41b56f433 100644 --- a/cloudfunctions/v2alpha/cloudfunctions-api.json +++ b/cloudfunctions/v2alpha/cloudfunctions-api.json @@ -571,7 +571,7 @@ } } }, - "revision": "20221207", + "revision": "20230126", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AuditConfig": { @@ -631,7 +631,7 @@ "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", + "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.", "items": { "type": "string" }, diff --git a/cloudfunctions/v2alpha/cloudfunctions-gen.go b/cloudfunctions/v2alpha/cloudfunctions-gen.go index 64106aad9df..6fd364a9dc6 100644 --- a/cloudfunctions/v2alpha/cloudfunctions-gen.go +++ b/cloudfunctions/v2alpha/cloudfunctions-gen.go @@ -320,7 +320,9 @@ type Binding struct { // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. // * `group:{emailid}`: An email address that represents a Google group. - // For example, `admins@example.com`. * + // For example, `admins@example.com`. * `domain:{domain}`: The G Suite + // domain (primary) that represents all the users of that domain. For + // example, `google.com` or `example.com`. * // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus // unique identifier) representing a user that has been recently // deleted. For example, `alice@example.com?uid=123456789012345678901`. @@ -337,9 +339,7 @@ type Binding struct { // that has been recently deleted. For example, // `admins@example.com?uid=123456789012345678901`. If the group is // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. * `domain:{domain}`: The G - // Suite domain (primary) that represents all the users of that domain. - // For example, `google.com` or `example.com`. + // group retains the role in the binding. Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. diff --git a/cloudfunctions/v2beta/cloudfunctions-api.json b/cloudfunctions/v2beta/cloudfunctions-api.json index 8f6c42311c3..6836a3c09eb 100644 --- a/cloudfunctions/v2beta/cloudfunctions-api.json +++ b/cloudfunctions/v2beta/cloudfunctions-api.json @@ -571,7 +571,7 @@ } } }, - "revision": "20221207", + "revision": "20230126", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AuditConfig": { @@ -631,7 +631,7 @@ "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", + "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.", "items": { "type": "string" }, diff --git a/cloudfunctions/v2beta/cloudfunctions-gen.go b/cloudfunctions/v2beta/cloudfunctions-gen.go index 3dfef96c99b..11318d6ffbc 100644 --- a/cloudfunctions/v2beta/cloudfunctions-gen.go +++ b/cloudfunctions/v2beta/cloudfunctions-gen.go @@ -320,7 +320,9 @@ type Binding struct { // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. // * `group:{emailid}`: An email address that represents a Google group. - // For example, `admins@example.com`. * + // For example, `admins@example.com`. * `domain:{domain}`: The G Suite + // domain (primary) that represents all the users of that domain. For + // example, `google.com` or `example.com`. * // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus // unique identifier) representing a user that has been recently // deleted. For example, `alice@example.com?uid=123456789012345678901`. @@ -337,9 +339,7 @@ type Binding struct { // that has been recently deleted. For example, // `admins@example.com?uid=123456789012345678901`. If the group is // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. * `domain:{domain}`: The G - // Suite domain (primary) that represents all the users of that domain. - // For example, `google.com` or `example.com`. + // group retains the role in the binding. Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. diff --git a/cloudsearch/v1/cloudsearch-api.json b/cloudsearch/v1/cloudsearch-api.json index 8c434e702e6..739d7820f4c 100644 --- a/cloudsearch/v1/cloudsearch-api.json +++ b/cloudsearch/v1/cloudsearch-api.json @@ -2077,7 +2077,7 @@ } } }, - "revision": "20230117", + "revision": "20230124", "rootUrl": "https://cloudsearch.googleapis.com/", "schemas": { "AbuseReportingConfig": { @@ -2396,7 +2396,7 @@ }, "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/AnnotationTranslator.java )" + "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" @@ -2830,6 +2830,7 @@ "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", @@ -2858,6 +2859,7 @@ "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.", "Rule fetch happened, but rule evaluation is skipped because none of the rules are applicable to the given trigger.", @@ -7161,6 +7163,7 @@ "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", @@ -7189,6 +7192,7 @@ "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.", "Rule fetch happened, but rule evaluation is skipped because none of the rules are applicable to the given trigger.", @@ -7520,6 +7524,29 @@ "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" + }, + "dasContactCount": { + "format": "int64", + "type": "string" + }, "finalScore": { "format": "double", "type": "number" @@ -7540,6 +7567,14 @@ "format": "double", "type": "number" }, + "spaceId": { + "format": "int64", + "type": "string" + }, + "spaceMembershipCount": { + "format": "int64", + "type": "string" + }, "topicalityScore": { "format": "double", "type": "number" @@ -12725,6 +12760,7 @@ "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", @@ -12753,6 +12789,7 @@ "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.", "Rule fetch happened, but rule evaluation is skipped because none of the rules are applicable to the given trigger.", diff --git a/cloudsearch/v1/cloudsearch-gen.go b/cloudsearch/v1/cloudsearch-gen.go index 65dcb54b9d0..85a58c75571 100644 --- a/cloudsearch/v1/cloudsearch-gen.go +++ b/cloudsearch/v1/cloudsearch-gen.go @@ -949,8 +949,8 @@ type Annotation struct { // tationSanitizer.java, // //depot/google3/java/com/google/apps/dynamite/v1/backend/action/common // /SystemMessageHelper.java, - // //depot/google3/java/com/google/caribou/eli/mediation/chat/AnnotationT - // ranslator.java ) + // //depot/google3/java/com/google/caribou/eli/mediation/chat/AnnotationC + // onverter.java ) RequiredMessageFeaturesMetadata *RequiredMessageFeaturesMetadata `json:"requiredMessageFeaturesMetadata,omitempty"` RoomUpdated *RoomUpdatedMetadata `json:"roomUpdated,omitempty"` @@ -1560,6 +1560,9 @@ type AppsDynamiteSharedBackendUploadMetadata struct { // 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. // @@ -8688,6 +8691,9 @@ type DlpScanSummary struct { // 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. // @@ -9209,6 +9215,18 @@ func (s *DriveTimeSpanRestrict) MarshalJSON() ([]byte, error) { // 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"` + + DasContactCount int64 `json:"dasContactCount,omitempty,string"` + FinalScore float64 `json:"finalScore,omitempty"` FreshnessScore float64 `json:"freshnessScore,omitempty"` @@ -9219,24 +9237,29 @@ type DynamiteMessagesScoringInfo struct { 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. "FinalScore") to - // unconditionally include in API requests. By default, fields with + // 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. "FinalScore") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an 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. "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:"-"` } @@ -9249,19 +9272,23 @@ func (s *DynamiteMessagesScoringInfo) MarshalJSON() ([]byte, error) { func (s *DynamiteMessagesScoringInfo) UnmarshalJSON(data []byte) error { type NoMethod DynamiteMessagesScoringInfo var s1 struct { - FinalScore gensupport.JSONFloat64 `json:"finalScore"` - FreshnessScore gensupport.JSONFloat64 `json:"freshnessScore"` - JoinedSpaceAffinityScore gensupport.JSONFloat64 `json:"joinedSpaceAffinityScore"` - MessageAgeInDays gensupport.JSONFloat64 `json:"messageAgeInDays"` - MessageSenderAffinityScore gensupport.JSONFloat64 `json:"messageSenderAffinityScore"` - TopicalityScore gensupport.JSONFloat64 `json:"topicalityScore"` - UnjoinedSpaceAffinityScore gensupport.JSONFloat64 `json:"unjoinedSpaceAffinityScore"` + CommonCountToContactListCountRatio gensupport.JSONFloat64 `json:"commonCountToContactListCountRatio"` + CommonCountToMembershipCountRatio gensupport.JSONFloat64 `json:"commonCountToMembershipCountRatio"` + FinalScore gensupport.JSONFloat64 `json:"finalScore"` + FreshnessScore gensupport.JSONFloat64 `json:"freshnessScore"` + JoinedSpaceAffinityScore gensupport.JSONFloat64 `json:"joinedSpaceAffinityScore"` + 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.FinalScore = float64(s1.FinalScore) s.FreshnessScore = float64(s1.FreshnessScore) s.JoinedSpaceAffinityScore = float64(s1.JoinedSpaceAffinityScore) @@ -16286,6 +16313,9 @@ type Message struct { // 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. // diff --git a/contactcenterinsights/v1/contactcenterinsights-api.json b/contactcenterinsights/v1/contactcenterinsights-api.json index 76775306b3d..de7f5e09da9 100644 --- a/contactcenterinsights/v1/contactcenterinsights-api.json +++ b/contactcenterinsights/v1/contactcenterinsights-api.json @@ -1356,7 +1356,7 @@ } } }, - "revision": "20221219", + "revision": "20230129", "rootUrl": "https://contactcenterinsights.googleapis.com/", "schemas": { "GoogleCloudContactcenterinsightsV1Analysis": { @@ -2573,6 +2573,11 @@ "readOnly": true, "type": "string" }, + "ingestConversationsStats": { + "$ref": "GoogleCloudContactcenterinsightsV1IngestConversationsMetadataIngestConversationsStats", + "description": "Output only. Statistics for IngestConversations operation.", + "readOnly": true + }, "partialErrors": { "description": "Output only. Partial errors during ingest operation that might cause the operation output to be incomplete.", "items": { @@ -2589,6 +2594,37 @@ }, "type": "object" }, + "GoogleCloudContactcenterinsightsV1IngestConversationsMetadataIngestConversationsStats": { + "description": "Statistics for IngestConversations operation.", + "id": "GoogleCloudContactcenterinsightsV1IngestConversationsMetadataIngestConversationsStats", + "properties": { + "duplicatesSkippedCount": { + "description": "Output only. The number of objects skipped because another conversation with the same transcript uri had already been ingested.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "failedIngestCount": { + "description": "Output only. The number of objects which were unable to be ingested due to errors. The errors are populated in the partial_errors field.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "processedObjectCount": { + "description": "Output only. The number of objects processed during the ingest operation.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "successfulIngestCount": { + "description": "Output only. The number of new conversations added during this ingest operation.", + "format": "int32", + "readOnly": true, + "type": "integer" + } + }, + "type": "object" + }, "GoogleCloudContactcenterinsightsV1IngestConversationsRequest": { "description": "The request to ingest conversations.", "id": "GoogleCloudContactcenterinsightsV1IngestConversationsRequest", @@ -3803,6 +3839,11 @@ "readOnly": true, "type": "string" }, + "ingestConversationsStats": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1IngestConversationsMetadataIngestConversationsStats", + "description": "Output only. Statistics for IngestConversations operation.", + "readOnly": true + }, "partialErrors": { "description": "Output only. Partial errors during ingest operation that might cause the operation output to be incomplete.", "items": { @@ -3819,6 +3860,37 @@ }, "type": "object" }, + "GoogleCloudContactcenterinsightsV1alpha1IngestConversationsMetadataIngestConversationsStats": { + "description": "Statistics for IngestConversations operation.", + "id": "GoogleCloudContactcenterinsightsV1alpha1IngestConversationsMetadataIngestConversationsStats", + "properties": { + "duplicatesSkippedCount": { + "description": "Output only. The number of objects skipped because another conversation with the same transcript uri had already been ingested.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "failedIngestCount": { + "description": "Output only. The number of objects which were unable to be ingested due to errors. The errors are populated in the partial_errors field.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "processedObjectCount": { + "description": "Output only. The number of objects processed during the ingest operation.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "successfulIngestCount": { + "description": "Output only. The number of new conversations added during this ingest operation.", + "format": "int32", + "readOnly": true, + "type": "integer" + } + }, + "type": "object" + }, "GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequest": { "description": "The request to ingest conversations.", "id": "GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequest", diff --git a/contactcenterinsights/v1/contactcenterinsights-gen.go b/contactcenterinsights/v1/contactcenterinsights-gen.go index 0f85d0e84c1..c53da344c72 100644 --- a/contactcenterinsights/v1/contactcenterinsights-gen.go +++ b/contactcenterinsights/v1/contactcenterinsights-gen.go @@ -2209,6 +2209,10 @@ type GoogleCloudContactcenterinsightsV1IngestConversationsMetadata struct { // EndTime: Output only. The time the operation finished running. EndTime string `json:"endTime,omitempty"` + // IngestConversationsStats: Output only. Statistics for + // IngestConversations operation. + IngestConversationsStats *GoogleCloudContactcenterinsightsV1IngestConversationsMetadataIngestConversationsStats `json:"ingestConversationsStats,omitempty"` + // PartialErrors: Output only. Partial errors during ingest operation // that might cause the operation output to be incomplete. PartialErrors []*GoogleRpcStatus `json:"partialErrors,omitempty"` @@ -2239,6 +2243,52 @@ func (s *GoogleCloudContactcenterinsightsV1IngestConversationsMetadata) MarshalJ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudContactcenterinsightsV1IngestConversationsMetadataIngestCon +// versationsStats: Statistics for IngestConversations operation. +type GoogleCloudContactcenterinsightsV1IngestConversationsMetadataIngestConversationsStats struct { + // DuplicatesSkippedCount: Output only. The number of objects skipped + // because another conversation with the same transcript uri had already + // been ingested. + DuplicatesSkippedCount int64 `json:"duplicatesSkippedCount,omitempty"` + + // FailedIngestCount: Output only. The number of objects which were + // unable to be ingested due to errors. The errors are populated in the + // partial_errors field. + FailedIngestCount int64 `json:"failedIngestCount,omitempty"` + + // ProcessedObjectCount: Output only. The number of objects processed + // during the ingest operation. + ProcessedObjectCount int64 `json:"processedObjectCount,omitempty"` + + // SuccessfulIngestCount: Output only. The number of new conversations + // added during this ingest operation. + SuccessfulIngestCount int64 `json:"successfulIngestCount,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "DuplicatesSkippedCount") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DuplicatesSkippedCount") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudContactcenterinsightsV1IngestConversationsMetadataIngestConversationsStats) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1IngestConversationsMetadataIngestConversationsStats + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudContactcenterinsightsV1IngestConversationsRequest: The // request to ingest conversations. type GoogleCloudContactcenterinsightsV1IngestConversationsRequest struct { @@ -4320,6 +4370,10 @@ type GoogleCloudContactcenterinsightsV1alpha1IngestConversationsMetadata struct // EndTime: Output only. The time the operation finished running. EndTime string `json:"endTime,omitempty"` + // IngestConversationsStats: Output only. Statistics for + // IngestConversations operation. + IngestConversationsStats *GoogleCloudContactcenterinsightsV1alpha1IngestConversationsMetadataIngestConversationsStats `json:"ingestConversationsStats,omitempty"` + // PartialErrors: Output only. Partial errors during ingest operation // that might cause the operation output to be incomplete. PartialErrors []*GoogleRpcStatus `json:"partialErrors,omitempty"` @@ -4350,6 +4404,52 @@ func (s *GoogleCloudContactcenterinsightsV1alpha1IngestConversationsMetadata) Ma return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudContactcenterinsightsV1alpha1IngestConversationsMetadataIng +// estConversationsStats: Statistics for IngestConversations operation. +type GoogleCloudContactcenterinsightsV1alpha1IngestConversationsMetadataIngestConversationsStats struct { + // DuplicatesSkippedCount: Output only. The number of objects skipped + // because another conversation with the same transcript uri had already + // been ingested. + DuplicatesSkippedCount int64 `json:"duplicatesSkippedCount,omitempty"` + + // FailedIngestCount: Output only. The number of objects which were + // unable to be ingested due to errors. The errors are populated in the + // partial_errors field. + FailedIngestCount int64 `json:"failedIngestCount,omitempty"` + + // ProcessedObjectCount: Output only. The number of objects processed + // during the ingest operation. + ProcessedObjectCount int64 `json:"processedObjectCount,omitempty"` + + // SuccessfulIngestCount: Output only. The number of new conversations + // added during this ingest operation. + SuccessfulIngestCount int64 `json:"successfulIngestCount,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "DuplicatesSkippedCount") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DuplicatesSkippedCount") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudContactcenterinsightsV1alpha1IngestConversationsMetadataIngestConversationsStats) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1IngestConversationsMetadataIngestConversationsStats + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequest: // The request to ingest conversations. type GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequest struct { diff --git a/datacatalog/v1/datacatalog-api.json b/datacatalog/v1/datacatalog-api.json index 9599c9959e4..13ec07b32de 100644 --- a/datacatalog/v1/datacatalog-api.json +++ b/datacatalog/v1/datacatalog-api.json @@ -901,6 +901,34 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + }, + "reconcile": { + "description": "Reconciles tags created with a given tag template on a given Entry. Reconciliation is an operation that given a list of tags creates or updates them on the entry. Additionally, the operation is also able to delete tags not mentioned in the tag list. It can be achieved by setting force_delete_missing parameter. Reconciliation is a long-running operation done in the background, so this method returns long-running operation resource. The resource can be queried with Operations.GetOperation which contains metadata and response.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/entryGroups/{entryGroupsId}/entries/{entriesId}/tags:reconcile", + "httpMethod": "POST", + "id": "datacatalog.projects.locations.entryGroups.entries.tags.reconcile", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. Name of Entry to be tagged.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entries/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/tags:reconcile", + "request": { + "$ref": "GoogleCloudDatacatalogV1ReconcileTagsRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } } } @@ -2106,7 +2134,7 @@ } } }, - "revision": "20230117", + "revision": "20230127", "rootUrl": "https://datacatalog.googleapis.com/", "schemas": { "Binding": { @@ -2118,7 +2146,7 @@ "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", + "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.", "items": { "type": "string" }, @@ -3376,6 +3404,80 @@ }, "type": "object" }, + "GoogleCloudDatacatalogV1ReconcileTagsMetadata": { + "description": "Metadata message for long-running operation returned by the ReconcileTags.", + "id": "GoogleCloudDatacatalogV1ReconcileTagsMetadata", + "properties": { + "errors": { + "additionalProperties": { + "$ref": "Status" + }, + "description": "Map that maps name of each tagged column (or empty string in case of sole entry) to tagging operation status.", + "type": "object" + }, + "state": { + "description": "State of the reconciliation operation.", + "enum": [ + "RECONCILIATION_STATE_UNSPECIFIED", + "RECONCILIATION_QUEUED", + "RECONCILIATION_IN_PROGRESS", + "RECONCILIATION_DONE" + ], + "enumDescriptions": [ + "Default value. This value is unused.", + "The reconciliation has been queued and awaits for execution.", + "The reconciliation is in progress.", + "The reconciliation has been finished." + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogV1ReconcileTagsRequest": { + "description": "Request message for ReconcileTags.", + "id": "GoogleCloudDatacatalogV1ReconcileTagsRequest", + "properties": { + "forceDeleteMissing": { + "description": "If set to true deletes from the entry tags related to given tag template and not mentioned in the tags source. If set to false only creates and updates of the tags mentioned in the source will take place. Other tags in that entry using the same tag template will be retained instead of being deleted.", + "type": "boolean" + }, + "tagTemplate": { + "description": "Required. The name of the tag template, that will be used for reconciliation.", + "type": "string" + }, + "tags": { + "description": "A list of tags to be applied on a given entry. Individual tags may specify tag template, but it must be the same as the one in the ReconcileTagsRequest. The sole entry and each of its columns must be mentioned at most once.", + "items": { + "$ref": "GoogleCloudDatacatalogV1Tag" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogV1ReconcileTagsResponse": { + "description": "Request message for long-running operation returned by the ReconcileTags.", + "id": "GoogleCloudDatacatalogV1ReconcileTagsResponse", + "properties": { + "createdTagsCount": { + "description": "Number of tags created in the request.", + "format": "int64", + "type": "string" + }, + "deletedTagsCount": { + "description": "Number of tags deleted in the request.", + "format": "int64", + "type": "string" + }, + "updatedTagsCount": { + "description": "Number of tags updated in the request.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDatacatalogV1RenameTagTemplateFieldEnumValueRequest": { "description": "Request message for RenameTagTemplateFieldEnumValue.", "id": "GoogleCloudDatacatalogV1RenameTagTemplateFieldEnumValueRequest", diff --git a/datacatalog/v1/datacatalog-gen.go b/datacatalog/v1/datacatalog-gen.go index 5372c9e70ac..3a0cbba9bd5 100644 --- a/datacatalog/v1/datacatalog-gen.go +++ b/datacatalog/v1/datacatalog-gen.go @@ -331,7 +331,9 @@ type Binding struct { // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. // * `group:{emailid}`: An email address that represents a Google group. - // For example, `admins@example.com`. * + // For example, `admins@example.com`. * `domain:{domain}`: The G Suite + // domain (primary) that represents all the users of that domain. For + // example, `google.com` or `example.com`. * // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus // unique identifier) representing a user that has been recently // deleted. For example, `alice@example.com?uid=123456789012345678901`. @@ -348,9 +350,7 @@ type Binding struct { // that has been recently deleted. For example, // `admins@example.com?uid=123456789012345678901`. If the group is // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. * `domain:{domain}`: The G - // Suite domain (primary) that represents all the users of that domain. - // For example, `google.com` or `example.com`. + // group retains the role in the binding. Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. @@ -2616,6 +2616,127 @@ func (s *GoogleCloudDatacatalogV1PolicyTag) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDatacatalogV1ReconcileTagsMetadata: Metadata message for +// long-running operation returned by the ReconcileTags. +type GoogleCloudDatacatalogV1ReconcileTagsMetadata struct { + // Errors: Map that maps name of each tagged column (or empty string in + // case of sole entry) to tagging operation status. + Errors map[string]Status `json:"errors,omitempty"` + + // State: State of the reconciliation operation. + // + // Possible values: + // "RECONCILIATION_STATE_UNSPECIFIED" - Default value. This value is + // unused. + // "RECONCILIATION_QUEUED" - The reconciliation has been queued and + // awaits for execution. + // "RECONCILIATION_IN_PROGRESS" - The reconciliation is in progress. + // "RECONCILIATION_DONE" - The reconciliation has been finished. + State string `json:"state,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Errors") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Errors") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1ReconcileTagsMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1ReconcileTagsMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogV1ReconcileTagsRequest: Request message for +// ReconcileTags. +type GoogleCloudDatacatalogV1ReconcileTagsRequest struct { + // ForceDeleteMissing: If set to true deletes from the entry tags + // related to given tag template and not mentioned in the tags source. + // If set to false only creates and updates of the tags mentioned in the + // source will take place. Other tags in that entry using the same tag + // template will be retained instead of being deleted. + ForceDeleteMissing bool `json:"forceDeleteMissing,omitempty"` + + // TagTemplate: Required. The name of the tag template, that will be + // used for reconciliation. + TagTemplate string `json:"tagTemplate,omitempty"` + + // Tags: A list of tags to be applied on a given entry. Individual tags + // may specify tag template, but it must be the same as the one in the + // ReconcileTagsRequest. The sole entry and each of its columns must be + // mentioned at most once. + Tags []*GoogleCloudDatacatalogV1Tag `json:"tags,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ForceDeleteMissing") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ForceDeleteMissing") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1ReconcileTagsRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1ReconcileTagsRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogV1ReconcileTagsResponse: Request message for +// long-running operation returned by the ReconcileTags. +type GoogleCloudDatacatalogV1ReconcileTagsResponse struct { + // CreatedTagsCount: Number of tags created in the request. + CreatedTagsCount int64 `json:"createdTagsCount,omitempty,string"` + + // DeletedTagsCount: Number of tags deleted in the request. + DeletedTagsCount int64 `json:"deletedTagsCount,omitempty,string"` + + // UpdatedTagsCount: Number of tags updated in the request. + UpdatedTagsCount int64 `json:"updatedTagsCount,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "CreatedTagsCount") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreatedTagsCount") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1ReconcileTagsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1ReconcileTagsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDatacatalogV1RenameTagTemplateFieldEnumValueRequest: // Request message for RenameTagTemplateFieldEnumValue. type GoogleCloudDatacatalogV1RenameTagTemplateFieldEnumValueRequest struct { @@ -8427,6 +8548,155 @@ func (c *ProjectsLocationsEntryGroupsEntriesTagsPatchCall) Do(opts ...googleapi. } +// method id "datacatalog.projects.locations.entryGroups.entries.tags.reconcile": + +type ProjectsLocationsEntryGroupsEntriesTagsReconcileCall struct { + s *Service + parent string + googleclouddatacatalogv1reconciletagsrequest *GoogleCloudDatacatalogV1ReconcileTagsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Reconcile: Reconciles tags created with a given tag template on a +// given Entry. Reconciliation is an operation that given a list of tags +// creates or updates them on the entry. Additionally, the operation is +// also able to delete tags not mentioned in the tag list. It can be +// achieved by setting force_delete_missing parameter. Reconciliation is +// a long-running operation done in the background, so this method +// returns long-running operation resource. The resource can be queried +// with Operations.GetOperation which contains metadata and response. +// +// - parent: Name of Entry to be tagged. +func (r *ProjectsLocationsEntryGroupsEntriesTagsService) Reconcile(parent string, googleclouddatacatalogv1reconciletagsrequest *GoogleCloudDatacatalogV1ReconcileTagsRequest) *ProjectsLocationsEntryGroupsEntriesTagsReconcileCall { + c := &ProjectsLocationsEntryGroupsEntriesTagsReconcileCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googleclouddatacatalogv1reconciletagsrequest = googleclouddatacatalogv1reconciletagsrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsEntryGroupsEntriesTagsReconcileCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesTagsReconcileCall { + 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 *ProjectsLocationsEntryGroupsEntriesTagsReconcileCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesTagsReconcileCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsEntryGroupsEntriesTagsReconcileCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsEntryGroupsEntriesTagsReconcileCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-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.googleclouddatacatalogv1reconciletagsrequest) + 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}/tags:reconcile") + 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 "datacatalog.projects.locations.entryGroups.entries.tags.reconcile" 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 *ProjectsLocationsEntryGroupsEntriesTagsReconcileCall) 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": "Reconciles tags created with a given tag template on a given Entry. Reconciliation is an operation that given a list of tags creates or updates them on the entry. Additionally, the operation is also able to delete tags not mentioned in the tag list. It can be achieved by setting force_delete_missing parameter. Reconciliation is a long-running operation done in the background, so this method returns long-running operation resource. The resource can be queried with Operations.GetOperation which contains metadata and response.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/entryGroups/{entryGroupsId}/entries/{entriesId}/tags:reconcile", + // "httpMethod": "POST", + // "id": "datacatalog.projects.locations.entryGroups.entries.tags.reconcile", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. Name of Entry to be tagged.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entries/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/tags:reconcile", + // "request": { + // "$ref": "GoogleCloudDatacatalogV1ReconcileTagsRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "datacatalog.projects.locations.entryGroups.tags.create": type ProjectsLocationsEntryGroupsTagsCreateCall struct { diff --git a/datacatalog/v1beta1/datacatalog-api.json b/datacatalog/v1beta1/datacatalog-api.json index fc1abc518b1..99eff31ee80 100644 --- a/datacatalog/v1beta1/datacatalog-api.json +++ b/datacatalog/v1beta1/datacatalog-api.json @@ -1813,7 +1813,7 @@ } } }, - "revision": "20230117", + "revision": "20230127", "rootUrl": "https://datacatalog.googleapis.com/", "schemas": { "Binding": { @@ -1825,7 +1825,7 @@ "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", + "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.", "items": { "type": "string" }, @@ -1939,6 +1939,58 @@ }, "type": "object" }, + "GoogleCloudDatacatalogV1ReconcileTagsMetadata": { + "description": "Metadata message for long-running operation returned by the ReconcileTags.", + "id": "GoogleCloudDatacatalogV1ReconcileTagsMetadata", + "properties": { + "errors": { + "additionalProperties": { + "$ref": "Status" + }, + "description": "Map that maps name of each tagged column (or empty string in case of sole entry) to tagging operation status.", + "type": "object" + }, + "state": { + "description": "State of the reconciliation operation.", + "enum": [ + "RECONCILIATION_STATE_UNSPECIFIED", + "RECONCILIATION_QUEUED", + "RECONCILIATION_IN_PROGRESS", + "RECONCILIATION_DONE" + ], + "enumDescriptions": [ + "Default value. This value is unused.", + "The reconciliation has been queued and awaits for execution.", + "The reconciliation is in progress.", + "The reconciliation has been finished." + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogV1ReconcileTagsResponse": { + "description": "Request message for long-running operation returned by the ReconcileTags.", + "id": "GoogleCloudDatacatalogV1ReconcileTagsResponse", + "properties": { + "createdTagsCount": { + "description": "Number of tags created in the request.", + "format": "int64", + "type": "string" + }, + "deletedTagsCount": { + "description": "Number of tags deleted in the request.", + "format": "int64", + "type": "string" + }, + "updatedTagsCount": { + "description": "Number of tags updated in the request.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDatacatalogV1beta1BigQueryDateShardedSpec": { "description": "Spec for a group of BigQuery tables with name pattern `[prefix]YYYYMMDD`. Context: https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding", "id": "GoogleCloudDatacatalogV1beta1BigQueryDateShardedSpec", diff --git a/datacatalog/v1beta1/datacatalog-gen.go b/datacatalog/v1beta1/datacatalog-gen.go index 7aeb19f0483..066e8b5ed92 100644 --- a/datacatalog/v1beta1/datacatalog-gen.go +++ b/datacatalog/v1beta1/datacatalog-gen.go @@ -319,7 +319,9 @@ type Binding struct { // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. // * `group:{emailid}`: An email address that represents a Google group. - // For example, `admins@example.com`. * + // For example, `admins@example.com`. * `domain:{domain}`: The G Suite + // domain (primary) that represents all the users of that domain. For + // example, `google.com` or `example.com`. * // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus // unique identifier) representing a user that has been recently // deleted. For example, `alice@example.com?uid=123456789012345678901`. @@ -336,9 +338,7 @@ type Binding struct { // that has been recently deleted. For example, // `admins@example.com?uid=123456789012345678901`. If the group is // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. * `domain:{domain}`: The G - // Suite domain (primary) that represents all the users of that domain. - // For example, `google.com` or `example.com`. + // group retains the role in the binding. Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. @@ -587,6 +587,83 @@ func (s *GoogleCloudDatacatalogV1ImportEntriesResponse) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDatacatalogV1ReconcileTagsMetadata: Metadata message for +// long-running operation returned by the ReconcileTags. +type GoogleCloudDatacatalogV1ReconcileTagsMetadata struct { + // Errors: Map that maps name of each tagged column (or empty string in + // case of sole entry) to tagging operation status. + Errors map[string]Status `json:"errors,omitempty"` + + // State: State of the reconciliation operation. + // + // Possible values: + // "RECONCILIATION_STATE_UNSPECIFIED" - Default value. This value is + // unused. + // "RECONCILIATION_QUEUED" - The reconciliation has been queued and + // awaits for execution. + // "RECONCILIATION_IN_PROGRESS" - The reconciliation is in progress. + // "RECONCILIATION_DONE" - The reconciliation has been finished. + State string `json:"state,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Errors") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Errors") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1ReconcileTagsMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1ReconcileTagsMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogV1ReconcileTagsResponse: Request message for +// long-running operation returned by the ReconcileTags. +type GoogleCloudDatacatalogV1ReconcileTagsResponse struct { + // CreatedTagsCount: Number of tags created in the request. + CreatedTagsCount int64 `json:"createdTagsCount,omitempty,string"` + + // DeletedTagsCount: Number of tags deleted in the request. + DeletedTagsCount int64 `json:"deletedTagsCount,omitempty,string"` + + // UpdatedTagsCount: Number of tags updated in the request. + UpdatedTagsCount int64 `json:"updatedTagsCount,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "CreatedTagsCount") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreatedTagsCount") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1ReconcileTagsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1ReconcileTagsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDatacatalogV1beta1BigQueryDateShardedSpec: Spec for a // group of BigQuery tables with name pattern `[prefix]YYYYMMDD`. // Context: diff --git a/documentai/v1/documentai-api.json b/documentai/v1/documentai-api.json index 72e1e3daf76..23fda7df92c 100644 --- a/documentai/v1/documentai-api.json +++ b/documentai/v1/documentai-api.json @@ -1042,7 +1042,7 @@ } } }, - "revision": "20230120", + "revision": "20230129", "rootUrl": "https://documentai.googleapis.com/", "schemas": { "GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata": { @@ -2980,6 +2980,7 @@ "OPERATION_TYPE_UNSPECIFIED", "ADD", "REMOVE", + "UPDATE", "REPLACE", "EVAL_REQUESTED", "EVAL_APPROVED", @@ -2989,10 +2990,11 @@ "Operation type unspecified. If no operation is specified a provenance entry is simply used to match against a `parent`.", "Add an element.", "Remove an element identified by `parent`.", - "Replace an element identified by `parent`.", - "Request human review for the element identified by `parent`.", - "Element is reviewed and approved at human review, confidence will be set to 1.0.", - "Element is skipped in the validation process." + "Updates any fields within the given provenance scope of the message. It 'overwrites' the fields rather than replacing them. This is especially relevant when we just want to update a field value of an entity without also affecting all the child properties.", + "Currently unused. Replace an element identified by `parent`.", + "Deprecated. Request human review for the element identified by `parent`.", + "Deprecated. Element is reviewed and approved at human review, confidence will be set to 1.0.", + "Deprecated. Element is skipped in the validation process." ], "type": "string" } @@ -3365,6 +3367,17 @@ "properties": {}, "type": "object" }, + "GoogleCloudDocumentaiV1EvaluateProcessorVersionMetadata": { + "description": "Metadata of the EvaluateProcessorVersion method.", + "id": "GoogleCloudDocumentaiV1EvaluateProcessorVersionMetadata", + "properties": { + "commonMetadata": { + "$ref": "GoogleCloudDocumentaiV1CommonOperationMetadata", + "description": "The basic metadata of the long running operation." + } + }, + "type": "object" + }, "GoogleCloudDocumentaiV1EvaluateProcessorVersionRequest": { "description": "Evaluates the given ProcessorVersion against the supplied documents.", "id": "GoogleCloudDocumentaiV1EvaluateProcessorVersionRequest", @@ -3376,6 +3389,17 @@ }, "type": "object" }, + "GoogleCloudDocumentaiV1EvaluateProcessorVersionResponse": { + "description": "Metadata of the EvaluateProcessorVersion method.", + "id": "GoogleCloudDocumentaiV1EvaluateProcessorVersionResponse", + "properties": { + "evaluation": { + "description": "The resource name of the created evaluation.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDocumentaiV1Evaluation": { "description": "An evaluation of a ProcessorVersion's performance.", "id": "GoogleCloudDocumentaiV1Evaluation", @@ -4149,6 +4173,56 @@ "properties": {}, "type": "object" }, + "GoogleCloudDocumentaiV1TrainProcessorVersionMetadata": { + "description": "The metadata that represents a processor version being created.", + "id": "GoogleCloudDocumentaiV1TrainProcessorVersionMetadata", + "properties": { + "commonMetadata": { + "$ref": "GoogleCloudDocumentaiV1CommonOperationMetadata", + "description": "The basic metadata of the long running operation." + }, + "testDatasetValidation": { + "$ref": "GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation", + "description": "The test dataset validation information." + }, + "trainingDatasetValidation": { + "$ref": "GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation", + "description": "The training dataset validation information." + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation": { + "description": "The dataset validation information. This includes any and all errors with documents and the dataset.", + "id": "GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation", + "properties": { + "datasetErrorCount": { + "description": "The total number of dataset errors.", + "format": "int32", + "type": "integer" + }, + "datasetErrors": { + "description": "Error information for the dataset as a whole. A maximum of 10 dataset errors will be returned. A single dataset error is terminal for training.", + "items": { + "$ref": "GoogleRpcStatus" + }, + "type": "array" + }, + "documentErrorCount": { + "description": "The total number of document errors.", + "format": "int32", + "type": "integer" + }, + "documentErrors": { + "description": "Error information pertaining to specific documents. A maximum of 10 document errors will be returned. Any document with errors will not be used throughout training.", + "items": { + "$ref": "GoogleRpcStatus" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudDocumentaiV1TrainProcessorVersionRequest": { "description": "Request message for the create processor version method.", "id": "GoogleCloudDocumentaiV1TrainProcessorVersionRequest", @@ -4187,6 +4261,17 @@ }, "type": "object" }, + "GoogleCloudDocumentaiV1TrainProcessorVersionResponse": { + "description": "The response for the TrainProcessorVersion method.", + "id": "GoogleCloudDocumentaiV1TrainProcessorVersionResponse", + "properties": { + "processorVersion": { + "description": "The resource name of the processor version produced by training.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDocumentaiV1UndeployProcessorVersionMetadata": { "description": "The long running operation metadata for the undeploy processor version method.", "id": "GoogleCloudDocumentaiV1UndeployProcessorVersionMetadata", @@ -5125,6 +5210,7 @@ "OPERATION_TYPE_UNSPECIFIED", "ADD", "REMOVE", + "UPDATE", "REPLACE", "EVAL_REQUESTED", "EVAL_APPROVED", @@ -5134,10 +5220,11 @@ "Operation type unspecified. If no operation is specified a provenance entry is simply used to match against a `parent`.", "Add an element.", "Remove an element identified by `parent`.", - "Replace an element identified by `parent`.", - "Request human review for the element identified by `parent`.", - "Element is reviewed and approved at human review, confidence will be set to 1.0.", - "Element is skipped in the validation process." + "Updates any fields within the given provenance scope of the message. It 'overwrites' the fields rather than replacing them. This is especially relevant when we just want to update a field value of an entity without also affecting all the child properties.", + "Currently unused. Replace an element identified by `parent`.", + "Deprecated. Request human review for the element identified by `parent`.", + "Deprecated. Element is reviewed and approved at human review, confidence will be set to 1.0.", + "Deprecated. Element is skipped in the validation process." ], "type": "string" } @@ -6426,6 +6513,7 @@ "OPERATION_TYPE_UNSPECIFIED", "ADD", "REMOVE", + "UPDATE", "REPLACE", "EVAL_REQUESTED", "EVAL_APPROVED", @@ -6435,10 +6523,11 @@ "Operation type unspecified. If no operation is specified a provenance entry is simply used to match against a `parent`.", "Add an element.", "Remove an element identified by `parent`.", - "Replace an element identified by `parent`.", - "Request human review for the element identified by `parent`.", - "Element is reviewed and approved at human review, confidence will be set to 1.0.", - "Element is skipped in the validation process." + "Updates any fields within the given provenance scope of the message. It 'overwrites' the fields rather than replacing them. This is especially relevant when we just want to update a field value of an entity without also affecting all the child properties.", + "Currently unused. Replace an element identified by `parent`.", + "Deprecated. Request human review for the element identified by `parent`.", + "Deprecated. Element is reviewed and approved at human review, confidence will be set to 1.0.", + "Deprecated. Element is skipped in the validation process." ], "type": "string" } diff --git a/documentai/v1/documentai-gen.go b/documentai/v1/documentai-gen.go index 24c52cbedba..230d42a909a 100644 --- a/documentai/v1/documentai-gen.go +++ b/documentai/v1/documentai-gen.go @@ -3521,12 +3521,18 @@ type GoogleCloudDocumentaiV1DocumentProvenance struct { // against a `parent`. // "ADD" - Add an element. // "REMOVE" - Remove an element identified by `parent`. - // "REPLACE" - Replace an element identified by `parent`. - // "EVAL_REQUESTED" - Request human review for the element identified - // by `parent`. - // "EVAL_APPROVED" - Element is reviewed and approved at human review, - // confidence will be set to 1.0. - // "EVAL_SKIPPED" - Element is skipped in the validation process. + // "UPDATE" - Updates any fields within the given provenance scope of + // the message. It 'overwrites' the fields rather than replacing them. + // This is especially relevant when we just want to update a field value + // of an entity without also affecting all the child properties. + // "REPLACE" - Currently unused. Replace an element identified by + // `parent`. + // "EVAL_REQUESTED" - Deprecated. Request human review for the element + // identified by `parent`. + // "EVAL_APPROVED" - Deprecated. Element is reviewed and approved at + // human review, confidence will be set to 1.0. + // "EVAL_SKIPPED" - Deprecated. Element is skipped in the validation + // process. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Id") to @@ -4185,6 +4191,36 @@ type GoogleCloudDocumentaiV1EnableProcessorRequest struct { type GoogleCloudDocumentaiV1EnableProcessorResponse struct { } +// GoogleCloudDocumentaiV1EvaluateProcessorVersionMetadata: Metadata of +// the EvaluateProcessorVersion method. +type GoogleCloudDocumentaiV1EvaluateProcessorVersionMetadata struct { + // CommonMetadata: The basic metadata of the long running operation. + CommonMetadata *GoogleCloudDocumentaiV1CommonOperationMetadata `json:"commonMetadata,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CommonMetadata") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CommonMetadata") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDocumentaiV1EvaluateProcessorVersionMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1EvaluateProcessorVersionMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDocumentaiV1EvaluateProcessorVersionRequest: Evaluates the // given ProcessorVersion against the supplied documents. type GoogleCloudDocumentaiV1EvaluateProcessorVersionRequest struct { @@ -4216,6 +4252,35 @@ func (s *GoogleCloudDocumentaiV1EvaluateProcessorVersionRequest) MarshalJSON() ( return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDocumentaiV1EvaluateProcessorVersionResponse: Metadata of +// the EvaluateProcessorVersion method. +type GoogleCloudDocumentaiV1EvaluateProcessorVersionResponse struct { + // Evaluation: The resource name of the created evaluation. + Evaluation string `json:"evaluation,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Evaluation") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Evaluation") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDocumentaiV1EvaluateProcessorVersionResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1EvaluateProcessorVersionResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDocumentaiV1Evaluation: An evaluation of a // ProcessorVersion's performance. type GoogleCloudDocumentaiV1Evaluation struct { @@ -5570,6 +5635,89 @@ func (s *GoogleCloudDocumentaiV1SetDefaultProcessorVersionRequest) MarshalJSON() type GoogleCloudDocumentaiV1SetDefaultProcessorVersionResponse struct { } +// GoogleCloudDocumentaiV1TrainProcessorVersionMetadata: The metadata +// that represents a processor version being created. +type GoogleCloudDocumentaiV1TrainProcessorVersionMetadata struct { + // CommonMetadata: The basic metadata of the long running operation. + CommonMetadata *GoogleCloudDocumentaiV1CommonOperationMetadata `json:"commonMetadata,omitempty"` + + // TestDatasetValidation: The test dataset validation information. + TestDatasetValidation *GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation `json:"testDatasetValidation,omitempty"` + + // TrainingDatasetValidation: The training dataset validation + // information. + TrainingDatasetValidation *GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation `json:"trainingDatasetValidation,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CommonMetadata") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CommonMetadata") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDocumentaiV1TrainProcessorVersionMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1TrainProcessorVersionMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation: +// +// The dataset validation information. This includes any and all errors +// +// with documents and the dataset. +type GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation struct { + // DatasetErrorCount: The total number of dataset errors. + DatasetErrorCount int64 `json:"datasetErrorCount,omitempty"` + + // DatasetErrors: Error information for the dataset as a whole. A + // maximum of 10 dataset errors will be returned. A single dataset error + // is terminal for training. + DatasetErrors []*GoogleRpcStatus `json:"datasetErrors,omitempty"` + + // DocumentErrorCount: The total number of document errors. + DocumentErrorCount int64 `json:"documentErrorCount,omitempty"` + + // DocumentErrors: Error information pertaining to specific documents. A + // maximum of 10 document errors will be returned. Any document with + // errors will not be used throughout training. + DocumentErrors []*GoogleRpcStatus `json:"documentErrors,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DatasetErrorCount") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DatasetErrorCount") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDocumentaiV1TrainProcessorVersionRequest: Request message // for the create processor version method. type GoogleCloudDocumentaiV1TrainProcessorVersionRequest struct { @@ -5648,6 +5796,37 @@ func (s *GoogleCloudDocumentaiV1TrainProcessorVersionRequestInputData) MarshalJS return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDocumentaiV1TrainProcessorVersionResponse: The response +// for the TrainProcessorVersion method. +type GoogleCloudDocumentaiV1TrainProcessorVersionResponse struct { + // ProcessorVersion: The resource name of the processor version produced + // by training. + ProcessorVersion string `json:"processorVersion,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ProcessorVersion") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ProcessorVersion") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDocumentaiV1TrainProcessorVersionResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1TrainProcessorVersionResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDocumentaiV1UndeployProcessorVersionMetadata: The long // running operation metadata for the undeploy processor version method. type GoogleCloudDocumentaiV1UndeployProcessorVersionMetadata struct { @@ -7120,12 +7299,18 @@ type GoogleCloudDocumentaiV1beta1DocumentProvenance struct { // against a `parent`. // "ADD" - Add an element. // "REMOVE" - Remove an element identified by `parent`. - // "REPLACE" - Replace an element identified by `parent`. - // "EVAL_REQUESTED" - Request human review for the element identified - // by `parent`. - // "EVAL_APPROVED" - Element is reviewed and approved at human review, - // confidence will be set to 1.0. - // "EVAL_SKIPPED" - Element is skipped in the validation process. + // "UPDATE" - Updates any fields within the given provenance scope of + // the message. It 'overwrites' the fields rather than replacing them. + // This is especially relevant when we just want to update a field value + // of an entity without also affecting all the child properties. + // "REPLACE" - Currently unused. Replace an element identified by + // `parent`. + // "EVAL_REQUESTED" - Deprecated. Request human review for the element + // identified by `parent`. + // "EVAL_APPROVED" - Deprecated. Element is reviewed and approved at + // human review, confidence will be set to 1.0. + // "EVAL_SKIPPED" - Deprecated. Element is skipped in the validation + // process. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Id") to @@ -9284,12 +9469,18 @@ type GoogleCloudDocumentaiV1beta2DocumentProvenance struct { // against a `parent`. // "ADD" - Add an element. // "REMOVE" - Remove an element identified by `parent`. - // "REPLACE" - Replace an element identified by `parent`. - // "EVAL_REQUESTED" - Request human review for the element identified - // by `parent`. - // "EVAL_APPROVED" - Element is reviewed and approved at human review, - // confidence will be set to 1.0. - // "EVAL_SKIPPED" - Element is skipped in the validation process. + // "UPDATE" - Updates any fields within the given provenance scope of + // the message. It 'overwrites' the fields rather than replacing them. + // This is especially relevant when we just want to update a field value + // of an entity without also affecting all the child properties. + // "REPLACE" - Currently unused. Replace an element identified by + // `parent`. + // "EVAL_REQUESTED" - Deprecated. Request human review for the element + // identified by `parent`. + // "EVAL_APPROVED" - Deprecated. Element is reviewed and approved at + // human review, confidence will be set to 1.0. + // "EVAL_SKIPPED" - Deprecated. Element is skipped in the validation + // process. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Id") to diff --git a/documentai/v1beta2/documentai-api.json b/documentai/v1beta2/documentai-api.json index 0365a24ae01..92a270f5fd0 100644 --- a/documentai/v1beta2/documentai-api.json +++ b/documentai/v1beta2/documentai-api.json @@ -292,7 +292,7 @@ } } }, - "revision": "20230120", + "revision": "20230129", "rootUrl": "https://documentai.googleapis.com/", "schemas": { "GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata": { @@ -1269,6 +1269,28 @@ "properties": {}, "type": "object" }, + "GoogleCloudDocumentaiV1EvaluateProcessorVersionMetadata": { + "description": "Metadata of the EvaluateProcessorVersion method.", + "id": "GoogleCloudDocumentaiV1EvaluateProcessorVersionMetadata", + "properties": { + "commonMetadata": { + "$ref": "GoogleCloudDocumentaiV1CommonOperationMetadata", + "description": "The basic metadata of the long running operation." + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1EvaluateProcessorVersionResponse": { + "description": "Metadata of the EvaluateProcessorVersion method.", + "id": "GoogleCloudDocumentaiV1EvaluateProcessorVersionResponse", + "properties": { + "evaluation": { + "description": "The resource name of the created evaluation.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDocumentaiV1HumanReviewStatus": { "description": "The status of human review on a processed document.", "id": "GoogleCloudDocumentaiV1HumanReviewStatus", @@ -1363,6 +1385,67 @@ "properties": {}, "type": "object" }, + "GoogleCloudDocumentaiV1TrainProcessorVersionMetadata": { + "description": "The metadata that represents a processor version being created.", + "id": "GoogleCloudDocumentaiV1TrainProcessorVersionMetadata", + "properties": { + "commonMetadata": { + "$ref": "GoogleCloudDocumentaiV1CommonOperationMetadata", + "description": "The basic metadata of the long running operation." + }, + "testDatasetValidation": { + "$ref": "GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation", + "description": "The test dataset validation information." + }, + "trainingDatasetValidation": { + "$ref": "GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation", + "description": "The training dataset validation information." + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation": { + "description": "The dataset validation information. This includes any and all errors with documents and the dataset.", + "id": "GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation", + "properties": { + "datasetErrorCount": { + "description": "The total number of dataset errors.", + "format": "int32", + "type": "integer" + }, + "datasetErrors": { + "description": "Error information for the dataset as a whole. A maximum of 10 dataset errors will be returned. A single dataset error is terminal for training.", + "items": { + "$ref": "GoogleRpcStatus" + }, + "type": "array" + }, + "documentErrorCount": { + "description": "The total number of document errors.", + "format": "int32", + "type": "integer" + }, + "documentErrors": { + "description": "Error information pertaining to specific documents. A maximum of 10 document errors will be returned. Any document with errors will not be used throughout training.", + "items": { + "$ref": "GoogleRpcStatus" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1TrainProcessorVersionResponse": { + "description": "The response for the TrainProcessorVersion method.", + "id": "GoogleCloudDocumentaiV1TrainProcessorVersionResponse", + "properties": { + "processorVersion": { + "description": "The resource name of the processor version produced by training.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDocumentaiV1UndeployProcessorVersionMetadata": { "description": "The long running operation metadata for the undeploy processor version method.", "id": "GoogleCloudDocumentaiV1UndeployProcessorVersionMetadata", @@ -2278,6 +2361,7 @@ "OPERATION_TYPE_UNSPECIFIED", "ADD", "REMOVE", + "UPDATE", "REPLACE", "EVAL_REQUESTED", "EVAL_APPROVED", @@ -2287,10 +2371,11 @@ "Operation type unspecified. If no operation is specified a provenance entry is simply used to match against a `parent`.", "Add an element.", "Remove an element identified by `parent`.", - "Replace an element identified by `parent`.", - "Request human review for the element identified by `parent`.", - "Element is reviewed and approved at human review, confidence will be set to 1.0.", - "Element is skipped in the validation process." + "Updates any fields within the given provenance scope of the message. It 'overwrites' the fields rather than replacing them. This is especially relevant when we just want to update a field value of an entity without also affecting all the child properties.", + "Currently unused. Replace an element identified by `parent`.", + "Deprecated. Request human review for the element identified by `parent`.", + "Deprecated. Element is reviewed and approved at human review, confidence will be set to 1.0.", + "Deprecated. Element is skipped in the validation process." ], "type": "string" } @@ -3604,6 +3689,7 @@ "OPERATION_TYPE_UNSPECIFIED", "ADD", "REMOVE", + "UPDATE", "REPLACE", "EVAL_REQUESTED", "EVAL_APPROVED", @@ -3613,10 +3699,11 @@ "Operation type unspecified. If no operation is specified a provenance entry is simply used to match against a `parent`.", "Add an element.", "Remove an element identified by `parent`.", - "Replace an element identified by `parent`.", - "Request human review for the element identified by `parent`.", - "Element is reviewed and approved at human review, confidence will be set to 1.0.", - "Element is skipped in the validation process." + "Updates any fields within the given provenance scope of the message. It 'overwrites' the fields rather than replacing them. This is especially relevant when we just want to update a field value of an entity without also affecting all the child properties.", + "Currently unused. Replace an element identified by `parent`.", + "Deprecated. Request human review for the element identified by `parent`.", + "Deprecated. Element is reviewed and approved at human review, confidence will be set to 1.0.", + "Deprecated. Element is skipped in the validation process." ], "type": "string" } diff --git a/documentai/v1beta2/documentai-gen.go b/documentai/v1beta2/documentai-gen.go index b185623b3ef..ded32d81a2f 100644 --- a/documentai/v1beta2/documentai-gen.go +++ b/documentai/v1beta2/documentai-gen.go @@ -1959,6 +1959,65 @@ func (s *GoogleCloudDocumentaiV1EnableProcessorMetadata) MarshalJSON() ([]byte, type GoogleCloudDocumentaiV1EnableProcessorResponse struct { } +// GoogleCloudDocumentaiV1EvaluateProcessorVersionMetadata: Metadata of +// the EvaluateProcessorVersion method. +type GoogleCloudDocumentaiV1EvaluateProcessorVersionMetadata struct { + // CommonMetadata: The basic metadata of the long running operation. + CommonMetadata *GoogleCloudDocumentaiV1CommonOperationMetadata `json:"commonMetadata,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CommonMetadata") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CommonMetadata") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDocumentaiV1EvaluateProcessorVersionMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1EvaluateProcessorVersionMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDocumentaiV1EvaluateProcessorVersionResponse: Metadata of +// the EvaluateProcessorVersion method. +type GoogleCloudDocumentaiV1EvaluateProcessorVersionResponse struct { + // Evaluation: The resource name of the created evaluation. + Evaluation string `json:"evaluation,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Evaluation") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Evaluation") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDocumentaiV1EvaluateProcessorVersionResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1EvaluateProcessorVersionResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDocumentaiV1HumanReviewStatus: The status of human review // on a processed document. type GoogleCloudDocumentaiV1HumanReviewStatus struct { @@ -2125,6 +2184,120 @@ func (s *GoogleCloudDocumentaiV1SetDefaultProcessorVersionMetadata) MarshalJSON( type GoogleCloudDocumentaiV1SetDefaultProcessorVersionResponse struct { } +// GoogleCloudDocumentaiV1TrainProcessorVersionMetadata: The metadata +// that represents a processor version being created. +type GoogleCloudDocumentaiV1TrainProcessorVersionMetadata struct { + // CommonMetadata: The basic metadata of the long running operation. + CommonMetadata *GoogleCloudDocumentaiV1CommonOperationMetadata `json:"commonMetadata,omitempty"` + + // TestDatasetValidation: The test dataset validation information. + TestDatasetValidation *GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation `json:"testDatasetValidation,omitempty"` + + // TrainingDatasetValidation: The training dataset validation + // information. + TrainingDatasetValidation *GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation `json:"trainingDatasetValidation,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CommonMetadata") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CommonMetadata") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDocumentaiV1TrainProcessorVersionMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1TrainProcessorVersionMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation: +// +// The dataset validation information. This includes any and all errors +// +// with documents and the dataset. +type GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation struct { + // DatasetErrorCount: The total number of dataset errors. + DatasetErrorCount int64 `json:"datasetErrorCount,omitempty"` + + // DatasetErrors: Error information for the dataset as a whole. A + // maximum of 10 dataset errors will be returned. A single dataset error + // is terminal for training. + DatasetErrors []*GoogleRpcStatus `json:"datasetErrors,omitempty"` + + // DocumentErrorCount: The total number of document errors. + DocumentErrorCount int64 `json:"documentErrorCount,omitempty"` + + // DocumentErrors: Error information pertaining to specific documents. A + // maximum of 10 document errors will be returned. Any document with + // errors will not be used throughout training. + DocumentErrors []*GoogleRpcStatus `json:"documentErrors,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DatasetErrorCount") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DatasetErrorCount") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDocumentaiV1TrainProcessorVersionResponse: The response +// for the TrainProcessorVersion method. +type GoogleCloudDocumentaiV1TrainProcessorVersionResponse struct { + // ProcessorVersion: The resource name of the processor version produced + // by training. + ProcessorVersion string `json:"processorVersion,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ProcessorVersion") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ProcessorVersion") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDocumentaiV1TrainProcessorVersionResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1TrainProcessorVersionResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDocumentaiV1UndeployProcessorVersionMetadata: The long // running operation metadata for the undeploy processor version method. type GoogleCloudDocumentaiV1UndeployProcessorVersionMetadata struct { @@ -3559,12 +3732,18 @@ type GoogleCloudDocumentaiV1beta1DocumentProvenance struct { // against a `parent`. // "ADD" - Add an element. // "REMOVE" - Remove an element identified by `parent`. - // "REPLACE" - Replace an element identified by `parent`. - // "EVAL_REQUESTED" - Request human review for the element identified - // by `parent`. - // "EVAL_APPROVED" - Element is reviewed and approved at human review, - // confidence will be set to 1.0. - // "EVAL_SKIPPED" - Element is skipped in the validation process. + // "UPDATE" - Updates any fields within the given provenance scope of + // the message. It 'overwrites' the fields rather than replacing them. + // This is especially relevant when we just want to update a field value + // of an entity without also affecting all the child properties. + // "REPLACE" - Currently unused. Replace an element identified by + // `parent`. + // "EVAL_REQUESTED" - Deprecated. Request human review for the element + // identified by `parent`. + // "EVAL_APPROVED" - Deprecated. Element is reviewed and approved at + // human review, confidence will be set to 1.0. + // "EVAL_SKIPPED" - Deprecated. Element is skipped in the validation + // process. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Id") to @@ -5787,12 +5966,18 @@ type GoogleCloudDocumentaiV1beta2DocumentProvenance struct { // against a `parent`. // "ADD" - Add an element. // "REMOVE" - Remove an element identified by `parent`. - // "REPLACE" - Replace an element identified by `parent`. - // "EVAL_REQUESTED" - Request human review for the element identified - // by `parent`. - // "EVAL_APPROVED" - Element is reviewed and approved at human review, - // confidence will be set to 1.0. - // "EVAL_SKIPPED" - Element is skipped in the validation process. + // "UPDATE" - Updates any fields within the given provenance scope of + // the message. It 'overwrites' the fields rather than replacing them. + // This is especially relevant when we just want to update a field value + // of an entity without also affecting all the child properties. + // "REPLACE" - Currently unused. Replace an element identified by + // `parent`. + // "EVAL_REQUESTED" - Deprecated. Request human review for the element + // identified by `parent`. + // "EVAL_APPROVED" - Deprecated. Element is reviewed and approved at + // human review, confidence will be set to 1.0. + // "EVAL_SKIPPED" - Deprecated. Element is skipped in the validation + // process. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Id") to diff --git a/documentai/v1beta3/documentai-api.json b/documentai/v1beta3/documentai-api.json index 18ac8e47977..b2e47dc0d38 100644 --- a/documentai/v1beta3/documentai-api.json +++ b/documentai/v1beta3/documentai-api.json @@ -984,7 +984,7 @@ } } }, - "revision": "20230120", + "revision": "20230129", "rootUrl": "https://documentai.googleapis.com/", "schemas": { "GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata": { @@ -1961,6 +1961,28 @@ "properties": {}, "type": "object" }, + "GoogleCloudDocumentaiV1EvaluateProcessorVersionMetadata": { + "description": "Metadata of the EvaluateProcessorVersion method.", + "id": "GoogleCloudDocumentaiV1EvaluateProcessorVersionMetadata", + "properties": { + "commonMetadata": { + "$ref": "GoogleCloudDocumentaiV1CommonOperationMetadata", + "description": "The basic metadata of the long running operation." + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1EvaluateProcessorVersionResponse": { + "description": "Metadata of the EvaluateProcessorVersion method.", + "id": "GoogleCloudDocumentaiV1EvaluateProcessorVersionResponse", + "properties": { + "evaluation": { + "description": "The resource name of the created evaluation.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDocumentaiV1HumanReviewStatus": { "description": "The status of human review on a processed document.", "id": "GoogleCloudDocumentaiV1HumanReviewStatus", @@ -2055,6 +2077,67 @@ "properties": {}, "type": "object" }, + "GoogleCloudDocumentaiV1TrainProcessorVersionMetadata": { + "description": "The metadata that represents a processor version being created.", + "id": "GoogleCloudDocumentaiV1TrainProcessorVersionMetadata", + "properties": { + "commonMetadata": { + "$ref": "GoogleCloudDocumentaiV1CommonOperationMetadata", + "description": "The basic metadata of the long running operation." + }, + "testDatasetValidation": { + "$ref": "GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation", + "description": "The test dataset validation information." + }, + "trainingDatasetValidation": { + "$ref": "GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation", + "description": "The training dataset validation information." + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation": { + "description": "The dataset validation information. This includes any and all errors with documents and the dataset.", + "id": "GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation", + "properties": { + "datasetErrorCount": { + "description": "The total number of dataset errors.", + "format": "int32", + "type": "integer" + }, + "datasetErrors": { + "description": "Error information for the dataset as a whole. A maximum of 10 dataset errors will be returned. A single dataset error is terminal for training.", + "items": { + "$ref": "GoogleRpcStatus" + }, + "type": "array" + }, + "documentErrorCount": { + "description": "The total number of document errors.", + "format": "int32", + "type": "integer" + }, + "documentErrors": { + "description": "Error information pertaining to specific documents. A maximum of 10 document errors will be returned. Any document with errors will not be used throughout training.", + "items": { + "$ref": "GoogleRpcStatus" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1TrainProcessorVersionResponse": { + "description": "The response for the TrainProcessorVersion method.", + "id": "GoogleCloudDocumentaiV1TrainProcessorVersionResponse", + "properties": { + "processorVersion": { + "description": "The resource name of the processor version produced by training.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDocumentaiV1UndeployProcessorVersionMetadata": { "description": "The long running operation metadata for the undeploy processor version method.", "id": "GoogleCloudDocumentaiV1UndeployProcessorVersionMetadata", @@ -2970,6 +3053,7 @@ "OPERATION_TYPE_UNSPECIFIED", "ADD", "REMOVE", + "UPDATE", "REPLACE", "EVAL_REQUESTED", "EVAL_APPROVED", @@ -2979,10 +3063,11 @@ "Operation type unspecified. If no operation is specified a provenance entry is simply used to match against a `parent`.", "Add an element.", "Remove an element identified by `parent`.", - "Replace an element identified by `parent`.", - "Request human review for the element identified by `parent`.", - "Element is reviewed and approved at human review, confidence will be set to 1.0.", - "Element is skipped in the validation process." + "Updates any fields within the given provenance scope of the message. It 'overwrites' the fields rather than replacing them. This is especially relevant when we just want to update a field value of an entity without also affecting all the child properties.", + "Currently unused. Replace an element identified by `parent`.", + "Deprecated. Request human review for the element identified by `parent`.", + "Deprecated. Element is reviewed and approved at human review, confidence will be set to 1.0.", + "Deprecated. Element is skipped in the validation process." ], "type": "string" } @@ -4271,6 +4356,7 @@ "OPERATION_TYPE_UNSPECIFIED", "ADD", "REMOVE", + "UPDATE", "REPLACE", "EVAL_REQUESTED", "EVAL_APPROVED", @@ -4280,10 +4366,11 @@ "Operation type unspecified. If no operation is specified a provenance entry is simply used to match against a `parent`.", "Add an element.", "Remove an element identified by `parent`.", - "Replace an element identified by `parent`.", - "Request human review for the element identified by `parent`.", - "Element is reviewed and approved at human review, confidence will be set to 1.0.", - "Element is skipped in the validation process." + "Updates any fields within the given provenance scope of the message. It 'overwrites' the fields rather than replacing them. This is especially relevant when we just want to update a field value of an entity without also affecting all the child properties.", + "Currently unused. Replace an element identified by `parent`.", + "Deprecated. Request human review for the element identified by `parent`.", + "Deprecated. Element is reviewed and approved at human review, confidence will be set to 1.0.", + "Deprecated. Element is skipped in the validation process." ], "type": "string" } @@ -5855,6 +5942,7 @@ "OPERATION_TYPE_UNSPECIFIED", "ADD", "REMOVE", + "UPDATE", "REPLACE", "EVAL_REQUESTED", "EVAL_APPROVED", @@ -5864,10 +5952,11 @@ "Operation type unspecified. If no operation is specified a provenance entry is simply used to match against a `parent`.", "Add an element.", "Remove an element identified by `parent`.", - "Replace an element identified by `parent`.", - "Request human review for the element identified by `parent`.", - "Element is reviewed and approved at human review, confidence will be set to 1.0.", - "Element is skipped in the validation process." + "Updates any fields within the given provenance scope of the message. It 'overwrites' the fields rather than replacing them. This is especially relevant when we just want to update a field value of an entity without also affecting all the child properties.", + "Currently unused. Replace an element identified by `parent`.", + "Deprecated. Request human review for the element identified by `parent`.", + "Deprecated. Element is reviewed and approved at human review, confidence will be set to 1.0.", + "Deprecated. Element is skipped in the validation process." ], "type": "string" } @@ -6673,6 +6762,13 @@ "description": "Config for Document OCR.", "id": "GoogleCloudDocumentaiV1beta3OcrConfig", "properties": { + "advancedOcrOptions": { + "description": "A list of advanced OCR options to further fine-tune OCR behavior.", + "items": { + "type": "string" + }, + "type": "array" + }, "enableNativePdfParsing": { "description": "Enables special handling for PDFs with existing text information. Results in better text extraction quality in such PDF inputs.", "type": "boolean" diff --git a/documentai/v1beta3/documentai-gen.go b/documentai/v1beta3/documentai-gen.go index db0123de080..455d845766d 100644 --- a/documentai/v1beta3/documentai-gen.go +++ b/documentai/v1beta3/documentai-gen.go @@ -1983,6 +1983,65 @@ func (s *GoogleCloudDocumentaiV1EnableProcessorMetadata) MarshalJSON() ([]byte, type GoogleCloudDocumentaiV1EnableProcessorResponse struct { } +// GoogleCloudDocumentaiV1EvaluateProcessorVersionMetadata: Metadata of +// the EvaluateProcessorVersion method. +type GoogleCloudDocumentaiV1EvaluateProcessorVersionMetadata struct { + // CommonMetadata: The basic metadata of the long running operation. + CommonMetadata *GoogleCloudDocumentaiV1CommonOperationMetadata `json:"commonMetadata,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CommonMetadata") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CommonMetadata") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDocumentaiV1EvaluateProcessorVersionMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1EvaluateProcessorVersionMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDocumentaiV1EvaluateProcessorVersionResponse: Metadata of +// the EvaluateProcessorVersion method. +type GoogleCloudDocumentaiV1EvaluateProcessorVersionResponse struct { + // Evaluation: The resource name of the created evaluation. + Evaluation string `json:"evaluation,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Evaluation") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Evaluation") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDocumentaiV1EvaluateProcessorVersionResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1EvaluateProcessorVersionResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDocumentaiV1HumanReviewStatus: The status of human review // on a processed document. type GoogleCloudDocumentaiV1HumanReviewStatus struct { @@ -2149,6 +2208,120 @@ func (s *GoogleCloudDocumentaiV1SetDefaultProcessorVersionMetadata) MarshalJSON( type GoogleCloudDocumentaiV1SetDefaultProcessorVersionResponse struct { } +// GoogleCloudDocumentaiV1TrainProcessorVersionMetadata: The metadata +// that represents a processor version being created. +type GoogleCloudDocumentaiV1TrainProcessorVersionMetadata struct { + // CommonMetadata: The basic metadata of the long running operation. + CommonMetadata *GoogleCloudDocumentaiV1CommonOperationMetadata `json:"commonMetadata,omitempty"` + + // TestDatasetValidation: The test dataset validation information. + TestDatasetValidation *GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation `json:"testDatasetValidation,omitempty"` + + // TrainingDatasetValidation: The training dataset validation + // information. + TrainingDatasetValidation *GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation `json:"trainingDatasetValidation,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CommonMetadata") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CommonMetadata") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDocumentaiV1TrainProcessorVersionMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1TrainProcessorVersionMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation: +// +// The dataset validation information. This includes any and all errors +// +// with documents and the dataset. +type GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation struct { + // DatasetErrorCount: The total number of dataset errors. + DatasetErrorCount int64 `json:"datasetErrorCount,omitempty"` + + // DatasetErrors: Error information for the dataset as a whole. A + // maximum of 10 dataset errors will be returned. A single dataset error + // is terminal for training. + DatasetErrors []*GoogleRpcStatus `json:"datasetErrors,omitempty"` + + // DocumentErrorCount: The total number of document errors. + DocumentErrorCount int64 `json:"documentErrorCount,omitempty"` + + // DocumentErrors: Error information pertaining to specific documents. A + // maximum of 10 document errors will be returned. Any document with + // errors will not be used throughout training. + DocumentErrors []*GoogleRpcStatus `json:"documentErrors,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DatasetErrorCount") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DatasetErrorCount") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDocumentaiV1TrainProcessorVersionResponse: The response +// for the TrainProcessorVersion method. +type GoogleCloudDocumentaiV1TrainProcessorVersionResponse struct { + // ProcessorVersion: The resource name of the processor version produced + // by training. + ProcessorVersion string `json:"processorVersion,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ProcessorVersion") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ProcessorVersion") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDocumentaiV1TrainProcessorVersionResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1TrainProcessorVersionResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDocumentaiV1UndeployProcessorVersionMetadata: The long // running operation metadata for the undeploy processor version method. type GoogleCloudDocumentaiV1UndeployProcessorVersionMetadata struct { @@ -3583,12 +3756,18 @@ type GoogleCloudDocumentaiV1beta1DocumentProvenance struct { // against a `parent`. // "ADD" - Add an element. // "REMOVE" - Remove an element identified by `parent`. - // "REPLACE" - Replace an element identified by `parent`. - // "EVAL_REQUESTED" - Request human review for the element identified - // by `parent`. - // "EVAL_APPROVED" - Element is reviewed and approved at human review, - // confidence will be set to 1.0. - // "EVAL_SKIPPED" - Element is skipped in the validation process. + // "UPDATE" - Updates any fields within the given provenance scope of + // the message. It 'overwrites' the fields rather than replacing them. + // This is especially relevant when we just want to update a field value + // of an entity without also affecting all the child properties. + // "REPLACE" - Currently unused. Replace an element identified by + // `parent`. + // "EVAL_REQUESTED" - Deprecated. Request human review for the element + // identified by `parent`. + // "EVAL_APPROVED" - Deprecated. Element is reviewed and approved at + // human review, confidence will be set to 1.0. + // "EVAL_SKIPPED" - Deprecated. Element is skipped in the validation + // process. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Id") to @@ -5747,12 +5926,18 @@ type GoogleCloudDocumentaiV1beta2DocumentProvenance struct { // against a `parent`. // "ADD" - Add an element. // "REMOVE" - Remove an element identified by `parent`. - // "REPLACE" - Replace an element identified by `parent`. - // "EVAL_REQUESTED" - Request human review for the element identified - // by `parent`. - // "EVAL_APPROVED" - Element is reviewed and approved at human review, - // confidence will be set to 1.0. - // "EVAL_SKIPPED" - Element is skipped in the validation process. + // "UPDATE" - Updates any fields within the given provenance scope of + // the message. It 'overwrites' the fields rather than replacing them. + // This is especially relevant when we just want to update a field value + // of an entity without also affecting all the child properties. + // "REPLACE" - Currently unused. Replace an element identified by + // `parent`. + // "EVAL_REQUESTED" - Deprecated. Request human review for the element + // identified by `parent`. + // "EVAL_APPROVED" - Deprecated. Element is reviewed and approved at + // human review, confidence will be set to 1.0. + // "EVAL_SKIPPED" - Deprecated. Element is skipped in the validation + // process. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Id") to @@ -8382,12 +8567,18 @@ type GoogleCloudDocumentaiV1beta3DocumentProvenance struct { // against a `parent`. // "ADD" - Add an element. // "REMOVE" - Remove an element identified by `parent`. - // "REPLACE" - Replace an element identified by `parent`. - // "EVAL_REQUESTED" - Request human review for the element identified - // by `parent`. - // "EVAL_APPROVED" - Element is reviewed and approved at human review, - // confidence will be set to 1.0. - // "EVAL_SKIPPED" - Element is skipped in the validation process. + // "UPDATE" - Updates any fields within the given provenance scope of + // the message. It 'overwrites' the fields rather than replacing them. + // This is especially relevant when we just want to update a field value + // of an entity without also affecting all the child properties. + // "REPLACE" - Currently unused. Replace an element identified by + // `parent`. + // "EVAL_REQUESTED" - Deprecated. Request human review for the element + // identified by `parent`. + // "EVAL_APPROVED" - Deprecated. Element is reviewed and approved at + // human review, confidence will be set to 1.0. + // "EVAL_SKIPPED" - Deprecated. Element is skipped in the validation + // process. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Id") to @@ -9866,24 +10057,27 @@ func (s *GoogleCloudDocumentaiV1beta3NormalizedVertex) UnmarshalJSON(data []byte // GoogleCloudDocumentaiV1beta3OcrConfig: Config for Document OCR. type GoogleCloudDocumentaiV1beta3OcrConfig struct { + // AdvancedOcrOptions: A list of advanced OCR options to further + // fine-tune OCR behavior. + AdvancedOcrOptions []string `json:"advancedOcrOptions,omitempty"` + // EnableNativePdfParsing: Enables special handling for PDFs with // existing text information. Results in better text extraction quality // in such PDF inputs. EnableNativePdfParsing bool `json:"enableNativePdfParsing,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "EnableNativePdfParsing") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent 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. "AdvancedOcrOptions") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "EnableNativePdfParsing") - // to include in API requests with the JSON null value. By default, - // 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. "AdvancedOcrOptions") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. diff --git a/healthcare/v1/healthcare-api.json b/healthcare/v1/healthcare-api.json index dd04cdd5a64..a5796e21ad7 100644 --- a/healthcare/v1/healthcare-api.json +++ b/healthcare/v1/healthcare-api.json @@ -4053,7 +4053,7 @@ } } }, - "revision": "20221207", + "revision": "20230126", "rootUrl": "https://healthcare.googleapis.com/", "schemas": { "ActivateConsentRequest": { @@ -6699,7 +6699,7 @@ "id": "TextConfig", "properties": { "transformations": { - "description": "The transformations to apply to the detected data.", + "description": "The transformations to apply to the detected data. Deprecated. Use `additional_transformations` instead.", "items": { "$ref": "InfoTypeTransformation" }, diff --git a/healthcare/v1/healthcare-gen.go b/healthcare/v1/healthcare-gen.go index c66741dc37f..cc3529b110c 100644 --- a/healthcare/v1/healthcare-gen.go +++ b/healthcare/v1/healthcare-gen.go @@ -5689,6 +5689,7 @@ func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { type TextConfig struct { // Transformations: The transformations to apply to the detected data. + // Deprecated. Use `additional_transformations` instead. Transformations []*InfoTypeTransformation `json:"transformations,omitempty"` // ForceSendFields is a list of field names (e.g. "Transformations") to diff --git a/healthcare/v1beta1/healthcare-api.json b/healthcare/v1beta1/healthcare-api.json index b8c0a0e1f61..c616e2cbb2e 100644 --- a/healthcare/v1beta1/healthcare-api.json +++ b/healthcare/v1beta1/healthcare-api.json @@ -4865,7 +4865,7 @@ } } }, - "revision": "20221207", + "revision": "20230126", "rootUrl": "https://healthcare.googleapis.com/", "schemas": { "Action": { @@ -6374,7 +6374,7 @@ }, "notificationConfig": { "$ref": "NotificationConfig", - "description": "If non-empty, publish all resource modifications of this FHIR store to this destination. The Pub/Sub message attributes contain a map with a string describing the action that has triggered the notification. For example, \"action\":\"CreateResource\"." + "description": "If non-empty, publish all resource modifications of this FHIR store to this destination. The Pub/Sub message attributes contain a map with a string describing the action that has triggered the notification. For example, \"action\":\"CreateResource\". Deprecated. Use `notification_configs` instead." }, "notificationConfigs": { "description": "Specifies where and whether to send notifications upon changes to a Fhir store.", diff --git a/healthcare/v1beta1/healthcare-gen.go b/healthcare/v1beta1/healthcare-gen.go index 2e9ab6b5eda..7e4eefafb30 100644 --- a/healthcare/v1beta1/healthcare-gen.go +++ b/healthcare/v1beta1/healthcare-gen.go @@ -3311,6 +3311,7 @@ type FhirStore struct { // of this FHIR store to this destination. The Pub/Sub message // attributes contain a map with a string describing the action that has // triggered the notification. For example, "action":"CreateResource". + // Deprecated. Use `notification_configs` instead. NotificationConfig *NotificationConfig `json:"notificationConfig,omitempty"` // NotificationConfigs: Specifies where and whether to send diff --git a/iam/v1/iam-api.json b/iam/v1/iam-api.json index 3e7d2438c58..667dbd9251c 100644 --- a/iam/v1/iam-api.json +++ b/iam/v1/iam-api.json @@ -1921,7 +1921,7 @@ } } }, - "revision": "20230105", + "revision": "20230126", "rootUrl": "https://iam.googleapis.com/", "schemas": { "AdminAuditData": { @@ -2025,7 +2025,7 @@ "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", + "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.", "items": { "type": "string" }, diff --git a/iam/v1/iam-gen.go b/iam/v1/iam-gen.go index e85fb31e1d5..f125a948084 100644 --- a/iam/v1/iam-gen.go +++ b/iam/v1/iam-gen.go @@ -680,7 +680,9 @@ type Binding struct { // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. // * `group:{emailid}`: An email address that represents a Google group. - // For example, `admins@example.com`. * + // For example, `admins@example.com`. * `domain:{domain}`: The G Suite + // domain (primary) that represents all the users of that domain. For + // example, `google.com` or `example.com`. * // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus // unique identifier) representing a user that has been recently // deleted. For example, `alice@example.com?uid=123456789012345678901`. @@ -697,9 +699,7 @@ type Binding struct { // that has been recently deleted. For example, // `admins@example.com?uid=123456789012345678901`. If the group is // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. * `domain:{domain}`: The G - // Suite domain (primary) that represents all the users of that domain. - // For example, `google.com` or `example.com`. + // group retains the role in the binding. Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. diff --git a/iap/v1/iap-api.json b/iap/v1/iap-api.json index a45b795a4c1..68b7cf8c0dc 100644 --- a/iap/v1/iap-api.json +++ b/iap/v1/iap-api.json @@ -652,7 +652,7 @@ } } }, - "revision": "20230125", + "revision": "20230127", "rootUrl": "https://iap.googleapis.com/", "schemas": { "AccessDeniedPageSettings": { @@ -789,7 +789,7 @@ "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", + "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.", "items": { "type": "string" }, diff --git a/iap/v1/iap-gen.go b/iap/v1/iap-gen.go index 7523e7c8097..efbe2eac535 100644 --- a/iap/v1/iap-gen.go +++ b/iap/v1/iap-gen.go @@ -477,7 +477,9 @@ type Binding struct { // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. // * `group:{emailid}`: An email address that represents a Google group. - // For example, `admins@example.com`. * + // For example, `admins@example.com`. * `domain:{domain}`: The G Suite + // domain (primary) that represents all the users of that domain. For + // example, `google.com` or `example.com`. * // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus // unique identifier) representing a user that has been recently // deleted. For example, `alice@example.com?uid=123456789012345678901`. @@ -494,9 +496,7 @@ type Binding struct { // that has been recently deleted. For example, // `admins@example.com?uid=123456789012345678901`. If the group is // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. * `domain:{domain}`: The G - // Suite domain (primary) that represents all the users of that domain. - // For example, `google.com` or `example.com`. + // group retains the role in the binding. Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. diff --git a/iap/v1beta1/iap-api.json b/iap/v1beta1/iap-api.json index a7b37e4ea65..edf7109b9c2 100644 --- a/iap/v1beta1/iap-api.json +++ b/iap/v1beta1/iap-api.json @@ -194,7 +194,7 @@ } } }, - "revision": "20220829", + "revision": "20230127", "rootUrl": "https://iap.googleapis.com/", "schemas": { "Binding": { @@ -206,7 +206,7 @@ "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", + "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.", "items": { "type": "string" }, diff --git a/iap/v1beta1/iap-gen.go b/iap/v1beta1/iap-gen.go index 71f1b8c4301..b4c0291cb6a 100644 --- a/iap/v1beta1/iap-gen.go +++ b/iap/v1beta1/iap-gen.go @@ -175,7 +175,9 @@ type Binding struct { // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. // * `group:{emailid}`: An email address that represents a Google group. - // For example, `admins@example.com`. * + // For example, `admins@example.com`. * `domain:{domain}`: The G Suite + // domain (primary) that represents all the users of that domain. For + // example, `google.com` or `example.com`. * // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus // unique identifier) representing a user that has been recently // deleted. For example, `alice@example.com?uid=123456789012345678901`. @@ -192,9 +194,7 @@ type Binding struct { // that has been recently deleted. For example, // `admins@example.com?uid=123456789012345678901`. If the group is // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. * `domain:{domain}`: The G - // Suite domain (primary) that represents all the users of that domain. - // For example, `google.com` or `example.com`. + // group retains the role in the binding. Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. diff --git a/integrations/v1alpha/integrations-api.json b/integrations/v1alpha/integrations-api.json index 623f04097f2..fd6465c244e 100644 --- a/integrations/v1alpha/integrations-api.json +++ b/integrations/v1alpha/integrations-api.json @@ -184,33 +184,6 @@ "projects": { "resources": { "locations": { - "methods": { - "listTaskEntities": { - "description": "This is a UI only method and will be moved away. Returns a list of common tasks.", - "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}:listTaskEntities", - "httpMethod": "GET", - "id": "integrations.projects.locations.listTaskEntities", - "parameterOrder": [ - "parent" - ], - "parameters": { - "parent": { - "description": "Required. The location resource of the request. This is not going to be used but preserve the field for future.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1alpha/{+parent}:listTaskEntities", - "response": { - "$ref": "GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - }, "resources": { "appsScriptProjects": { "methods": { @@ -1032,34 +1005,6 @@ }, "versions": { "methods": { - "archive": { - "description": "Soft-deletes the integration. Changes the status of the integration to ARCHIVED. If the integration being ARCHIVED is tagged as \"HEAD\", the tag is removed from this snapshot and set to the previous non-ARCHIVED snapshot. The PUBLISH_REQUESTED, DUE_FOR_DELETION tags are removed too. This RPC throws an exception if the version being archived is DRAFT, and if the `locked_by` user is not the same as the user performing the Archive. Audit fields updated include last_modified_timestamp, last_modified_by. Any existing lock is released when Archiving a integration. Currently, there is no unarchive mechanism.", - "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions/{versionsId}:archive", - "httpMethod": "POST", - "id": "integrations.projects.locations.integrations.versions.archive", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The version to archive. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1alpha/{+name}:archive", - "request": { - "$ref": "GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionRequest" - }, - "response": { - "$ref": "GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, "create": { "description": "Create a integration with a draft version in the specified project.", "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions", @@ -1093,34 +1038,6 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, - "deactivate": { - "description": "Sets the status of the ACTIVE integration to SNAPSHOT with a new tag \"PREVIOUSLY_PUBLISHED\" after validating it. The \"HEAD\" and \"PUBLISH_REQUESTED\" tags do not change. This RPC throws an exception if the version being snapshot is not ACTIVE. Audit fields added include action, action_by, action_timestamp.", - "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions/{versionsId}:deactivate", - "httpMethod": "POST", - "id": "integrations.projects.locations.integrations.versions.deactivate", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The version to deactivate. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1alpha/{+name}:deactivate", - "request": { - "$ref": "GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionRequest" - }, - "response": { - "$ref": "GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, "delete": { "description": "Soft-deletes the integration. Changes the status of the integration to ARCHIVED. If the integration being ARCHIVED is tagged as \"HEAD\", the tag is removed from this snapshot and set to the previous non-ARCHIVED snapshot. The PUBLISH_REQUESTED, DUE_FOR_DELETION tags are removed too. This RPC throws an exception if the version being deleted is DRAFT, and if the `locked_by` user is not the same as the user performing the Delete. Audit fields updated include last_modified_timestamp, last_modified_by. Any existing lock is released when Deleting a integration. Currently, there is no undelete mechanism.", "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions/{versionsId}", @@ -1408,95 +1325,12 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] - }, - "validate": { - "description": "Validates the given integration. If the id doesn't exist, a NotFoundException is thrown. If validation fails a CanonicalCodeException is thrown. If there was no failure an empty response is returned.", - "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions/{versionsId}:validate", - "httpMethod": "POST", - "id": "integrations.projects.locations.integrations.versions.validate", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The version to validate. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1alpha/{+name}:validate", - "request": { - "$ref": "GoogleCloudIntegrationsV1alphaValidateIntegrationVersionRequest" - }, - "response": { - "$ref": "GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] } } } } }, "products": { - "methods": { - "createBundle": { - "description": "PROTECT WITH A VISIBILITY LABEL. THIS METHOD WILL BE MOVED TO A SEPARATE SERVICE. Create a bundle.", - "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}:createBundle", - "httpMethod": "POST", - "id": "integrations.projects.locations.products.createBundle", - "parameterOrder": [ - "parent" - ], - "parameters": { - "parent": { - "description": "Required. The location resource of the request.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1alpha/{+parent}:createBundle", - "request": { - "$ref": "GoogleCloudIntegrationsV1alphaCreateBundleRequest" - }, - "response": { - "$ref": "GoogleCloudIntegrationsV1alphaCreateBundleResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "listTaskEntities": { - "description": "This is a UI only method and will be moved away. Returns a list of common tasks.", - "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}:listTaskEntities", - "httpMethod": "GET", - "id": "integrations.projects.locations.products.listTaskEntities", - "parameterOrder": [ - "parent" - ], - "parameters": { - "parent": { - "description": "Required. The location resource of the request. This is not going to be used but preserve the field for future.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1alpha/{+parent}:listTaskEntities", - "response": { - "$ref": "GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - }, "resources": { "authConfigs": { "methods": { @@ -1856,34 +1690,6 @@ }, "integrations": { "methods": { - "archiveBundle": { - "description": "PROTECT WITH A VISIBILITY LABEL. THIS METHOD WILL BE MOVED TO A SEPARATE SERVICE. Soft-deletes the bundle.", - "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}:archiveBundle", - "httpMethod": "POST", - "id": "integrations.projects.locations.products.integrations.archiveBundle", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The bundle to archive. Format: projects/{project}/locations/{location}/integrations/{integration}", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1alpha/{+name}:archiveBundle", - "request": { - "$ref": "GoogleCloudIntegrationsV1alphaArchiveBundleRequest" - }, - "response": { - "$ref": "GoogleCloudIntegrationsV1alphaArchiveBundleResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, "execute": { "description": "Executes integrations synchronously by passing the trigger id in the request body. The request is not returned until the requested executions are either fulfilled or experienced an error. If the integration name is not specified (passing `-`), all of the associated integration under the given trigger_id will be executed. Otherwise only the specified integration for the given `trigger_id` is executed. This is helpful for execution the integration from UI.", "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}:execute", @@ -2279,87 +2085,8 @@ } } }, - "executionsnapshots": { - "methods": { - "list": { - "description": "Lists the snapshots of a given integration executions. This RPC is not being used.", - "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/executionsnapshots", - "httpMethod": "GET", - "id": "integrations.projects.locations.products.integrations.executionsnapshots.list", - "parameterOrder": [ - "parent" - ], - "parameters": { - "filter": { - "description": "Currently supports filter by `execution_info_id` or `execution_snapshot_id`.", - "location": "query", - "type": "string" - }, - "pageSize": { - "description": "Number of entries to be returned in a page.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "The token used to retrieve the next page results.", - "location": "query", - "type": "string" - }, - "parent": { - "description": "Required. The parent resource name of the integration execution.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", - "required": true, - "type": "string" - }, - "readMask": { - "description": "View mask for the response data. If set, only the field specified will be returned as part of the result. If not set, all fields in event execution snapshot will be filled and returned.", - "format": "google-fieldmask", - "location": "query", - "type": "string" - } - }, - "path": "v1alpha/{+parent}/executionsnapshots", - "response": { - "$ref": "GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } - }, "versions": { "methods": { - "archive": { - "description": "Soft-deletes the integration. Changes the status of the integration to ARCHIVED. If the integration being ARCHIVED is tagged as \"HEAD\", the tag is removed from this snapshot and set to the previous non-ARCHIVED snapshot. The PUBLISH_REQUESTED, DUE_FOR_DELETION tags are removed too. This RPC throws an exception if the version being archived is DRAFT, and if the `locked_by` user is not the same as the user performing the Archive. Audit fields updated include last_modified_timestamp, last_modified_by. Any existing lock is released when Archiving a integration. Currently, there is no unarchive mechanism.", - "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}:archive", - "httpMethod": "POST", - "id": "integrations.projects.locations.products.integrations.versions.archive", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The version to archive. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1alpha/{+name}:archive", - "request": { - "$ref": "GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionRequest" - }, - "response": { - "$ref": "GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, "create": { "description": "Create a integration with a draft version in the specified project.", "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions", @@ -2393,34 +2120,6 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, - "deactivate": { - "description": "Sets the status of the ACTIVE integration to SNAPSHOT with a new tag \"PREVIOUSLY_PUBLISHED\" after validating it. The \"HEAD\" and \"PUBLISH_REQUESTED\" tags do not change. This RPC throws an exception if the version being snapshot is not ACTIVE. Audit fields added include action, action_by, action_timestamp.", - "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}:deactivate", - "httpMethod": "POST", - "id": "integrations.projects.locations.products.integrations.versions.deactivate", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The version to deactivate. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1alpha/{+name}:deactivate", - "request": { - "$ref": "GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionRequest" - }, - "response": { - "$ref": "GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, "delete": { "description": "Soft-deletes the integration. Changes the status of the integration to ARCHIVED. If the integration being ARCHIVED is tagged as \"HEAD\", the tag is removed from this snapshot and set to the previous non-ARCHIVED snapshot. The PUBLISH_REQUESTED, DUE_FOR_DELETION tags are removed too. This RPC throws an exception if the version being deleted is DRAFT, and if the `locked_by` user is not the same as the user performing the Delete. Audit fields updated include last_modified_timestamp, last_modified_by. Any existing lock is released when Deleting a integration. Currently, there is no undelete mechanism.", "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}", @@ -2511,31 +2210,6 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, - "getBundle": { - "description": "PROTECT WITH A VISIBILITY LABEL. THIS METHOD WILL BE MOVED TO A SEPARATE SERVICE. RPC to get details of the Bundle", - "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}:getBundle", - "httpMethod": "GET", - "id": "integrations.projects.locations.products.integrations.versions.getBundle", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The bundle name.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1alpha/{+name}:getBundle", - "response": { - "$ref": "GoogleCloudIntegrationsV1alphaGetBundleResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, "list": { "description": "Returns the list of all integration versions in the specified project.", "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions", @@ -2706,34 +2380,6 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, - "updateBundle": { - "description": "THIS METHOD WILL BE MOVED TO A SEPARATE SERVICE. RPC to update the Bundle", - "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}:updateBundle", - "httpMethod": "PATCH", - "id": "integrations.projects.locations.products.integrations.versions.updateBundle", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. Bundle name", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1alpha/{+name}:updateBundle", - "request": { - "$ref": "GoogleCloudIntegrationsV1alphaUpdateBundleRequest" - }, - "response": { - "$ref": "GoogleCloudIntegrationsV1alphaUpdateBundleResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, "upload": { "description": "Uploads an integration. The content can be a previously downloaded integration. Performs the same function as CreateDraftIntegrationVersion, but accepts input in a string format, which holds the complete representation of the IntegrationVersion content.", "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions:upload", @@ -2761,34 +2407,6 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] - }, - "validate": { - "description": "Validates the given integration. If the id doesn't exist, a NotFoundException is thrown. If validation fails a CanonicalCodeException is thrown. If there was no failure an empty response is returned.", - "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}:validate", - "httpMethod": "POST", - "id": "integrations.projects.locations.products.integrations.versions.validate", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The version to validate. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1alpha/{+name}:validate", - "request": { - "$ref": "GoogleCloudIntegrationsV1alphaValidateIntegrationVersionRequest" - }, - "response": { - "$ref": "GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] } } } @@ -3559,7 +3177,7 @@ } } }, - "revision": "20230117", + "revision": "20230124", "rootUrl": "https://integrations.googleapis.com/", "schemas": { "CrmlogErrorCode": { @@ -3776,7 +3394,7 @@ "type": "object" }, "EnterpriseCrmEventbusProtoAttributes": { - "description": "Attributes are additional options that can be associated with each event property. For more information, see go/integration-platform/event_bus/attributes_registry.md. Next available: 8", + "description": "Attributes are additional options that can be associated with each event property. For more information, see", "id": "EnterpriseCrmEventbusProtoAttributes", "properties": { "dataType": { @@ -3813,7 +3431,7 @@ }, "logSettings": { "$ref": "EnterpriseCrmEventbusProtoLogSettings", - "description": "See go/integration-platform/analytics/logging_task.md for details." + "description": "See" }, "searchable": { "enum": [ @@ -3863,7 +3481,7 @@ "type": "object" }, "EnterpriseCrmEventbusProtoBaseAlertConfigThresholdValue": { - "description": "The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. See go/eventbus-alert-config-examples", + "description": "The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig.", "id": "EnterpriseCrmEventbusProtoBaseAlertConfigThresholdValue", "properties": { "absolute": { @@ -4369,7 +3987,7 @@ "type": "object" }, "EnterpriseCrmEventbusProtoEventBusProperties": { - "description": "LINT.IfChange This message is used for storing key value pair properties for each Event / Task in the EventBus. Please see go/cloud-crm-eng/platform/event_bus.md for more details.", + "description": "LINT.IfChange This message is used for storing key value pair properties for each Event / Task in the EventBus.", "id": "EnterpriseCrmEventbusProtoEventBusProperties", "properties": { "properties": { @@ -4545,7 +4163,7 @@ "type": "object" }, "EnterpriseCrmEventbusProtoEventParameters": { - "description": "LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see go/integration-platform/event_bus.md for more details. Next id: 4", + "description": "LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see", "id": "EnterpriseCrmEventbusProtoEventParameters", "properties": { "parameters": { @@ -4648,7 +4266,7 @@ "type": "object" }, "EnterpriseCrmEventbusProtoField": { - "description": "Information about the value and type of the field. Next Id: 8", + "description": "Information about the value and type of the field.", "id": "EnterpriseCrmEventbusProtoField", "properties": { "cardinality": { @@ -4665,7 +4283,7 @@ }, "defaultValue": { "$ref": "EnterpriseCrmEventbusProtoParameterValueType", - "description": "This holds the default values for the fields. This value is supplied by user so may or may not contain PII or SPII data. This field will be scrubbed using DatapolScrubber#maybeScrub() with go/proto-sanitizer#level3" + "description": "This holds the default values for the fields. This value is supplied by user so may or may not contain PII or SPII data." }, "fieldType": { "description": "Specifies the data type of the field.", @@ -4721,13 +4339,13 @@ }, "transformExpression": { "$ref": "EnterpriseCrmEventbusProtoTransformExpression", - "description": "This is the transform expression to fetch the input field value. for e.g. $param1$.CONCAT('test'). See go/transform-functions-design for more details. Keep points - 1. Only input field can have a transform expression. 2. If a transform expression is provided, reference_key will be ignored. 3. If no value is returned after evaluation of transform expression, default_value can be mapped if provided. 4. The field_type should be the type of the final object returned after the transform expression is evaluated. Scrubs the transform expression before logging as value provided by user so may or may not contain PII or SPII data." + "description": "This is the transform expression to fetch the input field value. for e.g. $param1$.CONCAT('test'). Keep points - 1. Only input field can have a transform expression. 2. If a transform expression is provided, reference_key will be ignored. 3. If no value is returned after evaluation of transform expression, default_value can be mapped if provided. 4. The field_type should be the type of the final object returned after the transform expression is evaluated. Scrubs the transform expression before logging as value provided by user so may or may not contain PII or SPII data." } }, "type": "object" }, "EnterpriseCrmEventbusProtoFieldMappingConfig": { - "description": "Field Mapping Config to map multiple output fields values from input fields values. Next id: 2", + "description": "Field Mapping Config to map multiple output fields values from input fields values.", "id": "EnterpriseCrmEventbusProtoFieldMappingConfig", "properties": { "mappedFields": { @@ -4980,7 +4598,7 @@ "type": "object" }, "EnterpriseCrmEventbusProtoLogSettings": { - "description": "The LogSettings define the logging attributes for an event property. These attributes are used to map the property to the parameter in the log proto. Also used to define scrubbing/truncation behavior and PII information. See go/integration-platform/analytics/logging_task.md for details.", + "description": "The LogSettings define the logging attributes for an event property. These attributes are used to map the property to the parameter in the log proto. Also used to define scrubbing/truncation behavior and PII information.", "id": "EnterpriseCrmEventbusProtoLogSettings", "properties": { "logFieldName": { @@ -5072,7 +4690,7 @@ "type": "object" }, "EnterpriseCrmEventbusProtoMappedField": { - "description": "Mapped field is a pair of input field and output field. Next Id: 3", + "description": "Mapped field is a pair of input field and output field.", "id": "EnterpriseCrmEventbusProtoMappedField", "properties": { "inputField": { @@ -5963,7 +5581,7 @@ "type": "object" }, "EnterpriseCrmEventbusProtoTaskAlertConfig": { - "description": "Message to be used to configure alerting in the {@code TaskConfig} protos for tasks in an event. See go/eventbus-alert-config-examples for examples of the different alerts that can be configured.", + "description": "Message to be used to configure alerting in the {@code TaskConfig} protos for tasks in an event.", "id": "EnterpriseCrmEventbusProtoTaskAlertConfig", "properties": { "aggregationPeriod": { @@ -6113,7 +5731,7 @@ "type": "object" }, "EnterpriseCrmEventbusProtoTaskMetadata": { - "description": "TaskMetadata are attributes that are associated to every common Task we have. Next available: 26", + "description": "TaskMetadata are attributes that are associated to every common Task we have.", "id": "EnterpriseCrmEventbusProtoTaskMetadata", "properties": { "activeTaskName": { @@ -6224,7 +5842,7 @@ "type": "string" }, "iconLink": { - "description": "URL to gstatic image icon for this task. This icon shows up on the task list panel along with the task name in the Workflow Editor screen. Use the 24p, 2x, gray color icon image format. See go/icons.", + "description": "URL to gstatic image icon for this task. This icon shows up on the task list panel along with the task name in the Workflow Editor screen. Use the 24p, 2x, gray color icon image format.", "type": "string" }, "isDeprecated": { @@ -6306,7 +5924,7 @@ "type": "object" }, "EnterpriseCrmEventbusProtoTaskUiConfig": { - "description": "Task authors would use this type to configure the UI for a particular task by specifying what UI config modules should be included to compose the UI. Learn more about config module framework: go/integration-platform-config-module-framework", + "description": "Task authors would use this type to configure the UI for a particular task by specifying what UI config modules should be included to compose the UI. Learn more about config module framework:", "id": "EnterpriseCrmEventbusProtoTaskUiConfig", "properties": { "taskUiModuleConfigs": { @@ -6500,7 +6118,7 @@ "type": "object" }, "EnterpriseCrmEventbusProtoWorkflowAlertConfig": { - "description": "Message to be used to configure custom alerting in the {@code EventConfig} protos for an event. See go/eventbus-alert-config-examples for examples of the different alerts that can be configured.", + "description": "Message to be used to configure custom alerting in the {@code EventConfig} protos for an event.", "id": "EnterpriseCrmEventbusProtoWorkflowAlertConfig", "properties": { "aggregationPeriod": { @@ -6585,7 +6203,7 @@ }, "thresholdValue": { "$ref": "EnterpriseCrmEventbusProtoBaseAlertConfigThresholdValue", - "description": "The metric value, above or below which the alert should be triggered. See go/eventbus-alert-config-examples." + "description": "The metric value, above or below which the alert should be triggered." }, "warningEnumList": { "$ref": "EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList" @@ -6945,7 +6563,7 @@ "type": "object" }, "EnterpriseCrmFrontendsEventbusProtoEventParameters": { - "description": "LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see go/integration-platform/event_bus.md for more details. Next id: 4", + "description": "LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see", "id": "EnterpriseCrmFrontendsEventbusProtoEventParameters", "properties": { "parameters": { @@ -7773,7 +7391,7 @@ "type": "string" }, "isTransient": { - "description": "Whether this parameter is a transient parameter. go/ip-transient-parameters", + "description": "Whether this parameter is a transient parameter.", "type": "boolean" }, "jsonSchema": { @@ -8362,30 +7980,6 @@ }, "type": "object" }, - "GoogleCloudIntegrationsV1alphaArchiveBundleRequest": { - "description": "Request for ArchiveBundle.", - "id": "GoogleCloudIntegrationsV1alphaArchiveBundleRequest", - "properties": {}, - "type": "object" - }, - "GoogleCloudIntegrationsV1alphaArchiveBundleResponse": { - "description": "Response for ArchiveBundle.", - "id": "GoogleCloudIntegrationsV1alphaArchiveBundleResponse", - "properties": {}, - "type": "object" - }, - "GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionRequest": { - "description": "Request for ArchiveIntegrationVersion.", - "id": "GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionRequest", - "properties": {}, - "type": "object" - }, - "GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse": { - "description": "Response for ArchiveIntegrationVersion.", - "id": "GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse", - "properties": {}, - "type": "object" - }, "GoogleCloudIntegrationsV1alphaAttemptStats": { "description": "Status for the execution attempt.", "id": "GoogleCloudIntegrationsV1alphaAttemptStats", @@ -8738,43 +8332,6 @@ }, "type": "object" }, - "GoogleCloudIntegrationsV1alphaCreateBundleRequest": { - "description": "PROTECT WITH A VISIBILITY LABEL. THIS METHOD WILL BE MOVED TO A SEPARATE SERVICE. Request to create a new Bundle.", - "id": "GoogleCloudIntegrationsV1alphaCreateBundleRequest", - "properties": { - "bundleId": { - "description": "Required. name of the bundle that will be created", - "type": "string" - }, - "integrations": { - "description": "A list of integrations that can be executed by the bundle", - "items": { - "type": "string" - }, - "type": "array" - }, - "secondaryCustomerOrgId": { - "description": "Optional. The prefix for the SA, it should be in the format \"o\". This is an optional field, and if empty service account will be created per project, where we are creating bundle. This should only be used as the org ID for which we want to run the integrations in the bundle.", - "type": "string" - } - }, - "type": "object" - }, - "GoogleCloudIntegrationsV1alphaCreateBundleResponse": { - "description": "Response for create bundle.", - "id": "GoogleCloudIntegrationsV1alphaCreateBundleResponse", - "properties": { - "config": { - "$ref": "GoogleCloudIntegrationsV1alphaIntegrationBundleConfig", - "description": "It contains the bundle data" - }, - "triggerId": { - "description": "trigger_id of the bundle task", - "type": "string" - } - }, - "type": "object" - }, "GoogleCloudIntegrationsV1alphaCredential": { "description": "Defines parameters for a single, canonical credential.", "id": "GoogleCloudIntegrationsV1alphaCredential", @@ -8846,18 +8403,6 @@ }, "type": "object" }, - "GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionRequest": { - "description": "Request for DeactivateIntegrationVersion.", - "id": "GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionRequest", - "properties": {}, - "type": "object" - }, - "GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse": { - "description": "Response for DeactivateIntegrationVersion.", - "id": "GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse", - "properties": {}, - "type": "object" - }, "GoogleCloudIntegrationsV1alphaDoubleParameterArray": { "description": "This message only contains a field of double number array.", "id": "GoogleCloudIntegrationsV1alphaDoubleParameterArray", @@ -9225,17 +8770,6 @@ }, "type": "object" }, - "GoogleCloudIntegrationsV1alphaGetBundleResponse": { - "description": "Response for GetBundle.", - "id": "GoogleCloudIntegrationsV1alphaGetBundleResponse", - "properties": { - "config": { - "$ref": "GoogleCloudIntegrationsV1alphaIntegrationBundleConfig", - "description": "It contains the bundle data" - } - }, - "type": "object" - }, "GoogleCloudIntegrationsV1alphaIntParameterArray": { "description": "This message only contains a field of integer array.", "id": "GoogleCloudIntegrationsV1alphaIntParameterArray", @@ -9374,25 +8908,6 @@ }, "type": "object" }, - "GoogleCloudIntegrationsV1alphaIntegrationBundleConfig": { - "description": "This proto holds the core runner data in the bundle task. It is not expected to be directly edited by the user. Instead, a default value will be provided at the task creation time.", - "id": "GoogleCloudIntegrationsV1alphaIntegrationBundleConfig", - "properties": { - "integrations": { - "description": "A bundle of integrations that can be executed by the task at runtime.", - "items": { - "type": "string" - }, - "type": "array" - }, - "serviceAccount": { - "description": "Output only. The service account created and owned by IP and added to the customers GCP project.", - "readOnly": true, - "type": "string" - } - }, - "type": "object" - }, "GoogleCloudIntegrationsV1alphaIntegrationParameter": { "description": "Integration Parameter is defined in the integration config and are used to provide information about data types of the expected parameters and provide any default values if needed. They can also be used to add custom attributes. These are static in nature and should not be used for dynamic event definition.", "id": "GoogleCloudIntegrationsV1alphaIntegrationParameter", @@ -9855,24 +9370,6 @@ }, "type": "object" }, - "GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse": { - "description": "Response for listing the integration execution snapshot.", - "id": "GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse", - "properties": { - "executionSnapshots": { - "description": "Required. The detailed information for the execution snapshot.", - "items": { - "$ref": "EnterpriseCrmEventbusProtoEventExecutionSnapshot" - }, - "type": "array" - }, - "nextPageToken": { - "description": "The token returned in the previous response.", - "type": "string" - } - }, - "type": "object" - }, "GoogleCloudIntegrationsV1alphaListExecutionsResponse": { "description": "Response for listing the integration execution data.", "id": "GoogleCloudIntegrationsV1alphaListExecutionsResponse", @@ -10046,20 +9543,6 @@ }, "type": "object" }, - "GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse": { - "description": "This is a UI only method and will be moved away. Response for ListTaskEntities.", - "id": "GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse", - "properties": { - "taskEntities": { - "description": "The list of the tasks.", - "items": { - "$ref": "EnterpriseCrmFrontendsEventbusProtoTaskEntity" - }, - "type": "array" - } - }, - "type": "object" - }, "GoogleCloudIntegrationsV1alphaNextTask": { "description": "The task that is next in line to be executed, if the condition specified evaluated to true.", "id": "GoogleCloudIntegrationsV1alphaNextTask", @@ -11037,28 +10520,6 @@ "properties": {}, "type": "object" }, - "GoogleCloudIntegrationsV1alphaUpdateBundleRequest": { - "description": "THIS METHOD WILL BE MOVED TO A SEPARATE SERVICE. Request message for Bundle update", - "id": "GoogleCloudIntegrationsV1alphaUpdateBundleRequest", - "properties": { - "config": { - "$ref": "GoogleCloudIntegrationsV1alphaIntegrationBundleConfig", - "description": "It contains the updated bundle data" - } - }, - "type": "object" - }, - "GoogleCloudIntegrationsV1alphaUpdateBundleResponse": { - "description": "Response message for Bundle update", - "id": "GoogleCloudIntegrationsV1alphaUpdateBundleResponse", - "properties": { - "config": { - "$ref": "GoogleCloudIntegrationsV1alphaIntegrationBundleConfig", - "description": "Contains updated bundle config" - } - }, - "type": "object" - }, "GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest": { "description": "Request for UploadIntegrationVersion.", "id": "GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest", @@ -11110,18 +10571,6 @@ }, "type": "object" }, - "GoogleCloudIntegrationsV1alphaValidateIntegrationVersionRequest": { - "description": "Request for ValidateIntegrationVersion.", - "id": "GoogleCloudIntegrationsV1alphaValidateIntegrationVersionRequest", - "properties": {}, - "type": "object" - }, - "GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse": { - "description": "Response for ValidateIntegrationVersion.", - "id": "GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse", - "properties": {}, - "type": "object" - }, "GoogleCloudIntegrationsV1alphaValueType": { "description": "The type of the parameter.", "id": "GoogleCloudIntegrationsV1alphaValueType", diff --git a/integrations/v1alpha/integrations-gen.go b/integrations/v1alpha/integrations-gen.go index 31a561f767c..0b82d8e1ba8 100644 --- a/integrations/v1alpha/integrations-gen.go +++ b/integrations/v1alpha/integrations-gen.go @@ -353,7 +353,6 @@ type ProjectsLocationsProductsCertificatesService struct { func NewProjectsLocationsProductsIntegrationsService(s *Service) *ProjectsLocationsProductsIntegrationsService { rs := &ProjectsLocationsProductsIntegrationsService{s: s} rs.Executions = NewProjectsLocationsProductsIntegrationsExecutionsService(s) - rs.Executionsnapshots = NewProjectsLocationsProductsIntegrationsExecutionsnapshotsService(s) rs.Versions = NewProjectsLocationsProductsIntegrationsVersionsService(s) return rs } @@ -363,8 +362,6 @@ type ProjectsLocationsProductsIntegrationsService struct { Executions *ProjectsLocationsProductsIntegrationsExecutionsService - Executionsnapshots *ProjectsLocationsProductsIntegrationsExecutionsnapshotsService - Versions *ProjectsLocationsProductsIntegrationsVersionsService } @@ -389,15 +386,6 @@ type ProjectsLocationsProductsIntegrationsExecutionsSuspensionsService struct { s *Service } -func NewProjectsLocationsProductsIntegrationsExecutionsnapshotsService(s *Service) *ProjectsLocationsProductsIntegrationsExecutionsnapshotsService { - rs := &ProjectsLocationsProductsIntegrationsExecutionsnapshotsService{s: s} - return rs -} - -type ProjectsLocationsProductsIntegrationsExecutionsnapshotsService struct { - s *Service -} - func NewProjectsLocationsProductsIntegrationsVersionsService(s *Service) *ProjectsLocationsProductsIntegrationsVersionsService { rs := &ProjectsLocationsProductsIntegrationsVersionsService{s: s} return rs @@ -662,8 +650,6 @@ func (s *EnterpriseCrmEventbusProtoAddress) MarshalJSON() ([]byte, error) { // EnterpriseCrmEventbusProtoAttributes: Attributes are additional // options that can be associated with each event property. For more // information, see -// go/integration-platform/event_bus/attributes_registry.md. Next -// available: 8 type EnterpriseCrmEventbusProtoAttributes struct { // DataType: Things like URL, Email, Currency, Timestamp (rather than // string, int64...) @@ -690,8 +676,7 @@ type EnterpriseCrmEventbusProtoAttributes struct { // DEPRECATED: use searchable. IsSearchable bool `json:"isSearchable,omitempty"` - // LogSettings: See go/integration-platform/analytics/logging_task.md - // for details. + // LogSettings: See LogSettings *EnterpriseCrmEventbusProtoLogSettings `json:"logSettings,omitempty"` // Possible values: @@ -774,8 +759,7 @@ func (s *EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList) MarshalJSON() ( // should be specified in the threshold_duration_ms member below. For // *AVERAGE_DURATION metrics, these fields should not be set at all. A // different member, threshold_duration_ms, must be set in the -// EventAlertConfig or the TaskAlertConfig. See -// go/eventbus-alert-config-examples +// EventAlertConfig or the TaskAlertConfig. type EnterpriseCrmEventbusProtoBaseAlertConfigThresholdValue struct { Absolute int64 `json:"absolute,omitempty,string"` @@ -1507,8 +1491,7 @@ func (s *EnterpriseCrmEventbusProtoErrorDetail) MarshalJSON() ([]byte, error) { // EnterpriseCrmEventbusProtoEventBusProperties: LINT.IfChange This // message is used for storing key value pair properties for each Event -// / Task in the EventBus. Please see -// go/cloud-crm-eng/platform/event_bus.md for more details. +// / Task in the EventBus. type EnterpriseCrmEventbusProtoEventBusProperties struct { // Properties: An unordered list of property entries. Properties []*EnterpriseCrmEventbusProtoPropertyEntry `json:"properties,omitempty"` @@ -1748,7 +1731,6 @@ func (s *EnterpriseCrmEventbusProtoEventExecutionSnapshotEventExecutionSnapshotM // EnterpriseCrmEventbusProtoEventParameters: LINT.IfChange This message // is used for processing and persisting (when applicable) key value // pair parameters for each event in the event bus. Please see -// go/integration-platform/event_bus.md for more details. Next id: 4 type EnterpriseCrmEventbusProtoEventParameters struct { // Parameters: Parameters are a part of Event and can be used to // communicate between different tasks that are part of the same @@ -1941,7 +1923,7 @@ func (s *EnterpriseCrmEventbusProtoFailurePolicy) MarshalJSON() ([]byte, error) } // EnterpriseCrmEventbusProtoField: Information about the value and type -// of the field. Next Id: 8 +// of the field. type EnterpriseCrmEventbusProtoField struct { // Cardinality: By default, if the cardinality is unspecified the field // is considered required while mapping. @@ -1954,8 +1936,6 @@ type EnterpriseCrmEventbusProtoField struct { // DefaultValue: This holds the default values for the fields. This // value is supplied by user so may or may not contain PII or SPII data. - // This field will be scrubbed using DatapolScrubber#maybeScrub() with - // go/proto-sanitizer#level3 DefaultValue *EnterpriseCrmEventbusProtoParameterValueType `json:"defaultValue,omitempty"` // FieldType: Specifies the data type of the field. @@ -1999,9 +1979,8 @@ type EnterpriseCrmEventbusProtoField struct { ReferenceKey string `json:"referenceKey,omitempty"` // TransformExpression: This is the transform expression to fetch the - // input field value. for e.g. $param1$.CONCAT('test'). See - // go/transform-functions-design for more details. Keep points - 1. Only - // input field can have a transform expression. 2. If a transform + // input field value. for e.g. $param1$.CONCAT('test'). Keep points - 1. + // Only input field can have a transform expression. 2. If a transform // expression is provided, reference_key will be ignored. 3. If no value // is returned after evaluation of transform expression, default_value // can be mapped if provided. 4. The field_type should be the type of @@ -2034,8 +2013,7 @@ func (s *EnterpriseCrmEventbusProtoField) MarshalJSON() ([]byte, error) { } // EnterpriseCrmEventbusProtoFieldMappingConfig: Field Mapping Config to -// map multiple output fields values from input fields values. Next id: -// 2 +// map multiple output fields values from input fields values. type EnterpriseCrmEventbusProtoFieldMappingConfig struct { MappedFields []*EnterpriseCrmEventbusProtoMappedField `json:"mappedFields,omitempty"` @@ -2337,8 +2315,7 @@ func (s *EnterpriseCrmEventbusProtoJsonFunction) MarshalJSON() ([]byte, error) { // EnterpriseCrmEventbusProtoLogSettings: The LogSettings define the // logging attributes for an event property. These attributes are used // to map the property to the parameter in the log proto. Also used to -// define scrubbing/truncation behavior and PII information. See -// go/integration-platform/analytics/logging_task.md for details. +// define scrubbing/truncation behavior and PII information. type EnterpriseCrmEventbusProtoLogSettings struct { // LogFieldName: The name of corresponding logging field of the event // property. If omitted, assumes the same name as the event property @@ -2446,7 +2423,7 @@ func (s *EnterpriseCrmEventbusProtoLoopMetadata) MarshalJSON() ([]byte, error) { } // EnterpriseCrmEventbusProtoMappedField: Mapped field is a pair of -// input field and output field. Next Id: 3 +// input field and output field. type EnterpriseCrmEventbusProtoMappedField struct { // InputField: The input field being mapped from. InputField *EnterpriseCrmEventbusProtoField `json:"inputField,omitempty"` @@ -3748,8 +3725,7 @@ func (s *EnterpriseCrmEventbusProtoSuspensionResolutionInfoAudit) MarshalJSON() // EnterpriseCrmEventbusProtoTaskAlertConfig: Message to be used to // configure alerting in the {@code TaskConfig} protos for tasks in an -// event. See go/eventbus-alert-config-examples for examples of the -// different alerts that can be configured. +// event. type EnterpriseCrmEventbusProtoTaskAlertConfig struct { // AggregationPeriod: The period over which the metric value should be // aggregated and evaluated. Format is , where integer should be a @@ -3943,7 +3919,7 @@ func (s *EnterpriseCrmEventbusProtoTaskExecutionDetailsTaskAttemptStats) Marshal } // EnterpriseCrmEventbusProtoTaskMetadata: TaskMetadata are attributes -// that are associated to every common Task we have. Next available: 26 +// that are associated to every common Task we have. type EnterpriseCrmEventbusProtoTaskMetadata struct { // ActiveTaskName: The new task name to replace the current task if it // is deprecated. Otherwise, it is the same as the current task name. @@ -4031,8 +4007,7 @@ type EnterpriseCrmEventbusProtoTaskMetadata struct { // IconLink: URL to gstatic image icon for this task. This icon shows up // on the task list panel along with the task name in the Workflow - // Editor screen. Use the 24p, 2x, gray color icon image format. See - // go/icons. + // Editor screen. Use the 24p, 2x, gray color icon image format. IconLink string `json:"iconLink,omitempty"` // IsDeprecated: The deprecation status of the current task. Default @@ -4142,7 +4117,6 @@ func (s *EnterpriseCrmEventbusProtoTaskMetadataAdmin) MarshalJSON() ([]byte, err // type to configure the UI for a particular task by specifying what UI // config modules should be included to compose the UI. Learn more about // config module framework: -// go/integration-platform-config-module-framework type EnterpriseCrmEventbusProtoTaskUiConfig struct { // TaskUiModuleConfigs: Configurations of included config modules. TaskUiModuleConfigs []*EnterpriseCrmEventbusProtoTaskUiModuleConfig `json:"taskUiModuleConfigs,omitempty"` @@ -4458,8 +4432,7 @@ func (s *EnterpriseCrmEventbusProtoValueType) UnmarshalJSON(data []byte) error { // EnterpriseCrmEventbusProtoWorkflowAlertConfig: Message to be used to // configure custom alerting in the {@code EventConfig} protos for an -// event. See go/eventbus-alert-config-examples for examples of the -// different alerts that can be configured. +// event. type EnterpriseCrmEventbusProtoWorkflowAlertConfig struct { // AggregationPeriod: For an EXPECTED_MIN threshold, this // aggregation_period must be lesser than 24 hours. @@ -4544,7 +4517,7 @@ type EnterpriseCrmEventbusProtoWorkflowAlertConfig struct { ThresholdType string `json:"thresholdType,omitempty"` // ThresholdValue: The metric value, above or below which the alert - // should be triggered. See go/eventbus-alert-config-examples. + // should be triggered. ThresholdValue *EnterpriseCrmEventbusProtoBaseAlertConfigThresholdValue `json:"thresholdValue,omitempty"` WarningEnumList *EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList `json:"warningEnumList,omitempty"` @@ -4990,7 +4963,6 @@ func (s *EnterpriseCrmFrontendsEventbusProtoEventExecutionSnapshot) MarshalJSON( // EnterpriseCrmFrontendsEventbusProtoEventParameters: LINT.IfChange // This message is used for processing and persisting (when applicable) // key value pair parameters for each event in the event bus. Please see -// go/integration-platform/event_bus.md for more details. Next id: 4 type EnterpriseCrmFrontendsEventbusProtoEventParameters struct { // Parameters: Parameters are a part of Event and can be used to // communicate between different tasks that are part of the same @@ -5950,7 +5922,6 @@ type EnterpriseCrmFrontendsEventbusProtoWorkflowParameterEntry struct { InOutType string `json:"inOutType,omitempty"` // IsTransient: Whether this parameter is a transient parameter. - // go/ip-transient-parameters IsTransient bool `json:"isTransient,omitempty"` // JsonSchema: This schema will be used to validate runtime JSON-typed @@ -6803,32 +6774,6 @@ func (s *GoogleCloudIntegrationsV1alphaAccessToken) MarshalJSON() ([]byte, error return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaArchiveBundleRequest: Request for -// ArchiveBundle. -type GoogleCloudIntegrationsV1alphaArchiveBundleRequest struct { -} - -// GoogleCloudIntegrationsV1alphaArchiveBundleResponse: Response for -// ArchiveBundle. -type GoogleCloudIntegrationsV1alphaArchiveBundleResponse struct { - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` -} - -// GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionRequest: -// Request for ArchiveIntegrationVersion. -type GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionRequest struct { -} - -// GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse: -// Response for ArchiveIntegrationVersion. -type GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse struct { - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` -} - // GoogleCloudIntegrationsV1alphaAttemptStats: Status for the execution // attempt. type GoogleCloudIntegrationsV1alphaAttemptStats struct { @@ -7366,83 +7311,6 @@ func (s *GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectResponse) MarshalJ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaCreateBundleRequest: PROTECT WITH A -// VISIBILITY LABEL. THIS METHOD WILL BE MOVED TO A SEPARATE SERVICE. -// Request to create a new Bundle. -type GoogleCloudIntegrationsV1alphaCreateBundleRequest struct { - // BundleId: Required. name of the bundle that will be created - BundleId string `json:"bundleId,omitempty"` - - // Integrations: A list of integrations that can be executed by the - // bundle - Integrations []string `json:"integrations,omitempty"` - - // SecondaryCustomerOrgId: Optional. The prefix for the SA, it should be - // in the format "o". This is an optional field, and if empty service - // account will be created per project, where we are creating bundle. - // This should only be used as the org ID for which we want to run the - // integrations in the bundle. - SecondaryCustomerOrgId string `json:"secondaryCustomerOrgId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "BundleId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BundleId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudIntegrationsV1alphaCreateBundleRequest) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudIntegrationsV1alphaCreateBundleRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudIntegrationsV1alphaCreateBundleResponse: Response for -// create bundle. -type GoogleCloudIntegrationsV1alphaCreateBundleResponse struct { - // Config: It contains the bundle data - Config *GoogleCloudIntegrationsV1alphaIntegrationBundleConfig `json:"config,omitempty"` - - // TriggerId: trigger_id of the bundle task - TriggerId string `json:"triggerId,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // 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 *GoogleCloudIntegrationsV1alphaCreateBundleResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudIntegrationsV1alphaCreateBundleResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudIntegrationsV1alphaCredential: Defines parameters for a // single, canonical credential. type GoogleCloudIntegrationsV1alphaCredential struct { @@ -7517,19 +7385,6 @@ func (s *GoogleCloudIntegrationsV1alphaCredential) MarshalJSON() ([]byte, error) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionRequest: -// Request for DeactivateIntegrationVersion. -type GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionRequest struct { -} - -// GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse: -// Response for DeactivateIntegrationVersion. -type GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse struct { - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` -} - // GoogleCloudIntegrationsV1alphaDoubleParameterArray: This message only // contains a field of double number array. type GoogleCloudIntegrationsV1alphaDoubleParameterArray struct { @@ -8096,39 +7951,6 @@ func (s *GoogleCloudIntegrationsV1alphaGenerateTokenResponse) MarshalJSON() ([]b return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaGetBundleResponse: Response for -// GetBundle. -type GoogleCloudIntegrationsV1alphaGetBundleResponse struct { - // Config: It contains the bundle data - Config *GoogleCloudIntegrationsV1alphaIntegrationBundleConfig `json:"config,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // 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 *GoogleCloudIntegrationsV1alphaGetBundleResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudIntegrationsV1alphaGetBundleResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudIntegrationsV1alphaIntParameterArray: This message only // contains a field of integer array. type GoogleCloudIntegrationsV1alphaIntParameterArray struct { @@ -8347,42 +8169,6 @@ func (s *GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValue) Mar return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaIntegrationBundleConfig: This proto -// holds the core runner data in the bundle task. It is not expected to -// be directly edited by the user. Instead, a default value will be -// provided at the task creation time. -type GoogleCloudIntegrationsV1alphaIntegrationBundleConfig struct { - // Integrations: A bundle of integrations that can be executed by the - // task at runtime. - Integrations []string `json:"integrations,omitempty"` - - // ServiceAccount: Output only. The service account created and owned by - // IP and added to the customers GCP project. - ServiceAccount string `json:"serviceAccount,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Integrations") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Integrations") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudIntegrationsV1alphaIntegrationBundleConfig) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudIntegrationsV1alphaIntegrationBundleConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudIntegrationsV1alphaIntegrationParameter: Integration // Parameter is defined in the integration config and are used to // provide information about data types of the expected parameters and @@ -9024,44 +8810,6 @@ func (s *GoogleCloudIntegrationsV1alphaListConnectionsResponse) MarshalJSON() ([ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse: -// Response for listing the integration execution snapshot. -type GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse struct { - // ExecutionSnapshots: Required. The detailed information for the - // execution snapshot. - ExecutionSnapshots []*EnterpriseCrmEventbusProtoEventExecutionSnapshot `json:"executionSnapshots,omitempty"` - - // NextPageToken: The token returned in the previous response. - 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. "ExecutionSnapshots") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExecutionSnapshots") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudIntegrationsV1alphaListExecutionsResponse: Response for // listing the integration execution data. type GoogleCloudIntegrationsV1alphaListExecutionsResponse struct { @@ -9407,39 +9155,6 @@ func (s *GoogleCloudIntegrationsV1alphaListSuspensionsResponse) MarshalJSON() ([ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse: This is a UI -// only method and will be moved away. Response for ListTaskEntities. -type GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse struct { - // TaskEntities: The list of the tasks. - TaskEntities []*EnterpriseCrmFrontendsEventbusProtoTaskEntity `json:"taskEntities,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "TaskEntities") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "TaskEntities") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudIntegrationsV1alphaNextTask: The task that is next in line // to be executed, if the condition specified evaluated to true. type GoogleCloudIntegrationsV1alphaNextTask struct { @@ -10786,68 +10501,6 @@ func (s *GoogleCloudIntegrationsV1alphaTriggerConfig) MarshalJSON() ([]byte, err type GoogleCloudIntegrationsV1alphaUnpublishIntegrationVersionRequest struct { } -// GoogleCloudIntegrationsV1alphaUpdateBundleRequest: THIS METHOD WILL -// BE MOVED TO A SEPARATE SERVICE. Request message for Bundle update -type GoogleCloudIntegrationsV1alphaUpdateBundleRequest struct { - // Config: It contains the updated bundle data - Config *GoogleCloudIntegrationsV1alphaIntegrationBundleConfig `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 *GoogleCloudIntegrationsV1alphaUpdateBundleRequest) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudIntegrationsV1alphaUpdateBundleRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudIntegrationsV1alphaUpdateBundleResponse: Response message -// for Bundle update -type GoogleCloudIntegrationsV1alphaUpdateBundleResponse struct { - // Config: Contains updated bundle config - Config *GoogleCloudIntegrationsV1alphaIntegrationBundleConfig `json:"config,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // 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 *GoogleCloudIntegrationsV1alphaUpdateBundleResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudIntegrationsV1alphaUpdateBundleResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest: // Request for UploadIntegrationVersion. type GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest struct { @@ -10951,19 +10604,6 @@ func (s *GoogleCloudIntegrationsV1alphaUsernameAndPassword) MarshalJSON() ([]byt return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaValidateIntegrationVersionRequest: -// Request for ValidateIntegrationVersion. -type GoogleCloudIntegrationsV1alphaValidateIntegrationVersionRequest struct { -} - -// GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse: -// Response for ValidateIntegrationVersion. -type GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse struct { - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` -} - // GoogleCloudIntegrationsV1alphaValueType: The type of the parameter. type GoogleCloudIntegrationsV1alphaValueType struct { // BooleanArray: Boolean Array. @@ -11482,182 +11122,31 @@ func (c *ConnectorPlatformRegionsEnumerateCall) Do(opts ...googleapi.CallOption) } -// method id "integrations.projects.locations.listTaskEntities": +// method id "integrations.projects.locations.appsScriptProjects.create": -type ProjectsLocationsListTaskEntitiesCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsAppsScriptProjectsCreateCall struct { + s *Service + parent string + googlecloudintegrationsv1alphacreateappsscriptprojectrequest *GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// ListTaskEntities: This is a UI only method and will be moved away. -// Returns a list of common tasks. +// Create: Creates an Apps Script project. // -// - parent: The location resource of the request. This is not going to -// be used but preserve the field for future. -func (r *ProjectsLocationsService) ListTaskEntities(parent string) *ProjectsLocationsListTaskEntitiesCall { - c := &ProjectsLocationsListTaskEntitiesCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The project that the executed integration belongs to. +func (r *ProjectsLocationsAppsScriptProjectsService) Create(parent string, googlecloudintegrationsv1alphacreateappsscriptprojectrequest *GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectRequest) *ProjectsLocationsAppsScriptProjectsCreateCall { + c := &ProjectsLocationsAppsScriptProjectsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent + c.googlecloudintegrationsv1alphacreateappsscriptprojectrequest = googlecloudintegrationsv1alphacreateappsscriptprojectrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsListTaskEntitiesCall) Fields(s ...googleapi.Field) *ProjectsLocationsListTaskEntitiesCall { - 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 *ProjectsLocationsListTaskEntitiesCall) IfNoneMatch(entityTag string) *ProjectsLocationsListTaskEntitiesCall { - 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 *ProjectsLocationsListTaskEntitiesCall) Context(ctx context.Context) *ProjectsLocationsListTaskEntitiesCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsListTaskEntitiesCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsListTaskEntitiesCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-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}:listTaskEntities") - 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 "integrations.projects.locations.listTaskEntities" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse.ServerResponse -// .Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsListTaskEntitiesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "This is a UI only method and will be moved away. Returns a list of common tasks.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}:listTaskEntities", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.listTaskEntities", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. The location resource of the request. This is not going to be used but preserve the field for future.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+parent}:listTaskEntities", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.appsScriptProjects.create": - -type ProjectsLocationsAppsScriptProjectsCreateCall struct { - s *Service - parent string - googlecloudintegrationsv1alphacreateappsscriptprojectrequest *GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Create: Creates an Apps Script project. -// -// - parent: The project that the executed integration belongs to. -func (r *ProjectsLocationsAppsScriptProjectsService) Create(parent string, googlecloudintegrationsv1alphacreateappsscriptprojectrequest *GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectRequest) *ProjectsLocationsAppsScriptProjectsCreateCall { - c := &ProjectsLocationsAppsScriptProjectsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudintegrationsv1alphacreateappsscriptprojectrequest = googlecloudintegrationsv1alphacreateappsscriptprojectrequest - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsAppsScriptProjectsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsScriptProjectsCreateCall { +func (c *ProjectsLocationsAppsScriptProjectsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsScriptProjectsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -15407,162 +14896,6 @@ func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsResolveCall) Do(opts } -// method id "integrations.projects.locations.integrations.versions.archive": - -type ProjectsLocationsIntegrationsVersionsArchiveCall struct { - s *Service - name string - googlecloudintegrationsv1alphaarchiveintegrationversionrequest *GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Archive: Soft-deletes the integration. Changes the status of the -// integration to ARCHIVED. If the integration being ARCHIVED is tagged -// as "HEAD", the tag is removed from this snapshot and set to the -// previous non-ARCHIVED snapshot. The PUBLISH_REQUESTED, -// DUE_FOR_DELETION tags are removed too. This RPC throws an exception -// if the version being archived is DRAFT, and if the `locked_by` user -// is not the same as the user performing the Archive. Audit fields -// updated include last_modified_timestamp, last_modified_by. Any -// existing lock is released when Archiving a integration. Currently, -// there is no unarchive mechanism. -// -// - name: The version to archive. Format: -// projects/{project}/locations/{location}/integrations/{integration}/v -// ersions/{version}. -func (r *ProjectsLocationsIntegrationsVersionsService) Archive(name string, googlecloudintegrationsv1alphaarchiveintegrationversionrequest *GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionRequest) *ProjectsLocationsIntegrationsVersionsArchiveCall { - c := &ProjectsLocationsIntegrationsVersionsArchiveCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.googlecloudintegrationsv1alphaarchiveintegrationversionrequest = googlecloudintegrationsv1alphaarchiveintegrationversionrequest - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsIntegrationsVersionsArchiveCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsVersionsArchiveCall { - 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 *ProjectsLocationsIntegrationsVersionsArchiveCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsVersionsArchiveCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsIntegrationsVersionsArchiveCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsIntegrationsVersionsArchiveCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-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.googlecloudintegrationsv1alphaarchiveintegrationversionrequest) - 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}:archive") - 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 "integrations.projects.locations.integrations.versions.archive" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse.Serve -// rResponse.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsIntegrationsVersionsArchiveCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Soft-deletes the integration. Changes the status of the integration to ARCHIVED. If the integration being ARCHIVED is tagged as \"HEAD\", the tag is removed from this snapshot and set to the previous non-ARCHIVED snapshot. The PUBLISH_REQUESTED, DUE_FOR_DELETION tags are removed too. This RPC throws an exception if the version being archived is DRAFT, and if the `locked_by` user is not the same as the user performing the Archive. Audit fields updated include last_modified_timestamp, last_modified_by. Any existing lock is released when Archiving a integration. Currently, there is no unarchive mechanism.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions/{versionsId}:archive", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.integrations.versions.archive", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The version to archive. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}:archive", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - // method id "integrations.projects.locations.integrations.versions.create": type ProjectsLocationsIntegrationsVersionsCreateCall struct { @@ -15726,158 +15059,7 @@ func (c *ProjectsLocationsIntegrationsVersionsCreateCall) Do(opts ...googleapi.C } -// method id "integrations.projects.locations.integrations.versions.deactivate": - -type ProjectsLocationsIntegrationsVersionsDeactivateCall struct { - s *Service - name string - googlecloudintegrationsv1alphadeactivateintegrationversionrequest *GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Deactivate: Sets the status of the ACTIVE integration to SNAPSHOT -// with a new tag "PREVIOUSLY_PUBLISHED" after validating it. The "HEAD" -// and "PUBLISH_REQUESTED" tags do not change. This RPC throws an -// exception if the version being snapshot is not ACTIVE. Audit fields -// added include action, action_by, action_timestamp. -// -// - name: The version to deactivate. Format: -// projects/{project}/locations/{location}/integrations/{integration}/v -// ersions/{version}. -func (r *ProjectsLocationsIntegrationsVersionsService) Deactivate(name string, googlecloudintegrationsv1alphadeactivateintegrationversionrequest *GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionRequest) *ProjectsLocationsIntegrationsVersionsDeactivateCall { - c := &ProjectsLocationsIntegrationsVersionsDeactivateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.googlecloudintegrationsv1alphadeactivateintegrationversionrequest = googlecloudintegrationsv1alphadeactivateintegrationversionrequest - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsIntegrationsVersionsDeactivateCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsVersionsDeactivateCall { - 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 *ProjectsLocationsIntegrationsVersionsDeactivateCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsVersionsDeactivateCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsIntegrationsVersionsDeactivateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsIntegrationsVersionsDeactivateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-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.googlecloudintegrationsv1alphadeactivateintegrationversionrequest) - 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}:deactivate") - 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 "integrations.projects.locations.integrations.versions.deactivate" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse.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 *ProjectsLocationsIntegrationsVersionsDeactivateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse{ - ServerResponse: googleapi.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 status of the ACTIVE integration to SNAPSHOT with a new tag \"PREVIOUSLY_PUBLISHED\" after validating it. The \"HEAD\" and \"PUBLISH_REQUESTED\" tags do not change. This RPC throws an exception if the version being snapshot is not ACTIVE. Audit fields added include action, action_by, action_timestamp.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions/{versionsId}:deactivate", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.integrations.versions.deactivate", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The version to deactivate. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}:deactivate", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.integrations.versions.delete": +// method id "integrations.projects.locations.integrations.versions.delete": type ProjectsLocationsIntegrationsVersionsDeleteCall struct { s *Service @@ -17374,36 +16556,89 @@ func (c *ProjectsLocationsIntegrationsVersionsUploadCall) Do(opts ...googleapi.C } -// method id "integrations.projects.locations.integrations.versions.validate": +// method id "integrations.projects.locations.products.authConfigs.create": -type ProjectsLocationsIntegrationsVersionsValidateCall struct { - s *Service - name string - googlecloudintegrationsv1alphavalidateintegrationversionrequest *GoogleCloudIntegrationsV1alphaValidateIntegrationVersionRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsProductsAuthConfigsCreateCall struct { + s *Service + parent string + googlecloudintegrationsv1alphaauthconfig *GoogleCloudIntegrationsV1alphaAuthConfig + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Validate: Validates the given integration. If the id doesn't exist, a -// NotFoundException is thrown. If validation fails a -// CanonicalCodeException is thrown. If there was no failure an empty -// response is returned. +// Create: Creates an auth config record. Fetch corresponding +// credentials for specific auth types, e.g. access token for OAuth 2.0, +// JWT token for JWT. Encrypt the auth config with Cloud KMS and store +// the encrypted credentials in Spanner. Returns the encrypted auth +// config. // -// - name: The version to validate. Format: -// projects/{project}/locations/{location}/integrations/{integration}/v -// ersions/{version}. -func (r *ProjectsLocationsIntegrationsVersionsService) Validate(name string, googlecloudintegrationsv1alphavalidateintegrationversionrequest *GoogleCloudIntegrationsV1alphaValidateIntegrationVersionRequest) *ProjectsLocationsIntegrationsVersionsValidateCall { - c := &ProjectsLocationsIntegrationsVersionsValidateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.googlecloudintegrationsv1alphavalidateintegrationversionrequest = googlecloudintegrationsv1alphavalidateintegrationversionrequest +// - parent: "projects/{project}/locations/{location}" format. +func (r *ProjectsLocationsProductsAuthConfigsService) Create(parent string, googlecloudintegrationsv1alphaauthconfig *GoogleCloudIntegrationsV1alphaAuthConfig) *ProjectsLocationsProductsAuthConfigsCreateCall { + c := &ProjectsLocationsProductsAuthConfigsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudintegrationsv1alphaauthconfig = googlecloudintegrationsv1alphaauthconfig + return c +} + +// ClientCertificateEncryptedPrivateKey sets the optional parameter +// "clientCertificate.encryptedPrivateKey": The ssl certificate encoded +// in PEM format. This string must include the begin header and end +// footer lines. For example, -----BEGIN CERTIFICATE----- +// MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV +// BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw +// MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET +// MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA +// vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 +// JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB +// xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P +// AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB +// Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey +// Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW +// JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr +// 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H +// wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE----- +func (c *ProjectsLocationsProductsAuthConfigsCreateCall) ClientCertificateEncryptedPrivateKey(clientCertificateEncryptedPrivateKey string) *ProjectsLocationsProductsAuthConfigsCreateCall { + c.urlParams_.Set("clientCertificate.encryptedPrivateKey", clientCertificateEncryptedPrivateKey) + return c +} + +// ClientCertificatePassphrase sets the optional parameter +// "clientCertificate.passphrase": 'passphrase' should be left unset if +// private key is not encrypted. Note that 'passphrase' is not the +// password for web server, but an extra layer of security to protected +// private key. +func (c *ProjectsLocationsProductsAuthConfigsCreateCall) ClientCertificatePassphrase(clientCertificatePassphrase string) *ProjectsLocationsProductsAuthConfigsCreateCall { + c.urlParams_.Set("clientCertificate.passphrase", clientCertificatePassphrase) + return c +} + +// ClientCertificateSslCertificate sets the optional parameter +// "clientCertificate.sslCertificate": The ssl certificate encoded in +// PEM format. This string must include the begin header and end footer +// lines. For example, -----BEGIN CERTIFICATE----- +// MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV +// BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw +// MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET +// MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA +// vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 +// JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB +// xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P +// AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB +// Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey +// Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW +// JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr +// 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H +// wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE----- +func (c *ProjectsLocationsProductsAuthConfigsCreateCall) ClientCertificateSslCertificate(clientCertificateSslCertificate string) *ProjectsLocationsProductsAuthConfigsCreateCall { + c.urlParams_.Set("clientCertificate.sslCertificate", clientCertificateSslCertificate) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsIntegrationsVersionsValidateCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsVersionsValidateCall { +func (c *ProjectsLocationsProductsAuthConfigsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsAuthConfigsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -17411,21 +16646,21 @@ func (c *ProjectsLocationsIntegrationsVersionsValidateCall) 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 *ProjectsLocationsIntegrationsVersionsValidateCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsVersionsValidateCall { +func (c *ProjectsLocationsProductsAuthConfigsCreateCall) Context(ctx context.Context) *ProjectsLocationsProductsAuthConfigsCreateCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsIntegrationsVersionsValidateCall) Header() http.Header { +func (c *ProjectsLocationsProductsAuthConfigsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIntegrationsVersionsValidateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsProductsAuthConfigsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -17433,14 +16668,14 @@ func (c *ProjectsLocationsIntegrationsVersionsValidateCall) doRequest(alt string } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphavalidateintegrationversionrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaauthconfig) 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}:validate") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/authConfigs") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -17448,22 +16683,21 @@ func (c *ProjectsLocationsIntegrationsVersionsValidateCall) doRequest(alt string } 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 "integrations.projects.locations.integrations.versions.validate" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse or -// error will be non-nil. Any non-2xx status code is an error. Response +// Do executes the "integrations.projects.locations.products.authConfigs.create" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaAuthConfig or error +// will be non-nil. Any non-2xx status code is an error. Response // headers are in either -// *GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse.Serv -// erResponse.Header or (if a response was returned at all) in +// *GoogleCloudIntegrationsV1alphaAuthConfig.ServerResponse.Header or +// (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsIntegrationsVersionsValidateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse, error) { +func (c *ProjectsLocationsProductsAuthConfigsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaAuthConfig, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -17482,7 +16716,7 @@ func (c *ProjectsLocationsIntegrationsVersionsValidateCall) Do(opts ...googleapi if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse{ + ret := &GoogleCloudIntegrationsV1alphaAuthConfig{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -17494,28 +16728,43 @@ func (c *ProjectsLocationsIntegrationsVersionsValidateCall) Do(opts ...googleapi } return ret, nil // { - // "description": "Validates the given integration. If the id doesn't exist, a NotFoundException is thrown. If validation fails a CanonicalCodeException is thrown. If there was no failure an empty response is returned.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions/{versionsId}:validate", + // "description": "Creates an auth config record. Fetch corresponding credentials for specific auth types, e.g. access token for OAuth 2.0, JWT token for JWT. Encrypt the auth config with Cloud KMS and store the encrypted credentials in Spanner. Returns the encrypted auth config.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/authConfigs", // "httpMethod": "POST", - // "id": "integrations.projects.locations.integrations.versions.validate", + // "id": "integrations.projects.locations.products.authConfigs.create", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "Required. The version to validate. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", + // "clientCertificate.encryptedPrivateKey": { + // "description": "The ssl certificate encoded in PEM format. This string must include the begin header and end footer lines. For example, -----BEGIN CERTIFICATE----- MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----", + // "location": "query", + // "type": "string" + // }, + // "clientCertificate.passphrase": { + // "description": "'passphrase' should be left unset if private key is not encrypted. Note that 'passphrase' is not the password for web server, but an extra layer of security to protected private key.", + // "location": "query", + // "type": "string" + // }, + // "clientCertificate.sslCertificate": { + // "description": "The ssl certificate encoded in PEM format. This string must include the begin header and end footer lines. For example, -----BEGIN CERTIFICATE----- MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. \"projects/{project}/locations/{location}\" format.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1alpha/{+name}:validate", + // "path": "v1alpha/{+parent}/authConfigs", // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaValidateIntegrationVersionRequest" + // "$ref": "GoogleCloudIntegrationsV1alphaAuthConfig" // }, // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse" + // "$ref": "GoogleCloudIntegrationsV1alphaAuthConfig" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -17524,32 +16773,29 @@ func (c *ProjectsLocationsIntegrationsVersionsValidateCall) Do(opts ...googleapi } -// method id "integrations.projects.locations.products.createBundle": +// method id "integrations.projects.locations.products.authConfigs.delete": -type ProjectsLocationsProductsCreateBundleCall struct { - s *Service - parent string - googlecloudintegrationsv1alphacreatebundlerequest *GoogleCloudIntegrationsV1alphaCreateBundleRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsProductsAuthConfigsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// CreateBundle: PROTECT WITH A VISIBILITY LABEL. THIS METHOD WILL BE -// MOVED TO A SEPARATE SERVICE. Create a bundle. +// Delete: Deletes an auth config. // -// - parent: The location resource of the request. -func (r *ProjectsLocationsProductsService) CreateBundle(parent string, googlecloudintegrationsv1alphacreatebundlerequest *GoogleCloudIntegrationsV1alphaCreateBundleRequest) *ProjectsLocationsProductsCreateBundleCall { - c := &ProjectsLocationsProductsCreateBundleCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudintegrationsv1alphacreatebundlerequest = googlecloudintegrationsv1alphacreatebundlerequest +// - name: The name that is associated with the AuthConfig. +func (r *ProjectsLocationsProductsAuthConfigsService) Delete(name string) *ProjectsLocationsProductsAuthConfigsDeleteCall { + c := &ProjectsLocationsProductsAuthConfigsDeleteCall{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 *ProjectsLocationsProductsCreateBundleCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsCreateBundleCall { +func (c *ProjectsLocationsProductsAuthConfigsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsAuthConfigsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -17557,21 +16803,21 @@ func (c *ProjectsLocationsProductsCreateBundleCall) 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 *ProjectsLocationsProductsCreateBundleCall) Context(ctx context.Context) *ProjectsLocationsProductsCreateBundleCall { +func (c *ProjectsLocationsProductsAuthConfigsDeleteCall) Context(ctx context.Context) *ProjectsLocationsProductsAuthConfigsDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsProductsCreateBundleCall) Header() http.Header { +func (c *ProjectsLocationsProductsAuthConfigsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsProductsCreateBundleCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsProductsAuthConfigsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -17579,36 +16825,29 @@ func (c *ProjectsLocationsProductsCreateBundleCall) doRequest(alt string) (*http } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphacreatebundlerequest) - 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}:createBundle") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } 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 "integrations.projects.locations.products.createBundle" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaCreateBundleResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaCreateBundleResponse.ServerResponse.Hea -// der or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsProductsCreateBundleCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaCreateBundleResponse, error) { +// Do executes the "integrations.projects.locations.products.authConfigs.delete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsProductsAuthConfigsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -17627,7 +16866,7 @@ func (c *ProjectsLocationsProductsCreateBundleCall) Do(opts ...googleapi.CallOpt if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudIntegrationsV1alphaCreateBundleResponse{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -17639,28 +16878,25 @@ func (c *ProjectsLocationsProductsCreateBundleCall) Do(opts ...googleapi.CallOpt } return ret, nil // { - // "description": "PROTECT WITH A VISIBILITY LABEL. THIS METHOD WILL BE MOVED TO A SEPARATE SERVICE. Create a bundle.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}:createBundle", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.products.createBundle", + // "description": "Deletes an auth config.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/authConfigs/{authConfigsId}", + // "httpMethod": "DELETE", + // "id": "integrations.projects.locations.products.authConfigs.delete", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "parent": { - // "description": "Required. The location resource of the request.", + // "name": { + // "description": "Required. The name that is associated with the AuthConfig.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/authConfigs/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1alpha/{+parent}:createBundle", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaCreateBundleRequest" - // }, + // "path": "v1alpha/{+name}", // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaCreateBundleResponse" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -17669,32 +16905,32 @@ func (c *ProjectsLocationsProductsCreateBundleCall) Do(opts ...googleapi.CallOpt } -// method id "integrations.projects.locations.products.listTaskEntities": +// method id "integrations.projects.locations.products.authConfigs.get": -type ProjectsLocationsProductsListTaskEntitiesCall struct { +type ProjectsLocationsProductsAuthConfigsGetCall struct { s *Service - parent string + name string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// ListTaskEntities: This is a UI only method and will be moved away. -// Returns a list of common tasks. +// Get: Gets a complete auth config. If the auth config doesn't exist, +// Code.NOT_FOUND exception will be thrown. Returns the decrypted auth +// config. // -// - parent: The location resource of the request. This is not going to -// be used but preserve the field for future. -func (r *ProjectsLocationsProductsService) ListTaskEntities(parent string) *ProjectsLocationsProductsListTaskEntitiesCall { - c := &ProjectsLocationsProductsListTaskEntitiesCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent +// - name: The name that is associated with the AuthConfig. +func (r *ProjectsLocationsProductsAuthConfigsService) Get(name string) *ProjectsLocationsProductsAuthConfigsGetCall { + c := &ProjectsLocationsProductsAuthConfigsGetCall{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 *ProjectsLocationsProductsListTaskEntitiesCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsListTaskEntitiesCall { +func (c *ProjectsLocationsProductsAuthConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsAuthConfigsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -17704,7 +16940,7 @@ func (c *ProjectsLocationsProductsListTaskEntitiesCall) 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 *ProjectsLocationsProductsListTaskEntitiesCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsListTaskEntitiesCall { +func (c *ProjectsLocationsProductsAuthConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsAuthConfigsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -17712,21 +16948,21 @@ func (c *ProjectsLocationsProductsListTaskEntitiesCall) 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 *ProjectsLocationsProductsListTaskEntitiesCall) Context(ctx context.Context) *ProjectsLocationsProductsListTaskEntitiesCall { +func (c *ProjectsLocationsProductsAuthConfigsGetCall) Context(ctx context.Context) *ProjectsLocationsProductsAuthConfigsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsProductsListTaskEntitiesCall) Header() http.Header { +func (c *ProjectsLocationsProductsAuthConfigsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsProductsListTaskEntitiesCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsProductsAuthConfigsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -17739,7 +16975,7 @@ func (c *ProjectsLocationsProductsListTaskEntitiesCall) 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}:listTaskEntities") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -17747,22 +16983,21 @@ func (c *ProjectsLocationsProductsListTaskEntitiesCall) 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 "integrations.projects.locations.products.listTaskEntities" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse.ServerResponse -// .Header or (if a response was returned at all) in +// Do executes the "integrations.projects.locations.products.authConfigs.get" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaAuthConfig or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaAuthConfig.ServerResponse.Header or +// (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsProductsListTaskEntitiesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse, error) { +func (c *ProjectsLocationsProductsAuthConfigsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaAuthConfig, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -17781,7 +17016,7 @@ func (c *ProjectsLocationsProductsListTaskEntitiesCall) Do(opts ...googleapi.Cal if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse{ + ret := &GoogleCloudIntegrationsV1alphaAuthConfig{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -17793,25 +17028,25 @@ func (c *ProjectsLocationsProductsListTaskEntitiesCall) Do(opts ...googleapi.Cal } return ret, nil // { - // "description": "This is a UI only method and will be moved away. Returns a list of common tasks.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}:listTaskEntities", + // "description": "Gets a complete auth config. If the auth config doesn't exist, Code.NOT_FOUND exception will be thrown. Returns the decrypted auth config.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/authConfigs/{authConfigsId}", // "httpMethod": "GET", - // "id": "integrations.projects.locations.products.listTaskEntities", + // "id": "integrations.projects.locations.products.authConfigs.get", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "parent": { - // "description": "Required. The location resource of the request. This is not going to be used but preserve the field for future.", + // "name": { + // "description": "Required. The name that is associated with the AuthConfig.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/authConfigs/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1alpha/{+parent}:listTaskEntities", + // "path": "v1alpha/{+name}", // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse" + // "$ref": "GoogleCloudIntegrationsV1alphaAuthConfig" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -17820,128 +17055,108 @@ func (c *ProjectsLocationsProductsListTaskEntitiesCall) Do(opts ...googleapi.Cal } -// method id "integrations.projects.locations.products.authConfigs.create": +// method id "integrations.projects.locations.products.authConfigs.list": -type ProjectsLocationsProductsAuthConfigsCreateCall struct { - s *Service - parent string - googlecloudintegrationsv1alphaauthconfig *GoogleCloudIntegrationsV1alphaAuthConfig - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsProductsAuthConfigsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Create: Creates an auth config record. Fetch corresponding -// credentials for specific auth types, e.g. access token for OAuth 2.0, -// JWT token for JWT. Encrypt the auth config with Cloud KMS and store -// the encrypted credentials in Spanner. Returns the encrypted auth -// config. +// List: Lists all auth configs that match the filter. Restrict to auth +// configs belong to the current client only. // -// - parent: "projects/{project}/locations/{location}" format. -func (r *ProjectsLocationsProductsAuthConfigsService) Create(parent string, googlecloudintegrationsv1alphaauthconfig *GoogleCloudIntegrationsV1alphaAuthConfig) *ProjectsLocationsProductsAuthConfigsCreateCall { - c := &ProjectsLocationsProductsAuthConfigsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The client, which owns this collection of AuthConfigs. +func (r *ProjectsLocationsProductsAuthConfigsService) List(parent string) *ProjectsLocationsProductsAuthConfigsListCall { + c := &ProjectsLocationsProductsAuthConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent - c.googlecloudintegrationsv1alphaauthconfig = googlecloudintegrationsv1alphaauthconfig return c } -// ClientCertificateEncryptedPrivateKey sets the optional parameter -// "clientCertificate.encryptedPrivateKey": The ssl certificate encoded -// in PEM format. This string must include the begin header and end -// footer lines. For example, -----BEGIN CERTIFICATE----- -// MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV -// BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw -// MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET -// MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA -// vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 -// JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB -// xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P -// AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB -// Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey -// Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW -// JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr -// 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H -// wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE----- -func (c *ProjectsLocationsProductsAuthConfigsCreateCall) ClientCertificateEncryptedPrivateKey(clientCertificateEncryptedPrivateKey string) *ProjectsLocationsProductsAuthConfigsCreateCall { - c.urlParams_.Set("clientCertificate.encryptedPrivateKey", clientCertificateEncryptedPrivateKey) +// Filter sets the optional parameter "filter": Filtering as supported +// in +// https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters. +func (c *ProjectsLocationsProductsAuthConfigsListCall) Filter(filter string) *ProjectsLocationsProductsAuthConfigsListCall { + c.urlParams_.Set("filter", filter) return c } -// ClientCertificatePassphrase sets the optional parameter -// "clientCertificate.passphrase": 'passphrase' should be left unset if -// private key is not encrypted. Note that 'passphrase' is not the -// password for web server, but an extra layer of security to protected -// private key. -func (c *ProjectsLocationsProductsAuthConfigsCreateCall) ClientCertificatePassphrase(clientCertificatePassphrase string) *ProjectsLocationsProductsAuthConfigsCreateCall { - c.urlParams_.Set("clientCertificate.passphrase", clientCertificatePassphrase) +// PageSize sets the optional parameter "pageSize": The size of entries +// in the response. If unspecified, defaults to 100. +func (c *ProjectsLocationsProductsAuthConfigsListCall) PageSize(pageSize int64) *ProjectsLocationsProductsAuthConfigsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// ClientCertificateSslCertificate sets the optional parameter -// "clientCertificate.sslCertificate": The ssl certificate encoded in -// PEM format. This string must include the begin header and end footer -// lines. For example, -----BEGIN CERTIFICATE----- -// MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV -// BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw -// MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET -// MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA -// vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 -// JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB -// xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P -// AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB -// Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey -// Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW -// JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr -// 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H -// wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE----- -func (c *ProjectsLocationsProductsAuthConfigsCreateCall) ClientCertificateSslCertificate(clientCertificateSslCertificate string) *ProjectsLocationsProductsAuthConfigsCreateCall { - c.urlParams_.Set("clientCertificate.sslCertificate", clientCertificateSslCertificate) +// PageToken sets the optional parameter "pageToken": The token returned +// in the previous response. +func (c *ProjectsLocationsProductsAuthConfigsListCall) PageToken(pageToken string) *ProjectsLocationsProductsAuthConfigsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReadMask sets the optional parameter "readMask": The mask which +// specifies fields that need to be returned in the AuthConfig's +// response. +func (c *ProjectsLocationsProductsAuthConfigsListCall) ReadMask(readMask string) *ProjectsLocationsProductsAuthConfigsListCall { + c.urlParams_.Set("readMask", readMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsProductsAuthConfigsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsAuthConfigsCreateCall { +func (c *ProjectsLocationsProductsAuthConfigsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsAuthConfigsListCall { 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 *ProjectsLocationsProductsAuthConfigsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsAuthConfigsListCall { + 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 *ProjectsLocationsProductsAuthConfigsCreateCall) Context(ctx context.Context) *ProjectsLocationsProductsAuthConfigsCreateCall { +func (c *ProjectsLocationsProductsAuthConfigsListCall) Context(ctx context.Context) *ProjectsLocationsProductsAuthConfigsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsProductsAuthConfigsCreateCall) Header() http.Header { +func (c *ProjectsLocationsProductsAuthConfigsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsProductsAuthConfigsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsProductsAuthConfigsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-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.googlecloudintegrationsv1alphaauthconfig) - 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/{+parent}/authConfigs") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -17952,16 +17167,16 @@ func (c *ProjectsLocationsProductsAuthConfigsCreateCall) doRequest(alt string) ( return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "integrations.projects.locations.products.authConfigs.create" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaAuthConfig or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaAuthConfig.ServerResponse.Header or -// (if a response was returned at all) in +// Do executes the "integrations.projects.locations.products.authConfigs.list" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaListAuthConfigsResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudIntegrationsV1alphaListAuthConfigsResponse.ServerResponse. +// Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsProductsAuthConfigsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaAuthConfig, error) { +func (c *ProjectsLocationsProductsAuthConfigsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListAuthConfigsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -17980,7 +17195,7 @@ func (c *ProjectsLocationsProductsAuthConfigsCreateCall) Do(opts ...googleapi.Ca if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudIntegrationsV1alphaAuthConfig{ + ret := &GoogleCloudIntegrationsV1alphaListAuthConfigsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -17992,43 +17207,47 @@ func (c *ProjectsLocationsProductsAuthConfigsCreateCall) Do(opts ...googleapi.Ca } return ret, nil // { - // "description": "Creates an auth config record. Fetch corresponding credentials for specific auth types, e.g. access token for OAuth 2.0, JWT token for JWT. Encrypt the auth config with Cloud KMS and store the encrypted credentials in Spanner. Returns the encrypted auth config.", + // "description": "Lists all auth configs that match the filter. Restrict to auth configs belong to the current client only.", // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/authConfigs", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.products.authConfigs.create", + // "httpMethod": "GET", + // "id": "integrations.projects.locations.products.authConfigs.list", // "parameterOrder": [ // "parent" // ], // "parameters": { - // "clientCertificate.encryptedPrivateKey": { - // "description": "The ssl certificate encoded in PEM format. This string must include the begin header and end footer lines. For example, -----BEGIN CERTIFICATE----- MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----", + // "filter": { + // "description": "Filtering as supported in https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters.", // "location": "query", // "type": "string" // }, - // "clientCertificate.passphrase": { - // "description": "'passphrase' should be left unset if private key is not encrypted. Note that 'passphrase' is not the password for web server, but an extra layer of security to protected private key.", + // "pageSize": { + // "description": "The size of entries in the response. If unspecified, defaults to 100.", + // "format": "int32", // "location": "query", - // "type": "string" + // "type": "integer" // }, - // "clientCertificate.sslCertificate": { - // "description": "The ssl certificate encoded in PEM format. This string must include the begin header and end footer lines. For example, -----BEGIN CERTIFICATE----- MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----", + // "pageToken": { + // "description": "The token returned in the previous response.", // "location": "query", // "type": "string" // }, // "parent": { - // "description": "Required. \"projects/{project}/locations/{location}\" format.", + // "description": "Required. The client, which owns this collection of AuthConfigs.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+$", // "required": true, // "type": "string" + // }, + // "readMask": { + // "description": "The mask which specifies fields that need to be returned in the AuthConfig's response.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, // "path": "v1alpha/{+parent}/authConfigs", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaAuthConfig" - // }, // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaAuthConfig" + // "$ref": "GoogleCloudIntegrationsV1alphaListAuthConfigsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -18037,29 +17256,119 @@ func (c *ProjectsLocationsProductsAuthConfigsCreateCall) Do(opts ...googleapi.Ca } -// method id "integrations.projects.locations.products.authConfigs.delete": +// 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 *ProjectsLocationsProductsAuthConfigsListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListAuthConfigsResponse) 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 ProjectsLocationsProductsAuthConfigsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// method id "integrations.projects.locations.products.authConfigs.patch": + +type ProjectsLocationsProductsAuthConfigsPatchCall struct { + s *Service + name string + googlecloudintegrationsv1alphaauthconfig *GoogleCloudIntegrationsV1alphaAuthConfig + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Delete: Deletes an auth config. +// Patch: Updates an auth config. If credential is updated, fetch the +// encrypted auth config from Spanner, decrypt with Cloud KMS key, +// update the credential fields, re-encrypt with Cloud KMS key and +// update the Spanner record. For other fields, directly update the +// Spanner record. Returns the encrypted auth config. // -// - name: The name that is associated with the AuthConfig. -func (r *ProjectsLocationsProductsAuthConfigsService) Delete(name string) *ProjectsLocationsProductsAuthConfigsDeleteCall { - c := &ProjectsLocationsProductsAuthConfigsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Resource name of the SFDC instance +// projects/{project}/locations/{location}/authConfigs/{authConfig}. +func (r *ProjectsLocationsProductsAuthConfigsService) Patch(name string, googlecloudintegrationsv1alphaauthconfig *GoogleCloudIntegrationsV1alphaAuthConfig) *ProjectsLocationsProductsAuthConfigsPatchCall { + c := &ProjectsLocationsProductsAuthConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.googlecloudintegrationsv1alphaauthconfig = googlecloudintegrationsv1alphaauthconfig + return c +} + +// ClientCertificateEncryptedPrivateKey sets the optional parameter +// "clientCertificate.encryptedPrivateKey": The ssl certificate encoded +// in PEM format. This string must include the begin header and end +// footer lines. For example, -----BEGIN CERTIFICATE----- +// MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV +// BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw +// MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET +// MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA +// vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 +// JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB +// xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P +// AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB +// Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey +// Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW +// JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr +// 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H +// wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE----- +func (c *ProjectsLocationsProductsAuthConfigsPatchCall) ClientCertificateEncryptedPrivateKey(clientCertificateEncryptedPrivateKey string) *ProjectsLocationsProductsAuthConfigsPatchCall { + c.urlParams_.Set("clientCertificate.encryptedPrivateKey", clientCertificateEncryptedPrivateKey) + return c +} + +// ClientCertificatePassphrase sets the optional parameter +// "clientCertificate.passphrase": 'passphrase' should be left unset if +// private key is not encrypted. Note that 'passphrase' is not the +// password for web server, but an extra layer of security to protected +// private key. +func (c *ProjectsLocationsProductsAuthConfigsPatchCall) ClientCertificatePassphrase(clientCertificatePassphrase string) *ProjectsLocationsProductsAuthConfigsPatchCall { + c.urlParams_.Set("clientCertificate.passphrase", clientCertificatePassphrase) + return c +} + +// ClientCertificateSslCertificate sets the optional parameter +// "clientCertificate.sslCertificate": The ssl certificate encoded in +// PEM format. This string must include the begin header and end footer +// lines. For example, -----BEGIN CERTIFICATE----- +// MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV +// BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw +// MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET +// MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA +// vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 +// JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB +// xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P +// AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB +// Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey +// Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW +// JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr +// 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H +// wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE----- +func (c *ProjectsLocationsProductsAuthConfigsPatchCall) ClientCertificateSslCertificate(clientCertificateSslCertificate string) *ProjectsLocationsProductsAuthConfigsPatchCall { + c.urlParams_.Set("clientCertificate.sslCertificate", clientCertificateSslCertificate) + return c +} + +// UpdateMask sets the optional parameter "updateMask": Field mask +// specifying the fields in the above AuthConfig that have been modified +// and need to be updated. +func (c *ProjectsLocationsProductsAuthConfigsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsProductsAuthConfigsPatchCall { + 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 *ProjectsLocationsProductsAuthConfigsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsAuthConfigsDeleteCall { +func (c *ProjectsLocationsProductsAuthConfigsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsAuthConfigsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -18067,21 +17376,21 @@ func (c *ProjectsLocationsProductsAuthConfigsDeleteCall) 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 *ProjectsLocationsProductsAuthConfigsDeleteCall) Context(ctx context.Context) *ProjectsLocationsProductsAuthConfigsDeleteCall { +func (c *ProjectsLocationsProductsAuthConfigsPatchCall) Context(ctx context.Context) *ProjectsLocationsProductsAuthConfigsPatchCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsProductsAuthConfigsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsProductsAuthConfigsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsProductsAuthConfigsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsProductsAuthConfigsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -18089,11 +17398,16 @@ func (c *ProjectsLocationsProductsAuthConfigsDeleteCall) doRequest(alt string) ( } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaauthconfig) + 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("DELETE", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } @@ -18104,14 +17418,16 @@ func (c *ProjectsLocationsProductsAuthConfigsDeleteCall) doRequest(alt string) ( return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "integrations.projects.locations.products.authConfigs.delete" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *ProjectsLocationsProductsAuthConfigsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +// Do executes the "integrations.projects.locations.products.authConfigs.patch" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaAuthConfig or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaAuthConfig.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsProductsAuthConfigsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaAuthConfig, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -18130,7 +17446,7 @@ func (c *ProjectsLocationsProductsAuthConfigsDeleteCall) Do(opts ...googleapi.Ca if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleProtobufEmpty{ + ret := &GoogleCloudIntegrationsV1alphaAuthConfig{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -18142,25 +17458,49 @@ func (c *ProjectsLocationsProductsAuthConfigsDeleteCall) Do(opts ...googleapi.Ca } return ret, nil // { - // "description": "Deletes an auth config.", + // "description": "Updates an auth config. If credential is updated, fetch the encrypted auth config from Spanner, decrypt with Cloud KMS key, update the credential fields, re-encrypt with Cloud KMS key and update the Spanner record. For other fields, directly update the Spanner record. Returns the encrypted auth config.", // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/authConfigs/{authConfigsId}", - // "httpMethod": "DELETE", - // "id": "integrations.projects.locations.products.authConfigs.delete", + // "httpMethod": "PATCH", + // "id": "integrations.projects.locations.products.authConfigs.patch", // "parameterOrder": [ // "name" // ], // "parameters": { + // "clientCertificate.encryptedPrivateKey": { + // "description": "The ssl certificate encoded in PEM format. This string must include the begin header and end footer lines. For example, -----BEGIN CERTIFICATE----- MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----", + // "location": "query", + // "type": "string" + // }, + // "clientCertificate.passphrase": { + // "description": "'passphrase' should be left unset if private key is not encrypted. Note that 'passphrase' is not the password for web server, but an extra layer of security to protected private key.", + // "location": "query", + // "type": "string" + // }, + // "clientCertificate.sslCertificate": { + // "description": "The ssl certificate encoded in PEM format. This string must include the begin header and end footer lines. For example, -----BEGIN CERTIFICATE----- MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----", + // "location": "query", + // "type": "string" + // }, // "name": { - // "description": "Required. The name that is associated with the AuthConfig.", + // "description": "Resource name of the SFDC instance projects/{project}/locations/{location}/authConfigs/{authConfig}.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/authConfigs/[^/]+$", // "required": true, // "type": "string" + // }, + // "updateMask": { + // "description": "Field mask specifying the fields in the above AuthConfig that have been modified and need to be updated.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, // "path": "v1alpha/{+name}", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaAuthConfig" + // }, // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleCloudIntegrationsV1alphaAuthConfig" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -18169,99 +17509,92 @@ func (c *ProjectsLocationsProductsAuthConfigsDeleteCall) Do(opts ...googleapi.Ca } -// method id "integrations.projects.locations.products.authConfigs.get": +// method id "integrations.projects.locations.products.certificates.create": -type ProjectsLocationsProductsAuthConfigsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsProductsCertificatesCreateCall struct { + s *Service + parent string + googlecloudintegrationsv1alphacertificate *GoogleCloudIntegrationsV1alphaCertificate + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets a complete auth config. If the auth config doesn't exist, -// Code.NOT_FOUND exception will be thrown. Returns the decrypted auth -// config. +// Create: Creates a new certificate. The certificate will be registered +// to the trawler service and will be encrypted using cloud KMS and +// stored in Spanner Returns the certificate. // -// - name: The name that is associated with the AuthConfig. -func (r *ProjectsLocationsProductsAuthConfigsService) Get(name string) *ProjectsLocationsProductsAuthConfigsGetCall { - c := &ProjectsLocationsProductsAuthConfigsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: "projects/{project}/locations/{location}" format. +func (r *ProjectsLocationsProductsCertificatesService) Create(parent string, googlecloudintegrationsv1alphacertificate *GoogleCloudIntegrationsV1alphaCertificate) *ProjectsLocationsProductsCertificatesCreateCall { + c := &ProjectsLocationsProductsCertificatesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudintegrationsv1alphacertificate = googlecloudintegrationsv1alphacertificate return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsProductsAuthConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsAuthConfigsGetCall { +func (c *ProjectsLocationsProductsCertificatesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsCertificatesCreateCall { 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 *ProjectsLocationsProductsAuthConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsAuthConfigsGetCall { - 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 *ProjectsLocationsProductsAuthConfigsGetCall) Context(ctx context.Context) *ProjectsLocationsProductsAuthConfigsGetCall { +func (c *ProjectsLocationsProductsCertificatesCreateCall) Context(ctx context.Context) *ProjectsLocationsProductsCertificatesCreateCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsProductsAuthConfigsGetCall) Header() http.Header { +func (c *ProjectsLocationsProductsCertificatesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsProductsAuthConfigsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsProductsCertificatesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-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.googlecloudintegrationsv1alphacertificate) + 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/{+parent}/certificates") 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, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "integrations.projects.locations.products.authConfigs.get" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaAuthConfig or error +// Do executes the "integrations.projects.locations.products.certificates.create" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaCertificate or error // will be non-nil. Any non-2xx status code is an error. Response // headers are in either -// *GoogleCloudIntegrationsV1alphaAuthConfig.ServerResponse.Header or +// *GoogleCloudIntegrationsV1alphaCertificate.ServerResponse.Header or // (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsProductsAuthConfigsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaAuthConfig, error) { +func (c *ProjectsLocationsProductsCertificatesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaCertificate, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -18280,7 +17613,7 @@ func (c *ProjectsLocationsProductsAuthConfigsGetCall) Do(opts ...googleapi.CallO if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudIntegrationsV1alphaAuthConfig{ + ret := &GoogleCloudIntegrationsV1alphaCertificate{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -18292,25 +17625,28 @@ func (c *ProjectsLocationsProductsAuthConfigsGetCall) Do(opts ...googleapi.CallO } return ret, nil // { - // "description": "Gets a complete auth config. If the auth config doesn't exist, Code.NOT_FOUND exception will be thrown. Returns the decrypted auth config.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/authConfigs/{authConfigsId}", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.products.authConfigs.get", + // "description": "Creates a new certificate. The certificate will be registered to the trawler service and will be encrypted using cloud KMS and stored in Spanner Returns the certificate.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/certificates", + // "httpMethod": "POST", + // "id": "integrations.projects.locations.products.certificates.create", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "Required. The name that is associated with the AuthConfig.", + // "parent": { + // "description": "Required. \"projects/{project}/locations/{location}\" format.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/authConfigs/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1alpha/{+name}", + // "path": "v1alpha/{+parent}/certificates", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaCertificate" + // }, // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaAuthConfig" + // "$ref": "GoogleCloudIntegrationsV1alphaCertificate" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -18319,61 +17655,163 @@ func (c *ProjectsLocationsProductsAuthConfigsGetCall) Do(opts ...googleapi.CallO } -// method id "integrations.projects.locations.products.authConfigs.list": +// method id "integrations.projects.locations.products.certificates.delete": -type ProjectsLocationsProductsAuthConfigsListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsProductsCertificatesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists all auth configs that match the filter. Restrict to auth -// configs belong to the current client only. +// Delete: Delete a certificate // -// - parent: The client, which owns this collection of AuthConfigs. -func (r *ProjectsLocationsProductsAuthConfigsService) List(parent string) *ProjectsLocationsProductsAuthConfigsListCall { - c := &ProjectsLocationsProductsAuthConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent +// - name: The name that is associated with the Certificate. +func (r *ProjectsLocationsProductsCertificatesService) Delete(name string) *ProjectsLocationsProductsCertificatesDeleteCall { + c := &ProjectsLocationsProductsCertificatesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } -// Filter sets the optional parameter "filter": Filtering as supported -// in -// https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters. -func (c *ProjectsLocationsProductsAuthConfigsListCall) Filter(filter string) *ProjectsLocationsProductsAuthConfigsListCall { - c.urlParams_.Set("filter", filter) +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProductsCertificatesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsCertificatesDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// PageSize sets the optional parameter "pageSize": The size of entries -// in the response. If unspecified, defaults to 100. -func (c *ProjectsLocationsProductsAuthConfigsListCall) PageSize(pageSize int64) *ProjectsLocationsProductsAuthConfigsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProductsCertificatesDeleteCall) Context(ctx context.Context) *ProjectsLocationsProductsCertificatesDeleteCall { + c.ctx_ = ctx return c } -// PageToken sets the optional parameter "pageToken": The token returned -// in the previous response. -func (c *ProjectsLocationsProductsAuthConfigsListCall) PageToken(pageToken string) *ProjectsLocationsProductsAuthConfigsListCall { - c.urlParams_.Set("pageToken", pageToken) - return c +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProductsCertificatesDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ } -// ReadMask sets the optional parameter "readMask": The mask which -// specifies fields that need to be returned in the AuthConfig's -// response. -func (c *ProjectsLocationsProductsAuthConfigsListCall) ReadMask(readMask string) *ProjectsLocationsProductsAuthConfigsListCall { - c.urlParams_.Set("readMask", readMask) +func (c *ProjectsLocationsProductsCertificatesDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-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 "integrations.projects.locations.products.certificates.delete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsProductsCertificatesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Delete a certificate", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/certificates/{certificatesId}", + // "httpMethod": "DELETE", + // "id": "integrations.projects.locations.products.certificates.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name that is associated with the Certificate.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/certificates/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+name}", + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.products.certificates.get": + +type ProjectsLocationsProductsCertificatesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Get a certificates in the specified project. +// +// - name: The certificate to retrieve. Format: +// projects/{project}/locations/{location}/certificates/{certificate}. +func (r *ProjectsLocationsProductsCertificatesService) Get(name string) *ProjectsLocationsProductsCertificatesGetCall { + c := &ProjectsLocationsProductsCertificatesGetCall{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 *ProjectsLocationsProductsAuthConfigsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsAuthConfigsListCall { +func (c *ProjectsLocationsProductsCertificatesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsCertificatesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -18383,7 +17821,7 @@ func (c *ProjectsLocationsProductsAuthConfigsListCall) 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 *ProjectsLocationsProductsAuthConfigsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsAuthConfigsListCall { +func (c *ProjectsLocationsProductsCertificatesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsCertificatesGetCall { c.ifNoneMatch_ = entityTag return c } @@ -18391,21 +17829,21 @@ func (c *ProjectsLocationsProductsAuthConfigsListCall) 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 *ProjectsLocationsProductsAuthConfigsListCall) Context(ctx context.Context) *ProjectsLocationsProductsAuthConfigsListCall { +func (c *ProjectsLocationsProductsCertificatesGetCall) Context(ctx context.Context) *ProjectsLocationsProductsCertificatesGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsProductsAuthConfigsListCall) Header() http.Header { +func (c *ProjectsLocationsProductsCertificatesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsProductsAuthConfigsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsProductsCertificatesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -18418,7 +17856,7 @@ func (c *ProjectsLocationsProductsAuthConfigsListCall) doRequest(alt string) (*h var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/authConfigs") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -18426,21 +17864,21 @@ func (c *ProjectsLocationsProductsAuthConfigsListCall) doRequest(alt string) (*h } 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 "integrations.projects.locations.products.authConfigs.list" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaListAuthConfigsResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudIntegrationsV1alphaListAuthConfigsResponse.ServerResponse. -// Header or (if a response was returned at all) in +// Do executes the "integrations.projects.locations.products.certificates.get" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaCertificate or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaCertificate.ServerResponse.Header or +// (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsProductsAuthConfigsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListAuthConfigsResponse, error) { +func (c *ProjectsLocationsProductsCertificatesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaCertificate, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -18459,7 +17897,7 @@ func (c *ProjectsLocationsProductsAuthConfigsListCall) Do(opts ...googleapi.Call if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudIntegrationsV1alphaListAuthConfigsResponse{ + ret := &GoogleCloudIntegrationsV1alphaCertificate{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -18471,47 +17909,25 @@ func (c *ProjectsLocationsProductsAuthConfigsListCall) Do(opts ...googleapi.Call } return ret, nil // { - // "description": "Lists all auth configs that match the filter. Restrict to auth configs belong to the current client only.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/authConfigs", + // "description": "Get a certificates in the specified project.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/certificates/{certificatesId}", // "httpMethod": "GET", - // "id": "integrations.projects.locations.products.authConfigs.list", + // "id": "integrations.projects.locations.products.certificates.get", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "filter": { - // "description": "Filtering as supported in https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The size of entries in the response. If unspecified, defaults to 100.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The token returned in the previous response.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The client, which owns this collection of AuthConfigs.", + // "name": { + // "description": "Required. The certificate to retrieve. Format: projects/{project}/locations/{location}/certificates/{certificate}", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/certificates/[^/]+$", // "required": true, // "type": "string" - // }, - // "readMask": { - // "description": "The mask which specifies fields that need to be returned in the AuthConfig's response.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1alpha/{+parent}/authConfigs", + // "path": "v1alpha/{+name}", // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaListAuthConfigsResponse" + // "$ref": "GoogleCloudIntegrationsV1alphaCertificate" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -18520,178 +17936,129 @@ func (c *ProjectsLocationsProductsAuthConfigsListCall) Do(opts ...googleapi.Call } -// 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 *ProjectsLocationsProductsAuthConfigsListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListAuthConfigsResponse) 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 "integrations.projects.locations.products.authConfigs.patch": +// method id "integrations.projects.locations.products.certificates.list": -type ProjectsLocationsProductsAuthConfigsPatchCall struct { - s *Service - name string - googlecloudintegrationsv1alphaauthconfig *GoogleCloudIntegrationsV1alphaAuthConfig - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsProductsCertificatesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Patch: Updates an auth config. If credential is updated, fetch the -// encrypted auth config from Spanner, decrypt with Cloud KMS key, -// update the credential fields, re-encrypt with Cloud KMS key and -// update the Spanner record. For other fields, directly update the -// Spanner record. Returns the encrypted auth config. +// List: List all the certificates that match the filter. Restrict to +// certificate of current client only. // -// - name: Resource name of the SFDC instance -// projects/{project}/locations/{location}/authConfigs/{authConfig}. -func (r *ProjectsLocationsProductsAuthConfigsService) Patch(name string, googlecloudintegrationsv1alphaauthconfig *GoogleCloudIntegrationsV1alphaAuthConfig) *ProjectsLocationsProductsAuthConfigsPatchCall { - c := &ProjectsLocationsProductsAuthConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.googlecloudintegrationsv1alphaauthconfig = googlecloudintegrationsv1alphaauthconfig +// - parent: The client, which owns this collection of Certificates. +func (r *ProjectsLocationsProductsCertificatesService) List(parent string) *ProjectsLocationsProductsCertificatesListCall { + c := &ProjectsLocationsProductsCertificatesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent return c } -// ClientCertificateEncryptedPrivateKey sets the optional parameter -// "clientCertificate.encryptedPrivateKey": The ssl certificate encoded -// in PEM format. This string must include the begin header and end -// footer lines. For example, -----BEGIN CERTIFICATE----- -// MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV -// BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw -// MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET -// MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA -// vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 -// JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB -// xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P -// AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB -// Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey -// Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW -// JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr -// 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H -// wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE----- -func (c *ProjectsLocationsProductsAuthConfigsPatchCall) ClientCertificateEncryptedPrivateKey(clientCertificateEncryptedPrivateKey string) *ProjectsLocationsProductsAuthConfigsPatchCall { - c.urlParams_.Set("clientCertificate.encryptedPrivateKey", clientCertificateEncryptedPrivateKey) +// Filter sets the optional parameter "filter": Filtering as supported +// in +// https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters. +func (c *ProjectsLocationsProductsCertificatesListCall) Filter(filter string) *ProjectsLocationsProductsCertificatesListCall { + c.urlParams_.Set("filter", filter) return c } -// ClientCertificatePassphrase sets the optional parameter -// "clientCertificate.passphrase": 'passphrase' should be left unset if -// private key is not encrypted. Note that 'passphrase' is not the -// password for web server, but an extra layer of security to protected -// private key. -func (c *ProjectsLocationsProductsAuthConfigsPatchCall) ClientCertificatePassphrase(clientCertificatePassphrase string) *ProjectsLocationsProductsAuthConfigsPatchCall { - c.urlParams_.Set("clientCertificate.passphrase", clientCertificatePassphrase) +// PageSize sets the optional parameter "pageSize": The size of entries +// in the response. If unspecified, defaults to 100. +func (c *ProjectsLocationsProductsCertificatesListCall) PageSize(pageSize int64) *ProjectsLocationsProductsCertificatesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// ClientCertificateSslCertificate sets the optional parameter -// "clientCertificate.sslCertificate": The ssl certificate encoded in -// PEM format. This string must include the begin header and end footer -// lines. For example, -----BEGIN CERTIFICATE----- -// MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV -// BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw -// MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET -// MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA -// vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 -// JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB -// xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P -// AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB -// Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey -// Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW -// JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr -// 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H -// wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE----- -func (c *ProjectsLocationsProductsAuthConfigsPatchCall) ClientCertificateSslCertificate(clientCertificateSslCertificate string) *ProjectsLocationsProductsAuthConfigsPatchCall { - c.urlParams_.Set("clientCertificate.sslCertificate", clientCertificateSslCertificate) +// PageToken sets the optional parameter "pageToken": The token returned +// in the previous response. +func (c *ProjectsLocationsProductsCertificatesListCall) PageToken(pageToken string) *ProjectsLocationsProductsCertificatesListCall { + c.urlParams_.Set("pageToken", pageToken) return c } -// UpdateMask sets the optional parameter "updateMask": Field mask -// specifying the fields in the above AuthConfig that have been modified -// and need to be updated. -func (c *ProjectsLocationsProductsAuthConfigsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsProductsAuthConfigsPatchCall { - c.urlParams_.Set("updateMask", updateMask) +// ReadMask sets the optional parameter "readMask": The mask which +// specifies fields that need to be returned in the Certificate's +// response. +func (c *ProjectsLocationsProductsCertificatesListCall) ReadMask(readMask string) *ProjectsLocationsProductsCertificatesListCall { + c.urlParams_.Set("readMask", readMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsProductsAuthConfigsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsAuthConfigsPatchCall { +func (c *ProjectsLocationsProductsCertificatesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsCertificatesListCall { 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 *ProjectsLocationsProductsCertificatesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsCertificatesListCall { + 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 *ProjectsLocationsProductsAuthConfigsPatchCall) Context(ctx context.Context) *ProjectsLocationsProductsAuthConfigsPatchCall { +func (c *ProjectsLocationsProductsCertificatesListCall) Context(ctx context.Context) *ProjectsLocationsProductsCertificatesListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsProductsAuthConfigsPatchCall) Header() http.Header { +func (c *ProjectsLocationsProductsCertificatesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsProductsAuthConfigsPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsProductsCertificatesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-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.googlecloudintegrationsv1alphaauthconfig) - 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 := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/certificates") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", 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, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "integrations.projects.locations.products.authConfigs.patch" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaAuthConfig or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaAuthConfig.ServerResponse.Header or -// (if a response was returned at all) in +// Do executes the "integrations.projects.locations.products.certificates.list" call. +// Exactly one of +// *GoogleCloudIntegrationsV1alphaListCertificatesResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudIntegrationsV1alphaListCertificatesResponse.ServerResponse +// .Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsProductsAuthConfigsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaAuthConfig, error) { +func (c *ProjectsLocationsProductsCertificatesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListCertificatesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -18710,7 +18077,7 @@ func (c *ProjectsLocationsProductsAuthConfigsPatchCall) Do(opts ...googleapi.Cal if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudIntegrationsV1alphaAuthConfig{ + ret := &GoogleCloudIntegrationsV1alphaListCertificatesResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -18722,49 +18089,47 @@ func (c *ProjectsLocationsProductsAuthConfigsPatchCall) Do(opts ...googleapi.Cal } return ret, nil // { - // "description": "Updates an auth config. If credential is updated, fetch the encrypted auth config from Spanner, decrypt with Cloud KMS key, update the credential fields, re-encrypt with Cloud KMS key and update the Spanner record. For other fields, directly update the Spanner record. Returns the encrypted auth config.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/authConfigs/{authConfigsId}", - // "httpMethod": "PATCH", - // "id": "integrations.projects.locations.products.authConfigs.patch", + // "description": "List all the certificates that match the filter. Restrict to certificate of current client only.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/certificates", + // "httpMethod": "GET", + // "id": "integrations.projects.locations.products.certificates.list", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "clientCertificate.encryptedPrivateKey": { - // "description": "The ssl certificate encoded in PEM format. This string must include the begin header and end footer lines. For example, -----BEGIN CERTIFICATE----- MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----", + // "filter": { + // "description": "Filtering as supported in https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters.", // "location": "query", // "type": "string" // }, - // "clientCertificate.passphrase": { - // "description": "'passphrase' should be left unset if private key is not encrypted. Note that 'passphrase' is not the password for web server, but an extra layer of security to protected private key.", + // "pageSize": { + // "description": "The size of entries in the response. If unspecified, defaults to 100.", + // "format": "int32", // "location": "query", - // "type": "string" + // "type": "integer" // }, - // "clientCertificate.sslCertificate": { - // "description": "The ssl certificate encoded in PEM format. This string must include the begin header and end footer lines. For example, -----BEGIN CERTIFICATE----- MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----", + // "pageToken": { + // "description": "The token returned in the previous response.", // "location": "query", // "type": "string" // }, - // "name": { - // "description": "Resource name of the SFDC instance projects/{project}/locations/{location}/authConfigs/{authConfig}.", + // "parent": { + // "description": "Required. The client, which owns this collection of Certificates.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/authConfigs/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+$", // "required": true, // "type": "string" // }, - // "updateMask": { - // "description": "Field mask specifying the fields in the above AuthConfig that have been modified and need to be updated.", + // "readMask": { + // "description": "The mask which specifies fields that need to be returned in the Certificate's response.", // "format": "google-fieldmask", // "location": "query", // "type": "string" // } // }, - // "path": "v1alpha/{+name}", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaAuthConfig" - // }, + // "path": "v1alpha/{+parent}/certificates", // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaAuthConfig" + // "$ref": "GoogleCloudIntegrationsV1alphaListCertificatesResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -18773,33 +18138,63 @@ func (c *ProjectsLocationsProductsAuthConfigsPatchCall) Do(opts ...googleapi.Cal } -// method id "integrations.projects.locations.products.certificates.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 *ProjectsLocationsProductsCertificatesListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListCertificatesResponse) 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 ProjectsLocationsProductsCertificatesCreateCall struct { +// method id "integrations.projects.locations.products.certificates.patch": + +type ProjectsLocationsProductsCertificatesPatchCall struct { s *Service - parent string + name string googlecloudintegrationsv1alphacertificate *GoogleCloudIntegrationsV1alphaCertificate urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } -// Create: Creates a new certificate. The certificate will be registered -// to the trawler service and will be encrypted using cloud KMS and -// stored in Spanner Returns the certificate. +// Patch: Updates the certificate by id. If new certificate file is +// updated, it will register with the trawler service, re-encrypt with +// cloud KMS and update the Spanner record. Other fields will directly +// update the Spanner record. Returns the Certificate. // -// - parent: "projects/{project}/locations/{location}" format. -func (r *ProjectsLocationsProductsCertificatesService) Create(parent string, googlecloudintegrationsv1alphacertificate *GoogleCloudIntegrationsV1alphaCertificate) *ProjectsLocationsProductsCertificatesCreateCall { - c := &ProjectsLocationsProductsCertificatesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudintegrationsv1alphacertificate = googlecloudintegrationsv1alphacertificate - return c -} +// - name: Output only. Auto generated primary key. +func (r *ProjectsLocationsProductsCertificatesService) Patch(name string, googlecloudintegrationsv1alphacertificate *GoogleCloudIntegrationsV1alphaCertificate) *ProjectsLocationsProductsCertificatesPatchCall { + c := &ProjectsLocationsProductsCertificatesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudintegrationsv1alphacertificate = googlecloudintegrationsv1alphacertificate + return c +} + +// UpdateMask sets the optional parameter "updateMask": Field mask +// specifying the fields in the above Certificate that have been +// modified and need to be updated. +func (c *ProjectsLocationsProductsCertificatesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsProductsCertificatesPatchCall { + 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 *ProjectsLocationsProductsCertificatesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsCertificatesCreateCall { +func (c *ProjectsLocationsProductsCertificatesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsCertificatesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -18807,21 +18202,21 @@ func (c *ProjectsLocationsProductsCertificatesCreateCall) 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 *ProjectsLocationsProductsCertificatesCreateCall) Context(ctx context.Context) *ProjectsLocationsProductsCertificatesCreateCall { +func (c *ProjectsLocationsProductsCertificatesPatchCall) Context(ctx context.Context) *ProjectsLocationsProductsCertificatesPatchCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsProductsCertificatesCreateCall) Header() http.Header { +func (c *ProjectsLocationsProductsCertificatesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsProductsCertificatesCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsProductsCertificatesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -18836,20 +18231,20 @@ func (c *ProjectsLocationsProductsCertificatesCreateCall) doRequest(alt string) reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/certificates") + 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{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "integrations.projects.locations.products.certificates.create" call. +// Do executes the "integrations.projects.locations.products.certificates.patch" call. // Exactly one of *GoogleCloudIntegrationsV1alphaCertificate or error // will be non-nil. Any non-2xx status code is an error. Response // headers are in either @@ -18858,7 +18253,7 @@ func (c *ProjectsLocationsProductsCertificatesCreateCall) doRequest(alt string) // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsProductsCertificatesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaCertificate, error) { +func (c *ProjectsLocationsProductsCertificatesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaCertificate, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -18889,23 +18284,29 @@ func (c *ProjectsLocationsProductsCertificatesCreateCall) Do(opts ...googleapi.C } return ret, nil // { - // "description": "Creates a new certificate. The certificate will be registered to the trawler service and will be encrypted using cloud KMS and stored in Spanner Returns the certificate.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/certificates", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.products.certificates.create", + // "description": "Updates the certificate by id. If new certificate file is updated, it will register with the trawler service, re-encrypt with cloud KMS and update the Spanner record. Other fields will directly update the Spanner record. Returns the Certificate.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/certificates/{certificatesId}", + // "httpMethod": "PATCH", + // "id": "integrations.projects.locations.products.certificates.patch", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "parent": { - // "description": "Required. \"projects/{project}/locations/{location}\" format.", + // "name": { + // "description": "Output only. Auto generated primary key", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/certificates/[^/]+$", // "required": true, // "type": "string" + // }, + // "updateMask": { + // "description": "Field mask specifying the fields in the above Certificate that have been modified and need to be updated.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1alpha/{+parent}/certificates", + // "path": "v1alpha/{+name}", // "request": { // "$ref": "GoogleCloudIntegrationsV1alphaCertificate" // }, @@ -18919,29 +18320,37 @@ func (c *ProjectsLocationsProductsCertificatesCreateCall) Do(opts ...googleapi.C } -// method id "integrations.projects.locations.products.certificates.delete": +// method id "integrations.projects.locations.products.integrations.execute": -type ProjectsLocationsProductsCertificatesDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsProductsIntegrationsExecuteCall struct { + s *Service + name string + googlecloudintegrationsv1alphaexecuteintegrationsrequest *GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Delete: Delete a certificate +// Execute: Executes integrations synchronously by passing the trigger +// id in the request body. The request is not returned until the +// requested executions are either fulfilled or experienced an error. If +// the integration name is not specified (passing `-`), all of the +// associated integration under the given trigger_id will be executed. +// Otherwise only the specified integration for the given `trigger_id` +// is executed. This is helpful for execution the integration from UI. // -// - name: The name that is associated with the Certificate. -func (r *ProjectsLocationsProductsCertificatesService) Delete(name string) *ProjectsLocationsProductsCertificatesDeleteCall { - c := &ProjectsLocationsProductsCertificatesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The integration resource name. +func (r *ProjectsLocationsProductsIntegrationsService) Execute(name string, googlecloudintegrationsv1alphaexecuteintegrationsrequest *GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest) *ProjectsLocationsProductsIntegrationsExecuteCall { + c := &ProjectsLocationsProductsIntegrationsExecuteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.googlecloudintegrationsv1alphaexecuteintegrationsrequest = googlecloudintegrationsv1alphaexecuteintegrationsrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsProductsCertificatesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsCertificatesDeleteCall { +func (c *ProjectsLocationsProductsIntegrationsExecuteCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsExecuteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -18949,21 +18358,21 @@ func (c *ProjectsLocationsProductsCertificatesDeleteCall) 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 *ProjectsLocationsProductsCertificatesDeleteCall) Context(ctx context.Context) *ProjectsLocationsProductsCertificatesDeleteCall { +func (c *ProjectsLocationsProductsIntegrationsExecuteCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsExecuteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsProductsCertificatesDeleteCall) Header() http.Header { +func (c *ProjectsLocationsProductsIntegrationsExecuteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsProductsCertificatesDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsProductsIntegrationsExecuteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -18971,11 +18380,16 @@ func (c *ProjectsLocationsProductsCertificatesDeleteCall) doRequest(alt string) } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaexecuteintegrationsrequest) + 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/{+name}:execute") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -18986,14 +18400,17 @@ func (c *ProjectsLocationsProductsCertificatesDeleteCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "integrations.projects.locations.products.certificates.delete" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *ProjectsLocationsProductsCertificatesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +// Do executes the "integrations.projects.locations.products.integrations.execute" call. +// Exactly one of +// *GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse.ServerRespo +// nse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsProductsIntegrationsExecuteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -19012,7 +18429,7 @@ func (c *ProjectsLocationsProductsCertificatesDeleteCall) Do(opts ...googleapi.C if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleProtobufEmpty{ + ret := &GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -19024,25 +18441,28 @@ func (c *ProjectsLocationsProductsCertificatesDeleteCall) Do(opts ...googleapi.C } return ret, nil // { - // "description": "Delete a certificate", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/certificates/{certificatesId}", - // "httpMethod": "DELETE", - // "id": "integrations.projects.locations.products.certificates.delete", + // "description": "Executes integrations synchronously by passing the trigger id in the request body. The request is not returned until the requested executions are either fulfilled or experienced an error. If the integration name is not specified (passing `-`), all of the associated integration under the given trigger_id will be executed. Otherwise only the specified integration for the given `trigger_id` is executed. This is helpful for execution the integration from UI.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}:execute", + // "httpMethod": "POST", + // "id": "integrations.projects.locations.products.integrations.execute", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name that is associated with the Certificate.", + // "description": "Required. The integration resource name.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/certificates/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1alpha/{+name}", + // "path": "v1alpha/{+name}:execute", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest" + // }, // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -19051,31 +18471,67 @@ func (c *ProjectsLocationsProductsCertificatesDeleteCall) Do(opts ...googleapi.C } -// method id "integrations.projects.locations.products.certificates.get": +// method id "integrations.projects.locations.products.integrations.list": -type ProjectsLocationsProductsCertificatesGetCall struct { +type ProjectsLocationsProductsIntegrationsListCall struct { s *Service - name string + parent string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// Get: Get a certificates in the specified project. +// List: Returns the list of all integrations in the specified project. // -// - name: The certificate to retrieve. Format: -// projects/{project}/locations/{location}/certificates/{certificate}. -func (r *ProjectsLocationsProductsCertificatesService) Get(name string) *ProjectsLocationsProductsCertificatesGetCall { - c := &ProjectsLocationsProductsCertificatesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: Project and location from which the integrations should be +// listed. Format: projects/{project}. +func (r *ProjectsLocationsProductsIntegrationsService) List(parent string) *ProjectsLocationsProductsIntegrationsListCall { + c := &ProjectsLocationsProductsIntegrationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Filter on fields of +// IntegrationVersion. Fields can be compared with literal values by use +// of ":" (containment), "=" (equality), ">" (greater), "<" (less than), +// >=" (greater than or equal to), "<=" (less than or equal to), and +// "!=" (inequality) operators. Negation, conjunction, and disjunction +// are written using NOT, AND, and OR keywords. For example, +// organization_id=\"1\" AND state=ACTIVE AND description:"test". +// Filtering cannot be performed on repeated fields like `task_config`. +func (c *ProjectsLocationsProductsIntegrationsListCall) Filter(filter string) *ProjectsLocationsProductsIntegrationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": The results would be +// returned in order you specified here. Supported sort keys are: +// Descending sort order by "last_modified_time", "created_time", +// "snapshot_number". Ascending sort order by the integration name. +func (c *ProjectsLocationsProductsIntegrationsListCall) OrderBy(orderBy string) *ProjectsLocationsProductsIntegrationsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The page size for +// the resquest. +func (c *ProjectsLocationsProductsIntegrationsListCall) PageSize(pageSize int64) *ProjectsLocationsProductsIntegrationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The page token for +// the resquest. +func (c *ProjectsLocationsProductsIntegrationsListCall) PageToken(pageToken string) *ProjectsLocationsProductsIntegrationsListCall { + 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 *ProjectsLocationsProductsCertificatesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsCertificatesGetCall { +func (c *ProjectsLocationsProductsIntegrationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -19085,7 +18541,7 @@ func (c *ProjectsLocationsProductsCertificatesGetCall) 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 *ProjectsLocationsProductsCertificatesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsCertificatesGetCall { +func (c *ProjectsLocationsProductsIntegrationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsIntegrationsListCall { c.ifNoneMatch_ = entityTag return c } @@ -19093,21 +18549,21 @@ func (c *ProjectsLocationsProductsCertificatesGetCall) 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 *ProjectsLocationsProductsCertificatesGetCall) Context(ctx context.Context) *ProjectsLocationsProductsCertificatesGetCall { +func (c *ProjectsLocationsProductsIntegrationsListCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsProductsCertificatesGetCall) Header() http.Header { +func (c *ProjectsLocationsProductsIntegrationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsProductsCertificatesGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsProductsIntegrationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -19120,7 +18576,7 @@ func (c *ProjectsLocationsProductsCertificatesGetCall) doRequest(alt string) (*h 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/{+parent}/integrations") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -19128,21 +18584,22 @@ func (c *ProjectsLocationsProductsCertificatesGetCall) doRequest(alt string) (*h } 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 "integrations.projects.locations.products.certificates.get" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaCertificate or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaCertificate.ServerResponse.Header or -// (if a response was returned at all) in +// Do executes the "integrations.projects.locations.products.integrations.list" call. +// Exactly one of +// *GoogleCloudIntegrationsV1alphaListIntegrationsResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudIntegrationsV1alphaListIntegrationsResponse.ServerResponse +// .Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsProductsCertificatesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaCertificate, error) { +func (c *ProjectsLocationsProductsIntegrationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListIntegrationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -19161,7 +18618,7 @@ func (c *ProjectsLocationsProductsCertificatesGetCall) Do(opts ...googleapi.Call if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudIntegrationsV1alphaCertificate{ + ret := &GoogleCloudIntegrationsV1alphaListIntegrationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -19173,227 +18630,46 @@ func (c *ProjectsLocationsProductsCertificatesGetCall) Do(opts ...googleapi.Call } return ret, nil // { - // "description": "Get a certificates in the specified project.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/certificates/{certificatesId}", + // "description": "Returns the list of all integrations in the specified project.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations", // "httpMethod": "GET", - // "id": "integrations.projects.locations.products.certificates.get", + // "id": "integrations.projects.locations.products.integrations.list", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "Required. The certificate to retrieve. Format: projects/{project}/locations/{location}/certificates/{certificate}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/certificates/[^/]+$", - // "required": true, + // "filter": { + // "description": "Filter on fields of IntegrationVersion. Fields can be compared with literal values by use of \":\" (containment), \"=\" (equality), \"\u003e\" (greater), \"\u003c\" (less than), \u003e=\" (greater than or equal to), \"\u003c=\" (less than or equal to), and \"!=\" (inequality) operators. Negation, conjunction, and disjunction are written using NOT, AND, and OR keywords. For example, organization_id=\\\"1\\\" AND state=ACTIVE AND description:\"test\". Filtering cannot be performed on repeated fields like `task_config`.", + // "location": "query", // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaCertificate" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.certificates.list": - -type ProjectsLocationsProductsCertificatesListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: List all the certificates that match the filter. Restrict to -// certificate of current client only. -// -// - parent: The client, which owns this collection of Certificates. -func (r *ProjectsLocationsProductsCertificatesService) List(parent string) *ProjectsLocationsProductsCertificatesListCall { - c := &ProjectsLocationsProductsCertificatesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// Filter sets the optional parameter "filter": Filtering as supported -// in -// https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters. -func (c *ProjectsLocationsProductsCertificatesListCall) Filter(filter string) *ProjectsLocationsProductsCertificatesListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// PageSize sets the optional parameter "pageSize": The size of entries -// in the response. If unspecified, defaults to 100. -func (c *ProjectsLocationsProductsCertificatesListCall) PageSize(pageSize int64) *ProjectsLocationsProductsCertificatesListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The token returned -// in the previous response. -func (c *ProjectsLocationsProductsCertificatesListCall) PageToken(pageToken string) *ProjectsLocationsProductsCertificatesListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// ReadMask sets the optional parameter "readMask": The mask which -// specifies fields that need to be returned in the Certificate's -// response. -func (c *ProjectsLocationsProductsCertificatesListCall) ReadMask(readMask string) *ProjectsLocationsProductsCertificatesListCall { - c.urlParams_.Set("readMask", readMask) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsProductsCertificatesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsCertificatesListCall { - 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 *ProjectsLocationsProductsCertificatesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsCertificatesListCall { - 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 *ProjectsLocationsProductsCertificatesListCall) Context(ctx context.Context) *ProjectsLocationsProductsCertificatesListCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsProductsCertificatesListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsProductsCertificatesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-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}/certificates") - 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 "integrations.projects.locations.products.certificates.list" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaListCertificatesResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudIntegrationsV1alphaListCertificatesResponse.ServerResponse -// .Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsProductsCertificatesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListCertificatesResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleCloudIntegrationsV1alphaListCertificatesResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "List all the certificates that match the filter. Restrict to certificate of current client only.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/certificates", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.products.certificates.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "Filtering as supported in https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters.", + // }, + // "orderBy": { + // "description": "The results would be returned in order you specified here. Supported sort keys are: Descending sort order by \"last_modified_time\", \"created_time\", \"snapshot_number\". Ascending sort order by the integration name.", // "location": "query", // "type": "string" // }, // "pageSize": { - // "description": "The size of entries in the response. If unspecified, defaults to 100.", + // "description": "The page size for the resquest.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "The token returned in the previous response.", + // "description": "The page token for the resquest.", // "location": "query", // "type": "string" // }, // "parent": { - // "description": "Required. The client, which owns this collection of Certificates.", + // "description": "Required. Project and location from which the integrations should be listed. Format: projects/{project}", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+$", // "required": true, // "type": "string" - // }, - // "readMask": { - // "description": "The mask which specifies fields that need to be returned in the Certificate's response.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1alpha/{+parent}/certificates", + // "path": "v1alpha/{+parent}/integrations", // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaListCertificatesResponse" + // "$ref": "GoogleCloudIntegrationsV1alphaListIntegrationsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -19405,7 +18681,7 @@ func (c *ProjectsLocationsProductsCertificatesListCall) Do(opts ...googleapi.Cal // 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 *ProjectsLocationsProductsCertificatesListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListCertificatesResponse) error) error { +func (c *ProjectsLocationsProductsIntegrationsListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListIntegrationsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -19423,42 +18699,32 @@ func (c *ProjectsLocationsProductsCertificatesListCall) Pages(ctx context.Contex } } -// method id "integrations.projects.locations.products.certificates.patch": +// method id "integrations.projects.locations.products.integrations.schedule": -type ProjectsLocationsProductsCertificatesPatchCall struct { - s *Service - name string - googlecloudintegrationsv1alphacertificate *GoogleCloudIntegrationsV1alphaCertificate - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsProductsIntegrationsScheduleCall struct { + s *Service + name string + googlecloudintegrationsv1alphascheduleintegrationsrequest *GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Patch: Updates the certificate by id. If new certificate file is -// updated, it will register with the trawler service, re-encrypt with -// cloud KMS and update the Spanner record. Other fields will directly -// update the Spanner record. Returns the Certificate. +// Schedule: Schedules an integration for execution by passing the +// trigger id and the scheduled time in the request body. // -// - name: Output only. Auto generated primary key. -func (r *ProjectsLocationsProductsCertificatesService) Patch(name string, googlecloudintegrationsv1alphacertificate *GoogleCloudIntegrationsV1alphaCertificate) *ProjectsLocationsProductsCertificatesPatchCall { - c := &ProjectsLocationsProductsCertificatesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The integration resource name. +func (r *ProjectsLocationsProductsIntegrationsService) Schedule(name string, googlecloudintegrationsv1alphascheduleintegrationsrequest *GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest) *ProjectsLocationsProductsIntegrationsScheduleCall { + c := &ProjectsLocationsProductsIntegrationsScheduleCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudintegrationsv1alphacertificate = googlecloudintegrationsv1alphacertificate - return c -} - -// UpdateMask sets the optional parameter "updateMask": Field mask -// specifying the fields in the above Certificate that have been -// modified and need to be updated. -func (c *ProjectsLocationsProductsCertificatesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsProductsCertificatesPatchCall { - c.urlParams_.Set("updateMask", updateMask) + c.googlecloudintegrationsv1alphascheduleintegrationsrequest = googlecloudintegrationsv1alphascheduleintegrationsrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsProductsCertificatesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsCertificatesPatchCall { +func (c *ProjectsLocationsProductsIntegrationsScheduleCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsScheduleCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -19466,21 +18732,21 @@ func (c *ProjectsLocationsProductsCertificatesPatchCall) 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 *ProjectsLocationsProductsCertificatesPatchCall) Context(ctx context.Context) *ProjectsLocationsProductsCertificatesPatchCall { +func (c *ProjectsLocationsProductsIntegrationsScheduleCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsScheduleCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsProductsCertificatesPatchCall) Header() http.Header { +func (c *ProjectsLocationsProductsIntegrationsScheduleCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsProductsCertificatesPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsProductsIntegrationsScheduleCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -19488,16 +18754,16 @@ func (c *ProjectsLocationsProductsCertificatesPatchCall) doRequest(alt string) ( } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphacertificate) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphascheduleintegrationsrequest) 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/{+name}:schedule") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -19508,16 +18774,17 @@ func (c *ProjectsLocationsProductsCertificatesPatchCall) doRequest(alt string) ( return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "integrations.projects.locations.products.certificates.patch" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaCertificate or error +// Do executes the "integrations.projects.locations.products.integrations.schedule" call. +// Exactly one of +// *GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse or error // will be non-nil. Any non-2xx status code is an error. Response // headers are in either -// *GoogleCloudIntegrationsV1alphaCertificate.ServerResponse.Header or -// (if a response was returned at all) in +// *GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse.ServerResp +// onse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsProductsCertificatesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaCertificate, error) { +func (c *ProjectsLocationsProductsIntegrationsScheduleCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -19536,7 +18803,7 @@ func (c *ProjectsLocationsProductsCertificatesPatchCall) Do(opts ...googleapi.Ca if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudIntegrationsV1alphaCertificate{ + ret := &GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -19548,34 +18815,28 @@ func (c *ProjectsLocationsProductsCertificatesPatchCall) Do(opts ...googleapi.Ca } return ret, nil // { - // "description": "Updates the certificate by id. If new certificate file is updated, it will register with the trawler service, re-encrypt with cloud KMS and update the Spanner record. Other fields will directly update the Spanner record. Returns the Certificate.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/certificates/{certificatesId}", - // "httpMethod": "PATCH", - // "id": "integrations.projects.locations.products.certificates.patch", - // "parameterOrder": [ + // "description": "Schedules an integration for execution by passing the trigger id and the scheduled time in the request body.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}:schedule", + // "httpMethod": "POST", + // "id": "integrations.projects.locations.products.integrations.schedule", + // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Output only. Auto generated primary key", + // "description": "The integration resource name.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/certificates/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", // "required": true, // "type": "string" - // }, - // "updateMask": { - // "description": "Field mask specifying the fields in the above Certificate that have been modified and need to be updated.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1alpha/{+name}", + // "path": "v1alpha/{+name}:schedule", // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaCertificate" + // "$ref": "GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest" // }, // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaCertificate" + // "$ref": "GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -19584,33 +18845,33 @@ func (c *ProjectsLocationsProductsCertificatesPatchCall) Do(opts ...googleapi.Ca } -// method id "integrations.projects.locations.products.integrations.archiveBundle": +// method id "integrations.projects.locations.products.integrations.executions.cancel": -type ProjectsLocationsProductsIntegrationsArchiveBundleCall struct { - s *Service - name string - googlecloudintegrationsv1alphaarchivebundlerequest *GoogleCloudIntegrationsV1alphaArchiveBundleRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsProductsIntegrationsExecutionsCancelCall struct { + s *Service + name string + googlecloudintegrationsv1alphacancelexecutionrequest *GoogleCloudIntegrationsV1alphaCancelExecutionRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// ArchiveBundle: PROTECT WITH A VISIBILITY LABEL. THIS METHOD WILL BE -// MOVED TO A SEPARATE SERVICE. Soft-deletes the bundle. +// Cancel: Cancellation of an execution // -// - name: The bundle to archive. Format: -// projects/{project}/locations/{location}/integrations/{integration}. -func (r *ProjectsLocationsProductsIntegrationsService) ArchiveBundle(name string, googlecloudintegrationsv1alphaarchivebundlerequest *GoogleCloudIntegrationsV1alphaArchiveBundleRequest) *ProjectsLocationsProductsIntegrationsArchiveBundleCall { - c := &ProjectsLocationsProductsIntegrationsArchiveBundleCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The execution resource name. Format: +// projects/{gcp_project_id}/locations/{location}/products/{product}/in +// tegrations/{integration_id}/executions/{execution_id}. +func (r *ProjectsLocationsProductsIntegrationsExecutionsService) Cancel(name string, googlecloudintegrationsv1alphacancelexecutionrequest *GoogleCloudIntegrationsV1alphaCancelExecutionRequest) *ProjectsLocationsProductsIntegrationsExecutionsCancelCall { + c := &ProjectsLocationsProductsIntegrationsExecutionsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudintegrationsv1alphaarchivebundlerequest = googlecloudintegrationsv1alphaarchivebundlerequest + c.googlecloudintegrationsv1alphacancelexecutionrequest = googlecloudintegrationsv1alphacancelexecutionrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsProductsIntegrationsArchiveBundleCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsArchiveBundleCall { +func (c *ProjectsLocationsProductsIntegrationsExecutionsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsExecutionsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -19618,21 +18879,21 @@ func (c *ProjectsLocationsProductsIntegrationsArchiveBundleCall) Fields(s ...goo // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsProductsIntegrationsArchiveBundleCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsArchiveBundleCall { +func (c *ProjectsLocationsProductsIntegrationsExecutionsCancelCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsExecutionsCancelCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsProductsIntegrationsArchiveBundleCall) Header() http.Header { +func (c *ProjectsLocationsProductsIntegrationsExecutionsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsProductsIntegrationsArchiveBundleCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsProductsIntegrationsExecutionsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -19640,14 +18901,14 @@ func (c *ProjectsLocationsProductsIntegrationsArchiveBundleCall) doRequest(alt s } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaarchivebundlerequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphacancelexecutionrequest) 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}:archiveBundle") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}:cancel") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -19660,16 +18921,16 @@ func (c *ProjectsLocationsProductsIntegrationsArchiveBundleCall) doRequest(alt s return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "integrations.projects.locations.products.integrations.archiveBundle" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaArchiveBundleResponse +// Do executes the "integrations.projects.locations.products.integrations.executions.cancel" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaCancelExecutionResponse // or error will be non-nil. Any non-2xx status code is an error. // Response headers are in either -// *GoogleCloudIntegrationsV1alphaArchiveBundleResponse.ServerResponse.He -// ader or (if a response was returned at all) in +// *GoogleCloudIntegrationsV1alphaCancelExecutionResponse.ServerResponse. +// Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsProductsIntegrationsArchiveBundleCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaArchiveBundleResponse, error) { +func (c *ProjectsLocationsProductsIntegrationsExecutionsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaCancelExecutionResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -19688,7 +18949,7 @@ func (c *ProjectsLocationsProductsIntegrationsArchiveBundleCall) Do(opts ...goog if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudIntegrationsV1alphaArchiveBundleResponse{ + ret := &GoogleCloudIntegrationsV1alphaCancelExecutionResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -19700,28 +18961,28 @@ func (c *ProjectsLocationsProductsIntegrationsArchiveBundleCall) Do(opts ...goog } return ret, nil // { - // "description": "PROTECT WITH A VISIBILITY LABEL. THIS METHOD WILL BE MOVED TO A SEPARATE SERVICE. Soft-deletes the bundle.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}:archiveBundle", + // "description": "Cancellation of an execution", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/executions/{executionsId}:cancel", // "httpMethod": "POST", - // "id": "integrations.projects.locations.products.integrations.archiveBundle", + // "id": "integrations.projects.locations.products.integrations.executions.cancel", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The bundle to archive. Format: projects/{project}/locations/{location}/integrations/{integration}", + // "description": "Required. The execution resource name. Format: projects/{gcp_project_id}/locations/{location}/products/{product}/integrations/{integration_id}/executions/{execution_id}", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/executions/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1alpha/{+name}:archiveBundle", + // "path": "v1alpha/{+name}:cancel", // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaArchiveBundleRequest" + // "$ref": "GoogleCloudIntegrationsV1alphaCancelExecutionRequest" // }, // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaArchiveBundleResponse" + // "$ref": "GoogleCloudIntegrationsV1alphaCancelExecutionResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -19730,76 +18991,79 @@ func (c *ProjectsLocationsProductsIntegrationsArchiveBundleCall) Do(opts ...goog } -// method id "integrations.projects.locations.products.integrations.execute": +// method id "integrations.projects.locations.products.integrations.executions.get": -type ProjectsLocationsProductsIntegrationsExecuteCall struct { - s *Service - name string - googlecloudintegrationsv1alphaexecuteintegrationsrequest *GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsProductsIntegrationsExecutionsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Execute: Executes integrations synchronously by passing the trigger -// id in the request body. The request is not returned until the -// requested executions are either fulfilled or experienced an error. If -// the integration name is not specified (passing `-`), all of the -// associated integration under the given trigger_id will be executed. -// Otherwise only the specified integration for the given `trigger_id` -// is executed. This is helpful for execution the integration from UI. +// Get: Get an execution in the specified project. // -// - name: The integration resource name. -func (r *ProjectsLocationsProductsIntegrationsService) Execute(name string, googlecloudintegrationsv1alphaexecuteintegrationsrequest *GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest) *ProjectsLocationsProductsIntegrationsExecuteCall { - c := &ProjectsLocationsProductsIntegrationsExecuteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The execution resource name. Format: +// projects/{gcp_project_id}/locations/{location}/products/{product}/in +// tegrations/{integration_id}/executions/{execution_id}. +func (r *ProjectsLocationsProductsIntegrationsExecutionsService) Get(name string) *ProjectsLocationsProductsIntegrationsExecutionsGetCall { + c := &ProjectsLocationsProductsIntegrationsExecutionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudintegrationsv1alphaexecuteintegrationsrequest = googlecloudintegrationsv1alphaexecuteintegrationsrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsProductsIntegrationsExecuteCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsExecuteCall { +func (c *ProjectsLocationsProductsIntegrationsExecutionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsExecutionsGetCall { 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 *ProjectsLocationsProductsIntegrationsExecutionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsIntegrationsExecutionsGetCall { + 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 *ProjectsLocationsProductsIntegrationsExecuteCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsExecuteCall { +func (c *ProjectsLocationsProductsIntegrationsExecutionsGetCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsExecutionsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsProductsIntegrationsExecuteCall) Header() http.Header { +func (c *ProjectsLocationsProductsIntegrationsExecutionsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsProductsIntegrationsExecuteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsProductsIntegrationsExecutionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-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.googlecloudintegrationsv1alphaexecuteintegrationsrequest) - 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}:execute") + 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 } @@ -19810,17 +19074,15 @@ func (c *ProjectsLocationsProductsIntegrationsExecuteCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "integrations.projects.locations.products.integrations.execute" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse.ServerRespo -// nse.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsProductsIntegrationsExecuteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse, error) { +// Do executes the "integrations.projects.locations.products.integrations.executions.get" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaExecution or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudIntegrationsV1alphaExecution.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsProductsIntegrationsExecutionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaExecution, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -19839,7 +19101,7 @@ func (c *ProjectsLocationsProductsIntegrationsExecuteCall) Do(opts ...googleapi. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse{ + ret := &GoogleCloudIntegrationsV1alphaExecution{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -19851,28 +19113,25 @@ func (c *ProjectsLocationsProductsIntegrationsExecuteCall) Do(opts ...googleapi. } return ret, nil // { - // "description": "Executes integrations synchronously by passing the trigger id in the request body. The request is not returned until the requested executions are either fulfilled or experienced an error. If the integration name is not specified (passing `-`), all of the associated integration under the given trigger_id will be executed. Otherwise only the specified integration for the given `trigger_id` is executed. This is helpful for execution the integration from UI.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}:execute", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.products.integrations.execute", + // "description": "Get an execution in the specified project.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/executions/{executionsId}", + // "httpMethod": "GET", + // "id": "integrations.projects.locations.products.integrations.executions.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The integration resource name.", + // "description": "Required. The execution resource name. Format: projects/{gcp_project_id}/locations/{location}/products/{product}/integrations/{integration_id}/executions/{execution_id}", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/executions/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1alpha/{+name}:execute", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest" - // }, + // "path": "v1alpha/{+name}", // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse" + // "$ref": "GoogleCloudIntegrationsV1alphaExecution" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -19881,9 +19140,9 @@ func (c *ProjectsLocationsProductsIntegrationsExecuteCall) Do(opts ...googleapi. } -// method id "integrations.projects.locations.products.integrations.list": +// method id "integrations.projects.locations.products.integrations.executions.list": -type ProjectsLocationsProductsIntegrationsListCall struct { +type ProjectsLocationsProductsIntegrationsExecutionsListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -19892,1291 +19151,172 @@ type ProjectsLocationsProductsIntegrationsListCall struct { header_ http.Header } -// List: Returns the list of all integrations in the specified project. +// List: Lists the results of all the integration executions. The +// response includes the same information as the execution log +// (https://cloud.google.com/application-integration/docs/viewing-logs) +// in the Integration UI. // -// - parent: Project and location from which the integrations should be -// listed. Format: projects/{project}. -func (r *ProjectsLocationsProductsIntegrationsService) List(parent string) *ProjectsLocationsProductsIntegrationsListCall { - c := &ProjectsLocationsProductsIntegrationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The parent resource name of the integration execution. +func (r *ProjectsLocationsProductsIntegrationsExecutionsService) List(parent string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { + c := &ProjectsLocationsProductsIntegrationsExecutionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// Filter sets the optional parameter "filter": Filter on fields of -// IntegrationVersion. Fields can be compared with literal values by use -// of ":" (containment), "=" (equality), ">" (greater), "<" (less than), -// >=" (greater than or equal to), "<=" (less than or equal to), and -// "!=" (inequality) operators. Negation, conjunction, and disjunction -// are written using NOT, AND, and OR keywords. For example, -// organization_id=\"1\" AND state=ACTIVE AND description:"test". -// Filtering cannot be performed on repeated fields like `task_config`. -func (c *ProjectsLocationsProductsIntegrationsListCall) Filter(filter string) *ProjectsLocationsProductsIntegrationsListCall { +// Filter sets the optional parameter "filter": Standard filter field, +// we support filtering on all fields in EventExecutionParamIndexes +// table. All fields support for EQUALS, in additional: CreateTimestamp +// support for LESS_THAN, GREATER_THAN ParameterKey, ParameterValue, +// ParameterType support for HAS For example: "parameter_value" HAS +// \"parameter1\" Also supports operators like AND, OR, NOT For example, +// trigger_id=\"id1\" AND event_execution_state=\"FAILED\" +func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) Filter(filter string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { c.urlParams_.Set("filter", filter) return c } -// OrderBy sets the optional parameter "orderBy": The results would be -// returned in order you specified here. Supported sort keys are: -// Descending sort order by "last_modified_time", "created_time", -// "snapshot_number". Ascending sort order by the integration name. -func (c *ProjectsLocationsProductsIntegrationsListCall) OrderBy(orderBy string) *ProjectsLocationsProductsIntegrationsListCall { - c.urlParams_.Set("orderBy", orderBy) +// FilterParamsCustomFilter sets the optional parameter +// "filterParams.customFilter": Optional user-provided custom filter. +func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) FilterParamsCustomFilter(filterParamsCustomFilter string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { + c.urlParams_.Set("filterParams.customFilter", filterParamsCustomFilter) return c } -// PageSize sets the optional parameter "pageSize": The page size for -// the resquest. -func (c *ProjectsLocationsProductsIntegrationsListCall) PageSize(pageSize int64) *ProjectsLocationsProductsIntegrationsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) +// FilterParamsEndTime sets the optional parameter +// "filterParams.endTime": End timestamp. +func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) FilterParamsEndTime(filterParamsEndTime int64) *ProjectsLocationsProductsIntegrationsExecutionsListCall { + c.urlParams_.Set("filterParams.endTime", fmt.Sprint(filterParamsEndTime)) return c } -// PageToken sets the optional parameter "pageToken": The page token for -// the resquest. -func (c *ProjectsLocationsProductsIntegrationsListCall) PageToken(pageToken string) *ProjectsLocationsProductsIntegrationsListCall { - c.urlParams_.Set("pageToken", pageToken) +// FilterParamsEventStatuses sets the optional parameter +// "filterParams.eventStatuses": List of possible event statuses. +func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) FilterParamsEventStatuses(filterParamsEventStatuses ...string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { + c.urlParams_.SetMulti("filterParams.eventStatuses", append([]string{}, filterParamsEventStatuses...)) return c } -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsProductsIntegrationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsListCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) +// FilterParamsExecutionId sets the optional parameter +// "filterParams.executionId": Execution id. +func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) FilterParamsExecutionId(filterParamsExecutionId string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { + c.urlParams_.Set("filterParams.executionId", filterParamsExecutionId) 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 *ProjectsLocationsProductsIntegrationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsIntegrationsListCall { - c.ifNoneMatch_ = entityTag +// FilterParamsParameterKey sets the optional parameter +// "filterParams.parameterKey": Param key. DEPRECATED. User +// parameter_pair_key instead. +func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) FilterParamsParameterKey(filterParamsParameterKey string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { + c.urlParams_.Set("filterParams.parameterKey", filterParamsParameterKey) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsLocationsProductsIntegrationsListCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsListCall { - c.ctx_ = ctx +// FilterParamsParameterPairKey sets the optional parameter +// "filterParams.parameterPairKey": Param key in the key value pair +// filter. +func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) FilterParamsParameterPairKey(filterParamsParameterPairKey string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { + c.urlParams_.Set("filterParams.parameterPairKey", filterParamsParameterPairKey) return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsProductsIntegrationsListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsProductsIntegrationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-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}/integrations") - 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 "integrations.projects.locations.products.integrations.list" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaListIntegrationsResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudIntegrationsV1alphaListIntegrationsResponse.ServerResponse -// .Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsProductsIntegrationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListIntegrationsResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleCloudIntegrationsV1alphaListIntegrationsResponse{ - ServerResponse: googleapi.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 list of all integrations in the specified project.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.products.integrations.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "Filter on fields of IntegrationVersion. Fields can be compared with literal values by use of \":\" (containment), \"=\" (equality), \"\u003e\" (greater), \"\u003c\" (less than), \u003e=\" (greater than or equal to), \"\u003c=\" (less than or equal to), and \"!=\" (inequality) operators. Negation, conjunction, and disjunction are written using NOT, AND, and OR keywords. For example, organization_id=\\\"1\\\" AND state=ACTIVE AND description:\"test\". Filtering cannot be performed on repeated fields like `task_config`.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "The results would be returned in order you specified here. Supported sort keys are: Descending sort order by \"last_modified_time\", \"created_time\", \"snapshot_number\". Ascending sort order by the integration name.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The page size for the resquest.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The page token for the resquest.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. Project and location from which the integrations should be listed. Format: projects/{project}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+parent}/integrations", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaListIntegrationsResponse" - // }, - // "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 *ProjectsLocationsProductsIntegrationsListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListIntegrationsResponse) 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 "integrations.projects.locations.products.integrations.schedule": - -type ProjectsLocationsProductsIntegrationsScheduleCall struct { - s *Service - name string - googlecloudintegrationsv1alphascheduleintegrationsrequest *GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Schedule: Schedules an integration for execution by passing the -// trigger id and the scheduled time in the request body. -// -// - name: The integration resource name. -func (r *ProjectsLocationsProductsIntegrationsService) Schedule(name string, googlecloudintegrationsv1alphascheduleintegrationsrequest *GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest) *ProjectsLocationsProductsIntegrationsScheduleCall { - c := &ProjectsLocationsProductsIntegrationsScheduleCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.googlecloudintegrationsv1alphascheduleintegrationsrequest = googlecloudintegrationsv1alphascheduleintegrationsrequest - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsProductsIntegrationsScheduleCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsScheduleCall { - 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 *ProjectsLocationsProductsIntegrationsScheduleCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsScheduleCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsProductsIntegrationsScheduleCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsProductsIntegrationsScheduleCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-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.googlecloudintegrationsv1alphascheduleintegrationsrequest) - 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}:schedule") - 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 "integrations.projects.locations.products.integrations.schedule" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse.ServerResp -// onse.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsProductsIntegrationsScheduleCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Schedules an integration for execution by passing the trigger id and the scheduled time in the request body.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}:schedule", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.products.integrations.schedule", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The integration resource name.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}:schedule", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.integrations.executions.cancel": - -type ProjectsLocationsProductsIntegrationsExecutionsCancelCall struct { - s *Service - name string - googlecloudintegrationsv1alphacancelexecutionrequest *GoogleCloudIntegrationsV1alphaCancelExecutionRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Cancel: Cancellation of an execution -// -// - name: The execution resource name. Format: -// projects/{gcp_project_id}/locations/{location}/products/{product}/in -// tegrations/{integration_id}/executions/{execution_id}. -func (r *ProjectsLocationsProductsIntegrationsExecutionsService) Cancel(name string, googlecloudintegrationsv1alphacancelexecutionrequest *GoogleCloudIntegrationsV1alphaCancelExecutionRequest) *ProjectsLocationsProductsIntegrationsExecutionsCancelCall { - c := &ProjectsLocationsProductsIntegrationsExecutionsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.googlecloudintegrationsv1alphacancelexecutionrequest = googlecloudintegrationsv1alphacancelexecutionrequest - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsProductsIntegrationsExecutionsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsExecutionsCancelCall { - 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 *ProjectsLocationsProductsIntegrationsExecutionsCancelCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsExecutionsCancelCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsProductsIntegrationsExecutionsCancelCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsProductsIntegrationsExecutionsCancelCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-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.googlecloudintegrationsv1alphacancelexecutionrequest) - 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}: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 "integrations.projects.locations.products.integrations.executions.cancel" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaCancelExecutionResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudIntegrationsV1alphaCancelExecutionResponse.ServerResponse. -// Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsProductsIntegrationsExecutionsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaCancelExecutionResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleCloudIntegrationsV1alphaCancelExecutionResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Cancellation of an execution", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/executions/{executionsId}:cancel", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.products.integrations.executions.cancel", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The execution resource name. Format: projects/{gcp_project_id}/locations/{location}/products/{product}/integrations/{integration_id}/executions/{execution_id}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/executions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}:cancel", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaCancelExecutionRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaCancelExecutionResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.integrations.executions.get": - -type ProjectsLocationsProductsIntegrationsExecutionsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Get an execution in the specified project. -// -// - name: The execution resource name. Format: -// projects/{gcp_project_id}/locations/{location}/products/{product}/in -// tegrations/{integration_id}/executions/{execution_id}. -func (r *ProjectsLocationsProductsIntegrationsExecutionsService) Get(name string) *ProjectsLocationsProductsIntegrationsExecutionsGetCall { - c := &ProjectsLocationsProductsIntegrationsExecutionsGetCall{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 *ProjectsLocationsProductsIntegrationsExecutionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsExecutionsGetCall { - 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 *ProjectsLocationsProductsIntegrationsExecutionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsIntegrationsExecutionsGetCall { - 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 *ProjectsLocationsProductsIntegrationsExecutionsGetCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsExecutionsGetCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsProductsIntegrationsExecutionsGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsProductsIntegrationsExecutionsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-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 "integrations.projects.locations.products.integrations.executions.get" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaExecution or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudIntegrationsV1alphaExecution.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *ProjectsLocationsProductsIntegrationsExecutionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaExecution, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleCloudIntegrationsV1alphaExecution{ - ServerResponse: googleapi.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 an execution in the specified project.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/executions/{executionsId}", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.products.integrations.executions.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The execution resource name. Format: projects/{gcp_project_id}/locations/{location}/products/{product}/integrations/{integration_id}/executions/{execution_id}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/executions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaExecution" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.integrations.executions.list": - -type ProjectsLocationsProductsIntegrationsExecutionsListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Lists the results of all the integration executions. The -// response includes the same information as the execution log -// (https://cloud.google.com/application-integration/docs/viewing-logs) -// in the Integration UI. -// -// - parent: The parent resource name of the integration execution. -func (r *ProjectsLocationsProductsIntegrationsExecutionsService) List(parent string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { - c := &ProjectsLocationsProductsIntegrationsExecutionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// Filter sets the optional parameter "filter": Standard filter field, -// we support filtering on all fields in EventExecutionParamIndexes -// table. All fields support for EQUALS, in additional: CreateTimestamp -// support for LESS_THAN, GREATER_THAN ParameterKey, ParameterValue, -// ParameterType support for HAS For example: "parameter_value" HAS -// \"parameter1\" Also supports operators like AND, OR, NOT For example, -// trigger_id=\"id1\" AND event_execution_state=\"FAILED\" -func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) Filter(filter string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// FilterParamsCustomFilter sets the optional parameter -// "filterParams.customFilter": Optional user-provided custom filter. -func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) FilterParamsCustomFilter(filterParamsCustomFilter string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { - c.urlParams_.Set("filterParams.customFilter", filterParamsCustomFilter) - return c -} - -// FilterParamsEndTime sets the optional parameter -// "filterParams.endTime": End timestamp. -func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) FilterParamsEndTime(filterParamsEndTime int64) *ProjectsLocationsProductsIntegrationsExecutionsListCall { - c.urlParams_.Set("filterParams.endTime", fmt.Sprint(filterParamsEndTime)) - return c -} - -// FilterParamsEventStatuses sets the optional parameter -// "filterParams.eventStatuses": List of possible event statuses. -func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) FilterParamsEventStatuses(filterParamsEventStatuses ...string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { - c.urlParams_.SetMulti("filterParams.eventStatuses", append([]string{}, filterParamsEventStatuses...)) - return c -} - -// FilterParamsExecutionId sets the optional parameter -// "filterParams.executionId": Execution id. -func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) FilterParamsExecutionId(filterParamsExecutionId string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { - c.urlParams_.Set("filterParams.executionId", filterParamsExecutionId) - return c -} - -// FilterParamsParameterKey sets the optional parameter -// "filterParams.parameterKey": Param key. DEPRECATED. User -// parameter_pair_key instead. -func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) FilterParamsParameterKey(filterParamsParameterKey string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { - c.urlParams_.Set("filterParams.parameterKey", filterParamsParameterKey) - return c -} - -// FilterParamsParameterPairKey sets the optional parameter -// "filterParams.parameterPairKey": Param key in the key value pair -// filter. -func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) FilterParamsParameterPairKey(filterParamsParameterPairKey string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { - c.urlParams_.Set("filterParams.parameterPairKey", filterParamsParameterPairKey) - return c -} - -// FilterParamsParameterPairValue sets the optional parameter -// "filterParams.parameterPairValue": Param value in the key value pair -// filter. -func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) FilterParamsParameterPairValue(filterParamsParameterPairValue string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { - c.urlParams_.Set("filterParams.parameterPairValue", filterParamsParameterPairValue) - return c -} - -// FilterParamsParameterType sets the optional parameter -// "filterParams.parameterType": Param type. -func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) FilterParamsParameterType(filterParamsParameterType string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { - c.urlParams_.Set("filterParams.parameterType", filterParamsParameterType) - return c -} - -// FilterParamsParameterValue sets the optional parameter -// "filterParams.parameterValue": Param value. DEPRECATED. User -// parameter_pair_value instead. -func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) FilterParamsParameterValue(filterParamsParameterValue string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { - c.urlParams_.Set("filterParams.parameterValue", filterParamsParameterValue) - return c -} - -// FilterParamsStartTime sets the optional parameter -// "filterParams.startTime": Start timestamp. -func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) FilterParamsStartTime(filterParamsStartTime int64) *ProjectsLocationsProductsIntegrationsExecutionsListCall { - c.urlParams_.Set("filterParams.startTime", fmt.Sprint(filterParamsStartTime)) - return c -} - -// FilterParamsTaskStatuses sets the optional parameter -// "filterParams.taskStatuses": List of possible task statuses. -func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) FilterParamsTaskStatuses(filterParamsTaskStatuses ...string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { - c.urlParams_.SetMulti("filterParams.taskStatuses", append([]string{}, filterParamsTaskStatuses...)) - return c -} - -// FilterParamsWorkflowName sets the optional parameter -// "filterParams.workflowName": Workflow name. -func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) FilterParamsWorkflowName(filterParamsWorkflowName string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { - c.urlParams_.Set("filterParams.workflowName", filterParamsWorkflowName) - return c -} - -// OrderBy sets the optional parameter "orderBy": The results would be -// returned in order you specified here. Currently supporting -// "last_modified_time" and "create_time". -func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) OrderBy(orderBy string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - -// PageSize sets the optional parameter "pageSize": The size of entries -// in the response. -func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) PageSize(pageSize int64) *ProjectsLocationsProductsIntegrationsExecutionsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The token returned -// in the previous response. -func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) PageToken(pageToken string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// ReadMask sets the optional parameter "readMask": View mask for the -// response data. If set, only the field specified will be returned as -// part of the result. If not set, all fields in event execution info -// will be filled and returned. -func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) ReadMask(readMask string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { - c.urlParams_.Set("readMask", readMask) - return c -} - -// RefreshAcl sets the optional parameter "refreshAcl": If true, the -// service will use the most recent acl information to list event -// execution infos and renew the acl cache. Note that fetching the most -// recent acl is synchronous, so it will increase RPC call latency. -func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) RefreshAcl(refreshAcl bool) *ProjectsLocationsProductsIntegrationsExecutionsListCall { - c.urlParams_.Set("refreshAcl", fmt.Sprint(refreshAcl)) - return c -} - -// TruncateParams sets the optional parameter "truncateParams": If true, -// the service will truncate the params to only keep the first 1000 -// characters of string params and empty the executions in order to make -// response smaller. Only works for UI and when the params fields are -// not filtered out. -func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) TruncateParams(truncateParams bool) *ProjectsLocationsProductsIntegrationsExecutionsListCall { - c.urlParams_.Set("truncateParams", fmt.Sprint(truncateParams)) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsExecutionsListCall { - 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 *ProjectsLocationsProductsIntegrationsExecutionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { - 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 *ProjectsLocationsProductsIntegrationsExecutionsListCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsExecutionsListCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-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}/executions") - 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 "integrations.projects.locations.products.integrations.executions.list" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaListExecutionsResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudIntegrationsV1alphaListExecutionsResponse.ServerResponse.H -// eader or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListExecutionsResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleCloudIntegrationsV1alphaListExecutionsResponse{ - ServerResponse: googleapi.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 results of all the integration executions. The response includes the same information as the [execution log](https://cloud.google.com/application-integration/docs/viewing-logs) in the Integration UI.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/executions", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.products.integrations.executions.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "Optional. Standard filter field, we support filtering on all fields in EventExecutionParamIndexes table. All fields support for EQUALS, in additional: CreateTimestamp support for LESS_THAN, GREATER_THAN ParameterKey, ParameterValue, ParameterType support for HAS For example: \"parameter_value\" HAS \\\"parameter1\\\" Also supports operators like AND, OR, NOT For example, trigger_id=\\\"id1\\\" AND event_execution_state=\\\"FAILED\\\"", - // "location": "query", - // "type": "string" - // }, - // "filterParams.customFilter": { - // "description": "Optional user-provided custom filter.", - // "location": "query", - // "type": "string" - // }, - // "filterParams.endTime": { - // "description": "End timestamp.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "filterParams.eventStatuses": { - // "description": "List of possible event statuses.", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "filterParams.executionId": { - // "description": "Execution id.", - // "location": "query", - // "type": "string" - // }, - // "filterParams.parameterKey": { - // "description": "Param key. DEPRECATED. User parameter_pair_key instead.", - // "location": "query", - // "type": "string" - // }, - // "filterParams.parameterPairKey": { - // "description": "Param key in the key value pair filter.", - // "location": "query", - // "type": "string" - // }, - // "filterParams.parameterPairValue": { - // "description": "Param value in the key value pair filter.", - // "location": "query", - // "type": "string" - // }, - // "filterParams.parameterType": { - // "description": "Param type.", - // "location": "query", - // "type": "string" - // }, - // "filterParams.parameterValue": { - // "description": "Param value. DEPRECATED. User parameter_pair_value instead.", - // "location": "query", - // "type": "string" - // }, - // "filterParams.startTime": { - // "description": "Start timestamp.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "filterParams.taskStatuses": { - // "description": "List of possible task statuses.", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "filterParams.workflowName": { - // "description": "Workflow name.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "Optional. The results would be returned in order you specified here. Currently supporting \"last_modified_time\" and \"create_time\".", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Optional. The size of entries in the response.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Optional. The token returned in the previous response.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The parent resource name of the integration execution.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "readMask": { - // "description": "Optional. View mask for the response data. If set, only the field specified will be returned as part of the result. If not set, all fields in event execution info will be filled and returned.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // }, - // "refreshAcl": { - // "description": "Optional. If true, the service will use the most recent acl information to list event execution infos and renew the acl cache. Note that fetching the most recent acl is synchronous, so it will increase RPC call latency.", - // "location": "query", - // "type": "boolean" - // }, - // "truncateParams": { - // "description": "Optional. If true, the service will truncate the params to only keep the first 1000 characters of string params and empty the executions in order to make response smaller. Only works for UI and when the params fields are not filtered out.", - // "location": "query", - // "type": "boolean" - // } - // }, - // "path": "v1alpha/{+parent}/executions", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaListExecutionsResponse" - // }, - // "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 *ProjectsLocationsProductsIntegrationsExecutionsListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListExecutionsResponse) 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 "integrations.projects.locations.products.integrations.executions.suspensions.lift": - -type ProjectsLocationsProductsIntegrationsExecutionsSuspensionsLiftCall struct { - s *Service - name string - googlecloudintegrationsv1alphaliftsuspensionrequest *GoogleCloudIntegrationsV1alphaLiftSuspensionRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Lift: * Lifts suspension for advanced suspension task. Fetch -// corresponding suspension with provided suspension Id, resolve -// suspension, and set up suspension result for the Suspension Task. -// -// - name: The resource that the suspension belongs to. -// "projects/{project}/locations/{location}/products/{product}/integrat -// ions/{integration}/executions/{execution}/suspensions/{suspenion}" -// format. -func (r *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsService) Lift(name string, googlecloudintegrationsv1alphaliftsuspensionrequest *GoogleCloudIntegrationsV1alphaLiftSuspensionRequest) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsLiftCall { - c := &ProjectsLocationsProductsIntegrationsExecutionsSuspensionsLiftCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.googlecloudintegrationsv1alphaliftsuspensionrequest = googlecloudintegrationsv1alphaliftsuspensionrequest +// FilterParamsParameterPairValue sets the optional parameter +// "filterParams.parameterPairValue": Param value in the key value pair +// filter. +func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) FilterParamsParameterPairValue(filterParamsParameterPairValue string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { + c.urlParams_.Set("filterParams.parameterPairValue", filterParamsParameterPairValue) return c } -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsLiftCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsLiftCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) +// FilterParamsParameterType sets the optional parameter +// "filterParams.parameterType": Param type. +func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) FilterParamsParameterType(filterParamsParameterType string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { + c.urlParams_.Set("filterParams.parameterType", filterParamsParameterType) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsLiftCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsLiftCall { - c.ctx_ = ctx +// FilterParamsParameterValue sets the optional parameter +// "filterParams.parameterValue": Param value. DEPRECATED. User +// parameter_pair_value instead. +func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) FilterParamsParameterValue(filterParamsParameterValue string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { + c.urlParams_.Set("filterParams.parameterValue", filterParamsParameterValue) return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsLiftCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsLiftCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-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.googlecloudintegrationsv1alphaliftsuspensionrequest) - 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}:lift") - 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 "integrations.projects.locations.products.integrations.executions.suspensions.lift" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaLiftSuspensionResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudIntegrationsV1alphaLiftSuspensionResponse.ServerResponse.H -// eader or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsLiftCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaLiftSuspensionResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleCloudIntegrationsV1alphaLiftSuspensionResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "* Lifts suspension for advanced suspension task. Fetch corresponding suspension with provided suspension Id, resolve suspension, and set up suspension result for the Suspension Task.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/executions/{executionsId}/suspensions/{suspensionsId}:lift", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.products.integrations.executions.suspensions.lift", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The resource that the suspension belongs to. \"projects/{project}/locations/{location}/products/{product}/integrations/{integration}/executions/{execution}/suspensions/{suspenion}\" format.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/executions/[^/]+/suspensions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}:lift", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaLiftSuspensionRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaLiftSuspensionResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.integrations.executions.suspensions.list": - -type ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +// FilterParamsStartTime sets the optional parameter +// "filterParams.startTime": Start timestamp. +func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) FilterParamsStartTime(filterParamsStartTime int64) *ProjectsLocationsProductsIntegrationsExecutionsListCall { + c.urlParams_.Set("filterParams.startTime", fmt.Sprint(filterParamsStartTime)) + return c } -// List: * Lists suspensions associated with a specific execution. Only -// those with permissions to resolve the relevant suspensions will be -// able to view them. -// -// - parent: -// projects/{gcp_project_id}/locations/{location}/products/{product}/in -// tegrations/{integration_name}/executions/{execution_name}. -func (r *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsService) List(parent string) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall { - c := &ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent +// FilterParamsTaskStatuses sets the optional parameter +// "filterParams.taskStatuses": List of possible task statuses. +func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) FilterParamsTaskStatuses(filterParamsTaskStatuses ...string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { + c.urlParams_.SetMulti("filterParams.taskStatuses", append([]string{}, filterParamsTaskStatuses...)) return c } -// Filter sets the optional parameter "filter": Standard filter field. -func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) Filter(filter string) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall { - c.urlParams_.Set("filter", filter) +// FilterParamsWorkflowName sets the optional parameter +// "filterParams.workflowName": Workflow name. +func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) FilterParamsWorkflowName(filterParamsWorkflowName string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { + c.urlParams_.Set("filterParams.workflowName", filterParamsWorkflowName) return c } -// OrderBy sets the optional parameter "orderBy": Field name to order -// by. -func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) OrderBy(orderBy string) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall { +// OrderBy sets the optional parameter "orderBy": The results would be +// returned in order you specified here. Currently supporting +// "last_modified_time" and "create_time". +func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) OrderBy(orderBy string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageSize sets the optional parameter "pageSize": Maximum number of -// entries in the response. -func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) PageSize(pageSize int64) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall { +// PageSize sets the optional parameter "pageSize": The size of entries +// in the response. +func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) PageSize(pageSize int64) *ProjectsLocationsProductsIntegrationsExecutionsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": Token to retrieve -// a specific page. -func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) PageToken(pageToken string) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall { +// PageToken sets the optional parameter "pageToken": The token returned +// in the previous response. +func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) PageToken(pageToken string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { c.urlParams_.Set("pageToken", pageToken) return c } +// ReadMask sets the optional parameter "readMask": View mask for the +// response data. If set, only the field specified will be returned as +// part of the result. If not set, all fields in event execution info +// will be filled and returned. +func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) ReadMask(readMask string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { + c.urlParams_.Set("readMask", readMask) + return c +} + +// RefreshAcl sets the optional parameter "refreshAcl": If true, the +// service will use the most recent acl information to list event +// execution infos and renew the acl cache. Note that fetching the most +// recent acl is synchronous, so it will increase RPC call latency. +func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) RefreshAcl(refreshAcl bool) *ProjectsLocationsProductsIntegrationsExecutionsListCall { + c.urlParams_.Set("refreshAcl", fmt.Sprint(refreshAcl)) + return c +} + +// TruncateParams sets the optional parameter "truncateParams": If true, +// the service will truncate the params to only keep the first 1000 +// characters of string params and empty the executions in order to make +// response smaller. Only works for UI and when the params fields are +// not filtered out. +func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) TruncateParams(truncateParams bool) *ProjectsLocationsProductsIntegrationsExecutionsListCall { + c.urlParams_.Set("truncateParams", fmt.Sprint(truncateParams)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall { +func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsExecutionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -21186,7 +19326,7 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) 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 *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall { +func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { c.ifNoneMatch_ = entityTag return c } @@ -21194,21 +19334,21 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) IfN // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall { +func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsExecutionsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) Header() http.Header { +func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -21221,7 +19361,7 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) doR var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/suspensions") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/executions") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -21234,16 +19374,16 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) doR return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "integrations.projects.locations.products.integrations.executions.suspensions.list" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaListSuspensionsResponse +// Do executes the "integrations.projects.locations.products.integrations.executions.list" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaListExecutionsResponse // or error will be non-nil. Any non-2xx status code is an error. // Response headers are in either -// *GoogleCloudIntegrationsV1alphaListSuspensionsResponse.ServerResponse. -// Header or (if a response was returned at all) in +// *GoogleCloudIntegrationsV1alphaListExecutionsResponse.ServerResponse.H +// eader or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListSuspensionsResponse, error) { +func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListExecutionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -21262,7 +19402,7 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) Do( if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudIntegrationsV1alphaListSuspensionsResponse{ + ret := &GoogleCloudIntegrationsV1alphaListExecutionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -21274,46 +19414,126 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) Do( } return ret, nil // { - // "description": "* Lists suspensions associated with a specific execution. Only those with permissions to resolve the relevant suspensions will be able to view them.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/executions/{executionsId}/suspensions", + // "description": "Lists the results of all the integration executions. The response includes the same information as the [execution log](https://cloud.google.com/application-integration/docs/viewing-logs) in the Integration UI.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/executions", // "httpMethod": "GET", - // "id": "integrations.projects.locations.products.integrations.executions.suspensions.list", + // "id": "integrations.projects.locations.products.integrations.executions.list", // "parameterOrder": [ // "parent" // ], // "parameters": { // "filter": { - // "description": "Standard filter field.", + // "description": "Optional. Standard filter field, we support filtering on all fields in EventExecutionParamIndexes table. All fields support for EQUALS, in additional: CreateTimestamp support for LESS_THAN, GREATER_THAN ParameterKey, ParameterValue, ParameterType support for HAS For example: \"parameter_value\" HAS \\\"parameter1\\\" Also supports operators like AND, OR, NOT For example, trigger_id=\\\"id1\\\" AND event_execution_state=\\\"FAILED\\\"", + // "location": "query", + // "type": "string" + // }, + // "filterParams.customFilter": { + // "description": "Optional user-provided custom filter.", + // "location": "query", + // "type": "string" + // }, + // "filterParams.endTime": { + // "description": "End timestamp.", + // "format": "int64", + // "location": "query", + // "type": "string" + // }, + // "filterParams.eventStatuses": { + // "description": "List of possible event statuses.", + // "location": "query", + // "repeated": true, + // "type": "string" + // }, + // "filterParams.executionId": { + // "description": "Execution id.", + // "location": "query", + // "type": "string" + // }, + // "filterParams.parameterKey": { + // "description": "Param key. DEPRECATED. User parameter_pair_key instead.", + // "location": "query", + // "type": "string" + // }, + // "filterParams.parameterPairKey": { + // "description": "Param key in the key value pair filter.", + // "location": "query", + // "type": "string" + // }, + // "filterParams.parameterPairValue": { + // "description": "Param value in the key value pair filter.", + // "location": "query", + // "type": "string" + // }, + // "filterParams.parameterType": { + // "description": "Param type.", + // "location": "query", + // "type": "string" + // }, + // "filterParams.parameterValue": { + // "description": "Param value. DEPRECATED. User parameter_pair_value instead.", + // "location": "query", + // "type": "string" + // }, + // "filterParams.startTime": { + // "description": "Start timestamp.", + // "format": "int64", + // "location": "query", + // "type": "string" + // }, + // "filterParams.taskStatuses": { + // "description": "List of possible task statuses.", + // "location": "query", + // "repeated": true, + // "type": "string" + // }, + // "filterParams.workflowName": { + // "description": "Workflow name.", // "location": "query", // "type": "string" // }, // "orderBy": { - // "description": "Field name to order by.", + // "description": "Optional. The results would be returned in order you specified here. Currently supporting \"last_modified_time\" and \"create_time\".", // "location": "query", // "type": "string" // }, // "pageSize": { - // "description": "Maximum number of entries in the response.", + // "description": "Optional. The size of entries in the response.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "Token to retrieve a specific page.", + // "description": "Optional. The token returned in the previous response.", // "location": "query", // "type": "string" // }, // "parent": { - // "description": "Required. projects/{gcp_project_id}/locations/{location}/products/{product}/integrations/{integration_name}/executions/{execution_name}", + // "description": "Required. The parent resource name of the integration execution.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/executions/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", // "required": true, // "type": "string" + // }, + // "readMask": { + // "description": "Optional. View mask for the response data. If set, only the field specified will be returned as part of the result. If not set, all fields in event execution info will be filled and returned.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // }, + // "refreshAcl": { + // "description": "Optional. If true, the service will use the most recent acl information to list event execution infos and renew the acl cache. Note that fetching the most recent acl is synchronous, so it will increase RPC call latency.", + // "location": "query", + // "type": "boolean" + // }, + // "truncateParams": { + // "description": "Optional. If true, the service will truncate the params to only keep the first 1000 characters of string params and empty the executions in order to make response smaller. Only works for UI and when the params fields are not filtered out.", + // "location": "query", + // "type": "boolean" // } // }, - // "path": "v1alpha/{+parent}/suspensions", + // "path": "v1alpha/{+parent}/executions", // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaListSuspensionsResponse" + // "$ref": "GoogleCloudIntegrationsV1alphaListExecutionsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -21325,7 +19545,7 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) Do( // 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 *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListSuspensionsResponse) error) error { +func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListExecutionsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -21343,37 +19563,36 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) Pag } } -// method id "integrations.projects.locations.products.integrations.executions.suspensions.resolve": +// method id "integrations.projects.locations.products.integrations.executions.suspensions.lift": -type ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall struct { - s *Service - name string - googlecloudintegrationsv1alpharesolvesuspensionrequest *GoogleCloudIntegrationsV1alphaResolveSuspensionRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsProductsIntegrationsExecutionsSuspensionsLiftCall struct { + s *Service + name string + googlecloudintegrationsv1alphaliftsuspensionrequest *GoogleCloudIntegrationsV1alphaLiftSuspensionRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Resolve: * Resolves (lifts/rejects) any number of suspensions. If the -// integration is already running, only the status of the suspension is -// updated. Otherwise, the suspended integration will begin execution -// again. +// Lift: * Lifts suspension for advanced suspension task. Fetch +// corresponding suspension with provided suspension Id, resolve +// suspension, and set up suspension result for the Suspension Task. // -// - name: -// projects/{gcp_project_id}/locations/{location}/products/{product}/in -// tegrations/{integration_name}/executions/{execution_name}/suspension -// s/{suspension_id}. -func (r *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsService) Resolve(name string, googlecloudintegrationsv1alpharesolvesuspensionrequest *GoogleCloudIntegrationsV1alphaResolveSuspensionRequest) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall { - c := &ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The resource that the suspension belongs to. +// "projects/{project}/locations/{location}/products/{product}/integrat +// ions/{integration}/executions/{execution}/suspensions/{suspenion}" +// format. +func (r *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsService) Lift(name string, googlecloudintegrationsv1alphaliftsuspensionrequest *GoogleCloudIntegrationsV1alphaLiftSuspensionRequest) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsLiftCall { + c := &ProjectsLocationsProductsIntegrationsExecutionsSuspensionsLiftCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudintegrationsv1alpharesolvesuspensionrequest = googlecloudintegrationsv1alpharesolvesuspensionrequest + c.googlecloudintegrationsv1alphaliftsuspensionrequest = googlecloudintegrationsv1alphaliftsuspensionrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall { +func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsLiftCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsLiftCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -21381,21 +19600,21 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall) // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall { +func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsLiftCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsLiftCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall) Header() http.Header { +func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsLiftCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsLiftCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -21403,14 +19622,14 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall) } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alpharesolvesuspensionrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaliftsuspensionrequest) 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}:resolve") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}:lift") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -21423,17 +19642,16 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "integrations.projects.locations.products.integrations.executions.suspensions.resolve" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaResolveSuspensionResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaResolveSuspensionResponse.ServerRespons -// e.Header or (if a response was returned at all) in +// Do executes the "integrations.projects.locations.products.integrations.executions.suspensions.lift" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaLiftSuspensionResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudIntegrationsV1alphaLiftSuspensionResponse.ServerResponse.H +// eader or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaResolveSuspensionResponse, error) { +func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsLiftCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaLiftSuspensionResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -21452,7 +19670,7 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudIntegrationsV1alphaResolveSuspensionResponse{ + ret := &GoogleCloudIntegrationsV1alphaLiftSuspensionResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -21464,28 +19682,28 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall) } return ret, nil // { - // "description": "* Resolves (lifts/rejects) any number of suspensions. If the integration is already running, only the status of the suspension is updated. Otherwise, the suspended integration will begin execution again.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/executions/{executionsId}/suspensions/{suspensionsId}:resolve", + // "description": "* Lifts suspension for advanced suspension task. Fetch corresponding suspension with provided suspension Id, resolve suspension, and set up suspension result for the Suspension Task.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/executions/{executionsId}/suspensions/{suspensionsId}:lift", // "httpMethod": "POST", - // "id": "integrations.projects.locations.products.integrations.executions.suspensions.resolve", + // "id": "integrations.projects.locations.products.integrations.executions.suspensions.lift", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. projects/{gcp_project_id}/locations/{location}/products/{product}/integrations/{integration_name}/executions/{execution_name}/suspensions/{suspension_id}", + // "description": "Required. The resource that the suspension belongs to. \"projects/{project}/locations/{location}/products/{product}/integrations/{integration}/executions/{execution}/suspensions/{suspenion}\" format.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/executions/[^/]+/suspensions/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1alpha/{+name}:resolve", + // "path": "v1alpha/{+name}:lift", // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaResolveSuspensionRequest" + // "$ref": "GoogleCloudIntegrationsV1alphaLiftSuspensionRequest" // }, // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaResolveSuspensionResponse" + // "$ref": "GoogleCloudIntegrationsV1alphaLiftSuspensionResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -21494,9 +19712,9 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall) } -// method id "integrations.projects.locations.products.integrations.executionsnapshots.list": +// method id "integrations.projects.locations.products.integrations.executions.suspensions.list": -type ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall struct { +type ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -21505,50 +19723,50 @@ type ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall struct { header_ http.Header } -// List: Lists the snapshots of a given integration executions. This RPC -// is not being used. +// List: * Lists suspensions associated with a specific execution. Only +// those with permissions to resolve the relevant suspensions will be +// able to view them. // -// - parent: The parent resource name of the integration execution. -func (r *ProjectsLocationsProductsIntegrationsExecutionsnapshotsService) List(parent string) *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall { - c := &ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: +// projects/{gcp_project_id}/locations/{location}/products/{product}/in +// tegrations/{integration_name}/executions/{execution_name}. +func (r *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsService) List(parent string) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall { + c := &ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// Filter sets the optional parameter "filter": Currently supports -// filter by `execution_info_id` or `execution_snapshot_id`. -func (c *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall) Filter(filter string) *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall { +// Filter sets the optional parameter "filter": Standard filter field. +func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) Filter(filter string) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": Number of entries to -// be returned in a page. -func (c *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall) PageSize(pageSize int64) *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) +// OrderBy sets the optional parameter "orderBy": Field name to order +// by. +func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) OrderBy(orderBy string) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall { + c.urlParams_.Set("orderBy", orderBy) return c } -// PageToken sets the optional parameter "pageToken": The token used to -// retrieve the next page results. -func (c *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall) PageToken(pageToken string) *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall { - c.urlParams_.Set("pageToken", pageToken) +// PageSize sets the optional parameter "pageSize": Maximum number of +// entries in the response. +func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) PageSize(pageSize int64) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// ReadMask sets the optional parameter "readMask": View mask for the -// response data. If set, only the field specified will be returned as -// part of the result. If not set, all fields in event execution -// snapshot will be filled and returned. -func (c *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall) ReadMask(readMask string) *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall { - c.urlParams_.Set("readMask", readMask) +// PageToken sets the optional parameter "pageToken": Token to retrieve +// a specific page. +func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) PageToken(pageToken string) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall { + 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 *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall { +func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -21558,7 +19776,7 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall) Fields // 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 *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall { +func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall { c.ifNoneMatch_ = entityTag return c } @@ -21566,21 +19784,21 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall) IfNone // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall { +func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall) Header() http.Header { +func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -21593,7 +19811,7 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall) doRequ var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/executionsnapshots") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/suspensions") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -21606,17 +19824,16 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall) doRequ return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "integrations.projects.locations.products.integrations.executionsnapshots.list" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse.ServerRe -// sponse.Header or (if a response was returned at all) in +// Do executes the "integrations.projects.locations.products.integrations.executions.suspensions.list" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaListSuspensionsResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudIntegrationsV1alphaListSuspensionsResponse.ServerResponse. +// Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse, error) { +func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListSuspensionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -21635,7 +19852,7 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall) Do(opt if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse{ + ret := &GoogleCloudIntegrationsV1alphaListSuspensionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -21647,47 +19864,46 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall) Do(opt } return ret, nil // { - // "description": "Lists the snapshots of a given integration executions. This RPC is not being used.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/executionsnapshots", + // "description": "* Lists suspensions associated with a specific execution. Only those with permissions to resolve the relevant suspensions will be able to view them.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/executions/{executionsId}/suspensions", // "httpMethod": "GET", - // "id": "integrations.projects.locations.products.integrations.executionsnapshots.list", + // "id": "integrations.projects.locations.products.integrations.executions.suspensions.list", // "parameterOrder": [ // "parent" // ], // "parameters": { // "filter": { - // "description": "Currently supports filter by `execution_info_id` or `execution_snapshot_id`.", + // "description": "Standard filter field.", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "Field name to order by.", // "location": "query", // "type": "string" // }, // "pageSize": { - // "description": "Number of entries to be returned in a page.", + // "description": "Maximum number of entries in the response.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "The token used to retrieve the next page results.", + // "description": "Token to retrieve a specific page.", // "location": "query", // "type": "string" // }, // "parent": { - // "description": "Required. The parent resource name of the integration execution.", + // "description": "Required. projects/{gcp_project_id}/locations/{location}/products/{product}/integrations/{integration_name}/executions/{execution_name}", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/executions/[^/]+$", // "required": true, // "type": "string" - // }, - // "readMask": { - // "description": "View mask for the response data. If set, only the field specified will be returned as part of the result. If not set, all fields in event execution snapshot will be filled and returned.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1alpha/{+parent}/executionsnapshots", + // "path": "v1alpha/{+parent}/suspensions", // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse" + // "$ref": "GoogleCloudIntegrationsV1alphaListSuspensionsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -21699,7 +19915,7 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall) Do(opt // 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 *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse) error) error { +func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListSuspensionsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -21717,42 +19933,37 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall) Pages( } } -// method id "integrations.projects.locations.products.integrations.versions.archive": +// method id "integrations.projects.locations.products.integrations.executions.suspensions.resolve": -type ProjectsLocationsProductsIntegrationsVersionsArchiveCall struct { - s *Service - name string - googlecloudintegrationsv1alphaarchiveintegrationversionrequest *GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall struct { + s *Service + name string + googlecloudintegrationsv1alpharesolvesuspensionrequest *GoogleCloudIntegrationsV1alphaResolveSuspensionRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Archive: Soft-deletes the integration. Changes the status of the -// integration to ARCHIVED. If the integration being ARCHIVED is tagged -// as "HEAD", the tag is removed from this snapshot and set to the -// previous non-ARCHIVED snapshot. The PUBLISH_REQUESTED, -// DUE_FOR_DELETION tags are removed too. This RPC throws an exception -// if the version being archived is DRAFT, and if the `locked_by` user -// is not the same as the user performing the Archive. Audit fields -// updated include last_modified_timestamp, last_modified_by. Any -// existing lock is released when Archiving a integration. Currently, -// there is no unarchive mechanism. +// Resolve: * Resolves (lifts/rejects) any number of suspensions. If the +// integration is already running, only the status of the suspension is +// updated. Otherwise, the suspended integration will begin execution +// again. // -// - name: The version to archive. Format: -// projects/{project}/locations/{location}/integrations/{integration}/v -// ersions/{version}. -func (r *ProjectsLocationsProductsIntegrationsVersionsService) Archive(name string, googlecloudintegrationsv1alphaarchiveintegrationversionrequest *GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionRequest) *ProjectsLocationsProductsIntegrationsVersionsArchiveCall { - c := &ProjectsLocationsProductsIntegrationsVersionsArchiveCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: +// projects/{gcp_project_id}/locations/{location}/products/{product}/in +// tegrations/{integration_name}/executions/{execution_name}/suspension +// s/{suspension_id}. +func (r *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsService) Resolve(name string, googlecloudintegrationsv1alpharesolvesuspensionrequest *GoogleCloudIntegrationsV1alphaResolveSuspensionRequest) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall { + c := &ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudintegrationsv1alphaarchiveintegrationversionrequest = googlecloudintegrationsv1alphaarchiveintegrationversionrequest + c.googlecloudintegrationsv1alpharesolvesuspensionrequest = googlecloudintegrationsv1alpharesolvesuspensionrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsProductsIntegrationsVersionsArchiveCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsVersionsArchiveCall { +func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -21760,21 +19971,21 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsArchiveCall) Fields(s ...g // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsProductsIntegrationsVersionsArchiveCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsVersionsArchiveCall { +func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsProductsIntegrationsVersionsArchiveCall) Header() http.Header { +func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsProductsIntegrationsVersionsArchiveCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -21782,14 +19993,14 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsArchiveCall) doRequest(alt } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaarchiveintegrationversionrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alpharesolvesuspensionrequest) 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}:archive") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}:resolve") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -21802,175 +20013,17 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsArchiveCall) doRequest(alt return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "integrations.projects.locations.products.integrations.versions.archive" call. +// Do executes the "integrations.projects.locations.products.integrations.executions.suspensions.resolve" call. // Exactly one of -// *GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse.Serve -// rResponse.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsProductsIntegrationsVersionsArchiveCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Soft-deletes the integration. Changes the status of the integration to ARCHIVED. If the integration being ARCHIVED is tagged as \"HEAD\", the tag is removed from this snapshot and set to the previous non-ARCHIVED snapshot. The PUBLISH_REQUESTED, DUE_FOR_DELETION tags are removed too. This RPC throws an exception if the version being archived is DRAFT, and if the `locked_by` user is not the same as the user performing the Archive. Audit fields updated include last_modified_timestamp, last_modified_by. Any existing lock is released when Archiving a integration. Currently, there is no unarchive mechanism.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}:archive", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.products.integrations.versions.archive", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The version to archive. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}:archive", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.integrations.versions.create": - -type ProjectsLocationsProductsIntegrationsVersionsCreateCall struct { - s *Service - parent string - googlecloudintegrationsv1alphaintegrationversion *GoogleCloudIntegrationsV1alphaIntegrationVersion - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Create: Create a integration with a draft version in the specified -// project. -// -// - parent: The parent resource where this version will be created. -// Format: -// projects/{project}/locations/{location}/integrations/{integration}. -func (r *ProjectsLocationsProductsIntegrationsVersionsService) Create(parent string, googlecloudintegrationsv1alphaintegrationversion *GoogleCloudIntegrationsV1alphaIntegrationVersion) *ProjectsLocationsProductsIntegrationsVersionsCreateCall { - c := &ProjectsLocationsProductsIntegrationsVersionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudintegrationsv1alphaintegrationversion = googlecloudintegrationsv1alphaintegrationversion - return c -} - -// NewIntegration sets the optional parameter "newIntegration": Set this -// flag to true, if draft version is to be created for a brand new -// integration. False, if the request is for an existing integration. -// For backward compatibility reasons, even if this flag is set to -// `false` and no existing integration is found, a new draft integration -// will still be created. -func (c *ProjectsLocationsProductsIntegrationsVersionsCreateCall) NewIntegration(newIntegration bool) *ProjectsLocationsProductsIntegrationsVersionsCreateCall { - c.urlParams_.Set("newIntegration", fmt.Sprint(newIntegration)) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsProductsIntegrationsVersionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsVersionsCreateCall { - 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 *ProjectsLocationsProductsIntegrationsVersionsCreateCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsVersionsCreateCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsProductsIntegrationsVersionsCreateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsProductsIntegrationsVersionsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-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.googlecloudintegrationsv1alphaintegrationversion) - 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}/versions") - 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 "integrations.projects.locations.products.integrations.versions.create" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaIntegrationVersion or -// error will be non-nil. Any non-2xx status code is an error. Response +// *GoogleCloudIntegrationsV1alphaResolveSuspensionResponse or error +// will be non-nil. Any non-2xx status code is an error. Response // headers are in either -// *GoogleCloudIntegrationsV1alphaIntegrationVersion.ServerResponse.Heade -// r or (if a response was returned at all) in +// *GoogleCloudIntegrationsV1alphaResolveSuspensionResponse.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 *ProjectsLocationsProductsIntegrationsVersionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaIntegrationVersion, error) { +func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaResolveSuspensionResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -21989,7 +20042,7 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsCreateCall) Do(opts ...goo if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudIntegrationsV1alphaIntegrationVersion{ + ret := &GoogleCloudIntegrationsV1alphaResolveSuspensionResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -22001,33 +20054,28 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsCreateCall) Do(opts ...goo } return ret, nil // { - // "description": "Create a integration with a draft version in the specified project.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions", + // "description": "* Resolves (lifts/rejects) any number of suspensions. If the integration is already running, only the status of the suspension is updated. Otherwise, the suspended integration will begin execution again.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/executions/{executionsId}/suspensions/{suspensionsId}:resolve", // "httpMethod": "POST", - // "id": "integrations.projects.locations.products.integrations.versions.create", + // "id": "integrations.projects.locations.products.integrations.executions.suspensions.resolve", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "newIntegration": { - // "description": "Set this flag to true, if draft version is to be created for a brand new integration. False, if the request is for an existing integration. For backward compatibility reasons, even if this flag is set to `false` and no existing integration is found, a new draft integration will still be created.", - // "location": "query", - // "type": "boolean" - // }, - // "parent": { - // "description": "Required. The parent resource where this version will be created. Format: projects/{project}/locations/{location}/integrations/{integration}", + // "name": { + // "description": "Required. projects/{gcp_project_id}/locations/{location}/products/{product}/integrations/{integration_name}/executions/{execution_name}/suspensions/{suspension_id}", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/executions/[^/]+/suspensions/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1alpha/{+parent}/versions", + // "path": "v1alpha/{+name}:resolve", // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaIntegrationVersion" + // "$ref": "GoogleCloudIntegrationsV1alphaResolveSuspensionRequest" // }, // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaIntegrationVersion" + // "$ref": "GoogleCloudIntegrationsV1alphaResolveSuspensionResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -22036,37 +20084,45 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsCreateCall) Do(opts ...goo } -// method id "integrations.projects.locations.products.integrations.versions.deactivate": +// method id "integrations.projects.locations.products.integrations.versions.create": -type ProjectsLocationsProductsIntegrationsVersionsDeactivateCall struct { - s *Service - name string - googlecloudintegrationsv1alphadeactivateintegrationversionrequest *GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsProductsIntegrationsVersionsCreateCall struct { + s *Service + parent string + googlecloudintegrationsv1alphaintegrationversion *GoogleCloudIntegrationsV1alphaIntegrationVersion + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Deactivate: Sets the status of the ACTIVE integration to SNAPSHOT -// with a new tag "PREVIOUSLY_PUBLISHED" after validating it. The "HEAD" -// and "PUBLISH_REQUESTED" tags do not change. This RPC throws an -// exception if the version being snapshot is not ACTIVE. Audit fields -// added include action, action_by, action_timestamp. +// Create: Create a integration with a draft version in the specified +// project. // -// - name: The version to deactivate. Format: -// projects/{project}/locations/{location}/integrations/{integration}/v -// ersions/{version}. -func (r *ProjectsLocationsProductsIntegrationsVersionsService) Deactivate(name string, googlecloudintegrationsv1alphadeactivateintegrationversionrequest *GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionRequest) *ProjectsLocationsProductsIntegrationsVersionsDeactivateCall { - c := &ProjectsLocationsProductsIntegrationsVersionsDeactivateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.googlecloudintegrationsv1alphadeactivateintegrationversionrequest = googlecloudintegrationsv1alphadeactivateintegrationversionrequest +// - parent: The parent resource where this version will be created. +// Format: +// projects/{project}/locations/{location}/integrations/{integration}. +func (r *ProjectsLocationsProductsIntegrationsVersionsService) Create(parent string, googlecloudintegrationsv1alphaintegrationversion *GoogleCloudIntegrationsV1alphaIntegrationVersion) *ProjectsLocationsProductsIntegrationsVersionsCreateCall { + c := &ProjectsLocationsProductsIntegrationsVersionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudintegrationsv1alphaintegrationversion = googlecloudintegrationsv1alphaintegrationversion + return c +} + +// NewIntegration sets the optional parameter "newIntegration": Set this +// flag to true, if draft version is to be created for a brand new +// integration. False, if the request is for an existing integration. +// For backward compatibility reasons, even if this flag is set to +// `false` and no existing integration is found, a new draft integration +// will still be created. +func (c *ProjectsLocationsProductsIntegrationsVersionsCreateCall) NewIntegration(newIntegration bool) *ProjectsLocationsProductsIntegrationsVersionsCreateCall { + c.urlParams_.Set("newIntegration", fmt.Sprint(newIntegration)) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsProductsIntegrationsVersionsDeactivateCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsVersionsDeactivateCall { +func (c *ProjectsLocationsProductsIntegrationsVersionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsVersionsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -22074,21 +20130,21 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsDeactivateCall) Fields(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 *ProjectsLocationsProductsIntegrationsVersionsDeactivateCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsVersionsDeactivateCall { +func (c *ProjectsLocationsProductsIntegrationsVersionsCreateCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsVersionsCreateCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsProductsIntegrationsVersionsDeactivateCall) Header() http.Header { +func (c *ProjectsLocationsProductsIntegrationsVersionsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsProductsIntegrationsVersionsDeactivateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsProductsIntegrationsVersionsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -22096,14 +20152,14 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsDeactivateCall) doRequest( } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphadeactivateintegrationversionrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaintegrationversion) 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}:deactivate") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/versions") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -22111,22 +20167,21 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsDeactivateCall) doRequest( } 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 "integrations.projects.locations.products.integrations.versions.deactivate" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse.Se -// rverResponse.Header or (if a response was returned at all) in +// Do executes the "integrations.projects.locations.products.integrations.versions.create" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaIntegrationVersion or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaIntegrationVersion.ServerResponse.Heade +// r or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsProductsIntegrationsVersionsDeactivateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse, error) { +func (c *ProjectsLocationsProductsIntegrationsVersionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaIntegrationVersion, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -22145,7 +20200,7 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsDeactivateCall) Do(opts .. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse{ + ret := &GoogleCloudIntegrationsV1alphaIntegrationVersion{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -22157,28 +20212,33 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsDeactivateCall) Do(opts .. } return ret, nil // { - // "description": "Sets the status of the ACTIVE integration to SNAPSHOT with a new tag \"PREVIOUSLY_PUBLISHED\" after validating it. The \"HEAD\" and \"PUBLISH_REQUESTED\" tags do not change. This RPC throws an exception if the version being snapshot is not ACTIVE. Audit fields added include action, action_by, action_timestamp.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}:deactivate", + // "description": "Create a integration with a draft version in the specified project.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions", // "httpMethod": "POST", - // "id": "integrations.projects.locations.products.integrations.versions.deactivate", + // "id": "integrations.projects.locations.products.integrations.versions.create", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "Required. The version to deactivate. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", + // "newIntegration": { + // "description": "Set this flag to true, if draft version is to be created for a brand new integration. False, if the request is for an existing integration. For backward compatibility reasons, even if this flag is set to `false` and no existing integration is found, a new draft integration will still be created.", + // "location": "query", + // "type": "boolean" + // }, + // "parent": { + // "description": "Required. The parent resource where this version will be created. Format: projects/{project}/locations/{location}/integrations/{integration}", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1alpha/{+name}:deactivate", + // "path": "v1alpha/{+parent}/versions", // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionRequest" + // "$ref": "GoogleCloudIntegrationsV1alphaIntegrationVersion" // }, // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse" + // "$ref": "GoogleCloudIntegrationsV1alphaIntegrationVersion" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -22511,159 +20571,9 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsDownloadCall) Do(opts ...g } -// method id "integrations.projects.locations.products.integrations.versions.get": - -type ProjectsLocationsProductsIntegrationsVersionsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Get a integration in the specified project. -// -// - name: The version to retrieve. Format: -// projects/{project}/locations/{location}/integrations/{integration}/v -// ersions/{version}. -func (r *ProjectsLocationsProductsIntegrationsVersionsService) Get(name string) *ProjectsLocationsProductsIntegrationsVersionsGetCall { - c := &ProjectsLocationsProductsIntegrationsVersionsGetCall{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 *ProjectsLocationsProductsIntegrationsVersionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsVersionsGetCall { - 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 *ProjectsLocationsProductsIntegrationsVersionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsIntegrationsVersionsGetCall { - 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 *ProjectsLocationsProductsIntegrationsVersionsGetCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsVersionsGetCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsProductsIntegrationsVersionsGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsProductsIntegrationsVersionsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-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 "integrations.projects.locations.products.integrations.versions.get" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaIntegrationVersion or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaIntegrationVersion.ServerResponse.Heade -// r or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsProductsIntegrationsVersionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaIntegrationVersion, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleCloudIntegrationsV1alphaIntegrationVersion{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Get a integration in the specified project.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.products.integrations.versions.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The version to retrieve. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaIntegrationVersion" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.integrations.versions.getBundle": +// method id "integrations.projects.locations.products.integrations.versions.get": -type ProjectsLocationsProductsIntegrationsVersionsGetBundleCall struct { +type ProjectsLocationsProductsIntegrationsVersionsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -22672,12 +20582,13 @@ type ProjectsLocationsProductsIntegrationsVersionsGetBundleCall struct { header_ http.Header } -// GetBundle: PROTECT WITH A VISIBILITY LABEL. THIS METHOD WILL BE MOVED -// TO A SEPARATE SERVICE. RPC to get details of the Bundle +// Get: Get a integration in the specified project. // -// - name: The bundle name. -func (r *ProjectsLocationsProductsIntegrationsVersionsService) GetBundle(name string) *ProjectsLocationsProductsIntegrationsVersionsGetBundleCall { - c := &ProjectsLocationsProductsIntegrationsVersionsGetBundleCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The version to retrieve. Format: +// projects/{project}/locations/{location}/integrations/{integration}/v +// ersions/{version}. +func (r *ProjectsLocationsProductsIntegrationsVersionsService) Get(name string) *ProjectsLocationsProductsIntegrationsVersionsGetCall { + c := &ProjectsLocationsProductsIntegrationsVersionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -22685,7 +20596,7 @@ func (r *ProjectsLocationsProductsIntegrationsVersionsService) GetBundle(name st // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsProductsIntegrationsVersionsGetBundleCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsVersionsGetBundleCall { +func (c *ProjectsLocationsProductsIntegrationsVersionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsVersionsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -22695,7 +20606,7 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsGetBundleCall) Fields(s .. // 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 *ProjectsLocationsProductsIntegrationsVersionsGetBundleCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsIntegrationsVersionsGetBundleCall { +func (c *ProjectsLocationsProductsIntegrationsVersionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsIntegrationsVersionsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -22703,21 +20614,21 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsGetBundleCall) IfNoneMatch // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsProductsIntegrationsVersionsGetBundleCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsVersionsGetBundleCall { +func (c *ProjectsLocationsProductsIntegrationsVersionsGetCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsVersionsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsProductsIntegrationsVersionsGetBundleCall) Header() http.Header { +func (c *ProjectsLocationsProductsIntegrationsVersionsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsProductsIntegrationsVersionsGetBundleCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsProductsIntegrationsVersionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -22730,7 +20641,7 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsGetBundleCall) doRequest(a var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}:getBundle") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -22743,18 +20654,16 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsGetBundleCall) doRequest(a return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "integrations.projects.locations.products.integrations.versions.getBundle" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaGetBundleResponse or +// Do executes the "integrations.projects.locations.products.integrations.versions.get" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaIntegrationVersion or // error will be non-nil. Any non-2xx status code is an error. Response // headers are in either -// *GoogleCloudIntegrationsV1alphaGetBundleResponse.ServerResponse.Header -// -// or (if a response was returned at all) in -// +// *GoogleCloudIntegrationsV1alphaIntegrationVersion.ServerResponse.Heade +// r or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsProductsIntegrationsVersionsGetBundleCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaGetBundleResponse, error) { +func (c *ProjectsLocationsProductsIntegrationsVersionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaIntegrationVersion, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -22773,7 +20682,7 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsGetBundleCall) Do(opts ... if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudIntegrationsV1alphaGetBundleResponse{ + ret := &GoogleCloudIntegrationsV1alphaIntegrationVersion{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -22785,25 +20694,25 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsGetBundleCall) Do(opts ... } return ret, nil // { - // "description": "PROTECT WITH A VISIBILITY LABEL. THIS METHOD WILL BE MOVED TO A SEPARATE SERVICE. RPC to get details of the Bundle", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}:getBundle", + // "description": "Get a integration in the specified project.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}", // "httpMethod": "GET", - // "id": "integrations.projects.locations.products.integrations.versions.getBundle", + // "id": "integrations.projects.locations.products.integrations.versions.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The bundle name.", + // "description": "Required. The version to retrieve. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1alpha/{+name}:getBundle", + // "path": "v1alpha/{+name}", // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaGetBundleResponse" + // "$ref": "GoogleCloudIntegrationsV1alphaIntegrationVersion" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -23685,151 +21594,6 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsUnpublishCall) Do(opts ... } -// method id "integrations.projects.locations.products.integrations.versions.updateBundle": - -type ProjectsLocationsProductsIntegrationsVersionsUpdateBundleCall struct { - s *Service - name string - googlecloudintegrationsv1alphaupdatebundlerequest *GoogleCloudIntegrationsV1alphaUpdateBundleRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// UpdateBundle: THIS METHOD WILL BE MOVED TO A SEPARATE SERVICE. RPC to -// update the Bundle -// -// - name: Bundle name. -func (r *ProjectsLocationsProductsIntegrationsVersionsService) UpdateBundle(name string, googlecloudintegrationsv1alphaupdatebundlerequest *GoogleCloudIntegrationsV1alphaUpdateBundleRequest) *ProjectsLocationsProductsIntegrationsVersionsUpdateBundleCall { - c := &ProjectsLocationsProductsIntegrationsVersionsUpdateBundleCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.googlecloudintegrationsv1alphaupdatebundlerequest = googlecloudintegrationsv1alphaupdatebundlerequest - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsProductsIntegrationsVersionsUpdateBundleCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsVersionsUpdateBundleCall { - 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 *ProjectsLocationsProductsIntegrationsVersionsUpdateBundleCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsVersionsUpdateBundleCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsProductsIntegrationsVersionsUpdateBundleCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsProductsIntegrationsVersionsUpdateBundleCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-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.googlecloudintegrationsv1alphaupdatebundlerequest) - 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}:updateBundle") - 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 "integrations.projects.locations.products.integrations.versions.updateBundle" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaUpdateBundleResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaUpdateBundleResponse.ServerResponse.Hea -// der or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsProductsIntegrationsVersionsUpdateBundleCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaUpdateBundleResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleCloudIntegrationsV1alphaUpdateBundleResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "THIS METHOD WILL BE MOVED TO A SEPARATE SERVICE. RPC to update the Bundle", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}:updateBundle", - // "httpMethod": "PATCH", - // "id": "integrations.projects.locations.products.integrations.versions.updateBundle", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. Bundle name", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}:updateBundle", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaUpdateBundleRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaUpdateBundleResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - // method id "integrations.projects.locations.products.integrations.versions.upload": type ProjectsLocationsProductsIntegrationsVersionsUploadCall struct { @@ -23980,156 +21744,6 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsUploadCall) Do(opts ...goo } -// method id "integrations.projects.locations.products.integrations.versions.validate": - -type ProjectsLocationsProductsIntegrationsVersionsValidateCall struct { - s *Service - name string - googlecloudintegrationsv1alphavalidateintegrationversionrequest *GoogleCloudIntegrationsV1alphaValidateIntegrationVersionRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Validate: Validates the given integration. If the id doesn't exist, a -// NotFoundException is thrown. If validation fails a -// CanonicalCodeException is thrown. If there was no failure an empty -// response is returned. -// -// - name: The version to validate. Format: -// projects/{project}/locations/{location}/integrations/{integration}/v -// ersions/{version}. -func (r *ProjectsLocationsProductsIntegrationsVersionsService) Validate(name string, googlecloudintegrationsv1alphavalidateintegrationversionrequest *GoogleCloudIntegrationsV1alphaValidateIntegrationVersionRequest) *ProjectsLocationsProductsIntegrationsVersionsValidateCall { - c := &ProjectsLocationsProductsIntegrationsVersionsValidateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.googlecloudintegrationsv1alphavalidateintegrationversionrequest = googlecloudintegrationsv1alphavalidateintegrationversionrequest - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsProductsIntegrationsVersionsValidateCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsVersionsValidateCall { - 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 *ProjectsLocationsProductsIntegrationsVersionsValidateCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsVersionsValidateCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsProductsIntegrationsVersionsValidateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsProductsIntegrationsVersionsValidateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-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.googlecloudintegrationsv1alphavalidateintegrationversionrequest) - 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}:validate") - 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 "integrations.projects.locations.products.integrations.versions.validate" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse.Serv -// erResponse.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsProductsIntegrationsVersionsValidateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Validates the given integration. If the id doesn't exist, a NotFoundException is thrown. If validation fails a CanonicalCodeException is thrown. If there was no failure an empty response is returned.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}:validate", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.products.integrations.versions.validate", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The version to validate. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}:validate", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaValidateIntegrationVersionRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - // method id "integrations.projects.locations.products.integrationtemplates.versions.create": type ProjectsLocationsProductsIntegrationtemplatesVersionsCreateCall struct { diff --git a/manufacturers/v1/manufacturers-api.json b/manufacturers/v1/manufacturers-api.json index 190cd82618d..430e35d5409 100644 --- a/manufacturers/v1/manufacturers-api.json +++ b/manufacturers/v1/manufacturers-api.json @@ -107,6 +107,134 @@ "resources": { "accounts": { "resources": { + "languages": { + "resources": { + "productCertifications": { + "methods": { + "delete": { + "description": "Deletes a product certification by its name. This method can only be called by certification bodies.", + "flatPath": "v1/accounts/{accountsId}/languages/{languagesId}/productCertifications/{productCertificationsId}", + "httpMethod": "DELETE", + "id": "manufacturers.accounts.languages.productCertifications.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the product certification to delete. Format: accounts/{account}/languages/{language_code}/productCertifications/{id}", + "location": "path", + "pattern": "^accounts/[^/]+/languages/[^/]+/productCertifications/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/manufacturercenter" + ] + }, + "get": { + "description": "Gets a product certification by its name. This method can only be called by certification bodies.", + "flatPath": "v1/accounts/{accountsId}/languages/{languagesId}/productCertifications/{productCertificationsId}", + "httpMethod": "GET", + "id": "manufacturers.accounts.languages.productCertifications.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the product certification to get. Format: accounts/{account}/languages/{language_code}/productCertifications/{id}", + "location": "path", + "pattern": "^accounts/[^/]+/languages/[^/]+/productCertifications/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "ProductCertification" + }, + "scopes": [ + "https://www.googleapis.com/auth/manufacturercenter" + ] + }, + "list": { + "description": "Lists product certifications from a specified certification body. This method can only be called by certification bodies.", + "flatPath": "v1/accounts/{accountsId}/languages/{languagesId}/productCertifications", + "httpMethod": "GET", + "id": "manufacturers.accounts.languages.productCertifications.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. The maximum number of product certifications to return. The service may return fewer than this value. If unspecified, at most 50 product certifications 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 `ListProductCertifications` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListProductCertifications` must match the call that provided the page token. Required if requesting the second or higher page.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent, which owns this collection of product certifications. Format: accounts/{account}/languages/{language_code}", + "location": "path", + "pattern": "^accounts/[^/]+/languages/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/productCertifications", + "response": { + "$ref": "ListProductCertificationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/manufacturercenter" + ] + }, + "patch": { + "description": "Updates (or creates if allow_missing = true) a product certification which links certifications with products. This method can only be called by certification bodies.", + "flatPath": "v1/accounts/{accountsId}/languages/{languagesId}/productCertifications/{productCertificationsId}", + "httpMethod": "PATCH", + "id": "manufacturers.accounts.languages.productCertifications.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The unique name identifier of a product certification Format: accounts/{account}/languages/{language_code}/productCertifications/{id} Where `id` is a some unique identifier and `language_code` is a 2-letter ISO 639-1 code of a Shopping supported language according to https://support.google.com/merchants/answer/160637.", + "location": "path", + "pattern": "^accounts/[^/]+/languages/[^/]+/productCertifications/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Optional. The list of fields to update according to aip.dev/134. However, only full update is supported as of right now. Therefore, it can be either ignored or set to \"*\". Setting any other values will returns UNIMPLEMENTED error.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "ProductCertification" + }, + "response": { + "$ref": "ProductCertification" + }, + "scopes": [ + "https://www.googleapis.com/auth/manufacturercenter" + ] + } + } + } + } + }, "products": { "methods": { "delete": { @@ -288,7 +416,7 @@ } } }, - "revision": "20220913", + "revision": "20230201", "rootUrl": "https://manufacturers.googleapis.com/", "schemas": { "Attributes": { @@ -503,6 +631,37 @@ }, "type": "object" }, + "Certification": { + "description": "Description of a certification.", + "id": "Certification", + "properties": { + "authority": { + "description": "Required. Name of the certification body.", + "type": "string" + }, + "link": { + "description": "Optional. A URL link to the certification.", + "type": "string" + }, + "logo": { + "description": "Optional. A URL link to the certification logo.", + "type": "string" + }, + "name": { + "description": "Required. Name of the certification.", + "type": "string" + }, + "validUntil": { + "description": "Optional. The expiration date (UTC).", + "type": "string" + }, + "value": { + "description": "Required. A custom value of the certification.", + "type": "string" + } + }, + "type": "object" + }, "Count": { "description": "The number of products in a single package. For more information, see https://support.google.com/manufacturers/answer/6124116#count.", "id": "Count", @@ -757,6 +916,24 @@ }, "type": "object" }, + "ListProductCertificationsResponse": { + "description": "Response for ListProductCertifications method.", + "id": "ListProductCertificationsResponse", + "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" + }, + "productCertifications": { + "description": "The product certifications from the specified certification body.", + "items": { + "$ref": "ProductCertification" + }, + "type": "array" + } + }, + "type": "object" + }, "ListProductsResponse": { "id": "ListProductsResponse", "properties": { @@ -1031,6 +1208,76 @@ }, "type": "object" }, + "ProductCertification": { + "description": "The data matches with the vertical specification for product in http://google3/googlebase/verticals/devel/product_certification", + "id": "ProductCertification", + "properties": { + "brand": { + "description": "Required. This is the product's brand name. The brand is used to help identify your product.", + "type": "string" + }, + "certification": { + "description": "Required. A list of certifications to link to the described product.", + "items": { + "$ref": "Certification" + }, + "type": "array" + }, + "countryCode": { + "description": "Optional. A 2-letter country code (ISO 3166-1 Alpha 2).", + "items": { + "type": "string" + }, + "type": "array" + }, + "destinationStatuses": { + "description": "Output only. The statuses of the destinations.", + "items": { + "$ref": "DestinationStatus" + }, + "readOnly": true, + "type": "array" + }, + "issues": { + "description": "Output only. A server-generated list of issues associated with the product.", + "items": { + "$ref": "Issue" + }, + "readOnly": true, + "type": "array" + }, + "mpn": { + "description": "Optional. These are the Manufacturer Part Numbers (MPN). MPNs are used to uniquely identify a specific product among all products from the same manufacturer", + "items": { + "type": "string" + }, + "type": "array" + }, + "name": { + "description": "Required. The unique name identifier of a product certification Format: accounts/{account}/languages/{language_code}/productCertifications/{id} Where `id` is a some unique identifier and `language_code` is a 2-letter ISO 639-1 code of a Shopping supported language according to https://support.google.com/merchants/answer/160637.", + "type": "string" + }, + "productCode": { + "description": "Optional. Another name for GTIN.", + "items": { + "type": "string" + }, + "type": "array" + }, + "productType": { + "description": "Optional. These are your own product categorization system in your product data.", + "items": { + "type": "string" + }, + "type": "array" + }, + "title": { + "description": "Required. This is to clearly identify the product you are certifying.", + "type": "string" + } + }, + "type": "object" + }, "ProductDetail": { "description": "A product detail of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#productdetail.", "id": "ProductDetail", diff --git a/manufacturers/v1/manufacturers-gen.go b/manufacturers/v1/manufacturers-gen.go index 7cffb635f3e..7248ed078ca 100644 --- a/manufacturers/v1/manufacturers-gen.go +++ b/manufacturers/v1/manufacturers-gen.go @@ -138,6 +138,7 @@ func (s *Service) userAgent() string { func NewAccountsService(s *Service) *AccountsService { rs := &AccountsService{s: s} + rs.Languages = NewAccountsLanguagesService(s) rs.Products = NewAccountsProductsService(s) return rs } @@ -145,9 +146,32 @@ func NewAccountsService(s *Service) *AccountsService { type AccountsService struct { s *Service + Languages *AccountsLanguagesService + Products *AccountsProductsService } +func NewAccountsLanguagesService(s *Service) *AccountsLanguagesService { + rs := &AccountsLanguagesService{s: s} + rs.ProductCertifications = NewAccountsLanguagesProductCertificationsService(s) + return rs +} + +type AccountsLanguagesService struct { + s *Service + + ProductCertifications *AccountsLanguagesProductCertificationsService +} + +func NewAccountsLanguagesProductCertificationsService(s *Service) *AccountsLanguagesProductCertificationsService { + rs := &AccountsLanguagesProductCertificationsService{s: s} + return rs +} + +type AccountsLanguagesProductCertificationsService struct { + s *Service +} + func NewAccountsProductsService(s *Service) *AccountsProductsService { rs := &AccountsProductsService{s: s} return rs @@ -389,6 +413,49 @@ func (s *Capacity) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// Certification: Description of a certification. +type Certification struct { + // Authority: Required. Name of the certification body. + Authority string `json:"authority,omitempty"` + + // Link: Optional. A URL link to the certification. + Link string `json:"link,omitempty"` + + // Logo: Optional. A URL link to the certification logo. + Logo string `json:"logo,omitempty"` + + // Name: Required. Name of the certification. + Name string `json:"name,omitempty"` + + // ValidUntil: Optional. The expiration date (UTC). + ValidUntil string `json:"validUntil,omitempty"` + + // Value: Required. A custom value of the certification. + Value string `json:"value,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Authority") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Authority") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Certification) MarshalJSON() ([]byte, error) { + type NoMethod Certification + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Count: The number of products in a single package. For more // information, see // https://support.google.com/manufacturers/answer/6124116#count. @@ -753,6 +820,45 @@ func (s *Issue) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ListProductCertificationsResponse: Response for +// ListProductCertifications method. +type ListProductCertificationsResponse 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"` + + // ProductCertifications: The product certifications from the specified + // certification body. + ProductCertifications []*ProductCertification `json:"productCertifications,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 *ListProductCertificationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListProductCertificationsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + type ListProductsResponse struct { // NextPageToken: The token for the retrieval of the next page of // product statuses. @@ -1082,6 +1188,79 @@ func (s *Product) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ProductCertification: The data matches with the vertical +// specification for product in +// http://google3/googlebase/verticals/devel/product_certification +type ProductCertification struct { + // Brand: Required. This is the product's brand name. The brand is used + // to help identify your product. + Brand string `json:"brand,omitempty"` + + // Certification: Required. A list of certifications to link to the + // described product. + Certification []*Certification `json:"certification,omitempty"` + + // CountryCode: Optional. A 2-letter country code (ISO 3166-1 Alpha 2). + CountryCode []string `json:"countryCode,omitempty"` + + // DestinationStatuses: Output only. The statuses of the destinations. + DestinationStatuses []*DestinationStatus `json:"destinationStatuses,omitempty"` + + // Issues: Output only. A server-generated list of issues associated + // with the product. + Issues []*Issue `json:"issues,omitempty"` + + // Mpn: Optional. These are the Manufacturer Part Numbers (MPN). MPNs + // are used to uniquely identify a specific product among all products + // from the same manufacturer + Mpn []string `json:"mpn,omitempty"` + + // Name: Required. The unique name identifier of a product certification + // Format: + // accounts/{account}/languages/{language_code}/productCertifications/{id + // } Where `id` is a some unique identifier and `language_code` is a + // 2-letter ISO 639-1 code of a Shopping supported language according to + // https://support.google.com/merchants/answer/160637. + Name string `json:"name,omitempty"` + + // ProductCode: Optional. Another name for GTIN. + ProductCode []string `json:"productCode,omitempty"` + + // ProductType: Optional. These are your own product categorization + // system in your product data. + ProductType []string `json:"productType,omitempty"` + + // Title: Required. This is to clearly identify the product you are + // certifying. + 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. "Brand") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Brand") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ProductCertification) MarshalJSON() ([]byte, error) { + type NoMethod ProductCertification + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ProductDetail: A product detail of the product. For more information, // see // https://support.google.com/manufacturers/answer/6124116#productdetail. @@ -1168,6 +1347,657 @@ func (s *VoluntaryNutritionFact) UnmarshalJSON(data []byte) error { return nil } +// method id "manufacturers.accounts.languages.productCertifications.delete": + +type AccountsLanguagesProductCertificationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a product certification by its name. This method can +// only be called by certification bodies. +// +// - name: The name of the product certification to delete. Format: +// accounts/{account}/languages/{language_code}/productCertifications/{ +// id}. +func (r *AccountsLanguagesProductCertificationsService) Delete(name string) *AccountsLanguagesProductCertificationsDeleteCall { + c := &AccountsLanguagesProductCertificationsDeleteCall{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 *AccountsLanguagesProductCertificationsDeleteCall) Fields(s ...googleapi.Field) *AccountsLanguagesProductCertificationsDeleteCall { + 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 *AccountsLanguagesProductCertificationsDeleteCall) Context(ctx context.Context) *AccountsLanguagesProductCertificationsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *AccountsLanguagesProductCertificationsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsLanguagesProductCertificationsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-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 "manufacturers.accounts.languages.productCertifications.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 *AccountsLanguagesProductCertificationsDeleteCall) 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 product certification by its name. This method can only be called by certification bodies.", + // "flatPath": "v1/accounts/{accountsId}/languages/{languagesId}/productCertifications/{productCertificationsId}", + // "httpMethod": "DELETE", + // "id": "manufacturers.accounts.languages.productCertifications.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the product certification to delete. Format: accounts/{account}/languages/{language_code}/productCertifications/{id}", + // "location": "path", + // "pattern": "^accounts/[^/]+/languages/[^/]+/productCertifications/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/manufacturercenter" + // ] + // } + +} + +// method id "manufacturers.accounts.languages.productCertifications.get": + +type AccountsLanguagesProductCertificationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets a product certification by its name. This method can only +// be called by certification bodies. +// +// - name: The name of the product certification to get. Format: +// accounts/{account}/languages/{language_code}/productCertifications/{ +// id}. +func (r *AccountsLanguagesProductCertificationsService) Get(name string) *AccountsLanguagesProductCertificationsGetCall { + c := &AccountsLanguagesProductCertificationsGetCall{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 *AccountsLanguagesProductCertificationsGetCall) Fields(s ...googleapi.Field) *AccountsLanguagesProductCertificationsGetCall { + 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 *AccountsLanguagesProductCertificationsGetCall) IfNoneMatch(entityTag string) *AccountsLanguagesProductCertificationsGetCall { + 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 *AccountsLanguagesProductCertificationsGetCall) Context(ctx context.Context) *AccountsLanguagesProductCertificationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *AccountsLanguagesProductCertificationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsLanguagesProductCertificationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-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 "manufacturers.accounts.languages.productCertifications.get" call. +// Exactly one of *ProductCertification or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ProductCertification.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *AccountsLanguagesProductCertificationsGetCall) Do(opts ...googleapi.CallOption) (*ProductCertification, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &ProductCertification{ + ServerResponse: googleapi.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 product certification by its name. This method can only be called by certification bodies.", + // "flatPath": "v1/accounts/{accountsId}/languages/{languagesId}/productCertifications/{productCertificationsId}", + // "httpMethod": "GET", + // "id": "manufacturers.accounts.languages.productCertifications.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the product certification to get. Format: accounts/{account}/languages/{language_code}/productCertifications/{id}", + // "location": "path", + // "pattern": "^accounts/[^/]+/languages/[^/]+/productCertifications/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "ProductCertification" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/manufacturercenter" + // ] + // } + +} + +// method id "manufacturers.accounts.languages.productCertifications.list": + +type AccountsLanguagesProductCertificationsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists product certifications from a specified certification +// body. This method can only be called by certification bodies. +// +// - parent: The parent, which owns this collection of product +// certifications. Format: +// accounts/{account}/languages/{language_code}. +func (r *AccountsLanguagesProductCertificationsService) List(parent string) *AccountsLanguagesProductCertificationsListCall { + c := &AccountsLanguagesProductCertificationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of product certifications to return. The service may return fewer +// than this value. If unspecified, at most 50 product certifications +// will be returned. The maximum value is 1000; values above 1000 will +// be coerced to 1000. +func (c *AccountsLanguagesProductCertificationsListCall) PageSize(pageSize int64) *AccountsLanguagesProductCertificationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous `ListProductCertifications` call. Provide +// this to retrieve the subsequent page. When paginating, all other +// parameters provided to `ListProductCertifications` must match the +// call that provided the page token. Required if requesting the second +// or higher page. +func (c *AccountsLanguagesProductCertificationsListCall) PageToken(pageToken string) *AccountsLanguagesProductCertificationsListCall { + 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 *AccountsLanguagesProductCertificationsListCall) Fields(s ...googleapi.Field) *AccountsLanguagesProductCertificationsListCall { + 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 *AccountsLanguagesProductCertificationsListCall) IfNoneMatch(entityTag string) *AccountsLanguagesProductCertificationsListCall { + 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 *AccountsLanguagesProductCertificationsListCall) Context(ctx context.Context) *AccountsLanguagesProductCertificationsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *AccountsLanguagesProductCertificationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsLanguagesProductCertificationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-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}/productCertifications") + 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 "manufacturers.accounts.languages.productCertifications.list" call. +// Exactly one of *ListProductCertificationsResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *ListProductCertificationsResponse.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *AccountsLanguagesProductCertificationsListCall) Do(opts ...googleapi.CallOption) (*ListProductCertificationsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &ListProductCertificationsResponse{ + ServerResponse: googleapi.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 product certifications from a specified certification body. This method can only be called by certification bodies.", + // "flatPath": "v1/accounts/{accountsId}/languages/{languagesId}/productCertifications", + // "httpMethod": "GET", + // "id": "manufacturers.accounts.languages.productCertifications.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "Optional. The maximum number of product certifications to return. The service may return fewer than this value. If unspecified, at most 50 product certifications 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 `ListProductCertifications` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListProductCertifications` must match the call that provided the page token. Required if requesting the second or higher page.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The parent, which owns this collection of product certifications. Format: accounts/{account}/languages/{language_code}", + // "location": "path", + // "pattern": "^accounts/[^/]+/languages/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/productCertifications", + // "response": { + // "$ref": "ListProductCertificationsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/manufacturercenter" + // ] + // } + +} + +// 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 *AccountsLanguagesProductCertificationsListCall) Pages(ctx context.Context, f func(*ListProductCertificationsResponse) 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 "manufacturers.accounts.languages.productCertifications.patch": + +type AccountsLanguagesProductCertificationsPatchCall struct { + s *Service + nameid string + productcertification *ProductCertification + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates (or creates if allow_missing = true) a product +// certification which links certifications with products. This method +// can only be called by certification bodies. +// +// - name: The unique name identifier of a product certification Format: +// accounts/{account}/languages/{language_code}/productCertifications/{ +// id} Where `id` is a some unique identifier and `language_code` is a +// 2-letter ISO 639-1 code of a Shopping supported language according +// to https://support.google.com/merchants/answer/160637. +func (r *AccountsLanguagesProductCertificationsService) Patch(nameid string, productcertification *ProductCertification) *AccountsLanguagesProductCertificationsPatchCall { + c := &AccountsLanguagesProductCertificationsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.nameid = nameid + c.productcertification = productcertification + return c +} + +// UpdateMask sets the optional parameter "updateMask": The list of +// fields to update according to aip.dev/134. However, only full update +// is supported as of right now. Therefore, it can be either ignored or +// set to "*". Setting any other values will returns UNIMPLEMENTED +// error. +func (c *AccountsLanguagesProductCertificationsPatchCall) UpdateMask(updateMask string) *AccountsLanguagesProductCertificationsPatchCall { + 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 *AccountsLanguagesProductCertificationsPatchCall) Fields(s ...googleapi.Field) *AccountsLanguagesProductCertificationsPatchCall { + 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 *AccountsLanguagesProductCertificationsPatchCall) Context(ctx context.Context) *AccountsLanguagesProductCertificationsPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *AccountsLanguagesProductCertificationsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsLanguagesProductCertificationsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-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.productcertification) + 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.nameid, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "manufacturers.accounts.languages.productCertifications.patch" call. +// Exactly one of *ProductCertification or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ProductCertification.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *AccountsLanguagesProductCertificationsPatchCall) Do(opts ...googleapi.CallOption) (*ProductCertification, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &ProductCertification{ + ServerResponse: googleapi.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 (or creates if allow_missing = true) a product certification which links certifications with products. This method can only be called by certification bodies.", + // "flatPath": "v1/accounts/{accountsId}/languages/{languagesId}/productCertifications/{productCertificationsId}", + // "httpMethod": "PATCH", + // "id": "manufacturers.accounts.languages.productCertifications.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The unique name identifier of a product certification Format: accounts/{account}/languages/{language_code}/productCertifications/{id} Where `id` is a some unique identifier and `language_code` is a 2-letter ISO 639-1 code of a Shopping supported language according to https://support.google.com/merchants/answer/160637.", + // "location": "path", + // "pattern": "^accounts/[^/]+/languages/[^/]+/productCertifications/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "Optional. The list of fields to update according to aip.dev/134. However, only full update is supported as of right now. Therefore, it can be either ignored or set to \"*\". Setting any other values will returns UNIMPLEMENTED error.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "request": { + // "$ref": "ProductCertification" + // }, + // "response": { + // "$ref": "ProductCertification" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/manufacturercenter" + // ] + // } + +} + // method id "manufacturers.accounts.products.delete": type AccountsProductsDeleteCall struct { diff --git a/monitoring/v1/monitoring-api.json b/monitoring/v1/monitoring-api.json index 03a95daf9da..4e47129d672 100644 --- a/monitoring/v1/monitoring-api.json +++ b/monitoring/v1/monitoring-api.json @@ -520,6 +520,43 @@ "https://www.googleapis.com/auth/monitoring.read" ] }, + "query_exemplars": { + "description": "Lists exemplars relevant to a given PromQL query,", + "flatPath": "v1/projects/{projectsId}/location/{location}/prometheus/api/v1/query_exemplars", + "httpMethod": "POST", + "id": "monitoring.projects.location.prometheus.api.v1.query_exemplars", + "parameterOrder": [ + "name", + "location" + ], + "parameters": { + "location": { + "description": "Location of the resource information. Has to be \"global\" now.", + "location": "path", + "required": true, + "type": "string" + }, + "name": { + "description": "The project on which to execute the request. Data associcated with the project's workspace stored under the The format is: projects/PROJECT_ID_OR_NUMBER. Open source API but used as a request path prefix to distinguish different virtual Prometheus instances of Google Prometheus Engine.", + "location": "path", + "pattern": "^projects/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}/location/{location}/prometheus/api/v1/query_exemplars", + "request": { + "$ref": "QueryExemplarsRequest" + }, + "response": { + "$ref": "HttpBody" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/monitoring", + "https://www.googleapis.com/auth/monitoring.read" + ] + }, "query_range": { "description": "Evaluate a PromQL query with start, end time range.", "flatPath": "v1/projects/{projectsId}/location/{location}/prometheus/api/v1/query_range", @@ -769,7 +806,7 @@ } } }, - "revision": "20221205", + "revision": "20230130", "rootUrl": "https://monitoring.googleapis.com/", "schemas": { "Aggregation": { @@ -1591,6 +1628,25 @@ }, "type": "object" }, + "QueryExemplarsRequest": { + "description": "QueryExemplarsRequest holds all parameters of the Prometheus upstream API for querying exemplars.", + "id": "QueryExemplarsRequest", + "properties": { + "end": { + "description": "The end time to evaluate the query for. Either floating point UNIX seconds or RFC3339 formatted timestamp.", + "type": "string" + }, + "query": { + "description": "A PromQL query string. Query lanauge documentation: https://prometheus.io/docs/prometheus/latest/querying/basics/.", + "type": "string" + }, + "start": { + "description": "The start time to evaluate the query for. Either floating point UNIX seconds or RFC3339 formatted timestamp.", + "type": "string" + } + }, + "type": "object" + }, "QueryInstantRequest": { "description": "QueryInstantRequest holds all parameters of the Prometheus upstream instant query API plus GCM specific parameters.", "id": "QueryInstantRequest", diff --git a/monitoring/v1/monitoring-gen.go b/monitoring/v1/monitoring-gen.go index 92a93e43229..3568e3463a1 100644 --- a/monitoring/v1/monitoring-gen.go +++ b/monitoring/v1/monitoring-gen.go @@ -1771,6 +1771,44 @@ func (s *PickTimeSeriesFilter) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// QueryExemplarsRequest: QueryExemplarsRequest holds all parameters of +// the Prometheus upstream API for querying exemplars. +type QueryExemplarsRequest struct { + // End: The end time to evaluate the query for. Either floating point + // UNIX seconds or RFC3339 formatted timestamp. + End string `json:"end,omitempty"` + + // Query: A PromQL query string. Query lanauge documentation: + // https://prometheus.io/docs/prometheus/latest/querying/basics/. + Query string `json:"query,omitempty"` + + // Start: The start time to evaluate the query for. Either floating + // point UNIX seconds or RFC3339 formatted timestamp. + Start string `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 *QueryExemplarsRequest) MarshalJSON() ([]byte, error) { + type NoMethod QueryExemplarsRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // QueryInstantRequest: QueryInstantRequest holds all parameters of the // Prometheus upstream instant query API plus GCM specific parameters. type QueryInstantRequest struct { @@ -4705,6 +4743,166 @@ func (c *ProjectsLocationPrometheusApiV1QueryCall) Do(opts ...googleapi.CallOpti } +// method id "monitoring.projects.location.prometheus.api.v1.query_exemplars": + +type ProjectsLocationPrometheusApiV1QueryExemplarsCall struct { + s *Service + name string + location string + queryexemplarsrequest *QueryExemplarsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// QueryExemplars: Lists exemplars relevant to a given PromQL query, +// +// - location: Location of the resource information. Has to be "global" +// now. +// - name: The project on which to execute the request. Data associcated +// with the project's workspace stored under the The format is: +// projects/PROJECT_ID_OR_NUMBER. Open source API but used as a +// request path prefix to distinguish different virtual Prometheus +// instances of Google Prometheus Engine. +func (r *ProjectsLocationPrometheusApiV1Service) QueryExemplars(name string, location string, queryexemplarsrequest *QueryExemplarsRequest) *ProjectsLocationPrometheusApiV1QueryExemplarsCall { + c := &ProjectsLocationPrometheusApiV1QueryExemplarsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.location = location + c.queryexemplarsrequest = queryexemplarsrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationPrometheusApiV1QueryExemplarsCall) Fields(s ...googleapi.Field) *ProjectsLocationPrometheusApiV1QueryExemplarsCall { + 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 *ProjectsLocationPrometheusApiV1QueryExemplarsCall) Context(ctx context.Context) *ProjectsLocationPrometheusApiV1QueryExemplarsCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationPrometheusApiV1QueryExemplarsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationPrometheusApiV1QueryExemplarsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-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.queryexemplarsrequest) + 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}/location/{location}/prometheus/api/v1/query_exemplars") + 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, + "location": c.location, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "monitoring.projects.location.prometheus.api.v1.query_exemplars" call. +// Exactly one of *HttpBody or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *HttpBody.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationPrometheusApiV1QueryExemplarsCall) Do(opts ...googleapi.CallOption) (*HttpBody, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &HttpBody{ + ServerResponse: googleapi.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 exemplars relevant to a given PromQL query,", + // "flatPath": "v1/projects/{projectsId}/location/{location}/prometheus/api/v1/query_exemplars", + // "httpMethod": "POST", + // "id": "monitoring.projects.location.prometheus.api.v1.query_exemplars", + // "parameterOrder": [ + // "name", + // "location" + // ], + // "parameters": { + // "location": { + // "description": "Location of the resource information. Has to be \"global\" now.", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "name": { + // "description": "The project on which to execute the request. Data associcated with the project's workspace stored under the The format is: projects/PROJECT_ID_OR_NUMBER. Open source API but used as a request path prefix to distinguish different virtual Prometheus instances of Google Prometheus Engine.", + // "location": "path", + // "pattern": "^projects/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}/location/{location}/prometheus/api/v1/query_exemplars", + // "request": { + // "$ref": "QueryExemplarsRequest" + // }, + // "response": { + // "$ref": "HttpBody" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/monitoring", + // "https://www.googleapis.com/auth/monitoring.read" + // ] + // } + +} + // method id "monitoring.projects.location.prometheus.api.v1.query_range": type ProjectsLocationPrometheusApiV1QueryRangeCall struct { diff --git a/monitoring/v3/monitoring-api.json b/monitoring/v3/monitoring-api.json index cac762165e4..49f4ba7b2aa 100644 --- a/monitoring/v3/monitoring-api.json +++ b/monitoring/v3/monitoring-api.json @@ -2714,7 +2714,7 @@ } } }, - "revision": "20230123", + "revision": "20230130", "rootUrl": "https://monitoring.googleapis.com/", "schemas": { "Aggregation": { @@ -3334,7 +3334,7 @@ "id": "Criteria", "properties": { "policies": { - "description": "The specific AlertPolicy names for the alert that should be snoozed. The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID] There is a limit of 100 policies per snooze. This limit is checked during snooze creation.", + "description": "The specific AlertPolicy names for the alert that should be snoozed. The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID] There is a limit of 16 policies per snooze. This limit is checked during snooze creation.", "items": { "type": "string" }, diff --git a/monitoring/v3/monitoring-gen.go b/monitoring/v3/monitoring-gen.go index 013c2e34e4e..b7a994b0b9a 100644 --- a/monitoring/v3/monitoring-gen.go +++ b/monitoring/v3/monitoring-gen.go @@ -1621,7 +1621,7 @@ type Criteria struct { // Policies: The specific AlertPolicy names for the alert that should be // snoozed. The format is: // projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID] There is a - // limit of 100 policies per snooze. This limit is checked during snooze + // limit of 16 policies per snooze. This limit is checked during snooze // creation. Policies []string `json:"policies,omitempty"` diff --git a/recaptchaenterprise/v1/recaptchaenterprise-api.json b/recaptchaenterprise/v1/recaptchaenterprise-api.json index 555a35844c5..c40a4a2dba0 100644 --- a/recaptchaenterprise/v1/recaptchaenterprise-api.json +++ b/recaptchaenterprise/v1/recaptchaenterprise-api.json @@ -514,7 +514,7 @@ } } }, - "revision": "20221212", + "revision": "20230129", "rootUrl": "https://recaptchaenterprise.googleapis.com/", "schemas": { "GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessment": { @@ -681,6 +681,10 @@ "type": "string" }, "type": "array" + }, + "transactionEvent": { + "$ref": "GoogleCloudRecaptchaenterpriseV1TransactionEvent", + "description": "Optional. If the Assessment is part of a Payment Transaction, provide details on Payment Lifecycle Events that occur in the Transaction." } }, "type": "object" @@ -692,7 +696,7 @@ "type": "object" }, "GoogleCloudRecaptchaenterpriseV1Assessment": { - "description": "A recaptcha assessment resource.", + "description": "A reCAPTCHA Enterprise assessment resource.", "id": "GoogleCloudRecaptchaenterpriseV1Assessment", "properties": { "accountDefenderAssessment": { @@ -795,11 +799,11 @@ "type": "string" }, "siteKey": { - "description": "Optional. The site key that was used to invoke reCAPTCHA on your site and generate the token.", + "description": "Optional. The site key that was used to invoke reCAPTCHA Enterprise on your site and generate the token.", "type": "string" }, "token": { - "description": "Optional. The user response token provided by the reCAPTCHA client-side integration on your site.", + "description": "Optional. The user response token provided by the reCAPTCHA Enterprise client-side integration on your site.", "type": "string" }, "userAgent": { @@ -1230,6 +1234,73 @@ }, "type": "object" }, + "GoogleCloudRecaptchaenterpriseV1TransactionEvent": { + "description": "Describes an event in the lifecycle of a payment transaction.", + "id": "GoogleCloudRecaptchaenterpriseV1TransactionEvent", + "properties": { + "eventTime": { + "description": "Optional. Timestamp when this transaction event occurred; otherwise assumed to be the time of the API call.", + "format": "google-datetime", + "type": "string" + }, + "eventType": { + "description": "Optional. The type of this transaction event.", + "enum": [ + "TRANSACTION_EVENT_TYPE_UNSPECIFIED", + "MERCHANT_APPROVE", + "MERCHANT_DENY", + "MANUAL_REVIEW", + "AUTHORIZATION", + "AUTHORIZATION_DECLINE", + "PAYMENT_CAPTURE", + "PAYMENT_CAPTURE_DECLINE", + "CANCEL", + "CHARGEBACK_INQUIRY", + "CHARGEBACK_ALERT", + "FRAUD_NOTIFICATION", + "CHARGEBACK", + "CHARGEBACK_REPRESENTMENT", + "CHARGEBACK_REVERSE", + "REFUND_REQUEST", + "REFUND_DECLINE", + "REFUND", + "REFUND_REVERSE" + ], + "enumDescriptions": [ + "Default, unspecified event type.", + "Indicates that the transaction is approved by the merchant's risk engine. The accompanying reasons can include 'INHOUSE', 'ACCERTIFY', or 'RECAPTCHA'.", + "Indicates that the transaction is denied and concluded due to risks detected by the merchant's risk engine. The accompanying reasons can include 'INHOUSE', 'ACCERTIFY', 'MANUAL_REVIEW', or 'RECAPTCHA'.", + "Indicates that the transaction is being evaluated by a human, due to suspicion or risk.", + "Indicates that the authorization attempt with the card issuer succeeded.", + "Indicates that the authorization attempt with the card issuer failed. The accompanying reasons can include Visa's '54' indicating that the card is expired or '82' indicating that the CVV is incorrect.", + "Indicates that the transaction is completed because the funds were settled.", + "Indicates that the transaction could not be completed because the funds were not settled.", + "Indicates that the transaction has been canceled. Specify the reason for the cancellation. For example, 'INSUFFICIENT_INVENTORY'.", + "Indicates that the merchant has received a chargeback inquiry for the transaction, requesting additional information before a chargeback is officially issued and a formal chargeback notification is sent.", + "Indicates that the merchant has received a chargeback alert for the transaction. The process of resolving the dispute without involving the payment network is started.", + "Indicates that a fraud notification is issued for the transaction, sent by the payment instrument's issuing bank because the transaction appears to be fraudulent. We recommend including TC40 or SAFE data in the `reason` field for this event type. For partial chargebacks, we recommend that you include an amount in the `value` field.", + "Indicates that the merchant is informed by the payment network that the transaction has entered the chargeback process. Reason code examples include Discover's '4553' and '6041'. For partial chargebacks, we recommend that you include an amount in the `value` field.", + "Indicates that the transaction has entered the chargeback process, and that the merchant has chosen to enter representment. Reason examples include Discover's '4553' and '6041'. For partial chargebacks, we recommend that you include an amount in the `value` field.", + "Indicates that the transaction has had a chargeback which was illegitimate and was reversed as a result. For partial chargebacks, we recommend that you include an amount in the `value` field.", + "Indicates that the merchant has received a refund for a completed transaction. For partial refunds, we recommend that you include an amount in the `value` field. Reason example: 'TAX_EXEMPT' (partial refund of exempt tax)", + "Indicates that the merchant has received a refund request for this transaction, but that they have declined it. For partial refunds, we recommend that you include an amount in the `value` field. Reason example: 'TAX_EXEMPT' (partial refund of exempt tax)", + "Indicates that the completed transaction was refunded by the merchant. For partial refunds, we recommend that you include an amount in the `value` field. Reason example: 'TAX_EXEMPT' (partial refund of exempt tax)", + "Indicates that the completed transaction was refunded by the merchant, and that this refund was reversed. For partial refunds, we recommend that you include an amount in the `value` field." + ], + "type": "string" + }, + "reason": { + "description": "Optional. The reason or standardized code which corresponds with this transaction event, if one exists. E.g. a CHARGEBACK Event with code 4553.", + "type": "string" + }, + "value": { + "description": "Optional. The value that corresponds with this transaction event, if one exists. E.g. A refund event where $5.00 was refunded. Currency is obtained from the original transaction data.", + "format": "double", + "type": "number" + } + }, + "type": "object" + }, "GoogleCloudRecaptchaenterpriseV1WafSettings": { "description": "Settings specific to keys that can be used for WAF (Web Application Firewall).", "id": "GoogleCloudRecaptchaenterpriseV1WafSettings", diff --git a/recaptchaenterprise/v1/recaptchaenterprise-gen.go b/recaptchaenterprise/v1/recaptchaenterprise-gen.go index 7422af0ae39..65e3c86611a 100644 --- a/recaptchaenterprise/v1/recaptchaenterprise-gen.go +++ b/recaptchaenterprise/v1/recaptchaenterprise-gen.go @@ -429,6 +429,11 @@ type GoogleCloudRecaptchaenterpriseV1AnnotateAssessmentRequest struct { // phishing, or social engineering. Reasons []string `json:"reasons,omitempty"` + // TransactionEvent: Optional. If the Assessment is part of a Payment + // Transaction, provide details on Payment Lifecycle Events that occur + // in the Transaction. + TransactionEvent *GoogleCloudRecaptchaenterpriseV1TransactionEvent `json:"transactionEvent,omitempty"` + // ForceSendFields is a list of field names (e.g. "Annotation") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -460,8 +465,8 @@ type GoogleCloudRecaptchaenterpriseV1AnnotateAssessmentResponse struct { googleapi.ServerResponse `json:"-"` } -// GoogleCloudRecaptchaenterpriseV1Assessment: A recaptcha assessment -// resource. +// GoogleCloudRecaptchaenterpriseV1Assessment: A reCAPTCHA Enterprise +// assessment resource. type GoogleCloudRecaptchaenterpriseV1Assessment struct { // AccountDefenderAssessment: Assessment returned by account defender // when a hashed_account_id is provided. @@ -618,12 +623,12 @@ type GoogleCloudRecaptchaenterpriseV1Event struct { // stable secret. HashedAccountId string `json:"hashedAccountId,omitempty"` - // SiteKey: Optional. The site key that was used to invoke reCAPTCHA on - // your site and generate the token. + // SiteKey: Optional. The site key that was used to invoke reCAPTCHA + // Enterprise on your site and generate the token. SiteKey string `json:"siteKey,omitempty"` // Token: Optional. The user response token provided by the reCAPTCHA - // client-side integration on your site. + // Enterprise client-side integration on your site. Token string `json:"token,omitempty"` // UserAgent: Optional. The user agent present in the request from the @@ -1446,6 +1451,133 @@ func (s *GoogleCloudRecaptchaenterpriseV1TokenProperties) MarshalJSON() ([]byte, return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudRecaptchaenterpriseV1TransactionEvent: Describes an event +// in the lifecycle of a payment transaction. +type GoogleCloudRecaptchaenterpriseV1TransactionEvent struct { + // EventTime: Optional. Timestamp when this transaction event occurred; + // otherwise assumed to be the time of the API call. + EventTime string `json:"eventTime,omitempty"` + + // EventType: Optional. The type of this transaction event. + // + // Possible values: + // "TRANSACTION_EVENT_TYPE_UNSPECIFIED" - Default, unspecified event + // type. + // "MERCHANT_APPROVE" - Indicates that the transaction is approved by + // the merchant's risk engine. The accompanying reasons can include + // 'INHOUSE', 'ACCERTIFY', or 'RECAPTCHA'. + // "MERCHANT_DENY" - Indicates that the transaction is denied and + // concluded due to risks detected by the merchant's risk engine. The + // accompanying reasons can include 'INHOUSE', 'ACCERTIFY', + // 'MANUAL_REVIEW', or 'RECAPTCHA'. + // "MANUAL_REVIEW" - Indicates that the transaction is being evaluated + // by a human, due to suspicion or risk. + // "AUTHORIZATION" - Indicates that the authorization attempt with the + // card issuer succeeded. + // "AUTHORIZATION_DECLINE" - Indicates that the authorization attempt + // with the card issuer failed. The accompanying reasons can include + // Visa's '54' indicating that the card is expired or '82' indicating + // that the CVV is incorrect. + // "PAYMENT_CAPTURE" - Indicates that the transaction is completed + // because the funds were settled. + // "PAYMENT_CAPTURE_DECLINE" - Indicates that the transaction could + // not be completed because the funds were not settled. + // "CANCEL" - Indicates that the transaction has been canceled. + // Specify the reason for the cancellation. For example, + // 'INSUFFICIENT_INVENTORY'. + // "CHARGEBACK_INQUIRY" - Indicates that the merchant has received a + // chargeback inquiry for the transaction, requesting additional + // information before a chargeback is officially issued and a formal + // chargeback notification is sent. + // "CHARGEBACK_ALERT" - Indicates that the merchant has received a + // chargeback alert for the transaction. The process of resolving the + // dispute without involving the payment network is started. + // "FRAUD_NOTIFICATION" - Indicates that a fraud notification is + // issued for the transaction, sent by the payment instrument's issuing + // bank because the transaction appears to be fraudulent. We recommend + // including TC40 or SAFE data in the `reason` field for this event + // type. For partial chargebacks, we recommend that you include an + // amount in the `value` field. + // "CHARGEBACK" - Indicates that the merchant is informed by the + // payment network that the transaction has entered the chargeback + // process. Reason code examples include Discover's '4553' and '6041'. + // For partial chargebacks, we recommend that you include an amount in + // the `value` field. + // "CHARGEBACK_REPRESENTMENT" - Indicates that the transaction has + // entered the chargeback process, and that the merchant has chosen to + // enter representment. Reason examples include Discover's '4553' and + // '6041'. For partial chargebacks, we recommend that you include an + // amount in the `value` field. + // "CHARGEBACK_REVERSE" - Indicates that the transaction has had a + // chargeback which was illegitimate and was reversed as a result. For + // partial chargebacks, we recommend that you include an amount in the + // `value` field. + // "REFUND_REQUEST" - Indicates that the merchant has received a + // refund for a completed transaction. For partial refunds, we recommend + // that you include an amount in the `value` field. Reason example: + // 'TAX_EXEMPT' (partial refund of exempt tax) + // "REFUND_DECLINE" - Indicates that the merchant has received a + // refund request for this transaction, but that they have declined it. + // For partial refunds, we recommend that you include an amount in the + // `value` field. Reason example: 'TAX_EXEMPT' (partial refund of exempt + // tax) + // "REFUND" - Indicates that the completed transaction was refunded by + // the merchant. For partial refunds, we recommend that you include an + // amount in the `value` field. Reason example: 'TAX_EXEMPT' (partial + // refund of exempt tax) + // "REFUND_REVERSE" - Indicates that the completed transaction was + // refunded by the merchant, and that this refund was reversed. For + // partial refunds, we recommend that you include an amount in the + // `value` field. + EventType string `json:"eventType,omitempty"` + + // Reason: Optional. The reason or standardized code which corresponds + // with this transaction event, if one exists. E.g. a CHARGEBACK Event + // with code 4553. + Reason string `json:"reason,omitempty"` + + // Value: Optional. The value that corresponds with this transaction + // event, if one exists. E.g. A refund event where $5.00 was refunded. + // Currency is obtained from the original transaction data. + Value float64 `json:"value,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EventTime") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "EventTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudRecaptchaenterpriseV1TransactionEvent) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRecaptchaenterpriseV1TransactionEvent + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudRecaptchaenterpriseV1TransactionEvent) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudRecaptchaenterpriseV1TransactionEvent + 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 +} + // GoogleCloudRecaptchaenterpriseV1WafSettings: Settings specific to // keys that can be used for WAF (Web Application Firewall). type GoogleCloudRecaptchaenterpriseV1WafSettings struct { diff --git a/retail/v2/retail-api.json b/retail/v2/retail-api.json index 9fd39c1e435..7bba31f5a2a 100644 --- a/retail/v2/retail-api.json +++ b/retail/v2/retail-api.json @@ -2001,7 +2001,7 @@ } } }, - "revision": "20230119", + "revision": "20230126", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -2314,7 +2314,7 @@ "id": "GoogleCloudRetailV2BigQuerySource", "properties": { "dataSchema": { - "description": "The schema to use when parsing the data from the source. Supported values for product imports: * `product` (default): One JSON Product per line. Each product must have a valid Product.id. * `product_merchant_center`: See [Importing catalog data from Merchant Center](https://cloud.google.com/retail/recommendations-ai/docs/upload-catalog#mc). Supported values for user events imports: * `user_event` (default): One JSON UserEvent per line. * `user_event_ga360`: The schema is available here: https://support.google.com/analytics/answer/3437719. * `user_event_ga4`: The schema is available here: https://support.google.com/analytics/answer/7029846. Supported values for auto-completion imports: * `suggestions` (default): One JSON completion suggestion per line. * `denylist`: One JSON deny suggestion per line. * `allowlist`: One JSON allow suggestion per line.", + "description": "The schema to use when parsing the data from the source. Supported values for product imports: * `product` (default): One JSON Product per line. Each product must have a valid Product.id. * `product_merchant_center`: See [Importing catalog data from Merchant Center](https://cloud.google.com/retail/recommendations-ai/docs/upload-catalog#mc). Supported values for user events imports: * `user_event` (default): One JSON UserEvent per line. * `user_event_ga360`: The schema is available here: https://support.google.com/analytics/answer/3437719. * `user_event_ga4`: The schema is available here: https://support.google.com/analytics/answer/7029846. Supported values for autocomplete imports: * `suggestions` (default): One JSON completion suggestion per line. * `denylist`: One JSON deny suggestion per line. * `allowlist`: One JSON allow suggestion per line.", "type": "string" }, "datasetId": { @@ -2482,7 +2482,7 @@ "type": "object" }, "GoogleCloudRetailV2CompleteQueryResponse": { - "description": "Response of the auto-complete query.", + "description": "Response of the autocomplete query.", "id": "GoogleCloudRetailV2CompleteQueryResponse", "properties": { "attributionToken": { diff --git a/retail/v2/retail-gen.go b/retail/v2/retail-gen.go index a74450dc0af..0417c883116 100644 --- a/retail/v2/retail-gen.go +++ b/retail/v2/retail-gen.go @@ -937,7 +937,7 @@ type GoogleCloudRetailV2BigQuerySource struct { // available here: https://support.google.com/analytics/answer/3437719. // * `user_event_ga4`: The schema is available here: // https://support.google.com/analytics/answer/7029846. Supported values - // for auto-completion imports: * `suggestions` (default): One JSON + // for autocomplete imports: * `suggestions` (default): One JSON // completion suggestion per line. * `denylist`: One JSON deny // suggestion per line. * `allowlist`: One JSON allow suggestion per // line. @@ -1211,7 +1211,7 @@ func (s *GoogleCloudRetailV2ColorInfo) MarshalJSON() ([]byte, error) { } // GoogleCloudRetailV2CompleteQueryResponse: Response of the -// auto-complete query. +// autocomplete query. type GoogleCloudRetailV2CompleteQueryResponse struct { // AttributionToken: A unique complete token. This should be included in // the UserEvent.completion_detail for search events resulting from this diff --git a/retail/v2alpha/retail-api.json b/retail/v2alpha/retail-api.json index dc4cc01ea64..a52ff5db21e 100644 --- a/retail/v2alpha/retail-api.json +++ b/retail/v2alpha/retail-api.json @@ -696,6 +696,11 @@ "name" ], "parameters": { + "cascadeDelete": { + "description": "This value only applies to the case when the target product is of type PRIMARY. When deleting a product of VARIANT/COLLECTION type, this value will be ignored. When set to true, the subsequent variant products will be deleted. When set to false, if the primary product has active variant products, an error will be returned.", + "location": "query", + "type": "boolean" + }, "name": { "description": "Required. Full resource name of Product, such as `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/some_product_id`. If the caller does not have permission to delete the Product, regardless of whether or not it exists, a PERMISSION_DENIED error is returned. If the Product to delete does not exist, a NOT_FOUND error is returned. The Product to delete can neither be a Product.Type.COLLECTION Product member nor a Product.Type.PRIMARY Product with more than one variants. Otherwise, an INVALID_ARGUMENT error is returned. All inventory information for the named Product will be deleted.", "location": "path", @@ -2100,7 +2105,7 @@ } } }, - "revision": "20230119", + "revision": "20230126", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -2848,7 +2853,7 @@ "id": "GoogleCloudRetailV2alphaBigQuerySource", "properties": { "dataSchema": { - "description": "The schema to use when parsing the data from the source. Supported values for product imports: * `product` (default): One JSON Product per line. Each product must have a valid Product.id. * `product_merchant_center`: See [Importing catalog data from Merchant Center](https://cloud.google.com/retail/recommendations-ai/docs/upload-catalog#mc). Supported values for user events imports: * `user_event` (default): One JSON UserEvent per line. * `user_event_ga360`: The schema is available here: https://support.google.com/analytics/answer/3437719. * `user_event_ga4`: The schema is available here: https://support.google.com/analytics/answer/7029846. Supported values for auto-completion imports: * `suggestions` (default): One JSON completion suggestion per line. * `denylist`: One JSON deny suggestion per line. * `allowlist`: One JSON allow suggestion per line.", + "description": "The schema to use when parsing the data from the source. Supported values for product imports: * `product` (default): One JSON Product per line. Each product must have a valid Product.id. * `product_merchant_center`: See [Importing catalog data from Merchant Center](https://cloud.google.com/retail/recommendations-ai/docs/upload-catalog#mc). Supported values for user events imports: * `user_event` (default): One JSON UserEvent per line. * `user_event_ga360`: The schema is available here: https://support.google.com/analytics/answer/3437719. * `user_event_ga4`: The schema is available here: https://support.google.com/analytics/answer/7029846. Supported values for autocomplete imports: * `suggestions` (default): One JSON completion suggestion per line. * `denylist`: One JSON deny suggestion per line. * `allowlist`: One JSON allow suggestion per line.", "type": "string" }, "datasetId": { @@ -3034,7 +3039,7 @@ "type": "object" }, "GoogleCloudRetailV2alphaCompleteQueryResponse": { - "description": "Response of the auto-complete query.", + "description": "Response of the autocomplete query.", "id": "GoogleCloudRetailV2alphaCompleteQueryResponse", "properties": { "attributeResults": { diff --git a/retail/v2alpha/retail-gen.go b/retail/v2alpha/retail-gen.go index ff017b91ae3..7366c04d0b2 100644 --- a/retail/v2alpha/retail-gen.go +++ b/retail/v2alpha/retail-gen.go @@ -1708,7 +1708,7 @@ type GoogleCloudRetailV2alphaBigQuerySource struct { // available here: https://support.google.com/analytics/answer/3437719. // * `user_event_ga4`: The schema is available here: // https://support.google.com/analytics/answer/7029846. Supported values - // for auto-completion imports: * `suggestions` (default): One JSON + // for autocomplete imports: * `suggestions` (default): One JSON // completion suggestion per line. * `denylist`: One JSON deny // suggestion per line. * `allowlist`: One JSON allow suggestion per // line. @@ -2007,7 +2007,7 @@ func (s *GoogleCloudRetailV2alphaColorInfo) MarshalJSON() ([]byte, error) { } // GoogleCloudRetailV2alphaCompleteQueryResponse: Response of the -// auto-complete query. +// autocomplete query. type GoogleCloudRetailV2alphaCompleteQueryResponse struct { // AttributeResults: A map of matched attribute suggestions. This field // is only available for "cloud-retail" dataset. Current supported keys: @@ -11920,6 +11920,17 @@ func (r *ProjectsLocationsCatalogsBranchesProductsService) Delete(name string) * return c } +// CascadeDelete sets the optional parameter "cascadeDelete": This value +// only applies to the case when the target product is of type PRIMARY. +// When deleting a product of VARIANT/COLLECTION type, this value will +// be ignored. When set to true, the subsequent variant products will be +// deleted. When set to false, if the primary product has active variant +// products, an error will be returned. +func (c *ProjectsLocationsCatalogsBranchesProductsDeleteCall) CascadeDelete(cascadeDelete bool) *ProjectsLocationsCatalogsBranchesProductsDeleteCall { + c.urlParams_.Set("cascadeDelete", fmt.Sprint(cascadeDelete)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -12014,6 +12025,11 @@ func (c *ProjectsLocationsCatalogsBranchesProductsDeleteCall) Do(opts ...googlea // "name" // ], // "parameters": { + // "cascadeDelete": { + // "description": "This value only applies to the case when the target product is of type PRIMARY. When deleting a product of VARIANT/COLLECTION type, this value will be ignored. When set to true, the subsequent variant products will be deleted. When set to false, if the primary product has active variant products, an error will be returned.", + // "location": "query", + // "type": "boolean" + // }, // "name": { // "description": "Required. Full resource name of Product, such as `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/some_product_id`. If the caller does not have permission to delete the Product, regardless of whether or not it exists, a PERMISSION_DENIED error is returned. If the Product to delete does not exist, a NOT_FOUND error is returned. The Product to delete can neither be a Product.Type.COLLECTION Product member nor a Product.Type.PRIMARY Product with more than one variants. Otherwise, an INVALID_ARGUMENT error is returned. All inventory information for the named Product will be deleted.", // "location": "path", diff --git a/retail/v2beta/retail-api.json b/retail/v2beta/retail-api.json index 4cee025e5d1..63ef0508152 100644 --- a/retail/v2beta/retail-api.json +++ b/retail/v2beta/retail-api.json @@ -2029,7 +2029,7 @@ } } }, - "revision": "20230119", + "revision": "20230126", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -3421,7 +3421,7 @@ "id": "GoogleCloudRetailV2betaBigQuerySource", "properties": { "dataSchema": { - "description": "The schema to use when parsing the data from the source. Supported values for product imports: * `product` (default): One JSON Product per line. Each product must have a valid Product.id. * `product_merchant_center`: See [Importing catalog data from Merchant Center](https://cloud.google.com/retail/recommendations-ai/docs/upload-catalog#mc). Supported values for user events imports: * `user_event` (default): One JSON UserEvent per line. * `user_event_ga360`: The schema is available here: https://support.google.com/analytics/answer/3437719. * `user_event_ga4`: The schema is available here: https://support.google.com/analytics/answer/7029846. Supported values for auto-completion imports: * `suggestions` (default): One JSON completion suggestion per line. * `denylist`: One JSON deny suggestion per line. * `allowlist`: One JSON allow suggestion per line.", + "description": "The schema to use when parsing the data from the source. Supported values for product imports: * `product` (default): One JSON Product per line. Each product must have a valid Product.id. * `product_merchant_center`: See [Importing catalog data from Merchant Center](https://cloud.google.com/retail/recommendations-ai/docs/upload-catalog#mc). Supported values for user events imports: * `user_event` (default): One JSON UserEvent per line. * `user_event_ga360`: The schema is available here: https://support.google.com/analytics/answer/3437719. * `user_event_ga4`: The schema is available here: https://support.google.com/analytics/answer/7029846. Supported values for autocomplete imports: * `suggestions` (default): One JSON completion suggestion per line. * `denylist`: One JSON deny suggestion per line. * `allowlist`: One JSON allow suggestion per line.", "type": "string" }, "datasetId": { @@ -3607,7 +3607,7 @@ "type": "object" }, "GoogleCloudRetailV2betaCompleteQueryResponse": { - "description": "Response of the auto-complete query.", + "description": "Response of the autocomplete query.", "id": "GoogleCloudRetailV2betaCompleteQueryResponse", "properties": { "attributionToken": { diff --git a/retail/v2beta/retail-gen.go b/retail/v2beta/retail-gen.go index 8ef1b6cd0d8..620a43c1fb6 100644 --- a/retail/v2beta/retail-gen.go +++ b/retail/v2beta/retail-gen.go @@ -2862,7 +2862,7 @@ type GoogleCloudRetailV2betaBigQuerySource struct { // available here: https://support.google.com/analytics/answer/3437719. // * `user_event_ga4`: The schema is available here: // https://support.google.com/analytics/answer/7029846. Supported values - // for auto-completion imports: * `suggestions` (default): One JSON + // for autocomplete imports: * `suggestions` (default): One JSON // completion suggestion per line. * `denylist`: One JSON deny // suggestion per line. * `allowlist`: One JSON allow suggestion per // line. @@ -3160,7 +3160,7 @@ func (s *GoogleCloudRetailV2betaColorInfo) MarshalJSON() ([]byte, error) { } // GoogleCloudRetailV2betaCompleteQueryResponse: Response of the -// auto-complete query. +// autocomplete query. type GoogleCloudRetailV2betaCompleteQueryResponse struct { // AttributionToken: A unique complete token. This should be included in // the UserEvent.completion_detail for search events resulting from this diff --git a/securitycenter/v1/securitycenter-api.json b/securitycenter/v1/securitycenter-api.json index 34f6ebccd40..5fe16e36706 100644 --- a/securitycenter/v1/securitycenter-api.json +++ b/securitycenter/v1/securitycenter-api.json @@ -3372,7 +3372,7 @@ } } }, - "revision": "20230112", + "revision": "20230126", "rootUrl": "https://securitycenter.googleapis.com/", "schemas": { "Access": { @@ -3615,7 +3615,7 @@ "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", + "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.", "items": { "type": "string" }, diff --git a/securitycenter/v1/securitycenter-gen.go b/securitycenter/v1/securitycenter-gen.go index 48767de8e71..7f96327eb84 100644 --- a/securitycenter/v1/securitycenter-gen.go +++ b/securitycenter/v1/securitycenter-gen.go @@ -890,7 +890,9 @@ type Binding struct { // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. // * `group:{emailid}`: An email address that represents a Google group. - // For example, `admins@example.com`. * + // For example, `admins@example.com`. * `domain:{domain}`: The G Suite + // domain (primary) that represents all the users of that domain. For + // example, `google.com` or `example.com`. * // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus // unique identifier) representing a user that has been recently // deleted. For example, `alice@example.com?uid=123456789012345678901`. @@ -907,9 +909,7 @@ type Binding struct { // that has been recently deleted. For example, // `admins@example.com?uid=123456789012345678901`. If the group is // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. * `domain:{domain}`: The G - // Suite domain (primary) that represents all the users of that domain. - // For example, `google.com` or `example.com`. + // group retains the role in the binding. Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. diff --git a/securitycenter/v1beta1/securitycenter-api.json b/securitycenter/v1beta1/securitycenter-api.json index f983049389e..c4d4f4e7ffe 100644 --- a/securitycenter/v1beta1/securitycenter-api.json +++ b/securitycenter/v1beta1/securitycenter-api.json @@ -896,7 +896,7 @@ } } }, - "revision": "20230112", + "revision": "20230126", "rootUrl": "https://securitycenter.googleapis.com/", "schemas": { "Access": { @@ -1124,7 +1124,7 @@ "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", + "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.", "items": { "type": "string" }, diff --git a/securitycenter/v1beta1/securitycenter-gen.go b/securitycenter/v1beta1/securitycenter-gen.go index 56532420af1..40637f2ccc5 100644 --- a/securitycenter/v1beta1/securitycenter-gen.go +++ b/securitycenter/v1beta1/securitycenter-gen.go @@ -597,7 +597,9 @@ type Binding struct { // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. // * `group:{emailid}`: An email address that represents a Google group. - // For example, `admins@example.com`. * + // For example, `admins@example.com`. * `domain:{domain}`: The G Suite + // domain (primary) that represents all the users of that domain. For + // example, `google.com` or `example.com`. * // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus // unique identifier) representing a user that has been recently // deleted. For example, `alice@example.com?uid=123456789012345678901`. @@ -614,9 +616,7 @@ type Binding struct { // that has been recently deleted. For example, // `admins@example.com?uid=123456789012345678901`. If the group is // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. * `domain:{domain}`: The G - // Suite domain (primary) that represents all the users of that domain. - // For example, `google.com` or `example.com`. + // group retains the role in the binding. Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals.