From f5c1eddb1ab1fb63f5dde756b80bdbb9c4b3b2fb Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 4 Oct 2024 00:22:25 -0700 Subject: [PATCH] feat(all): auto-regenerate discovery clients (#2812) --- .../v2beta1/adexchangebuyer2-api.json | 10 +- .../v2beta1/adexchangebuyer2-gen.go | 17 +- .../v1/authorizedbuyersmarketplace-api.json | 10 +- .../v1/authorizedbuyersmarketplace-gen.go | 17 +- .../authorizedbuyersmarketplace-api.json | 10 +- .../authorizedbuyersmarketplace-gen.go | 17 +- batch/v1/batch-api.json | 4 +- batch/v1/batch-gen.go | 3 +- beyondcorp/v1/beyondcorp-api.json | 696 +- beyondcorp/v1/beyondcorp-gen.go | 6464 ++++-- .../v1/businessprofileperformance-api.json | 18 +- .../v1/businessprofileperformance-gen.go | 38 +- calendar/v3/calendar-api.json | 4 +- calendar/v3/calendar-gen.go | 7 +- chromemanagement/v1/chromemanagement-api.json | 8 +- chromemanagement/v1/chromemanagement-gen.go | 2 + clouddeploy/v1/clouddeploy-api.json | 101 +- clouddeploy/v1/clouddeploy-gen.go | 137 +- cloudidentity/v1beta1/cloudidentity-api.json | 4 +- cloudidentity/v1beta1/cloudidentity-gen.go | 4 +- cloudkms/v1/cloudkms-api.json | 4 +- cloudkms/v1/cloudkms-gen.go | 2 +- container/v1beta1/container-api.json | 78 +- container/v1beta1/container-gen.go | 70 + dataproc/v1/dataproc-api.json | 14225 ++++++++---- dataproc/v1/dataproc-gen.go | 18954 ++++++++++++---- .../conversions_v1beta/merchantapi-api.json | 4 +- .../conversions_v1beta/merchantapi-gen.go | 2 +- .../products_v1beta/merchantapi-api.json | 4 +- .../products_v1beta/merchantapi-gen.go | 2 +- .../v1alpha1/migrationcenter-api.json | 9 +- .../v1alpha1/migrationcenter-gen.go | 9 +- .../v1/mybusinessbusinessinformation-api.json | 10 +- .../v1/mybusinessbusinessinformation-gen.go | 17 +- .../v1/mybusinesslodging-api.json | 10 +- mybusinesslodging/v1/mybusinesslodging-gen.go | 17 +- run/v1/run-api.json | 10 +- run/v1/run-gen.go | 4 +- run/v2/run-api.json | 14 +- run/v2/run-gen.go | 8 +- securitycenter/v1/securitycenter-api.json | 232 +- securitycenter/v1/securitycenter-gen.go | 977 +- .../v1beta1/securitycenter-api.json | 25 +- securitycenter/v1beta1/securitycenter-gen.go | 56 +- .../v1beta2/securitycenter-api.json | 25 +- securitycenter/v1beta2/securitycenter-gen.go | 56 +- workflows/v1/workflows-api.json | 4 +- workflows/v1/workflows-gen.go | 2 +- 48 files changed, 29275 insertions(+), 13126 deletions(-) diff --git a/adexchangebuyer2/v2beta1/adexchangebuyer2-api.json b/adexchangebuyer2/v2beta1/adexchangebuyer2-api.json index 100752c04bc..6bad3ca82f4 100644 --- a/adexchangebuyer2/v2beta1/adexchangebuyer2-api.json +++ b/adexchangebuyer2/v2beta1/adexchangebuyer2-api.json @@ -3115,7 +3115,7 @@ } } }, - "revision": "20231206", + "revision": "20241002", "rootUrl": "https://adexchangebuyer.googleapis.com/", "schemas": { "AbsoluteDateRange": { @@ -6570,22 +6570,22 @@ "id": "TimeOfDay", "properties": { "hours": { - "description": "Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value \"24:00:00\" for scenarios like business closing time.", + "description": "Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal to 23. An API may choose to allow the value \"24:00:00\" for scenarios like business closing time.", "format": "int32", "type": "integer" }, "minutes": { - "description": "Minutes of hour of day. Must be from 0 to 59.", + "description": "Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.", "format": "int32", "type": "integer" }, "nanos": { - "description": "Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.", + "description": "Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.", "format": "int32", "type": "integer" }, "seconds": { - "description": "Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.", + "description": "Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds.", "format": "int32", "type": "integer" } diff --git a/adexchangebuyer2/v2beta1/adexchangebuyer2-gen.go b/adexchangebuyer2/v2beta1/adexchangebuyer2-gen.go index 56835874d49..54e1d5e5aa6 100644 --- a/adexchangebuyer2/v2beta1/adexchangebuyer2-gen.go +++ b/adexchangebuyer2/v2beta1/adexchangebuyer2-gen.go @@ -4656,16 +4656,19 @@ func (s TimeInterval) MarshalJSON() ([]byte, error) { // significant or are specified elsewhere. An API may choose to allow leap // seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. type TimeOfDay struct { - // Hours: Hours of day in 24 hour format. Should be from 0 to 23. An API may - // choose to allow the value "24:00:00" for scenarios like business closing - // time. + // Hours: Hours of a day in 24 hour format. Must be greater than or equal to 0 + // and typically must be less than or equal to 23. An API may choose to allow + // the value "24:00:00" for scenarios like business closing time. Hours int64 `json:"hours,omitempty"` - // Minutes: Minutes of hour of day. Must be from 0 to 59. + // Minutes: Minutes of an hour. Must be greater than or equal to 0 and less + // than or equal to 59. Minutes int64 `json:"minutes,omitempty"` - // Nanos: Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. + // Nanos: Fractions of seconds, in nanoseconds. Must be greater than or equal + // to 0 and less than or equal to 999,999,999. Nanos int64 `json:"nanos,omitempty"` - // Seconds: Seconds of minutes of the time. Must normally be from 0 to 59. An - // API may allow the value 60 if it allows leap-seconds. + // Seconds: Seconds of a minute. Must be greater than or equal to 0 and + // typically must be less than or equal to 59. An API may allow the value 60 if + // it allows leap-seconds. Seconds int64 `json:"seconds,omitempty"` // ForceSendFields is a list of field names (e.g. "Hours") to unconditionally // include in API requests. By default, fields with empty or default values are diff --git a/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-api.json b/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-api.json index b0e3e4a9fda..b2d4ec6e54f 100644 --- a/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-api.json +++ b/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-api.json @@ -1367,7 +1367,7 @@ } } }, - "revision": "20240618", + "revision": "20241002", "rootUrl": "https://authorizedbuyersmarketplace.googleapis.com/", "schemas": { "AcceptProposalRequest": { @@ -3111,22 +3111,22 @@ "id": "TimeOfDay", "properties": { "hours": { - "description": "Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value \"24:00:00\" for scenarios like business closing time.", + "description": "Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal to 23. An API may choose to allow the value \"24:00:00\" for scenarios like business closing time.", "format": "int32", "type": "integer" }, "minutes": { - "description": "Minutes of hour of day. Must be from 0 to 59.", + "description": "Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.", "format": "int32", "type": "integer" }, "nanos": { - "description": "Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.", + "description": "Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.", "format": "int32", "type": "integer" }, "seconds": { - "description": "Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.", + "description": "Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds.", "format": "int32", "type": "integer" } diff --git a/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-gen.go b/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-gen.go index ef607d79d79..31d992fafeb 100644 --- a/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-gen.go +++ b/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-gen.go @@ -2246,16 +2246,19 @@ func (s TechnologyTargeting) MarshalJSON() ([]byte, error) { // significant or are specified elsewhere. An API may choose to allow leap // seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. type TimeOfDay struct { - // Hours: Hours of day in 24 hour format. Should be from 0 to 23. An API may - // choose to allow the value "24:00:00" for scenarios like business closing - // time. + // Hours: Hours of a day in 24 hour format. Must be greater than or equal to 0 + // and typically must be less than or equal to 23. An API may choose to allow + // the value "24:00:00" for scenarios like business closing time. Hours int64 `json:"hours,omitempty"` - // Minutes: Minutes of hour of day. Must be from 0 to 59. + // Minutes: Minutes of an hour. Must be greater than or equal to 0 and less + // than or equal to 59. Minutes int64 `json:"minutes,omitempty"` - // Nanos: Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. + // Nanos: Fractions of seconds, in nanoseconds. Must be greater than or equal + // to 0 and less than or equal to 999,999,999. Nanos int64 `json:"nanos,omitempty"` - // Seconds: Seconds of minutes of the time. Must normally be from 0 to 59. An - // API may allow the value 60 if it allows leap-seconds. + // Seconds: Seconds of a minute. Must be greater than or equal to 0 and + // typically must be less than or equal to 59. An API may allow the value 60 if + // it allows leap-seconds. Seconds int64 `json:"seconds,omitempty"` // ForceSendFields is a list of field names (e.g. "Hours") to unconditionally // include in API requests. By default, fields with empty or default values are diff --git a/authorizedbuyersmarketplace/v1alpha/authorizedbuyersmarketplace-api.json b/authorizedbuyersmarketplace/v1alpha/authorizedbuyersmarketplace-api.json index 6c750d43ee2..16f3e45bc29 100644 --- a/authorizedbuyersmarketplace/v1alpha/authorizedbuyersmarketplace-api.json +++ b/authorizedbuyersmarketplace/v1alpha/authorizedbuyersmarketplace-api.json @@ -1550,7 +1550,7 @@ } } }, - "revision": "20240924", + "revision": "20241002", "rootUrl": "https://authorizedbuyersmarketplace.googleapis.com/", "schemas": { "AcceptProposalRequest": { @@ -3366,22 +3366,22 @@ "id": "TimeOfDay", "properties": { "hours": { - "description": "Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value \"24:00:00\" for scenarios like business closing time.", + "description": "Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal to 23. An API may choose to allow the value \"24:00:00\" for scenarios like business closing time.", "format": "int32", "type": "integer" }, "minutes": { - "description": "Minutes of hour of day. Must be from 0 to 59.", + "description": "Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.", "format": "int32", "type": "integer" }, "nanos": { - "description": "Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.", + "description": "Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.", "format": "int32", "type": "integer" }, "seconds": { - "description": "Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.", + "description": "Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds.", "format": "int32", "type": "integer" } diff --git a/authorizedbuyersmarketplace/v1alpha/authorizedbuyersmarketplace-gen.go b/authorizedbuyersmarketplace/v1alpha/authorizedbuyersmarketplace-gen.go index 9fae64c80f3..c087e8c6a7b 100644 --- a/authorizedbuyersmarketplace/v1alpha/authorizedbuyersmarketplace-gen.go +++ b/authorizedbuyersmarketplace/v1alpha/authorizedbuyersmarketplace-gen.go @@ -2341,16 +2341,19 @@ func (s TechnologyTargeting) MarshalJSON() ([]byte, error) { // significant or are specified elsewhere. An API may choose to allow leap // seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. type TimeOfDay struct { - // Hours: Hours of day in 24 hour format. Should be from 0 to 23. An API may - // choose to allow the value "24:00:00" for scenarios like business closing - // time. + // Hours: Hours of a day in 24 hour format. Must be greater than or equal to 0 + // and typically must be less than or equal to 23. An API may choose to allow + // the value "24:00:00" for scenarios like business closing time. Hours int64 `json:"hours,omitempty"` - // Minutes: Minutes of hour of day. Must be from 0 to 59. + // Minutes: Minutes of an hour. Must be greater than or equal to 0 and less + // than or equal to 59. Minutes int64 `json:"minutes,omitempty"` - // Nanos: Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. + // Nanos: Fractions of seconds, in nanoseconds. Must be greater than or equal + // to 0 and less than or equal to 999,999,999. Nanos int64 `json:"nanos,omitempty"` - // Seconds: Seconds of minutes of the time. Must normally be from 0 to 59. An - // API may allow the value 60 if it allows leap-seconds. + // Seconds: Seconds of a minute. Must be greater than or equal to 0 and + // typically must be less than or equal to 59. An API may allow the value 60 if + // it allows leap-seconds. Seconds int64 `json:"seconds,omitempty"` // ForceSendFields is a list of field names (e.g. "Hours") to unconditionally // include in API requests. By default, fields with empty or default values are diff --git a/batch/v1/batch-api.json b/batch/v1/batch-api.json index 43efe14abe3..babc2aa5d58 100644 --- a/batch/v1/batch-api.json +++ b/batch/v1/batch-api.json @@ -561,7 +561,7 @@ } } }, - "revision": "20240919", + "revision": "20240925", "rootUrl": "https://batch.googleapis.com/", "schemas": { "Accelerator": { @@ -1264,7 +1264,7 @@ "type": "string" }, "reservation": { - "description": "Optional. If specified, VMs will consume only the specified reservation. If not specified (default), VMs will consume any applicable reservation.", + "description": "Optional. If specified, VMs will consume only the specified reservation. If not specified (default), VMs will consume any applicable reservation. Additionally, VMs will not consume any reservation if \"NO_RESERVATION\" is specified.", "type": "string" } }, diff --git a/batch/v1/batch-gen.go b/batch/v1/batch-gen.go index 4184353e9ba..f200eefa702 100644 --- a/batch/v1/batch-gen.go +++ b/batch/v1/batch-gen.go @@ -1187,7 +1187,8 @@ type InstancePolicy struct { ProvisioningModel string `json:"provisioningModel,omitempty"` // Reservation: Optional. If specified, VMs will consume only the specified // reservation. If not specified (default), VMs will consume any applicable - // reservation. + // reservation. Additionally, VMs will not consume any reservation if + // "NO_RESERVATION" is specified. Reservation string `json:"reservation,omitempty"` // ForceSendFields is a list of field names (e.g. "Accelerators") to // unconditionally include in API requests. By default, fields with empty or diff --git a/beyondcorp/v1/beyondcorp-api.json b/beyondcorp/v1/beyondcorp-api.json index 0f86faa5e2f..b7d3205033e 100644 --- a/beyondcorp/v1/beyondcorp-api.json +++ b/beyondcorp/v1/beyondcorp-api.json @@ -1713,6 +1713,95 @@ } } }, + "global": { + "resources": { + "securityGateways": { + "resources": { + "applications": { + "methods": { + "create": { + "description": "Creates a new Application in a given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/global/securityGateways/{securityGatewaysId}/applications", + "httpMethod": "POST", + "id": "beyondcorp.projects.locations.global.securityGateways.applications.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "applicationId": { + "description": "Optional. User-settable Application resource ID. * Must start with a letter. * Must contain between 4-63 characters from `/a-z-/`. * Must end with a number or letter.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The resource name of the parent SecurityGateway using the form: `projects/{project_id}/locations/global/securityGateways/{security_gateway_id}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/global/securityGateways/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/applications", + "request": { + "$ref": "GoogleCloudBeyondcorpSecuritygatewaysV1Application" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates the parameters of a single Application.", + "flatPath": "v1/projects/{projectsId}/locations/global/securityGateways/{securityGatewaysId}/applications/{applicationsId}", + "httpMethod": "PATCH", + "id": "beyondcorp.projects.locations.global.securityGateways.applications.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Identifier. Name of the resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/global/securityGateways/[^/]+/applications/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request timed out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + }, + "updateMask": { + "description": "Required. Mutable fields include: display_name.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "GoogleCloudBeyondcorpSecuritygatewaysV1Application" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + } + } + }, "operations": { "methods": { "cancel": { @@ -1835,13 +1924,340 @@ ] } } + }, + "securityGateways": { + "methods": { + "create": { + "description": "Creates a new SecurityGateway in a given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/securityGateways", + "httpMethod": "POST", + "id": "beyondcorp.projects.locations.securityGateways.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The resource project name of the SecurityGateway location using the form: `projects/{project_id}/locations/{location_id}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.", + "location": "query", + "type": "string" + }, + "securityGatewayId": { + "description": "Optional. User-settable SecurityGateway resource ID. * Must start with a letter. * Must contain between 4-63 characters from `/a-z-/`. * Must end with a number or letter.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/securityGateways", + "request": { + "$ref": "GoogleCloudBeyondcorpSecuritygatewaysV1SecurityGateway" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a single SecurityGateway.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/securityGateways/{securityGatewaysId}", + "httpMethod": "DELETE", + "id": "beyondcorp.projects.locations.securityGateways.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. BeyondCorp SecurityGateway name using the form: `projects/{project_id}/locations/{location_id}/securityGateways/{security_gateway_id}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/securityGateways/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + }, + "validateOnly": { + "description": "Optional. If set, validates request by executing a dry-run which would not alter the resource in any way.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets details of a single SecurityGateway.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/securityGateways/{securityGatewaysId}", + "httpMethod": "GET", + "id": "beyondcorp.projects.locations.securityGateways.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name of the PartnerTenant using the form: `projects/{project_id}/locations/{location_id}/securityGateway/{security_gateway_id}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/securityGateways/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudBeyondcorpSecuritygatewaysV1SecurityGateway" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists SecurityGateways in a given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/securityGateways", + "httpMethod": "GET", + "id": "beyondcorp.projects.locations.securityGateways.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. A filter specifying constraints of a list operation. All fields in the SecurityGateway message are supported. For example, the following query will return the SecurityGateway with displayName \"test-security-gateway\" For more information, please refer to https://google.aip.dev/160.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. Specifies the ordering of results. See [Sorting order](https://cloud.google.com/apis/design/design_patterns#sorting_order) for more information.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. The maximum number of items to return. If not specified, a default value of 50 will be used by the service. Regardless of the page_size value, the response may include a partial list and a caller should only rely on response's next_page_token to determine if there are more instances left to be queried.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. The next_page_token value returned from a previous ListSecurityGatewayRequest, if any.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent location to which the resources belong. `projects/{project_id}/locations/{location_id}/`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/securityGateways", + "response": { + "$ref": "GoogleCloudBeyondcorpSecuritygatewaysV1ListSecurityGatewaysResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates the parameters of a single SecurityGateway.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/securityGateways/{securityGatewaysId}", + "httpMethod": "PATCH", + "id": "beyondcorp.projects.locations.securityGateways.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Identifier. Name of the resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/securityGateways/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request timed out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + }, + "updateMask": { + "description": "Required. Mutable fields include: display_name, hubs.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "GoogleCloudBeyondcorpSecuritygatewaysV1SecurityGateway" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "setPeering": { + "description": "This is a custom method to allow customers to create a peering connections between Google network and customer networks. This is enabled only for the allowlisted customers.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/securityGateways/{securityGatewaysId}:setPeering", + "httpMethod": "POST", + "id": "beyondcorp.projects.locations.securityGateways.setPeering", + "parameterOrder": [ + "securityGateway" + ], + "parameters": { + "securityGateway": { + "description": "Required. BeyondCorp SecurityGateway name using the form: `projects/{project}/locations/{location}/securityGateways/{security_gateway}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/securityGateways/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+securityGateway}:setPeering", + "request": { + "$ref": "GoogleCloudBeyondcorpSecuritygatewaysV1SetPeeringRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "applications": { + "methods": { + "delete": { + "description": "Deletes a single Application.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/securityGateways/{securityGatewaysId}/applications/{applicationsId}", + "httpMethod": "DELETE", + "id": "beyondcorp.projects.locations.securityGateways.applications.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/securityGateways/[^/]+/applications/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + }, + "validateOnly": { + "description": "Optional. If set, validates request by executing a dry-run which would not alter the resource in any way.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets details of a single Application.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/securityGateways/{securityGatewaysId}/applications/{applicationsId}", + "httpMethod": "GET", + "id": "beyondcorp.projects.locations.securityGateways.applications.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name of the Application using the form: `projects/{project_id}/locations/global/securityGateway/{security_gateway_id}/applications/{application_id}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/securityGateways/[^/]+/applications/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudBeyondcorpSecuritygatewaysV1Application" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists Applications in a given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/securityGateways/{securityGatewaysId}/applications", + "httpMethod": "GET", + "id": "beyondcorp.projects.locations.securityGateways.applications.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. A filter specifying constraints of a list operation. All fields in the Application message are supported. For example, the following query will return the Application with displayName \"test-application\" For more information, please refer to https://google.aip.dev/160.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. Specifies the ordering of results. See [Sorting order](https://cloud.google.com/apis/design/design_patterns#sorting_order) for more information.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. The maximum number of items to return. If not specified, a default value of 50 will be used by the service. Regardless of the page_size value, the response may include a partial list and a caller should only rely on response's next_page_token to determine if there are more instances left to be queried.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. The next_page_token value returned from a previous ListApplicationsRequest, if any.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent location to which the resources belong. `projects/{project_id}/locations/global/securityGateways/{security_gateway_id}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/securityGateways/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/applications", + "response": { + "$ref": "GoogleCloudBeyondcorpSecuritygatewaysV1ListApplicationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } } } } } } }, - "revision": "20240802", + "revision": "20240925", "rootUrl": "https://beyondcorp.googleapis.com/", "schemas": { "AllocatedConnection": { @@ -3072,6 +3488,284 @@ }, "type": "object" }, + "GoogleCloudBeyondcorpSecuritygatewaysV1Application": { + "description": "A Beyondcorp Application resource information.", + "id": "GoogleCloudBeyondcorpSecuritygatewaysV1Application", + "properties": { + "createTime": { + "description": "Output only. Timestamp when the resource was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "displayName": { + "description": "Optional. An arbitrary user-provided name for the Application resource. Cannot exceed 64 characters.", + "type": "string" + }, + "endpointMatchers": { + "description": "Required. Endpoint matchers associated with an application. A combination of hostname and ports as endpoint matcher is used to match the application. Match conditions for OR logic. An array of match conditions to allow for multiple matching criteria. The rule is considered a match if one the conditions are met. The conditions can be one of the following combination (Hostname), (Hostname \u0026 Ports) EXAMPLES: Hostname - (\"*.abc.com\"), (\"xyz.abc.com\") Hostname and Ports - (\"abc.com\" and \"22\"), (\"abc.com\" and \"22,33\") etc", + "items": { + "$ref": "GoogleCloudBeyondcorpSecuritygatewaysV1EndpointMatcher" + }, + "type": "array" + }, + "name": { + "description": "Identifier. Name of the resource.", + "type": "string" + }, + "updateTime": { + "description": "Output only. Timestamp when the resource was last modified.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudBeyondcorpSecuritygatewaysV1EndpointMatcher": { + "description": "EndpointMatcher contains the information of the endpoint that will match the application.", + "id": "GoogleCloudBeyondcorpSecuritygatewaysV1EndpointMatcher", + "properties": { + "hostname": { + "description": "Required. Hostname of the application.", + "type": "string" + }, + "ports": { + "description": "Optional. Ports of the application.", + "items": { + "format": "int32", + "type": "integer" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudBeyondcorpSecuritygatewaysV1Hub": { + "description": "The Hub message contains information pertaining to the regional data path deployments.", + "id": "GoogleCloudBeyondcorpSecuritygatewaysV1Hub", + "properties": { + "natGatewayConfig": { + "$ref": "GoogleCloudBeyondcorpSecuritygatewaysV1NatGatewayConfig", + "description": "Optional. NAT gateway setup to ensure enough NAT IP addresses are available to handle the traffic needed to access the applications. Allows to explicitly enable or disable the NAT in the Hub along with the total IPs allocated to handle the capacity limits." + } + }, + "type": "object" + }, + "GoogleCloudBeyondcorpSecuritygatewaysV1ListApplicationsResponse": { + "description": "Message for response to listing Applications.", + "id": "GoogleCloudBeyondcorpSecuritygatewaysV1ListApplicationsResponse", + "properties": { + "applications": { + "description": "A list of BeyondCorp Application in the project.", + "items": { + "$ref": "GoogleCloudBeyondcorpSecuritygatewaysV1Application" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token to retrieve the next page of results, or empty if there are no more results in the list.", + "type": "string" + }, + "unreachable": { + "description": "A list of locations that could not be reached.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudBeyondcorpSecuritygatewaysV1ListSecurityGatewaysResponse": { + "description": "Message for response to listing SecurityGateways.", + "id": "GoogleCloudBeyondcorpSecuritygatewaysV1ListSecurityGatewaysResponse", + "properties": { + "nextPageToken": { + "description": "A token to retrieve the next page of results, or empty if there are no more results in the list.", + "type": "string" + }, + "securityGateways": { + "description": "A list of BeyondCorp SecurityGateway in the project.", + "items": { + "$ref": "GoogleCloudBeyondcorpSecuritygatewaysV1SecurityGateway" + }, + "type": "array" + }, + "unreachable": { + "description": "A list of locations that could not be reached.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudBeyondcorpSecuritygatewaysV1NatGatewayConfig": { + "description": "Represents the NAT Gateway configuration.", + "id": "GoogleCloudBeyondcorpSecuritygatewaysV1NatGatewayConfig", + "properties": { + "natIps": { + "description": "Output only. List of NAT IPs that will be used for establishing connection to the endpoints.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudBeyondcorpSecuritygatewaysV1Peering": { + "description": "VPC Peering details.", + "id": "GoogleCloudBeyondcorpSecuritygatewaysV1Peering", + "properties": { + "dnsZones": { + "description": "Optional. List of DNS zones for DNS peering with the customer VPC network.", + "items": { + "type": "string" + }, + "type": "array" + }, + "targetVpcNetwork": { + "description": "Required. The name of the Target VPC network name in the format: `projects/{project}/global/networks/{network}", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudBeyondcorpSecuritygatewaysV1SecurityGateway": { + "description": "Information about a BeyoncCorp SecurityGateway resource.", + "id": "GoogleCloudBeyondcorpSecuritygatewaysV1SecurityGateway", + "properties": { + "createTime": { + "description": "Output only. Timestamp when the resource was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "displayName": { + "description": "Optional. An arbitrary user-provided name for the SecurityGateway. Cannot exceed 64 characters.", + "type": "string" + }, + "externalIps": { + "description": "Output only. IP addresses that will be used for establishing connection to the endpoints.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, + "hubs": { + "additionalProperties": { + "$ref": "GoogleCloudBeyondcorpSecuritygatewaysV1Hub" + }, + "description": "Optional. Map of Hubs that represents regional data path deployment with GCP region as a key.", + "type": "object" + }, + "name": { + "description": "Identifier. Name of the resource.", + "type": "string" + }, + "state": { + "description": "Output only. The operational state of the SecurityGateway.", + "enum": [ + "STATE_UNSPECIFIED", + "CREATING", + "UPDATING", + "DELETING", + "RUNNING", + "DOWN", + "ERROR" + ], + "enumDescriptions": [ + "Default value. This value is unused.", + "SecurityGateway is being created.", + "SecurityGateway is being updated.", + "SecurityGateway is being deleted.", + "SecurityGateway is running.", + "SecurityGateway is down and may be restored in the future. This happens when CCFE sends ProjectState = OFF.", + "SecurityGateway encountered an error and is in an indeterministic state." + ], + "readOnly": true, + "type": "string" + }, + "updateTime": { + "description": "Output only. Timestamp when the resource was last modified.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudBeyondcorpSecuritygatewaysV1SecurityGatewayOperationMetadata": { + "description": "Represents the metadata of the long-running operation.", + "id": "GoogleCloudBeyondcorpSecuritygatewaysV1SecurityGatewayOperationMetadata", + "properties": { + "apiVersion": { + "description": "Output only. API version used to start the operation.", + "readOnly": true, + "type": "string" + }, + "createTime": { + "description": "Output only. The time the operation was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "endTime": { + "description": "Output only. The time the operation finished running.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "requestedCancellation": { + "description": "Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "readOnly": true, + "type": "boolean" + }, + "statusMessage": { + "description": "Output only. Human-readable status of the operation, if any.", + "readOnly": true, + "type": "string" + }, + "target": { + "description": "Output only. Server-defined resource path for the target of the operation.", + "readOnly": true, + "type": "string" + }, + "verb": { + "description": "Output only. Name of the verb executed by the operation.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudBeyondcorpSecuritygatewaysV1SetPeeringRequest": { + "description": "Set Peering request for creating a VPC peering between Google network and customer networks.", + "id": "GoogleCloudBeyondcorpSecuritygatewaysV1SetPeeringRequest", + "properties": { + "requestId": { + "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "type": "string" + }, + "validateOnly": { + "description": "Optional. If set, validates request by executing a dry-run which would not alter the resource in any way.", + "type": "boolean" + }, + "vpcPeerings": { + "description": "Required. List of Peering connection information.", + "items": { + "$ref": "GoogleCloudBeyondcorpSecuritygatewaysV1Peering" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudBeyondcorpSecuritygatewaysV1alphaSecurityGatewayOperationMetadata": { "description": "Represents the metadata of the long-running operation.", "id": "GoogleCloudBeyondcorpSecuritygatewaysV1alphaSecurityGatewayOperationMetadata", diff --git a/beyondcorp/v1/beyondcorp-gen.go b/beyondcorp/v1/beyondcorp-gen.go index 94f86e737b7..d2ffc74c8fa 100644 --- a/beyondcorp/v1/beyondcorp-gen.go +++ b/beyondcorp/v1/beyondcorp-gen.go @@ -257,7 +257,9 @@ func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { rs.AppGateways = NewProjectsLocationsAppGatewaysService(s) rs.ClientConnectorServices = NewProjectsLocationsClientConnectorServicesService(s) rs.ClientGateways = NewProjectsLocationsClientGatewaysService(s) + rs.Global = NewProjectsLocationsGlobalService(s) rs.Operations = NewProjectsLocationsOperationsService(s) + rs.SecurityGateways = NewProjectsLocationsSecurityGatewaysService(s) return rs } @@ -274,7 +276,11 @@ type ProjectsLocationsService struct { ClientGateways *ProjectsLocationsClientGatewaysService + Global *ProjectsLocationsGlobalService + Operations *ProjectsLocationsOperationsService + + SecurityGateways *ProjectsLocationsSecurityGatewaysService } func NewProjectsLocationsAppConnectionsService(s *Service) *ProjectsLocationsAppConnectionsService { @@ -322,6 +328,39 @@ type ProjectsLocationsClientGatewaysService struct { s *Service } +func NewProjectsLocationsGlobalService(s *Service) *ProjectsLocationsGlobalService { + rs := &ProjectsLocationsGlobalService{s: s} + rs.SecurityGateways = NewProjectsLocationsGlobalSecurityGatewaysService(s) + return rs +} + +type ProjectsLocationsGlobalService struct { + s *Service + + SecurityGateways *ProjectsLocationsGlobalSecurityGatewaysService +} + +func NewProjectsLocationsGlobalSecurityGatewaysService(s *Service) *ProjectsLocationsGlobalSecurityGatewaysService { + rs := &ProjectsLocationsGlobalSecurityGatewaysService{s: s} + rs.Applications = NewProjectsLocationsGlobalSecurityGatewaysApplicationsService(s) + return rs +} + +type ProjectsLocationsGlobalSecurityGatewaysService struct { + s *Service + + Applications *ProjectsLocationsGlobalSecurityGatewaysApplicationsService +} + +func NewProjectsLocationsGlobalSecurityGatewaysApplicationsService(s *Service) *ProjectsLocationsGlobalSecurityGatewaysApplicationsService { + rs := &ProjectsLocationsGlobalSecurityGatewaysApplicationsService{s: s} + return rs +} + +type ProjectsLocationsGlobalSecurityGatewaysApplicationsService struct { + s *Service +} + func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService { rs := &ProjectsLocationsOperationsService{s: s} return rs @@ -331,6 +370,27 @@ type ProjectsLocationsOperationsService struct { s *Service } +func NewProjectsLocationsSecurityGatewaysService(s *Service) *ProjectsLocationsSecurityGatewaysService { + rs := &ProjectsLocationsSecurityGatewaysService{s: s} + rs.Applications = NewProjectsLocationsSecurityGatewaysApplicationsService(s) + return rs +} + +type ProjectsLocationsSecurityGatewaysService struct { + s *Service + + Applications *ProjectsLocationsSecurityGatewaysApplicationsService +} + +func NewProjectsLocationsSecurityGatewaysApplicationsService(s *Service) *ProjectsLocationsSecurityGatewaysApplicationsService { + rs := &ProjectsLocationsSecurityGatewaysApplicationsService{s: s} + return rs +} + +type ProjectsLocationsSecurityGatewaysApplicationsService struct { + s *Service +} + // AllocatedConnection: Allocated connection of the AppGateway. type AllocatedConnection struct { // IngressPort: Required. The ingress port of an allocated connection @@ -1614,824 +1674,2060 @@ func (s GoogleCloudBeyondcorpPartnerservicesV1mainPartnerServiceOperationMetadat return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudBeyondcorpSecuritygatewaysV1alphaSecurityGatewayOperationMetadata: -// -// Represents the metadata of the long-running operation. -type GoogleCloudBeyondcorpSecuritygatewaysV1alphaSecurityGatewayOperationMetadata struct { - // ApiVersion: Output only. API version used to start the operation. - ApiVersion string `json:"apiVersion,omitempty"` - // CreateTime: Output only. The time the operation was created. +// GoogleCloudBeyondcorpSecuritygatewaysV1Application: A Beyondcorp Application +// resource information. +type GoogleCloudBeyondcorpSecuritygatewaysV1Application struct { + // CreateTime: Output only. Timestamp when the resource was created. CreateTime string `json:"createTime,omitempty"` - // EndTime: Output only. The time the operation finished running. - EndTime string `json:"endTime,omitempty"` - // RequestedCancellation: Output only. Identifies whether the user has - // requested cancellation of the operation. Operations that have been cancelled - // successfully have Operation.error value with a google.rpc.Status.code of 1, - // corresponding to `Code.CANCELLED`. - RequestedCancellation bool `json:"requestedCancellation,omitempty"` - // StatusMessage: Output only. Human-readable status of the operation, if any. - StatusMessage string `json:"statusMessage,omitempty"` - // Target: Output only. Server-defined resource path for the target of the - // operation. - Target string `json:"target,omitempty"` - // Verb: Output only. Name of the verb executed by the operation. - Verb string `json:"verb,omitempty"` - // ForceSendFields is a list of field names (e.g. "ApiVersion") to + // DisplayName: Optional. An arbitrary user-provided name for the Application + // resource. Cannot exceed 64 characters. + DisplayName string `json:"displayName,omitempty"` + // EndpointMatchers: Required. Endpoint matchers associated with an + // application. A combination of hostname and ports as endpoint matcher is used + // to match the application. Match conditions for OR logic. An array of match + // conditions to allow for multiple matching criteria. The rule is considered a + // match if one the conditions are met. The conditions can be one of the + // following combination (Hostname), (Hostname & Ports) EXAMPLES: Hostname - + // ("*.abc.com"), ("xyz.abc.com") Hostname and Ports - ("abc.com" and "22"), + // ("abc.com" and "22,33") etc + EndpointMatchers []*GoogleCloudBeyondcorpSecuritygatewaysV1EndpointMatcher `json:"endpointMatchers,omitempty"` + // Name: Identifier. Name of the resource. + Name string `json:"name,omitempty"` + // UpdateTime: Output only. Timestamp when the resource was last modified. + UpdateTime string `json:"updateTime,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "CreateTime") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ApiVersion") to include in API + // NullFields is a list of field names (e.g. "CreateTime") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s GoogleCloudBeyondcorpSecuritygatewaysV1alphaSecurityGatewayOperationMetadata) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudBeyondcorpSecuritygatewaysV1alphaSecurityGatewayOperationMetadata +func (s GoogleCloudBeyondcorpSecuritygatewaysV1Application) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudBeyondcorpSecuritygatewaysV1Application return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudLocationListLocationsResponse: The response message for -// Locations.ListLocations. -type GoogleCloudLocationListLocationsResponse struct { - // Locations: A list of locations that matches the specified filter in the - // request. - Locations []*GoogleCloudLocationLocation `json:"locations,omitempty"` - // NextPageToken: The standard List next-page token. +// GoogleCloudBeyondcorpSecuritygatewaysV1EndpointMatcher: EndpointMatcher +// contains the information of the endpoint that will match the application. +type GoogleCloudBeyondcorpSecuritygatewaysV1EndpointMatcher struct { + // Hostname: Required. Hostname of the application. + Hostname string `json:"hostname,omitempty"` + // Ports: Optional. Ports of the application. + Ports []int64 `json:"ports,omitempty"` + // ForceSendFields is a list of field names (e.g. "Hostname") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Hostname") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudBeyondcorpSecuritygatewaysV1EndpointMatcher) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudBeyondcorpSecuritygatewaysV1EndpointMatcher + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudBeyondcorpSecuritygatewaysV1Hub: The Hub message contains +// information pertaining to the regional data path deployments. +type GoogleCloudBeyondcorpSecuritygatewaysV1Hub struct { + // NatGatewayConfig: Optional. NAT gateway setup to ensure enough NAT IP + // addresses are available to handle the traffic needed to access the + // applications. Allows to explicitly enable or disable the NAT in the Hub + // along with the total IPs allocated to handle the capacity limits. + NatGatewayConfig *GoogleCloudBeyondcorpSecuritygatewaysV1NatGatewayConfig `json:"natGatewayConfig,omitempty"` + // ForceSendFields is a list of field names (e.g. "NatGatewayConfig") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "NatGatewayConfig") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudBeyondcorpSecuritygatewaysV1Hub) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudBeyondcorpSecuritygatewaysV1Hub + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudBeyondcorpSecuritygatewaysV1ListApplicationsResponse: Message for +// response to listing Applications. +type GoogleCloudBeyondcorpSecuritygatewaysV1ListApplicationsResponse struct { + // Applications: A list of BeyondCorp Application in the project. + Applications []*GoogleCloudBeyondcorpSecuritygatewaysV1Application `json:"applications,omitempty"` + // NextPageToken: A token to retrieve the next page of results, or empty if + // there are no more results in the list. NextPageToken string `json:"nextPageToken,omitempty"` + // Unreachable: A list of locations that could not be reached. + Unreachable []string `json:"unreachable,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Locations") to + // ForceSendFields is a list of field names (e.g. "Applications") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Locations") to include in API + // NullFields is a list of field names (e.g. "Applications") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s GoogleCloudLocationListLocationsResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudLocationListLocationsResponse +func (s GoogleCloudBeyondcorpSecuritygatewaysV1ListApplicationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudBeyondcorpSecuritygatewaysV1ListApplicationsResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudLocationLocation: A resource that represents a Google Cloud -// location. -type GoogleCloudLocationLocation struct { - // DisplayName: The friendly name for this location, typically a nearby city - // name. For example, "Tokyo". - DisplayName string `json:"displayName,omitempty"` - // Labels: Cross-service attributes for the location. For example - // {"cloud.googleapis.com/region": "us-east1"} - Labels map[string]string `json:"labels,omitempty"` - // LocationId: The canonical id for this location. For example: "us-east1". - LocationId string `json:"locationId,omitempty"` - // Metadata: Service-specific metadata. For example the available capacity at - // the given location. - Metadata googleapi.RawMessage `json:"metadata,omitempty"` - // Name: Resource name for the location, which may vary between - // implementations. For example: - // "projects/example-project/locations/us-east1" - Name string `json:"name,omitempty"` +// GoogleCloudBeyondcorpSecuritygatewaysV1ListSecurityGatewaysResponse: Message +// for response to listing SecurityGateways. +type GoogleCloudBeyondcorpSecuritygatewaysV1ListSecurityGatewaysResponse struct { + // NextPageToken: A token to retrieve the next page of results, or empty if + // there are no more results in the list. + NextPageToken string `json:"nextPageToken,omitempty"` + // SecurityGateways: A list of BeyondCorp SecurityGateway in the project. + SecurityGateways []*GoogleCloudBeyondcorpSecuritygatewaysV1SecurityGateway `json:"securityGateways,omitempty"` + // Unreachable: A list of locations that could not be reached. + Unreachable []string `json:"unreachable,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to + // ForceSendFields is a list of field names (e.g. "NextPageToken") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DisplayName") to include in API + // 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. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s GoogleCloudLocationLocation) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudLocationLocation +func (s GoogleCloudBeyondcorpSecuritygatewaysV1ListSecurityGatewaysResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudBeyondcorpSecuritygatewaysV1ListSecurityGatewaysResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleIamV1AuditConfig: Specifies the audit configuration for a service. The -// configuration determines which permission types are logged, and what -// identities, if any, are exempted from logging. An AuditConfig must have one -// or more AuditLogConfigs. If there are AuditConfigs for both `allServices` -// and a specific service, the union of the two AuditConfigs is used for that -// service: the log_types specified in each AuditConfig are enabled, and the -// exempted_members in each AuditLogConfig are exempted. Example Policy with -// multiple AuditConfigs: { "audit_configs": [ { "service": "allServices", -// "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ -// "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, { "log_type": -// "ADMIN_READ" } ] }, { "service": "sampleservice.googleapis.com", -// "audit_log_configs": [ { "log_type": "DATA_READ" }, { "log_type": -// "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" ] } ] } ] } For -// sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ -// logging. It also exempts `jose@example.com` from DATA_READ logging, and -// `aliya@example.com` from DATA_WRITE logging. -type GoogleIamV1AuditConfig struct { - // AuditLogConfigs: The configuration for logging of each type of permission. - AuditLogConfigs []*GoogleIamV1AuditLogConfig `json:"auditLogConfigs,omitempty"` - // Service: Specifies a service that will be enabled for audit logging. For - // example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` - // is a special value that covers all services. - Service string `json:"service,omitempty"` - // ForceSendFields is a list of field names (e.g. "AuditLogConfigs") to +// GoogleCloudBeyondcorpSecuritygatewaysV1NatGatewayConfig: Represents the NAT +// Gateway configuration. +type GoogleCloudBeyondcorpSecuritygatewaysV1NatGatewayConfig struct { + // NatIps: Output only. List of NAT IPs that will be used for establishing + // connection to the endpoints. + NatIps []string `json:"natIps,omitempty"` + // ForceSendFields is a list of field names (e.g. "NatIps") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "NatIps") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudBeyondcorpSecuritygatewaysV1NatGatewayConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudBeyondcorpSecuritygatewaysV1NatGatewayConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudBeyondcorpSecuritygatewaysV1Peering: VPC Peering details. +type GoogleCloudBeyondcorpSecuritygatewaysV1Peering struct { + // DnsZones: Optional. List of DNS zones for DNS peering with the customer VPC + // network. + DnsZones []string `json:"dnsZones,omitempty"` + // TargetVpcNetwork: Required. The name of the Target VPC network name in the + // format: `projects/{project}/global/networks/{network} + TargetVpcNetwork string `json:"targetVpcNetwork,omitempty"` + // ForceSendFields is a list of field names (e.g. "DnsZones") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AuditLogConfigs") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See + // NullFields is a list of field names (e.g. "DnsZones") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s GoogleIamV1AuditConfig) MarshalJSON() ([]byte, error) { - type NoMethod GoogleIamV1AuditConfig +func (s GoogleCloudBeyondcorpSecuritygatewaysV1Peering) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudBeyondcorpSecuritygatewaysV1Peering return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleIamV1AuditLogConfig: Provides the configuration for logging a type of -// permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ", -// "exempted_members": [ "user:jose@example.com" ] }, { "log_type": -// "DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while -// exempting jose@example.com from DATA_READ logging. -type GoogleIamV1AuditLogConfig struct { - // ExemptedMembers: Specifies the identities that do not cause logging for this - // type of permission. Follows the same format of Binding.members. - ExemptedMembers []string `json:"exemptedMembers,omitempty"` - // LogType: The log type that this config enables. +// GoogleCloudBeyondcorpSecuritygatewaysV1SecurityGateway: Information about a +// BeyoncCorp SecurityGateway resource. +type GoogleCloudBeyondcorpSecuritygatewaysV1SecurityGateway struct { + // CreateTime: Output only. Timestamp when the resource was created. + CreateTime string `json:"createTime,omitempty"` + // DisplayName: Optional. An arbitrary user-provided name for the + // SecurityGateway. Cannot exceed 64 characters. + DisplayName string `json:"displayName,omitempty"` + // ExternalIps: Output only. IP addresses that will be used for establishing + // connection to the endpoints. + ExternalIps []string `json:"externalIps,omitempty"` + // Hubs: Optional. Map of Hubs that represents regional data path deployment + // with GCP region as a key. + Hubs map[string]GoogleCloudBeyondcorpSecuritygatewaysV1Hub `json:"hubs,omitempty"` + // Name: Identifier. Name of the resource. + Name string `json:"name,omitempty"` + // State: Output only. The operational state of the SecurityGateway. // // Possible values: - // "LOG_TYPE_UNSPECIFIED" - Default case. Should never be this. - // "ADMIN_READ" - Admin reads. Example: CloudIAM getIamPolicy - // "DATA_WRITE" - Data writes. Example: CloudSQL Users create - // "DATA_READ" - Data reads. Example: CloudSQL Users list - LogType string `json:"logType,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExemptedMembers") to + // "STATE_UNSPECIFIED" - Default value. This value is unused. + // "CREATING" - SecurityGateway is being created. + // "UPDATING" - SecurityGateway is being updated. + // "DELETING" - SecurityGateway is being deleted. + // "RUNNING" - SecurityGateway is running. + // "DOWN" - SecurityGateway is down and may be restored in the future. This + // happens when CCFE sends ProjectState = OFF. + // "ERROR" - SecurityGateway encountered an error and is in an + // indeterministic state. + State string `json:"state,omitempty"` + // UpdateTime: Output only. Timestamp when the resource was last modified. + UpdateTime string `json:"updateTime,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "CreateTime") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ExemptedMembers") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See + // NullFields is a list of field names (e.g. "CreateTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s GoogleIamV1AuditLogConfig) MarshalJSON() ([]byte, error) { - type NoMethod GoogleIamV1AuditLogConfig +func (s GoogleCloudBeyondcorpSecuritygatewaysV1SecurityGateway) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudBeyondcorpSecuritygatewaysV1SecurityGateway return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleIamV1Binding: Associates `members`, or principals, with a `role`. -type GoogleIamV1Binding struct { - // Condition: The condition that is associated with this binding. If the - // condition evaluates to `true`, then this binding applies to the current - // request. If the condition evaluates to `false`, then this binding does not - // apply to the current request. However, a different role binding might grant - // the same role to one or more of the principals in this binding. To learn - // which resources support conditions in their IAM policies, see the IAM - // documentation - // (https://cloud.google.com/iam/help/conditions/resource-policies). - Condition *GoogleTypeExpr `json:"condition,omitempty"` - // Members: Specifies the principals requesting access for a Google Cloud - // resource. `members` can have the following values: * `allUsers`: A special - // identifier that represents anyone who is on the internet; with or without a - // Google account. * `allAuthenticatedUsers`: A special identifier that - // represents anyone who is authenticated with a Google account or a service - // account. 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`. * - // `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/sub - // ject/{subject_attribute_value}`: A single identity in a workforce identity - // pool. * - // `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/ - // group/{group_id}`: All workforce identities in a group. * - // `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/ - // attribute.{attribute_name}/{attribute_value}`: All workforce identities with - // a specific attribute value. * - // `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/ - // *`: All identities in a workforce identity pool. * - // `principal://iam.googleapis.com/projects/{project_number}/locations/global/wo - // rkloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single - // identity in a workload identity pool. * - // `principalSet://iam.googleapis.com/projects/{project_number}/locations/global - // /workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity pool - // group. * - // `principalSet://iam.googleapis.com/projects/{project_number}/locations/global - // /workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value} - // `: All identities in a workload identity pool with a certain attribute. * - // `principalSet://iam.googleapis.com/projects/{project_number}/locations/global - // /workloadIdentityPools/{pool_id}/*`: All identities in a workload identity - // pool. * `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. * - // `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool - // _id}/subject/{subject_attribute_value}`: Deleted single identity in a - // workforce identity pool. For example, - // `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-po - // ol-id/subject/my-subject-attribute-value`. - Members []string `json:"members,omitempty"` - // Role: Role that is assigned to the list of `members`, or principals. For - // example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview - // of the IAM roles and permissions, see the IAM documentation - // (https://cloud.google.com/iam/docs/roles-overview). For a list of the - // available pre-defined roles, see here - // (https://cloud.google.com/iam/docs/understanding-roles). - Role string `json:"role,omitempty"` - // ForceSendFields is a list of field names (e.g. "Condition") to +// GoogleCloudBeyondcorpSecuritygatewaysV1SecurityGatewayOperationMetadata: +// Represents the metadata of the long-running operation. +type GoogleCloudBeyondcorpSecuritygatewaysV1SecurityGatewayOperationMetadata struct { + // ApiVersion: Output only. API version used to start the operation. + ApiVersion string `json:"apiVersion,omitempty"` + // CreateTime: Output only. The time the operation was created. + CreateTime string `json:"createTime,omitempty"` + // EndTime: Output only. The time the operation finished running. + EndTime string `json:"endTime,omitempty"` + // RequestedCancellation: Output only. Identifies whether the user has + // requested cancellation of the operation. Operations that have been cancelled + // successfully have Operation.error value with a google.rpc.Status.code of 1, + // corresponding to `Code.CANCELLED`. + RequestedCancellation bool `json:"requestedCancellation,omitempty"` + // StatusMessage: Output only. Human-readable status of the operation, if any. + StatusMessage string `json:"statusMessage,omitempty"` + // Target: Output only. Server-defined resource path for the target of the + // operation. + Target string `json:"target,omitempty"` + // Verb: Output only. Name of the verb executed by the operation. + Verb string `json:"verb,omitempty"` + // ForceSendFields is a list of field names (e.g. "ApiVersion") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Condition") to include in API + // NullFields is a list of field names (e.g. "ApiVersion") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s GoogleIamV1Binding) MarshalJSON() ([]byte, error) { - type NoMethod GoogleIamV1Binding +func (s GoogleCloudBeyondcorpSecuritygatewaysV1SecurityGatewayOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudBeyondcorpSecuritygatewaysV1SecurityGatewayOperationMetadata return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleIamV1Policy: An Identity and Access Management (IAM) policy, which -// specifies access controls for Google Cloud resources. A `Policy` is a -// collection of `bindings`. A `binding` binds one or more `members`, or -// principals, to a single `role`. Principals can be user accounts, service -// accounts, Google groups, and domains (such as G Suite). A `role` is a named -// list of permissions; each `role` can be an IAM predefined role or a -// user-created custom role. For some types of Google Cloud resources, a -// `binding` can also specify a `condition`, which is a logical expression that -// allows access to a resource only if the expression evaluates to `true`. A -// condition can add constraints based on attributes of the request, the -// resource, or both. To learn which resources support conditions in their IAM -// policies, see the IAM documentation -// (https://cloud.google.com/iam/help/conditions/resource-policies). **JSON -// example:** ``` { "bindings": [ { "role": -// "roles/resourcemanager.organizationAdmin", "members": [ -// "user:mike@example.com", "group:admins@example.com", "domain:google.com", -// "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": -// "roles/resourcemanager.organizationViewer", "members": [ -// "user:eve@example.com" ], "condition": { "title": "expirable access", -// "description": "Does not grant access after Sep 2020", "expression": -// "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": -// "BwWWja0YfJA=", "version": 3 } ``` **YAML example:** ``` bindings: - -// members: - user:mike@example.com - group:admins@example.com - -// domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com -// role: roles/resourcemanager.organizationAdmin - members: - -// user:eve@example.com role: roles/resourcemanager.organizationViewer -// condition: title: expirable access description: Does not grant access after -// Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') -// etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, -// see the IAM documentation (https://cloud.google.com/iam/docs/). -type GoogleIamV1Policy struct { - // AuditConfigs: Specifies cloud audit logging configuration for this policy. - AuditConfigs []*GoogleIamV1AuditConfig `json:"auditConfigs,omitempty"` - // Bindings: Associates a list of `members`, or principals, with a `role`. - // Optionally, may specify a `condition` that determines how and when the - // `bindings` are applied. Each of the `bindings` must contain at least one - // principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; - // up to 250 of these principals can be Google groups. Each occurrence of a - // principal counts towards these limits. For example, if the `bindings` grant - // 50 different roles to `user:alice@example.com`, and not to any other - // principal, then you can add another 1,450 principals to the `bindings` in - // the `Policy`. - Bindings []*GoogleIamV1Binding `json:"bindings,omitempty"` - // Etag: `etag` is used for optimistic concurrency control as a way to help - // prevent simultaneous updates of a policy from overwriting each other. It is - // strongly suggested that systems make use of the `etag` in the - // read-modify-write cycle to perform policy updates in order to avoid race - // conditions: An `etag` is returned in the response to `getIamPolicy`, and - // systems are expected to put that etag in the request to `setIamPolicy` to - // ensure that their change will be applied to the same version of the policy. - // **Important:** If you use IAM Conditions, you must include the `etag` field - // whenever you call `setIamPolicy`. If you omit this field, then IAM allows - // you to overwrite a version `3` policy with a version `1` policy, and all of - // the conditions in the version `3` policy are lost. - Etag string `json:"etag,omitempty"` - // Version: Specifies the format of the policy. Valid values are `0`, `1`, and - // `3`. Requests that specify an invalid value are rejected. Any operation that - // affects conditional role bindings must specify version `3`. This requirement - // applies to the following operations: * Getting a policy that includes a - // conditional role binding * Adding a conditional role binding to a policy * - // Changing a conditional role binding in a policy * Removing any role binding, - // with or without a condition, from a policy that includes conditions - // **Important:** If you use IAM Conditions, you must include the `etag` field - // whenever you call `setIamPolicy`. If you omit this field, then IAM allows - // you to overwrite a version `3` policy with a version `1` policy, and all of - // the conditions in the version `3` policy are lost. If a policy does not - // include any conditions, operations on that policy may specify any valid - // version or leave the field unset. To learn which resources support - // conditions in their IAM policies, see the IAM documentation - // (https://cloud.google.com/iam/help/conditions/resource-policies). - Version int64 `json:"version,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the server. - googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AuditConfigs") to +// GoogleCloudBeyondcorpSecuritygatewaysV1SetPeeringRequest: Set Peering +// request for creating a VPC peering between Google network and customer +// networks. +type GoogleCloudBeyondcorpSecuritygatewaysV1SetPeeringRequest struct { + // RequestId: Optional. An optional request ID to identify requests. Specify a + // unique request ID so that if you must retry your request, the server will + // know to ignore the request if it has already been completed. The server will + // guarantee that for at least 60 minutes since the first request. For example, + // consider a situation where you make an initial request and the request times + // out. If you make the request again with the same request ID, the server can + // check if original operation with the same request ID was received, and if + // so, will ignore the second request. This prevents clients from accidentally + // creating duplicate commitments. The request ID must be a valid UUID with the + // exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + RequestId string `json:"requestId,omitempty"` + // ValidateOnly: Optional. If set, validates request by executing a dry-run + // which would not alter the resource in any way. + ValidateOnly bool `json:"validateOnly,omitempty"` + // VpcPeerings: Required. List of Peering connection information. + VpcPeerings []*GoogleCloudBeyondcorpSecuritygatewaysV1Peering `json:"vpcPeerings,omitempty"` + // ForceSendFields is a list of field names (e.g. "RequestId") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AuditConfigs") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s GoogleIamV1Policy) MarshalJSON() ([]byte, error) { - type NoMethod GoogleIamV1Policy - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// GoogleIamV1SetIamPolicyRequest: Request message for `SetIamPolicy` method. -type GoogleIamV1SetIamPolicyRequest struct { - // Policy: REQUIRED: The complete policy to be applied to the `resource`. The - // size of the policy is limited to a few 10s of KB. An empty policy is a valid - // policy but certain Google Cloud services (such as Projects) might reject - // them. - Policy *GoogleIamV1Policy `json:"policy,omitempty"` - // UpdateMask: OPTIONAL: A FieldMask specifying which fields of the policy to - // modify. Only the fields in the mask will be modified. If no mask is - // provided, the following default mask is used: `paths: "bindings, etag" - UpdateMask string `json:"updateMask,omitempty"` - // ForceSendFields is a list of field names (e.g. "Policy") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Policy") to include in API + // NullFields is a list of field names (e.g. "RequestId") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s GoogleIamV1SetIamPolicyRequest) MarshalJSON() ([]byte, error) { - type NoMethod GoogleIamV1SetIamPolicyRequest +func (s GoogleCloudBeyondcorpSecuritygatewaysV1SetPeeringRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudBeyondcorpSecuritygatewaysV1SetPeeringRequest return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleIamV1TestIamPermissionsRequest: Request message for -// `TestIamPermissions` method. -type GoogleIamV1TestIamPermissionsRequest struct { - // Permissions: The set of permissions to check for the `resource`. Permissions - // with wildcards (such as `*` or `storage.*`) are not allowed. For more - // information see IAM Overview - // (https://cloud.google.com/iam/docs/overview#permissions). - Permissions []string `json:"permissions,omitempty"` - // ForceSendFields is a list of field names (e.g. "Permissions") to +// GoogleCloudBeyondcorpSecuritygatewaysV1alphaSecurityGatewayOperationMetadata: +// +// Represents the metadata of the long-running operation. +type GoogleCloudBeyondcorpSecuritygatewaysV1alphaSecurityGatewayOperationMetadata struct { + // ApiVersion: Output only. API version used to start the operation. + ApiVersion string `json:"apiVersion,omitempty"` + // CreateTime: Output only. The time the operation was created. + CreateTime string `json:"createTime,omitempty"` + // EndTime: Output only. The time the operation finished running. + EndTime string `json:"endTime,omitempty"` + // RequestedCancellation: Output only. Identifies whether the user has + // requested cancellation of the operation. Operations that have been cancelled + // successfully have Operation.error value with a google.rpc.Status.code of 1, + // corresponding to `Code.CANCELLED`. + RequestedCancellation bool `json:"requestedCancellation,omitempty"` + // StatusMessage: Output only. Human-readable status of the operation, if any. + StatusMessage string `json:"statusMessage,omitempty"` + // Target: Output only. Server-defined resource path for the target of the + // operation. + Target string `json:"target,omitempty"` + // Verb: Output only. Name of the verb executed by the operation. + Verb string `json:"verb,omitempty"` + // ForceSendFields is a list of field names (e.g. "ApiVersion") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Permissions") to include in API + // NullFields is a list of field names (e.g. "ApiVersion") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s GoogleIamV1TestIamPermissionsRequest) MarshalJSON() ([]byte, error) { - type NoMethod GoogleIamV1TestIamPermissionsRequest +func (s GoogleCloudBeyondcorpSecuritygatewaysV1alphaSecurityGatewayOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudBeyondcorpSecuritygatewaysV1alphaSecurityGatewayOperationMetadata return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleIamV1TestIamPermissionsResponse: Response message for -// `TestIamPermissions` method. -type GoogleIamV1TestIamPermissionsResponse struct { - // Permissions: A subset of `TestPermissionsRequest.permissions` that the - // caller is allowed. - Permissions []string `json:"permissions,omitempty"` +// GoogleCloudLocationListLocationsResponse: The response message for +// Locations.ListLocations. +type GoogleCloudLocationListLocationsResponse struct { + // Locations: A list of locations that matches the specified filter in the + // request. + Locations []*GoogleCloudLocationLocation `json:"locations,omitempty"` + // NextPageToken: The standard List next-page token. + NextPageToken string `json:"nextPageToken,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Permissions") to + // ForceSendFields is a list of field names (e.g. "Locations") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Permissions") to include in API + // NullFields is a list of field names (e.g. "Locations") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s GoogleIamV1TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleIamV1TestIamPermissionsResponse - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// GoogleLongrunningCancelOperationRequest: The request message for -// Operations.CancelOperation. -type GoogleLongrunningCancelOperationRequest struct { -} - -// GoogleLongrunningListOperationsResponse: The response message for -// Operations.ListOperations. -type GoogleLongrunningListOperationsResponse struct { - // NextPageToken: The standard List next-page token. - NextPageToken string `json:"nextPageToken,omitempty"` - // Operations: A list of operations that matches the specified filter in the - // request. - Operations []*GoogleLongrunningOperation `json:"operations,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the server. - googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - 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. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleLongrunningListOperationsResponse +func (s GoogleCloudLocationListLocationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudLocationListLocationsResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleLongrunningOperation: This resource represents a long-running -// operation that is the result of a network API call. -type GoogleLongrunningOperation struct { - // Done: If the value is `false`, it means the operation is still in progress. - // If `true`, the operation is completed, and either `error` or `response` is - // available. - Done bool `json:"done,omitempty"` - // Error: The error result of the operation in case of failure or cancellation. - Error *GoogleRpcStatus `json:"error,omitempty"` - // Metadata: Service-specific metadata associated with the operation. It - // typically contains progress information and common metadata such as create - // time. Some services might not provide such metadata. Any method that returns - // a long-running operation should document the metadata type, if any. +// GoogleCloudLocationLocation: A resource that represents a Google Cloud +// location. +type GoogleCloudLocationLocation struct { + // DisplayName: The friendly name for this location, typically a nearby city + // name. For example, "Tokyo". + DisplayName string `json:"displayName,omitempty"` + // Labels: Cross-service attributes for the location. For example + // {"cloud.googleapis.com/region": "us-east1"} + Labels map[string]string `json:"labels,omitempty"` + // LocationId: The canonical id for this location. For example: "us-east1". + LocationId string `json:"locationId,omitempty"` + // Metadata: Service-specific metadata. For example the available capacity at + // the given location. Metadata googleapi.RawMessage `json:"metadata,omitempty"` - // Name: The server-assigned name, which is only unique within the same service - // that originally returns it. If you use the default HTTP mapping, the `name` - // should be a resource name ending with `operations/{unique_id}`. + // Name: Resource name for the location, which may vary between + // implementations. For example: + // "projects/example-project/locations/us-east1" Name string `json:"name,omitempty"` - // Response: The normal, successful response of the operation. If the original - // method returns no data on success, such as `Delete`, the response is - // `google.protobuf.Empty`. If the original method is standard - // `Get`/`Create`/`Update`, the response should be the resource. For other - // methods, the response should have the type `XxxResponse`, where `Xxx` is the - // original method name. For example, if the original method name is - // `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. - Response googleapi.RawMessage `json:"response,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Done") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Done") to include in API requests - // with the JSON null value. By default, fields with empty values are omitted - // from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s GoogleLongrunningOperation) MarshalJSON() ([]byte, error) { - type NoMethod GoogleLongrunningOperation - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// GoogleRpcStatus: The `Status` type defines a logical error model that is -// suitable for different programming environments, including REST APIs and RPC -// APIs. It is used by gRPC (https://github.com/grpc). Each `Status` message -// contains three pieces of data: error code, error message, and error details. -// You can find out more about this error model and how to work with it in the -// API Design Guide (https://cloud.google.com/apis/design/errors). -type GoogleRpcStatus struct { - // Code: The status code, which should be an enum value of google.rpc.Code. - Code int64 `json:"code,omitempty"` - // Details: A list of messages that carry the error details. There is a common - // set of message types for APIs to use. - Details []googleapi.RawMessage `json:"details,omitempty"` - // Message: A developer-facing error message, which should be in English. Any - // user-facing error message should be localized and sent in the - // google.rpc.Status.details field, or localized by the client. - Message string `json:"message,omitempty"` - // ForceSendFields is a list of field names (e.g. "Code") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Code") to include in API requests - // with the JSON null value. By default, fields with empty values are omitted - // from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s GoogleRpcStatus) MarshalJSON() ([]byte, error) { - type NoMethod GoogleRpcStatus - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// GoogleTypeExpr: Represents a textual expression in the Common Expression -// Language (CEL) syntax. CEL is a C-like expression language. The syntax and -// semantics of CEL are documented at https://github.com/google/cel-spec. -// Example (Comparison): title: "Summary size limit" description: "Determines -// if a summary is less than 100 chars" expression: "document.summary.size() < -// 100" Example (Equality): title: "Requestor is owner" description: -// "Determines if requestor is the document owner" expression: "document.owner -// == request.auth.claims.email" Example (Logic): title: "Public documents" -// description: "Determine whether the document should be publicly visible" -// expression: "document.type != 'private' && document.type != 'internal'" -// Example (Data Manipulation): title: "Notification string" description: -// "Create a notification string with a timestamp." expression: "'New message -// received at ' + string(document.create_time)" The exact variables and -// functions that may be referenced within an expression are determined by the -// service that evaluates it. See the service documentation for additional -// information. -type GoogleTypeExpr struct { - // Description: Optional. Description of the expression. This is a longer text - // which describes the expression, e.g. when hovered over it in a UI. - Description string `json:"description,omitempty"` - // Expression: Textual representation of an expression in Common Expression - // Language syntax. - Expression string `json:"expression,omitempty"` - // Location: Optional. String indicating the location of the expression for - // error reporting, e.g. a file name and a position in the file. - Location string `json:"location,omitempty"` - // Title: Optional. Title for the expression, i.e. a short string describing - // its purpose. This can be used e.g. in UIs which allow to enter the - // expression. - Title string `json:"title,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to + // ForceSendFields is a list of field names (e.g. "DisplayName") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Description") to include in API + // NullFields is a list of field names (e.g. "DisplayName") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s GoogleTypeExpr) MarshalJSON() ([]byte, error) { - type NoMethod GoogleTypeExpr +func (s GoogleCloudLocationLocation) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudLocationLocation return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListAppGatewaysResponse: Response message for BeyondCorp.ListAppGateways. -type ListAppGatewaysResponse struct { - // AppGateways: A list of BeyondCorp AppGateways in the project. - AppGateways []*AppGateway `json:"appGateways,omitempty"` - // NextPageToken: A token to retrieve the next page of results, or empty if - // there are no more results in the list. - NextPageToken string `json:"nextPageToken,omitempty"` - // Unreachable: A list of locations that could not be reached. - Unreachable []string `json:"unreachable,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the server. - googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AppGateways") to +// GoogleIamV1AuditConfig: Specifies the audit configuration for a service. The +// configuration determines which permission types are logged, and what +// identities, if any, are exempted from logging. An AuditConfig must have one +// or more AuditLogConfigs. If there are AuditConfigs for both `allServices` +// and a specific service, the union of the two AuditConfigs is used for that +// service: the log_types specified in each AuditConfig are enabled, and the +// exempted_members in each AuditLogConfig are exempted. Example Policy with +// multiple AuditConfigs: { "audit_configs": [ { "service": "allServices", +// "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ +// "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, { "log_type": +// "ADMIN_READ" } ] }, { "service": "sampleservice.googleapis.com", +// "audit_log_configs": [ { "log_type": "DATA_READ" }, { "log_type": +// "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" ] } ] } ] } For +// sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ +// logging. It also exempts `jose@example.com` from DATA_READ logging, and +// `aliya@example.com` from DATA_WRITE logging. +type GoogleIamV1AuditConfig struct { + // AuditLogConfigs: The configuration for logging of each type of permission. + AuditLogConfigs []*GoogleIamV1AuditLogConfig `json:"auditLogConfigs,omitempty"` + // Service: Specifies a service that will be enabled for audit logging. For + // example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` + // is a special value that covers all services. + Service string `json:"service,omitempty"` + // ForceSendFields is a list of field names (e.g. "AuditLogConfigs") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AppGateways") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "AuditLogConfigs") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s ListAppGatewaysResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListAppGatewaysResponse +func (s GoogleIamV1AuditConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleIamV1AuditConfig return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ShouldThrottleResponse: Response message for calling ShouldThrottle -type ShouldThrottleResponse struct { - // ShouldThrottle: Whether the port should be throttled - ShouldThrottle bool `json:"shouldThrottle,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the server. - googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ShouldThrottle") to +// GoogleIamV1AuditLogConfig: Provides the configuration for logging a type of +// permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ", +// "exempted_members": [ "user:jose@example.com" ] }, { "log_type": +// "DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while +// exempting jose@example.com from DATA_READ logging. +type GoogleIamV1AuditLogConfig struct { + // ExemptedMembers: Specifies the identities that do not cause logging for this + // type of permission. Follows the same format of Binding.members. + ExemptedMembers []string `json:"exemptedMembers,omitempty"` + // LogType: The log type that this config enables. + // + // Possible values: + // "LOG_TYPE_UNSPECIFIED" - Default case. Should never be this. + // "ADMIN_READ" - Admin reads. Example: CloudIAM getIamPolicy + // "DATA_WRITE" - Data writes. Example: CloudSQL Users create + // "DATA_READ" - Data reads. Example: CloudSQL Users list + LogType string `json:"logType,omitempty"` + // ForceSendFields is a list of field names (e.g. "ExemptedMembers") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ShouldThrottle") to include in + // NullFields is a list of field names (e.g. "ExemptedMembers") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s ShouldThrottleResponse) MarshalJSON() ([]byte, error) { - type NoMethod ShouldThrottleResponse +func (s GoogleIamV1AuditLogConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleIamV1AuditLogConfig return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Tunnelv1ProtoTunnelerError: TunnelerError is an error proto for errors -// returned by the connection manager. -type Tunnelv1ProtoTunnelerError struct { - // Err: Original raw error - Err string `json:"err,omitempty"` - // Retryable: retryable isn't used for now, but we may want to reuse it in the - // future. - Retryable bool `json:"retryable,omitempty"` - // ForceSendFields is a list of field names (e.g. "Err") to unconditionally - // include in API requests. By default, fields with empty or default values are +// GoogleIamV1Binding: Associates `members`, or principals, with a `role`. +type GoogleIamV1Binding struct { + // Condition: The condition that is associated with this binding. If the + // condition evaluates to `true`, then this binding applies to the current + // request. If the condition evaluates to `false`, then this binding does not + // apply to the current request. However, a different role binding might grant + // the same role to one or more of the principals in this binding. To learn + // which resources support conditions in their IAM policies, see the IAM + // documentation + // (https://cloud.google.com/iam/help/conditions/resource-policies). + Condition *GoogleTypeExpr `json:"condition,omitempty"` + // Members: Specifies the principals requesting access for a Google Cloud + // resource. `members` can have the following values: * `allUsers`: A special + // identifier that represents anyone who is on the internet; with or without a + // Google account. * `allAuthenticatedUsers`: A special identifier that + // represents anyone who is authenticated with a Google account or a service + // account. 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`. * + // `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/sub + // ject/{subject_attribute_value}`: A single identity in a workforce identity + // pool. * + // `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/ + // group/{group_id}`: All workforce identities in a group. * + // `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/ + // attribute.{attribute_name}/{attribute_value}`: All workforce identities with + // a specific attribute value. * + // `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/ + // *`: All identities in a workforce identity pool. * + // `principal://iam.googleapis.com/projects/{project_number}/locations/global/wo + // rkloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single + // identity in a workload identity pool. * + // `principalSet://iam.googleapis.com/projects/{project_number}/locations/global + // /workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity pool + // group. * + // `principalSet://iam.googleapis.com/projects/{project_number}/locations/global + // /workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value} + // `: All identities in a workload identity pool with a certain attribute. * + // `principalSet://iam.googleapis.com/projects/{project_number}/locations/global + // /workloadIdentityPools/{pool_id}/*`: All identities in a workload identity + // pool. * `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. * + // `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool + // _id}/subject/{subject_attribute_value}`: Deleted single identity in a + // workforce identity pool. For example, + // `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-po + // ol-id/subject/my-subject-attribute-value`. + Members []string `json:"members,omitempty"` + // Role: Role that is assigned to the list of `members`, or principals. For + // example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview + // of the IAM roles and permissions, see the IAM documentation + // (https://cloud.google.com/iam/docs/roles-overview). For a list of the + // available pre-defined roles, see here + // (https://cloud.google.com/iam/docs/understanding-roles). + Role string `json:"role,omitempty"` + // ForceSendFields is a list of field names (e.g. "Condition") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Condition") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleIamV1Binding) MarshalJSON() ([]byte, error) { + type NoMethod GoogleIamV1Binding + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleIamV1Policy: An Identity and Access Management (IAM) policy, which +// specifies access controls for Google Cloud resources. A `Policy` is a +// collection of `bindings`. A `binding` binds one or more `members`, or +// principals, to a single `role`. Principals can be user accounts, service +// accounts, Google groups, and domains (such as G Suite). A `role` is a named +// list of permissions; each `role` can be an IAM predefined role or a +// user-created custom role. For some types of Google Cloud resources, a +// `binding` can also specify a `condition`, which is a logical expression that +// allows access to a resource only if the expression evaluates to `true`. A +// condition can add constraints based on attributes of the request, the +// resource, or both. To learn which resources support conditions in their IAM +// policies, see the IAM documentation +// (https://cloud.google.com/iam/help/conditions/resource-policies). **JSON +// example:** ``` { "bindings": [ { "role": +// "roles/resourcemanager.organizationAdmin", "members": [ +// "user:mike@example.com", "group:admins@example.com", "domain:google.com", +// "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": +// "roles/resourcemanager.organizationViewer", "members": [ +// "user:eve@example.com" ], "condition": { "title": "expirable access", +// "description": "Does not grant access after Sep 2020", "expression": +// "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": +// "BwWWja0YfJA=", "version": 3 } ``` **YAML example:** ``` bindings: - +// members: - user:mike@example.com - group:admins@example.com - +// domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com +// role: roles/resourcemanager.organizationAdmin - members: - +// user:eve@example.com role: roles/resourcemanager.organizationViewer +// condition: title: expirable access description: Does not grant access after +// Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') +// etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, +// see the IAM documentation (https://cloud.google.com/iam/docs/). +type GoogleIamV1Policy struct { + // AuditConfigs: Specifies cloud audit logging configuration for this policy. + AuditConfigs []*GoogleIamV1AuditConfig `json:"auditConfigs,omitempty"` + // Bindings: Associates a list of `members`, or principals, with a `role`. + // Optionally, may specify a `condition` that determines how and when the + // `bindings` are applied. Each of the `bindings` must contain at least one + // principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; + // up to 250 of these principals can be Google groups. Each occurrence of a + // principal counts towards these limits. For example, if the `bindings` grant + // 50 different roles to `user:alice@example.com`, and not to any other + // principal, then you can add another 1,450 principals to the `bindings` in + // the `Policy`. + Bindings []*GoogleIamV1Binding `json:"bindings,omitempty"` + // Etag: `etag` is used for optimistic concurrency control as a way to help + // prevent simultaneous updates of a policy from overwriting each other. It is + // strongly suggested that systems make use of the `etag` in the + // read-modify-write cycle to perform policy updates in order to avoid race + // conditions: An `etag` is returned in the response to `getIamPolicy`, and + // systems are expected to put that etag in the request to `setIamPolicy` to + // ensure that their change will be applied to the same version of the policy. + // **Important:** If you use IAM Conditions, you must include the `etag` field + // whenever you call `setIamPolicy`. If you omit this field, then IAM allows + // you to overwrite a version `3` policy with a version `1` policy, and all of + // the conditions in the version `3` policy are lost. + Etag string `json:"etag,omitempty"` + // Version: Specifies the format of the policy. Valid values are `0`, `1`, and + // `3`. Requests that specify an invalid value are rejected. Any operation that + // affects conditional role bindings must specify version `3`. This requirement + // applies to the following operations: * Getting a policy that includes a + // conditional role binding * Adding a conditional role binding to a policy * + // Changing a conditional role binding in a policy * Removing any role binding, + // with or without a condition, from a policy that includes conditions + // **Important:** If you use IAM Conditions, you must include the `etag` field + // whenever you call `setIamPolicy`. If you omit this field, then IAM allows + // you to overwrite a version `3` policy with a version `1` policy, and all of + // the conditions in the version `3` policy are lost. If a policy does not + // include any conditions, operations on that policy may specify any valid + // version or leave the field unset. To learn which resources support + // conditions in their IAM policies, see the IAM documentation + // (https://cloud.google.com/iam/help/conditions/resource-policies). + Version int64 `json:"version,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "AuditConfigs") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AuditConfigs") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleIamV1Policy) MarshalJSON() ([]byte, error) { + type NoMethod GoogleIamV1Policy + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleIamV1SetIamPolicyRequest: Request message for `SetIamPolicy` method. +type GoogleIamV1SetIamPolicyRequest struct { + // Policy: REQUIRED: The complete policy to be applied to the `resource`. The + // size of the policy is limited to a few 10s of KB. An empty policy is a valid + // policy but certain Google Cloud services (such as Projects) might reject + // them. + Policy *GoogleIamV1Policy `json:"policy,omitempty"` + // UpdateMask: OPTIONAL: A FieldMask specifying which fields of the policy to + // modify. Only the fields in the mask will be modified. If no mask is + // provided, the following default mask is used: `paths: "bindings, etag" + UpdateMask string `json:"updateMask,omitempty"` + // ForceSendFields is a list of field names (e.g. "Policy") to unconditionally + // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Err") to include in API requests - // with the JSON null value. By default, fields with empty values are omitted - // from API requests. See + // NullFields is a list of field names (e.g. "Policy") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s Tunnelv1ProtoTunnelerError) MarshalJSON() ([]byte, error) { - type NoMethod Tunnelv1ProtoTunnelerError +func (s GoogleIamV1SetIamPolicyRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleIamV1SetIamPolicyRequest return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Tunnelv1ProtoTunnelerInfo: TunnelerInfo contains metadata about tunneler -// launched by connection manager. -type Tunnelv1ProtoTunnelerInfo struct { - // BackoffRetryCount: backoff_retry_count stores the number of times the - // tunneler has been retried by tunManager for current backoff sequence. Gets - // reset to 0 if time difference between 2 consecutive retries exceeds - // backoffRetryResetTime. - BackoffRetryCount int64 `json:"backoffRetryCount,omitempty"` - // Id: id is the unique id of a tunneler. - Id string `json:"id,omitempty"` - // LatestErr: latest_err stores the Error for the latest tunneler failure. Gets - // reset everytime the tunneler is retried by tunManager. - LatestErr *Tunnelv1ProtoTunnelerError `json:"latestErr,omitempty"` - // LatestRetryTime: latest_retry_time stores the time when the tunneler was - // last restarted. - LatestRetryTime string `json:"latestRetryTime,omitempty"` - // TotalRetryCount: total_retry_count stores the total number of times the - // tunneler has been retried by tunManager. - TotalRetryCount int64 `json:"totalRetryCount,omitempty"` - // ForceSendFields is a list of field names (e.g. "BackoffRetryCount") to +// GoogleIamV1TestIamPermissionsRequest: Request message for +// `TestIamPermissions` method. +type GoogleIamV1TestIamPermissionsRequest struct { + // Permissions: The set of permissions to check for the `resource`. Permissions + // with wildcards (such as `*` or `storage.*`) are not allowed. For more + // information see IAM Overview + // (https://cloud.google.com/iam/docs/overview#permissions). + Permissions []string `json:"permissions,omitempty"` + // ForceSendFields is a list of field names (e.g. "Permissions") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BackoffRetryCount") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See + // NullFields is a list of field names (e.g. "Permissions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s Tunnelv1ProtoTunnelerInfo) MarshalJSON() ([]byte, error) { - type NoMethod Tunnelv1ProtoTunnelerInfo +func (s GoogleIamV1TestIamPermissionsRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleIamV1TestIamPermissionsRequest return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -type OrganizationsLocationsGlobalPartnerTenantsGetIamPolicyCall struct { - s *Service - resource string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +// GoogleIamV1TestIamPermissionsResponse: Response message for +// `TestIamPermissions` method. +type GoogleIamV1TestIamPermissionsResponse struct { + // Permissions: A subset of `TestPermissionsRequest.permissions` that the + // caller is allowed. + Permissions []string `json:"permissions,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Permissions") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Permissions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleIamV1TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleIamV1TestIamPermissionsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleLongrunningCancelOperationRequest: The request message for +// Operations.CancelOperation. +type GoogleLongrunningCancelOperationRequest struct { +} + +// GoogleLongrunningListOperationsResponse: The response message for +// Operations.ListOperations. +type GoogleLongrunningListOperationsResponse struct { + // NextPageToken: The standard List next-page token. + NextPageToken string `json:"nextPageToken,omitempty"` + // Operations: A list of operations that matches the specified filter in the + // request. + Operations []*GoogleLongrunningOperation `json:"operations,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + 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. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleLongrunningListOperationsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleLongrunningOperation: This resource represents a long-running +// operation that is the result of a network API call. +type GoogleLongrunningOperation struct { + // Done: If the value is `false`, it means the operation is still in progress. + // If `true`, the operation is completed, and either `error` or `response` is + // available. + Done bool `json:"done,omitempty"` + // Error: The error result of the operation in case of failure or cancellation. + Error *GoogleRpcStatus `json:"error,omitempty"` + // Metadata: Service-specific metadata associated with the operation. It + // typically contains progress information and common metadata such as create + // time. Some services might not provide such metadata. Any method that returns + // a long-running operation should document the metadata type, if any. + Metadata googleapi.RawMessage `json:"metadata,omitempty"` + // Name: The server-assigned name, which is only unique within the same service + // that originally returns it. If you use the default HTTP mapping, the `name` + // should be a resource name ending with `operations/{unique_id}`. + Name string `json:"name,omitempty"` + // Response: The normal, successful response of the operation. If the original + // method returns no data on success, such as `Delete`, the response is + // `google.protobuf.Empty`. If the original method is standard + // `Get`/`Create`/`Update`, the response should be the resource. For other + // methods, the response should have the type `XxxResponse`, where `Xxx` is the + // original method name. For example, if the original method name is + // `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. + Response googleapi.RawMessage `json:"response,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Done") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Done") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleLongrunningOperation) MarshalJSON() ([]byte, error) { + type NoMethod GoogleLongrunningOperation + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleRpcStatus: The `Status` type defines a logical error model that is +// suitable for different programming environments, including REST APIs and RPC +// APIs. It is used by gRPC (https://github.com/grpc). Each `Status` message +// contains three pieces of data: error code, error message, and error details. +// You can find out more about this error model and how to work with it in the +// API Design Guide (https://cloud.google.com/apis/design/errors). +type GoogleRpcStatus struct { + // Code: The status code, which should be an enum value of google.rpc.Code. + Code int64 `json:"code,omitempty"` + // Details: A list of messages that carry the error details. There is a common + // set of message types for APIs to use. + Details []googleapi.RawMessage `json:"details,omitempty"` + // Message: A developer-facing error message, which should be in English. Any + // user-facing error message should be localized and sent in the + // google.rpc.Status.details field, or localized by the client. + Message string `json:"message,omitempty"` + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleRpcStatus) MarshalJSON() ([]byte, error) { + type NoMethod GoogleRpcStatus + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleTypeExpr: Represents a textual expression in the Common Expression +// Language (CEL) syntax. CEL is a C-like expression language. The syntax and +// semantics of CEL are documented at https://github.com/google/cel-spec. +// Example (Comparison): title: "Summary size limit" description: "Determines +// if a summary is less than 100 chars" expression: "document.summary.size() < +// 100" Example (Equality): title: "Requestor is owner" description: +// "Determines if requestor is the document owner" expression: "document.owner +// == request.auth.claims.email" Example (Logic): title: "Public documents" +// description: "Determine whether the document should be publicly visible" +// expression: "document.type != 'private' && document.type != 'internal'" +// Example (Data Manipulation): title: "Notification string" description: +// "Create a notification string with a timestamp." expression: "'New message +// received at ' + string(document.create_time)" The exact variables and +// functions that may be referenced within an expression are determined by the +// service that evaluates it. See the service documentation for additional +// information. +type GoogleTypeExpr struct { + // Description: Optional. Description of the expression. This is a longer text + // which describes the expression, e.g. when hovered over it in a UI. + Description string `json:"description,omitempty"` + // Expression: Textual representation of an expression in Common Expression + // Language syntax. + Expression string `json:"expression,omitempty"` + // Location: Optional. String indicating the location of the expression for + // error reporting, e.g. a file name and a position in the file. + Location string `json:"location,omitempty"` + // Title: Optional. Title for the expression, i.e. a short string describing + // its purpose. This can be used e.g. in UIs which allow to enter the + // expression. + Title string `json:"title,omitempty"` + // ForceSendFields is a list of field names (e.g. "Description") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleTypeExpr) MarshalJSON() ([]byte, error) { + type NoMethod GoogleTypeExpr + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// ListAppGatewaysResponse: Response message for BeyondCorp.ListAppGateways. +type ListAppGatewaysResponse struct { + // AppGateways: A list of BeyondCorp AppGateways in the project. + AppGateways []*AppGateway `json:"appGateways,omitempty"` + // NextPageToken: A token to retrieve the next page of results, or empty if + // there are no more results in the list. + NextPageToken string `json:"nextPageToken,omitempty"` + // Unreachable: A list of locations that could not be reached. + Unreachable []string `json:"unreachable,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "AppGateways") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AppGateways") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ListAppGatewaysResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListAppGatewaysResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// ShouldThrottleResponse: Response message for calling ShouldThrottle +type ShouldThrottleResponse struct { + // ShouldThrottle: Whether the port should be throttled + ShouldThrottle bool `json:"shouldThrottle,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "ShouldThrottle") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ShouldThrottle") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ShouldThrottleResponse) MarshalJSON() ([]byte, error) { + type NoMethod ShouldThrottleResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// Tunnelv1ProtoTunnelerError: TunnelerError is an error proto for errors +// returned by the connection manager. +type Tunnelv1ProtoTunnelerError struct { + // Err: Original raw error + Err string `json:"err,omitempty"` + // Retryable: retryable isn't used for now, but we may want to reuse it in the + // future. + Retryable bool `json:"retryable,omitempty"` + // ForceSendFields is a list of field names (e.g. "Err") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Err") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s Tunnelv1ProtoTunnelerError) MarshalJSON() ([]byte, error) { + type NoMethod Tunnelv1ProtoTunnelerError + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// Tunnelv1ProtoTunnelerInfo: TunnelerInfo contains metadata about tunneler +// launched by connection manager. +type Tunnelv1ProtoTunnelerInfo struct { + // BackoffRetryCount: backoff_retry_count stores the number of times the + // tunneler has been retried by tunManager for current backoff sequence. Gets + // reset to 0 if time difference between 2 consecutive retries exceeds + // backoffRetryResetTime. + BackoffRetryCount int64 `json:"backoffRetryCount,omitempty"` + // Id: id is the unique id of a tunneler. + Id string `json:"id,omitempty"` + // LatestErr: latest_err stores the Error for the latest tunneler failure. Gets + // reset everytime the tunneler is retried by tunManager. + LatestErr *Tunnelv1ProtoTunnelerError `json:"latestErr,omitempty"` + // LatestRetryTime: latest_retry_time stores the time when the tunneler was + // last restarted. + LatestRetryTime string `json:"latestRetryTime,omitempty"` + // TotalRetryCount: total_retry_count stores the total number of times the + // tunneler has been retried by tunManager. + TotalRetryCount int64 `json:"totalRetryCount,omitempty"` + // ForceSendFields is a list of field names (e.g. "BackoffRetryCount") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "BackoffRetryCount") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s Tunnelv1ProtoTunnelerInfo) MarshalJSON() ([]byte, error) { + type NoMethod Tunnelv1ProtoTunnelerInfo + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +type OrganizationsLocationsGlobalPartnerTenantsGetIamPolicyCall struct { + s *Service + resource string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetIamPolicy: Gets the access control policy for a resource. Returns an +// empty policy if the resource exists and does not have a policy set. +// +// - resource: REQUIRED: The resource for which the policy is being requested. +// See Resource names (https://cloud.google.com/apis/design/resource_names) +// for the appropriate value for this field. +func (r *OrganizationsLocationsGlobalPartnerTenantsService) GetIamPolicy(resource string) *OrganizationsLocationsGlobalPartnerTenantsGetIamPolicyCall { + c := &OrganizationsLocationsGlobalPartnerTenantsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + return c +} + +// OptionsRequestedPolicyVersion sets the optional parameter +// "options.requestedPolicyVersion": The maximum policy version that will be +// used to format the policy. Valid values are 0, 1, and 3. Requests specifying +// an invalid value will be rejected. Requests for policies with any +// conditional role bindings must specify version 3. Policies with no +// conditional role bindings may specify any valid value or leave the field +// unset. The policy in the response might use the policy version that you +// specified, or it might use a lower policy version. For example, if you +// specify version 3, but the policy has no conditional role bindings, the +// response uses version 1. To learn which resources support conditions in +// their IAM policies, see the IAM documentation +// (https://cloud.google.com/iam/help/conditions/resource-policies). +func (c *OrganizationsLocationsGlobalPartnerTenantsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *OrganizationsLocationsGlobalPartnerTenantsGetIamPolicyCall { + c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *OrganizationsLocationsGlobalPartnerTenantsGetIamPolicyCall) Fields(s ...googleapi.Field) *OrganizationsLocationsGlobalPartnerTenantsGetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an 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. +func (c *OrganizationsLocationsGlobalPartnerTenantsGetIamPolicyCall) IfNoneMatch(entityTag string) *OrganizationsLocationsGlobalPartnerTenantsGetIamPolicyCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *OrganizationsLocationsGlobalPartnerTenantsGetIamPolicyCall) Context(ctx context.Context) *OrganizationsLocationsGlobalPartnerTenantsGetIamPolicyCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *OrganizationsLocationsGlobalPartnerTenantsGetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsGlobalPartnerTenantsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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/{+resource}:getIamPolicy") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "beyondcorp.organizations.locations.global.partnerTenants.getIamPolicy" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. +func (c *OrganizationsLocationsGlobalPartnerTenantsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleIamV1Policy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type OrganizationsLocationsGlobalPartnerTenantsSetIamPolicyCall struct { + s *Service + resource string + googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SetIamPolicy: Sets the access control policy on the specified resource. +// Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, +// and `PERMISSION_DENIED` errors. +// +// - resource: REQUIRED: The resource for which the policy is being specified. +// See Resource names (https://cloud.google.com/apis/design/resource_names) +// for the appropriate value for this field. +func (r *OrganizationsLocationsGlobalPartnerTenantsService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *OrganizationsLocationsGlobalPartnerTenantsSetIamPolicyCall { + c := &OrganizationsLocationsGlobalPartnerTenantsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *OrganizationsLocationsGlobalPartnerTenantsSetIamPolicyCall) Fields(s ...googleapi.Field) *OrganizationsLocationsGlobalPartnerTenantsSetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *OrganizationsLocationsGlobalPartnerTenantsSetIamPolicyCall) Context(ctx context.Context) *OrganizationsLocationsGlobalPartnerTenantsSetIamPolicyCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *OrganizationsLocationsGlobalPartnerTenantsSetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsGlobalPartnerTenantsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "beyondcorp.organizations.locations.global.partnerTenants.setIamPolicy" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. +func (c *OrganizationsLocationsGlobalPartnerTenantsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleIamV1Policy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type OrganizationsLocationsGlobalPartnerTenantsTestIamPermissionsCall struct { + s *Service + resource string + googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// TestIamPermissions: Returns permissions that a caller has on the specified +// resource. If the resource does not exist, this will return an empty set of +// permissions, not a `NOT_FOUND` error. Note: This operation is designed to be +// used for building permission-aware UIs and command-line tools, not for +// authorization checking. This operation may "fail open" without warning. +// +// - resource: REQUIRED: The resource for which the policy detail is being +// requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the appropriate +// value for this field. +func (r *OrganizationsLocationsGlobalPartnerTenantsService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *OrganizationsLocationsGlobalPartnerTenantsTestIamPermissionsCall { + c := &OrganizationsLocationsGlobalPartnerTenantsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *OrganizationsLocationsGlobalPartnerTenantsTestIamPermissionsCall) Fields(s ...googleapi.Field) *OrganizationsLocationsGlobalPartnerTenantsTestIamPermissionsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *OrganizationsLocationsGlobalPartnerTenantsTestIamPermissionsCall) Context(ctx context.Context) *OrganizationsLocationsGlobalPartnerTenantsTestIamPermissionsCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *OrganizationsLocationsGlobalPartnerTenantsTestIamPermissionsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsGlobalPartnerTenantsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "beyondcorp.organizations.locations.global.partnerTenants.testIamPermissions" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleIamV1TestIamPermissionsResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *OrganizationsLocationsGlobalPartnerTenantsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleIamV1TestIamPermissionsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesGetIamPolicyCall struct { + s *Service + resource string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetIamPolicy: Gets the access control policy for a resource. Returns an +// empty policy if the resource exists and does not have a policy set. +// +// - resource: REQUIRED: The resource for which the policy is being requested. +// See Resource names (https://cloud.google.com/apis/design/resource_names) +// for the appropriate value for this field. +func (r *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesService) GetIamPolicy(resource string) *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesGetIamPolicyCall { + c := &OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + return c +} + +// OptionsRequestedPolicyVersion sets the optional parameter +// "options.requestedPolicyVersion": The maximum policy version that will be +// used to format the policy. Valid values are 0, 1, and 3. Requests specifying +// an invalid value will be rejected. Requests for policies with any +// conditional role bindings must specify version 3. Policies with no +// conditional role bindings may specify any valid value or leave the field +// unset. The policy in the response might use the policy version that you +// specified, or it might use a lower policy version. For example, if you +// specify version 3, but the policy has no conditional role bindings, the +// response uses version 1. To learn which resources support conditions in +// their IAM policies, see the IAM documentation +// (https://cloud.google.com/iam/help/conditions/resource-policies). +func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesGetIamPolicyCall { + c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesGetIamPolicyCall) Fields(s ...googleapi.Field) *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesGetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an 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. +func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesGetIamPolicyCall) IfNoneMatch(entityTag string) *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesGetIamPolicyCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesGetIamPolicyCall) Context(ctx context.Context) *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesGetIamPolicyCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesGetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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/{+resource}:getIamPolicy") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "beyondcorp.organizations.locations.global.partnerTenants.browserDlpRules.getIamPolicy" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. +func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleIamV1Policy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesSetIamPolicyCall struct { + s *Service + resource string + googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SetIamPolicy: Sets the access control policy on the specified resource. +// Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, +// and `PERMISSION_DENIED` errors. +// +// - resource: REQUIRED: The resource for which the policy is being specified. +// See Resource names (https://cloud.google.com/apis/design/resource_names) +// for the appropriate value for this field. +func (r *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesSetIamPolicyCall { + c := &OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesSetIamPolicyCall) Fields(s ...googleapi.Field) *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesSetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesSetIamPolicyCall) Context(ctx context.Context) *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesSetIamPolicyCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesSetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "beyondcorp.organizations.locations.global.partnerTenants.browserDlpRules.setIamPolicy" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. +func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleIamV1Policy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesTestIamPermissionsCall struct { + s *Service + resource string + googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// TestIamPermissions: Returns permissions that a caller has on the specified +// resource. If the resource does not exist, this will return an empty set of +// permissions, not a `NOT_FOUND` error. Note: This operation is designed to be +// used for building permission-aware UIs and command-line tools, not for +// authorization checking. This operation may "fail open" without warning. +// +// - resource: REQUIRED: The resource for which the policy detail is being +// requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the appropriate +// value for this field. +func (r *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesTestIamPermissionsCall { + c := &OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesTestIamPermissionsCall) Fields(s ...googleapi.Field) *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesTestIamPermissionsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesTestIamPermissionsCall) Context(ctx context.Context) *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesTestIamPermissionsCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesTestIamPermissionsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "beyondcorp.organizations.locations.global.partnerTenants.browserDlpRules.testIamPermissions" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleIamV1TestIamPermissionsResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleIamV1TestIamPermissionsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type OrganizationsLocationsGlobalPartnerTenantsProxyConfigsGetIamPolicyCall struct { + s *Service + resource string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetIamPolicy: Gets the access control policy for a resource. Returns an +// empty policy if the resource exists and does not have a policy set. +// +// - resource: REQUIRED: The resource for which the policy is being requested. +// See Resource names (https://cloud.google.com/apis/design/resource_names) +// for the appropriate value for this field. +func (r *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsService) GetIamPolicy(resource string) *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsGetIamPolicyCall { + c := &OrganizationsLocationsGlobalPartnerTenantsProxyConfigsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + return c +} + +// OptionsRequestedPolicyVersion sets the optional parameter +// "options.requestedPolicyVersion": The maximum policy version that will be +// used to format the policy. Valid values are 0, 1, and 3. Requests specifying +// an invalid value will be rejected. Requests for policies with any +// conditional role bindings must specify version 3. Policies with no +// conditional role bindings may specify any valid value or leave the field +// unset. The policy in the response might use the policy version that you +// specified, or it might use a lower policy version. For example, if you +// specify version 3, but the policy has no conditional role bindings, the +// response uses version 1. To learn which resources support conditions in +// their IAM policies, see the IAM documentation +// (https://cloud.google.com/iam/help/conditions/resource-policies). +func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsGetIamPolicyCall { + c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsGetIamPolicyCall) Fields(s ...googleapi.Field) *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsGetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an 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. +func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsGetIamPolicyCall) IfNoneMatch(entityTag string) *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsGetIamPolicyCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsGetIamPolicyCall) Context(ctx context.Context) *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsGetIamPolicyCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsGetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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/{+resource}:getIamPolicy") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "beyondcorp.organizations.locations.global.partnerTenants.proxyConfigs.getIamPolicy" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. +func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleIamV1Policy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type OrganizationsLocationsGlobalPartnerTenantsProxyConfigsSetIamPolicyCall struct { + s *Service + resource string + googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SetIamPolicy: Sets the access control policy on the specified resource. +// Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, +// and `PERMISSION_DENIED` errors. +// +// - resource: REQUIRED: The resource for which the policy is being specified. +// See Resource names (https://cloud.google.com/apis/design/resource_names) +// for the appropriate value for this field. +func (r *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsSetIamPolicyCall { + c := &OrganizationsLocationsGlobalPartnerTenantsProxyConfigsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsSetIamPolicyCall) Fields(s ...googleapi.Field) *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsSetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsSetIamPolicyCall) Context(ctx context.Context) *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsSetIamPolicyCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsSetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "beyondcorp.organizations.locations.global.partnerTenants.proxyConfigs.setIamPolicy" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. +func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleIamV1Policy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type OrganizationsLocationsGlobalPartnerTenantsProxyConfigsTestIamPermissionsCall struct { + s *Service + resource string + googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// GetIamPolicy: Gets the access control policy for a resource. Returns an -// empty policy if the resource exists and does not have a policy set. +// TestIamPermissions: Returns permissions that a caller has on the specified +// resource. If the resource does not exist, this will return an empty set of +// permissions, not a `NOT_FOUND` error. Note: This operation is designed to be +// used for building permission-aware UIs and command-line tools, not for +// authorization checking. This operation may "fail open" without warning. // -// - resource: REQUIRED: The resource for which the policy is being requested. -// See Resource names (https://cloud.google.com/apis/design/resource_names) -// for the appropriate value for this field. -func (r *OrganizationsLocationsGlobalPartnerTenantsService) GetIamPolicy(resource string) *OrganizationsLocationsGlobalPartnerTenantsGetIamPolicyCall { - c := &OrganizationsLocationsGlobalPartnerTenantsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - resource: REQUIRED: The resource for which the policy detail is being +// requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the appropriate +// value for this field. +func (r *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsTestIamPermissionsCall { + c := &OrganizationsLocationsGlobalPartnerTenantsProxyConfigsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource - return c -} - -// OptionsRequestedPolicyVersion sets the optional parameter -// "options.requestedPolicyVersion": The maximum policy version that will be -// used to format the policy. Valid values are 0, 1, and 3. Requests specifying -// an invalid value will be rejected. Requests for policies with any -// conditional role bindings must specify version 3. Policies with no -// conditional role bindings may specify any valid value or leave the field -// unset. The policy in the response might use the policy version that you -// specified, or it might use a lower policy version. For example, if you -// specify version 3, but the policy has no conditional role bindings, the -// response uses version 1. To learn which resources support conditions in -// their IAM policies, see the IAM documentation -// (https://cloud.google.com/iam/help/conditions/resource-policies). -func (c *OrganizationsLocationsGlobalPartnerTenantsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *OrganizationsLocationsGlobalPartnerTenantsGetIamPolicyCall { - c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) + c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *OrganizationsLocationsGlobalPartnerTenantsGetIamPolicyCall) Fields(s ...googleapi.Field) *OrganizationsLocationsGlobalPartnerTenantsGetIamPolicyCall { +func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsTestIamPermissionsCall) Fields(s ...googleapi.Field) *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsTestIamPermissionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets an 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. -func (c *OrganizationsLocationsGlobalPartnerTenantsGetIamPolicyCall) IfNoneMatch(entityTag string) *OrganizationsLocationsGlobalPartnerTenantsGetIamPolicyCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *OrganizationsLocationsGlobalPartnerTenantsGetIamPolicyCall) Context(ctx context.Context) *OrganizationsLocationsGlobalPartnerTenantsGetIamPolicyCall { +func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsTestIamPermissionsCall) Context(ctx context.Context) *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsTestIamPermissionsCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *OrganizationsLocationsGlobalPartnerTenantsGetIamPolicyCall) Header() http.Header { +func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLocationsGlobalPartnerTenantsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } +func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest) + if err != nil { + return nil, err + } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -2442,13 +3738,13 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsGetIamPolicyCall) doRequest(a return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.organizations.locations.global.partnerTenants.getIamPolicy" call. +// Do executes the "beyondcorp.organizations.locations.global.partnerTenants.proxyConfigs.testIamPermissions" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified was -// returned. -func (c *OrganizationsLocationsGlobalPartnerTenantsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { +// *GoogleIamV1TestIamPermissionsResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -2467,7 +3763,7 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsGetIamPolicyCall) Do(opts ... if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleIamV1Policy{ + ret := &GoogleIamV1TestIamPermissionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -2480,62 +3776,66 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsGetIamPolicyCall) Do(opts ... return ret, nil } -type OrganizationsLocationsGlobalPartnerTenantsSetIamPolicyCall struct { - s *Service - resource string - googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsLocationsOperationsCancelCall struct { + s *Service + name string + googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// SetIamPolicy: Sets the access control policy on the specified resource. -// Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, -// and `PERMISSION_DENIED` errors. +// Cancel: Starts asynchronous cancellation on a long-running operation. The +// server makes a best effort to cancel the operation, but success is not +// guaranteed. If the server doesn't support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or +// other methods to check whether the cancellation succeeded or whether the +// operation completed despite cancellation. On successful cancellation, the +// operation is not deleted; instead, it becomes an operation with an +// Operation.error value with a google.rpc.Status.code of 1, corresponding to +// `Code.CANCELLED`. // -// - resource: REQUIRED: The resource for which the policy is being specified. -// See Resource names (https://cloud.google.com/apis/design/resource_names) -// for the appropriate value for this field. -func (r *OrganizationsLocationsGlobalPartnerTenantsService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *OrganizationsLocationsGlobalPartnerTenantsSetIamPolicyCall { - c := &OrganizationsLocationsGlobalPartnerTenantsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest +// - name: The name of the operation resource to be cancelled. +func (r *OrganizationsLocationsOperationsService) Cancel(name string, googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest) *OrganizationsLocationsOperationsCancelCall { + c := &OrganizationsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlelongrunningcanceloperationrequest = googlelongrunningcanceloperationrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *OrganizationsLocationsGlobalPartnerTenantsSetIamPolicyCall) Fields(s ...googleapi.Field) *OrganizationsLocationsGlobalPartnerTenantsSetIamPolicyCall { +func (c *OrganizationsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *OrganizationsLocationsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *OrganizationsLocationsGlobalPartnerTenantsSetIamPolicyCall) Context(ctx context.Context) *OrganizationsLocationsGlobalPartnerTenantsSetIamPolicyCall { +func (c *OrganizationsLocationsOperationsCancelCall) Context(ctx context.Context) *OrganizationsLocationsOperationsCancelCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *OrganizationsLocationsGlobalPartnerTenantsSetIamPolicyCall) Header() http.Header { +func (c *OrganizationsLocationsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLocationsGlobalPartnerTenantsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlelongrunningcanceloperationrequest) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -2543,18 +3843,17 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsSetIamPolicyCall) doRequest(a } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.organizations.locations.global.partnerTenants.setIamPolicy" call. +// Do executes the "beyondcorp.organizations.locations.operations.cancel" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified was -// returned. -func (c *OrganizationsLocationsGlobalPartnerTenantsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *OrganizationsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -2573,7 +3872,105 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsSetIamPolicyCall) Do(opts ... if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleIamV1Policy{ + 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 +} + +type OrganizationsLocationsOperationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a long-running operation. This method indicates that the +// client is no longer interested in the operation result. It does not cancel +// the operation. If the server doesn't support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. +// +// - name: The name of the operation resource to be deleted. +func (r *OrganizationsLocationsOperationsService) Delete(name string) *OrganizationsLocationsOperationsDeleteCall { + c := &OrganizationsLocationsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *OrganizationsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsLocationsOperationsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *OrganizationsLocationsOperationsDeleteCall) Context(ctx context.Context) *OrganizationsLocationsOperationsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *OrganizationsLocationsOperationsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "beyondcorp.organizations.locations.operations.delete" call. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *OrganizationsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Empty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -2586,84 +3983,85 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsSetIamPolicyCall) Do(opts ... return ret, nil } -type OrganizationsLocationsGlobalPartnerTenantsTestIamPermissionsCall struct { - s *Service - resource string - googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsLocationsOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// TestIamPermissions: Returns permissions that a caller has on the specified -// resource. If the resource does not exist, this will return an empty set of -// permissions, not a `NOT_FOUND` error. Note: This operation is designed to be -// used for building permission-aware UIs and command-line tools, not for -// authorization checking. This operation may "fail open" without warning. +// Get: Gets the latest state of a long-running operation. Clients can use this +// method to poll the operation result at intervals as recommended by the API +// service. // -// - resource: REQUIRED: The resource for which the policy detail is being -// requested. See Resource names -// (https://cloud.google.com/apis/design/resource_names) for the appropriate -// value for this field. -func (r *OrganizationsLocationsGlobalPartnerTenantsService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *OrganizationsLocationsGlobalPartnerTenantsTestIamPermissionsCall { - c := &OrganizationsLocationsGlobalPartnerTenantsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest +// - name: The name of the operation resource. +func (r *OrganizationsLocationsOperationsService) Get(name string) *OrganizationsLocationsOperationsGetCall { + c := &OrganizationsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *OrganizationsLocationsGlobalPartnerTenantsTestIamPermissionsCall) Fields(s ...googleapi.Field) *OrganizationsLocationsGlobalPartnerTenantsTestIamPermissionsCall { +func (c *OrganizationsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an 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. +func (c *OrganizationsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *OrganizationsLocationsOperationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *OrganizationsLocationsGlobalPartnerTenantsTestIamPermissionsCall) Context(ctx context.Context) *OrganizationsLocationsGlobalPartnerTenantsTestIamPermissionsCall { +func (c *OrganizationsLocationsOperationsGetCall) Context(ctx context.Context) *OrganizationsLocationsOperationsGetCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *OrganizationsLocationsGlobalPartnerTenantsTestIamPermissionsCall) Header() http.Header { +func (c *OrganizationsLocationsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLocationsGlobalPartnerTenantsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest) - if err != nil { - return nil, err +func (c *OrganizationsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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/{+resource}:testIamPermissions") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.organizations.locations.global.partnerTenants.testIamPermissions" call. +// Do executes the "beyondcorp.organizations.locations.operations.get" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleIamV1TestIamPermissionsResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was because // http.StatusNotModified was returned. -func (c *OrganizationsLocationsGlobalPartnerTenantsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) { +func (c *OrganizationsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -2682,7 +4080,7 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsTestIamPermissionsCall) Do(op if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleIamV1TestIamPermissionsResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -2695,48 +4093,49 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsTestIamPermissionsCall) Do(op return ret, nil } -type OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesGetIamPolicyCall struct { +type OrganizationsLocationsOperationsListCall struct { s *Service - resource string + name string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// GetIamPolicy: Gets the access control policy for a resource. Returns an -// empty policy if the resource exists and does not have a policy set. +// List: Lists operations that match the specified filter in the request. If +// the server doesn't support this method, it returns `UNIMPLEMENTED`. // -// - resource: REQUIRED: The resource for which the policy is being requested. -// See Resource names (https://cloud.google.com/apis/design/resource_names) -// for the appropriate value for this field. -func (r *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesService) GetIamPolicy(resource string) *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesGetIamPolicyCall { - c := &OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource +// - name: The name of the operation's parent resource. +func (r *OrganizationsLocationsOperationsService) List(name string) *OrganizationsLocationsOperationsListCall { + c := &OrganizationsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } -// OptionsRequestedPolicyVersion sets the optional parameter -// "options.requestedPolicyVersion": The maximum policy version that will be -// used to format the policy. Valid values are 0, 1, and 3. Requests specifying -// an invalid value will be rejected. Requests for policies with any -// conditional role bindings must specify version 3. Policies with no -// conditional role bindings may specify any valid value or leave the field -// unset. The policy in the response might use the policy version that you -// specified, or it might use a lower policy version. For example, if you -// specify version 3, but the policy has no conditional role bindings, the -// response uses version 1. To learn which resources support conditions in -// their IAM policies, see the IAM documentation -// (https://cloud.google.com/iam/help/conditions/resource-policies). -func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesGetIamPolicyCall { - c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) +// Filter sets the optional parameter "filter": The standard list filter. +func (c *OrganizationsLocationsOperationsListCall) Filter(filter string) *OrganizationsLocationsOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list page +// size. +func (c *OrganizationsLocationsOperationsListCall) PageSize(pageSize int64) *OrganizationsLocationsOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list page +// token. +func (c *OrganizationsLocationsOperationsListCall) PageToken(pageToken string) *OrganizationsLocationsOperationsListCall { + c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesGetIamPolicyCall) Fields(s ...googleapi.Field) *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesGetIamPolicyCall { +func (c *OrganizationsLocationsOperationsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -2744,27 +4143,27 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesGetIamPolicyCa // IfNoneMatch sets an 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. -func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesGetIamPolicyCall) IfNoneMatch(entityTag string) *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesGetIamPolicyCall { +func (c *OrganizationsLocationsOperationsListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsOperationsListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesGetIamPolicyCall) Context(ctx context.Context) *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesGetIamPolicyCall { +func (c *OrganizationsLocationsOperationsListCall) Context(ctx context.Context) *OrganizationsLocationsOperationsListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesGetIamPolicyCall) Header() http.Header { +func (c *OrganizationsLocationsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -2772,7 +4171,7 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesGetIamPolicyCa var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -2780,18 +4179,18 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesGetIamPolicyCa } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.organizations.locations.global.partnerTenants.browserDlpRules.getIamPolicy" call. +// Do executes the "beyondcorp.organizations.locations.operations.list" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified was -// returned. -func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { +// *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *OrganizationsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -2810,7 +4209,7 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesGetIamPolicyCa if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleIamV1Policy{ + ret := &GoogleLongrunningListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -2823,81 +4222,104 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesGetIamPolicyCa return ret, nil } -type OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesSetIamPolicyCall struct { - s *Service - resource string - googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *OrganizationsLocationsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + 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) + } } -// SetIamPolicy: Sets the access control policy on the specified resource. -// Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, -// and `PERMISSION_DENIED` errors. +type ProjectsLocationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets information about a location. // -// - resource: REQUIRED: The resource for which the policy is being specified. -// See Resource names (https://cloud.google.com/apis/design/resource_names) -// for the appropriate value for this field. -func (r *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesSetIamPolicyCall { - c := &OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest +// - name: Resource name for the location. +func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall { + c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesSetIamPolicyCall) Fields(s ...googleapi.Field) *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesSetIamPolicyCall { +func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesSetIamPolicyCall) Context(ctx context.Context) *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesSetIamPolicyCall { +func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesSetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest) - if err != nil { - return nil, err +func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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/{+resource}:setIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.organizations.locations.global.partnerTenants.browserDlpRules.setIamPolicy" call. +// Do executes the "beyondcorp.projects.locations.get" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified was -// returned. -func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { +// *GoogleCloudLocationLocation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationLocation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -2916,7 +4338,7 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesSetIamPolicyCa if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleIamV1Policy{ + ret := &GoogleCloudLocationLocation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -2929,84 +4351,107 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesSetIamPolicyCa return ret, nil } -type OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesTestIamPermissionsCall struct { - s *Service - resource string - googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists information about the supported locations for this service. +// +// - name: The resource that owns the locations collection, if applicable. +func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall { + c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c } -// TestIamPermissions: Returns permissions that a caller has on the specified -// resource. If the resource does not exist, this will return an empty set of -// permissions, not a `NOT_FOUND` error. Note: This operation is designed to be -// used for building permission-aware UIs and command-line tools, not for -// authorization checking. This operation may "fail open" without warning. -// -// - resource: REQUIRED: The resource for which the policy detail is being -// requested. See Resource names -// (https://cloud.google.com/apis/design/resource_names) for the appropriate -// value for this field. -func (r *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesTestIamPermissionsCall { - c := &OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest +// Filter sets the optional parameter "filter": A filter to narrow down results +// to a preferred subset. The filtering language accepts strings like +// "displayName=tokyo", and is documented in more detail in AIP-160 +// (https://google.aip.dev/160). +func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of +// results to return. If not set, the service selects a default. +func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token received +// from the `next_page_token` field in the response. Send that page token to +// receive the subsequent page. +func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall { + c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesTestIamPermissionsCall) Fields(s ...googleapi.Field) *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesTestIamPermissionsCall { +func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesTestIamPermissionsCall) Context(ctx context.Context) *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesTestIamPermissionsCall { +func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesTestIamPermissionsCall) Header() http.Header { +func (c *ProjectsLocationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest) - if err != nil { - return nil, err +func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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/{+resource}:testIamPermissions") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/locations") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.organizations.locations.global.partnerTenants.browserDlpRules.testIamPermissions" call. +// Do executes the "beyondcorp.projects.locations.list" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleIamV1TestIamPermissionsResponse.ServerResponse.Header or (if a +// *GoogleCloudLocationListLocationsResponse.ServerResponse.Header or (if a // response was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was because // http.StatusNotModified was returned. -func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) { +func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationListLocationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -3025,7 +4470,7 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesTestIamPermiss if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleIamV1TestIamPermissionsResponse{ + ret := &GoogleCloudLocationListLocationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -3038,103 +4483,131 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesTestIamPermiss return ret, nil } -type OrganizationsLocationsGlobalPartnerTenantsProxyConfigsGetIamPolicyCall struct { - s *Service - resource string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*GoogleCloudLocationListLocationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + 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) + } } -// GetIamPolicy: Gets the access control policy for a resource. Returns an -// empty policy if the resource exists and does not have a policy set. +type ProjectsLocationsAppConnectionsCreateCall struct { + s *Service + parent string + googlecloudbeyondcorpappconnectionsv1appconnection *GoogleCloudBeyondcorpAppconnectionsV1AppConnection + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new AppConnection in a given project and location. // -// - resource: REQUIRED: The resource for which the policy is being requested. -// See Resource names (https://cloud.google.com/apis/design/resource_names) -// for the appropriate value for this field. -func (r *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsService) GetIamPolicy(resource string) *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsGetIamPolicyCall { - c := &OrganizationsLocationsGlobalPartnerTenantsProxyConfigsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource +// - parent: The resource project name of the AppConnection location using the +// form: `projects/{project_id}/locations/{location_id}`. +func (r *ProjectsLocationsAppConnectionsService) Create(parent string, googlecloudbeyondcorpappconnectionsv1appconnection *GoogleCloudBeyondcorpAppconnectionsV1AppConnection) *ProjectsLocationsAppConnectionsCreateCall { + c := &ProjectsLocationsAppConnectionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudbeyondcorpappconnectionsv1appconnection = googlecloudbeyondcorpappconnectionsv1appconnection return c } -// OptionsRequestedPolicyVersion sets the optional parameter -// "options.requestedPolicyVersion": The maximum policy version that will be -// used to format the policy. Valid values are 0, 1, and 3. Requests specifying -// an invalid value will be rejected. Requests for policies with any -// conditional role bindings must specify version 3. Policies with no -// conditional role bindings may specify any valid value or leave the field -// unset. The policy in the response might use the policy version that you -// specified, or it might use a lower policy version. For example, if you -// specify version 3, but the policy has no conditional role bindings, the -// response uses version 1. To learn which resources support conditions in -// their IAM policies, see the IAM documentation -// (https://cloud.google.com/iam/help/conditions/resource-policies). -func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsGetIamPolicyCall { - c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) +// AppConnectionId sets the optional parameter "appConnectionId": User-settable +// AppConnection resource ID. * Must start with a letter. * Must contain +// between 4-63 characters from `/a-z-/`. * Must end with a number or a letter. +func (c *ProjectsLocationsAppConnectionsCreateCall) AppConnectionId(appConnectionId string) *ProjectsLocationsAppConnectionsCreateCall { + c.urlParams_.Set("appConnectionId", appConnectionId) + return c +} + +// RequestId sets the optional parameter "requestId": An optional request ID to +// identify requests. Specify a unique request ID so that if you must retry +// your request, the server will know to ignore the request if it has already +// been completed. The server will guarantee that for at least 60 minutes since +// the first request. For example, consider a situation where you make an +// initial request and the request times out. If you make the request again +// with the same request ID, the server can check if original operation with +// the same request ID was received, and if so, will ignore the second request. +// This prevents clients from accidentally creating duplicate commitments. The +// request ID must be a valid UUID with the exception that zero UUID is not +// supported (00000000-0000-0000-0000-000000000000). +func (c *ProjectsLocationsAppConnectionsCreateCall) RequestId(requestId string) *ProjectsLocationsAppConnectionsCreateCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// ValidateOnly sets the optional parameter "validateOnly": If set, validates +// request by executing a dry-run which would not alter the resource in any +// way. +func (c *ProjectsLocationsAppConnectionsCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsAppConnectionsCreateCall { + c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly)) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsGetIamPolicyCall) Fields(s ...googleapi.Field) *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsGetIamPolicyCall { +func (c *ProjectsLocationsAppConnectionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectionsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets an 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. -func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsGetIamPolicyCall) IfNoneMatch(entityTag string) *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsGetIamPolicyCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsGetIamPolicyCall) Context(ctx context.Context) *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsGetIamPolicyCall { +func (c *ProjectsLocationsAppConnectionsCreateCall) Context(ctx context.Context) *ProjectsLocationsAppConnectionsCreateCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsGetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsAppConnectionsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } +func (c *ProjectsLocationsAppConnectionsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudbeyondcorpappconnectionsv1appconnection) + if err != nil { + return nil, err + } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/appConnections") 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{ - "resource": c.resource, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.organizations.locations.global.partnerTenants.proxyConfigs.getIamPolicy" call. +// Do executes the "beyondcorp.projects.locations.appConnections.create" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified was -// returned. -func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsAppConnectionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -3153,7 +4626,7 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsGetIamPolicyCall) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleIamV1Policy{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -3166,81 +4639,97 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsGetIamPolicyCall) return ret, nil } -type OrganizationsLocationsGlobalPartnerTenantsProxyConfigsSetIamPolicyCall struct { - s *Service - resource string - googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsAppConnectionsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a single AppConnection. +// +// - name: BeyondCorp Connector name using the form: +// `projects/{project_id}/locations/{location_id}/appConnections/{app_connecti +// on_id}`. +func (r *ProjectsLocationsAppConnectionsService) Delete(name string) *ProjectsLocationsAppConnectionsDeleteCall { + c := &ProjectsLocationsAppConnectionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// RequestId sets the optional parameter "requestId": An optional request ID to +// identify requests. Specify a unique request ID so that if you must retry +// your request, the server will know to ignore the request if it has already +// been completed. The server will guarantee that for at least 60 minutes after +// the first request. For example, consider a situation where you make an +// initial request and the request times out. If you make the request again +// with the same request ID, the server can check if original operation with +// the same request ID was received, and if so, will ignore the second request. +// This prevents clients from accidentally creating duplicate commitments. The +// request ID must be a valid UUID with the exception that zero UUID is not +// supported (00000000-0000-0000-0000-000000000000). +func (c *ProjectsLocationsAppConnectionsDeleteCall) RequestId(requestId string) *ProjectsLocationsAppConnectionsDeleteCall { + c.urlParams_.Set("requestId", requestId) + return c } -// SetIamPolicy: Sets the access control policy on the specified resource. -// Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, -// and `PERMISSION_DENIED` errors. -// -// - resource: REQUIRED: The resource for which the policy is being specified. -// See Resource names (https://cloud.google.com/apis/design/resource_names) -// for the appropriate value for this field. -func (r *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsSetIamPolicyCall { - c := &OrganizationsLocationsGlobalPartnerTenantsProxyConfigsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest +// ValidateOnly sets the optional parameter "validateOnly": If set, validates +// request by executing a dry-run which would not alter the resource in any +// way. +func (c *ProjectsLocationsAppConnectionsDeleteCall) ValidateOnly(validateOnly bool) *ProjectsLocationsAppConnectionsDeleteCall { + c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly)) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsSetIamPolicyCall) Fields(s ...googleapi.Field) *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsSetIamPolicyCall { +func (c *ProjectsLocationsAppConnectionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectionsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsSetIamPolicyCall) Context(ctx context.Context) *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsSetIamPolicyCall { +func (c *ProjectsLocationsAppConnectionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAppConnectionsDeleteCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsSetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsAppConnectionsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) +func (c *ProjectsLocationsAppConnectionsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest) - if err != nil { - return nil, err - } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+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{ - "resource": c.resource, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.organizations.locations.global.partnerTenants.proxyConfigs.setIamPolicy" call. +// Do executes the "beyondcorp.projects.locations.appConnections.delete" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified was -// returned. -func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsAppConnectionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -3259,7 +4748,7 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsSetIamPolicyCall) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleIamV1Policy{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -3272,84 +4761,85 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsSetIamPolicyCall) return ret, nil } -type OrganizationsLocationsGlobalPartnerTenantsProxyConfigsTestIamPermissionsCall struct { - s *Service - resource string - googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsAppConnectionsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// TestIamPermissions: Returns permissions that a caller has on the specified -// resource. If the resource does not exist, this will return an empty set of -// permissions, not a `NOT_FOUND` error. Note: This operation is designed to be -// used for building permission-aware UIs and command-line tools, not for -// authorization checking. This operation may "fail open" without warning. +// Get: Gets details of a single AppConnection. // -// - resource: REQUIRED: The resource for which the policy detail is being -// requested. See Resource names -// (https://cloud.google.com/apis/design/resource_names) for the appropriate -// value for this field. -func (r *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsTestIamPermissionsCall { - c := &OrganizationsLocationsGlobalPartnerTenantsProxyConfigsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest +// - name: BeyondCorp AppConnection name using the form: +// `projects/{project_id}/locations/{location_id}/appConnections/{app_connecti +// on_id}`. +func (r *ProjectsLocationsAppConnectionsService) Get(name string) *ProjectsLocationsAppConnectionsGetCall { + c := &ProjectsLocationsAppConnectionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsTestIamPermissionsCall) Fields(s ...googleapi.Field) *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsTestIamPermissionsCall { +func (c *ProjectsLocationsAppConnectionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectionsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsAppConnectionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppConnectionsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsTestIamPermissionsCall) Context(ctx context.Context) *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsTestIamPermissionsCall { +func (c *ProjectsLocationsAppConnectionsGetCall) Context(ctx context.Context) *ProjectsLocationsAppConnectionsGetCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsTestIamPermissionsCall) Header() http.Header { +func (c *ProjectsLocationsAppConnectionsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest) - if err != nil { - return nil, err +func (c *ProjectsLocationsAppConnectionsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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/{+resource}:testIamPermissions") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.organizations.locations.global.partnerTenants.proxyConfigs.testIamPermissions" call. +// Do executes the "beyondcorp.projects.locations.appConnections.get" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleIamV1TestIamPermissionsResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use +// *GoogleCloudBeyondcorpAppconnectionsV1AppConnection.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was because // http.StatusNotModified was returned. -func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) { +func (c *ProjectsLocationsAppConnectionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBeyondcorpAppconnectionsV1AppConnection, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -3368,7 +4858,7 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsTestIamPermission if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleIamV1TestIamPermissionsResponse{ + ret := &GoogleCloudBeyondcorpAppconnectionsV1AppConnection{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -3381,84 +4871,103 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsTestIamPermission return ret, nil } -type OrganizationsLocationsOperationsCancelCall struct { - s *Service - name string - googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsAppConnectionsGetIamPolicyCall struct { + s *Service + resource string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Cancel: Starts asynchronous cancellation on a long-running operation. The -// server makes a best effort to cancel the operation, but success is not -// guaranteed. If the server doesn't support this method, it returns -// `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or -// other methods to check whether the cancellation succeeded or whether the -// operation completed despite cancellation. On successful cancellation, the -// operation is not deleted; instead, it becomes an operation with an -// Operation.error value with a google.rpc.Status.code of 1, corresponding to -// `Code.CANCELLED`. +// GetIamPolicy: Gets the access control policy for a resource. Returns an +// empty policy if the resource exists and does not have a policy set. // -// - name: The name of the operation resource to be cancelled. -func (r *OrganizationsLocationsOperationsService) Cancel(name string, googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest) *OrganizationsLocationsOperationsCancelCall { - c := &OrganizationsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.googlelongrunningcanceloperationrequest = googlelongrunningcanceloperationrequest +// - resource: REQUIRED: The resource for which the policy is being requested. +// See Resource names (https://cloud.google.com/apis/design/resource_names) +// for the appropriate value for this field. +func (r *ProjectsLocationsAppConnectionsService) GetIamPolicy(resource string) *ProjectsLocationsAppConnectionsGetIamPolicyCall { + c := &ProjectsLocationsAppConnectionsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + return c +} + +// OptionsRequestedPolicyVersion sets the optional parameter +// "options.requestedPolicyVersion": The maximum policy version that will be +// used to format the policy. Valid values are 0, 1, and 3. Requests specifying +// an invalid value will be rejected. Requests for policies with any +// conditional role bindings must specify version 3. Policies with no +// conditional role bindings may specify any valid value or leave the field +// unset. The policy in the response might use the policy version that you +// specified, or it might use a lower policy version. For example, if you +// specify version 3, but the policy has no conditional role bindings, the +// response uses version 1. To learn which resources support conditions in +// their IAM policies, see the IAM documentation +// (https://cloud.google.com/iam/help/conditions/resource-policies). +func (c *ProjectsLocationsAppConnectionsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsAppConnectionsGetIamPolicyCall { + c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *OrganizationsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *OrganizationsLocationsOperationsCancelCall { +func (c *ProjectsLocationsAppConnectionsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectionsGetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsAppConnectionsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppConnectionsGetIamPolicyCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *OrganizationsLocationsOperationsCancelCall) Context(ctx context.Context) *OrganizationsLocationsOperationsCancelCall { +func (c *ProjectsLocationsAppConnectionsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsAppConnectionsGetIamPolicyCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *OrganizationsLocationsOperationsCancelCall) Header() http.Header { +func (c *ProjectsLocationsAppConnectionsGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlelongrunningcanceloperationrequest) - if err != nil { - return nil, err +func (c *ProjectsLocationsAppConnectionsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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}:cancel") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "resource": c.resource, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.organizations.locations.operations.cancel" call. +// Do executes the "beyondcorp.projects.locations.appConnections.getIamPolicy" call. // Any non-2xx status code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was returned. -func (c *OrganizationsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) { +// *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsAppConnectionsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -3477,7 +4986,7 @@ func (c *OrganizationsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOp if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Empty{ + ret := &GoogleIamV1Policy{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -3490,73 +4999,117 @@ func (c *OrganizationsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOp return ret, nil } -type OrganizationsLocationsOperationsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsAppConnectionsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists AppConnections in a given project and location. +// +// - parent: The resource name of the AppConnection location using the form: +// `projects/{project_id}/locations/{location_id}`. +func (r *ProjectsLocationsAppConnectionsService) List(parent string) *ProjectsLocationsAppConnectionsListCall { + c := &ProjectsLocationsAppConnectionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": A filter specifying constraints +// of a list operation. +func (c *ProjectsLocationsAppConnectionsListCall) Filter(filter string) *ProjectsLocationsAppConnectionsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": Specifies the ordering of +// results. See Sorting order +// (https://cloud.google.com/apis/design/design_patterns#sorting_order) for +// more information. +func (c *ProjectsLocationsAppConnectionsListCall) OrderBy(orderBy string) *ProjectsLocationsAppConnectionsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c } -// Delete: Deletes a long-running operation. This method indicates that the -// client is no longer interested in the operation result. It does not cancel -// the operation. If the server doesn't support this method, it returns -// `google.rpc.Code.UNIMPLEMENTED`. -// -// - name: The name of the operation resource to be deleted. -func (r *OrganizationsLocationsOperationsService) Delete(name string) *OrganizationsLocationsOperationsDeleteCall { - c := &OrganizationsLocationsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// PageSize sets the optional parameter "pageSize": The maximum number of items +// to return. If not specified, a default value of 50 will be used by the +// service. Regardless of the page_size value, the response may include a +// partial list and a caller should only rely on response's next_page_token to +// determine if there are more instances left to be queried. +func (c *ProjectsLocationsAppConnectionsListCall) PageSize(pageSize int64) *ProjectsLocationsAppConnectionsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The next_page_token value +// returned from a previous ListAppConnectionsRequest, if any. +func (c *ProjectsLocationsAppConnectionsListCall) PageToken(pageToken string) *ProjectsLocationsAppConnectionsListCall { + c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *OrganizationsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsLocationsOperationsDeleteCall { +func (c *ProjectsLocationsAppConnectionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsAppConnectionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppConnectionsListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *OrganizationsLocationsOperationsDeleteCall) Context(ctx context.Context) *OrganizationsLocationsOperationsDeleteCall { +func (c *ProjectsLocationsAppConnectionsListCall) Context(ctx context.Context) *ProjectsLocationsAppConnectionsListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *OrganizationsLocationsOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsAppConnectionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsAppConnectionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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 := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/appConnections") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.organizations.locations.operations.delete" call. +// Do executes the "beyondcorp.projects.locations.appConnections.list" call. // 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 +// *GoogleCloudBeyondcorpAppconnectionsV1ListAppConnectionsResponse.ServerRespon +// se.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was returned. -func (c *OrganizationsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { +func (c *ProjectsLocationsAppConnectionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBeyondcorpAppconnectionsV1ListAppConnectionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -3575,7 +5128,7 @@ func (c *OrganizationsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOp if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Empty{ + ret := &GoogleCloudBeyondcorpAppconnectionsV1ListAppConnectionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -3588,68 +5141,123 @@ func (c *OrganizationsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOp return ret, nil } -type OrganizationsLocationsOperationsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsAppConnectionsListCall) Pages(ctx context.Context, f func(*GoogleCloudBeyondcorpAppconnectionsV1ListAppConnectionsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + 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) + } } -// Get: Gets the latest state of a long-running operation. Clients can use this -// method to poll the operation result at intervals as recommended by the API -// service. +type ProjectsLocationsAppConnectionsPatchCall struct { + s *Service + name string + googlecloudbeyondcorpappconnectionsv1appconnection *GoogleCloudBeyondcorpAppconnectionsV1AppConnection + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates the parameters of a single AppConnection. // -// - name: The name of the operation resource. -func (r *OrganizationsLocationsOperationsService) Get(name string) *OrganizationsLocationsOperationsGetCall { - c := &OrganizationsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Unique resource name of the AppConnection. The name is ignored when +// creating a AppConnection. +func (r *ProjectsLocationsAppConnectionsService) Patch(name string, googlecloudbeyondcorpappconnectionsv1appconnection *GoogleCloudBeyondcorpAppconnectionsV1AppConnection) *ProjectsLocationsAppConnectionsPatchCall { + c := &ProjectsLocationsAppConnectionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.googlecloudbeyondcorpappconnectionsv1appconnection = googlecloudbeyondcorpappconnectionsv1appconnection + return c +} + +// AllowMissing sets the optional parameter "allowMissing": If set as true, +// will create the resource if it is not found. +func (c *ProjectsLocationsAppConnectionsPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsAppConnectionsPatchCall { + c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing)) + return c +} + +// RequestId sets the optional parameter "requestId": An optional request ID to +// identify requests. Specify a unique request ID so that if you must retry +// your request, the server will know to ignore the request if it has already +// been completed. The server will guarantee that for at least 60 minutes since +// the first request. For example, consider a situation where you make an +// initial request and the request times out. If you make the request again +// with the same request ID, the server can check if original operation with +// the same request ID was received, and if so, will ignore the second request. +// This prevents clients from accidentally creating duplicate commitments. The +// request ID must be a valid UUID with the exception that zero UUID is not +// supported (00000000-0000-0000-0000-000000000000). +func (c *ProjectsLocationsAppConnectionsPatchCall) RequestId(requestId string) *ProjectsLocationsAppConnectionsPatchCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. Mask of +// fields to update. At least one path must be supplied in this field. The +// elements of the repeated paths field may only include these fields from +// [BeyondCorp.AppConnection]: * `labels` * `display_name` * +// `application_endpoint` * `connectors` +func (c *ProjectsLocationsAppConnectionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAppConnectionsPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// ValidateOnly sets the optional parameter "validateOnly": If set, validates +// request by executing a dry-run which would not alter the resource in any +// way. +func (c *ProjectsLocationsAppConnectionsPatchCall) ValidateOnly(validateOnly bool) *ProjectsLocationsAppConnectionsPatchCall { + c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly)) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *OrganizationsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsOperationsGetCall { +func (c *ProjectsLocationsAppConnectionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectionsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets an 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. -func (c *OrganizationsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *OrganizationsLocationsOperationsGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *OrganizationsLocationsOperationsGetCall) Context(ctx context.Context) *OrganizationsLocationsOperationsGetCall { +func (c *ProjectsLocationsAppConnectionsPatchCall) Context(ctx context.Context) *ProjectsLocationsAppConnectionsPatchCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *OrganizationsLocationsOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsAppConnectionsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } +func (c *ProjectsLocationsAppConnectionsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudbeyondcorpappconnectionsv1appconnection) + if err != nil { + return nil, err + } 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) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } @@ -3660,13 +5268,13 @@ func (c *OrganizationsLocationsOperationsGetCall) doRequest(alt string) (*http.R return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.organizations.locations.operations.get" call. +// Do executes the "beyondcorp.projects.locations.appConnections.patch" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was because // http.StatusNotModified was returned. -func (c *OrganizationsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsAppConnectionsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -3698,41 +5306,49 @@ func (c *OrganizationsLocationsOperationsGetCall) Do(opts ...googleapi.CallOptio return ret, nil } -type OrganizationsLocationsOperationsListCall struct { +type ProjectsLocationsAppConnectionsResolveCall struct { s *Service - name string + parent string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Lists operations that match the specified filter in the request. If -// the server doesn't support this method, it returns `UNIMPLEMENTED`. +// Resolve: Resolves AppConnections details for a given AppConnector. An +// internal method called by a connector to find AppConnections to connect to. // -// - name: The name of the operation's parent resource. -func (r *OrganizationsLocationsOperationsService) List(name string) *OrganizationsLocationsOperationsListCall { - c := &OrganizationsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The resource name of the AppConnection location using the form: +// `projects/{project_id}/locations/{location_id}`. +func (r *ProjectsLocationsAppConnectionsService) Resolve(parent string) *ProjectsLocationsAppConnectionsResolveCall { + c := &ProjectsLocationsAppConnectionsResolveCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent return c } -// Filter sets the optional parameter "filter": The standard list filter. -func (c *OrganizationsLocationsOperationsListCall) Filter(filter string) *OrganizationsLocationsOperationsListCall { - c.urlParams_.Set("filter", filter) +// AppConnectorId sets the optional parameter "appConnectorId": Required. +// BeyondCorp Connector name of the connector associated with those +// AppConnections using the form: +// `projects/{project_id}/locations/{location_id}/appConnectors/{app_connector_i +// d}` +func (c *ProjectsLocationsAppConnectionsResolveCall) AppConnectorId(appConnectorId string) *ProjectsLocationsAppConnectionsResolveCall { + c.urlParams_.Set("appConnectorId", appConnectorId) return c } -// PageSize sets the optional parameter "pageSize": The standard list page -// size. -func (c *OrganizationsLocationsOperationsListCall) PageSize(pageSize int64) *OrganizationsLocationsOperationsListCall { +// PageSize sets the optional parameter "pageSize": The maximum number of items +// to return. If not specified, a default value of 50 will be used by the +// service. Regardless of the page_size value, the response may include a +// partial list and a caller should only rely on response's next_page_token to +// determine if there are more instances left to be queried. +func (c *ProjectsLocationsAppConnectionsResolveCall) PageSize(pageSize int64) *ProjectsLocationsAppConnectionsResolveCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The standard list page -// token. -func (c *OrganizationsLocationsOperationsListCall) PageToken(pageToken string) *OrganizationsLocationsOperationsListCall { +// PageToken sets the optional parameter "pageToken": The next_page_token value +// returned from a previous ResolveAppConnectionsResponse, if any. +func (c *ProjectsLocationsAppConnectionsResolveCall) PageToken(pageToken string) *ProjectsLocationsAppConnectionsResolveCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -3740,7 +5356,7 @@ func (c *OrganizationsLocationsOperationsListCall) PageToken(pageToken string) * // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *OrganizationsLocationsOperationsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsOperationsListCall { +func (c *ProjectsLocationsAppConnectionsResolveCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectionsResolveCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -3748,27 +5364,27 @@ func (c *OrganizationsLocationsOperationsListCall) Fields(s ...googleapi.Field) // IfNoneMatch sets an 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. -func (c *OrganizationsLocationsOperationsListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsOperationsListCall { +func (c *ProjectsLocationsAppConnectionsResolveCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppConnectionsResolveCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *OrganizationsLocationsOperationsListCall) Context(ctx context.Context) *OrganizationsLocationsOperationsListCall { +func (c *ProjectsLocationsAppConnectionsResolveCall) Context(ctx context.Context) *ProjectsLocationsAppConnectionsResolveCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *OrganizationsLocationsOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsAppConnectionsResolveCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsAppConnectionsResolveCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -3776,7 +5392,7 @@ func (c *OrganizationsLocationsOperationsListCall) doRequest(alt string) (*http. var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/appConnections:resolve") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -3784,18 +5400,18 @@ func (c *OrganizationsLocationsOperationsListCall) doRequest(alt string) (*http. } 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 "beyondcorp.organizations.locations.operations.list" call. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *OrganizationsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { + +// Do executes the "beyondcorp.projects.locations.appConnections.resolve" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudBeyondcorpAppconnectionsV1ResolveAppConnectionsResponse.ServerRes +// ponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsAppConnectionsResolveCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBeyondcorpAppconnectionsV1ResolveAppConnectionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -3814,7 +5430,7 @@ func (c *OrganizationsLocationsOperationsListCall) Do(opts ...googleapi.CallOpti if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningListOperationsResponse{ + ret := &GoogleCloudBeyondcorpAppconnectionsV1ResolveAppConnectionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -3830,7 +5446,7 @@ func (c *OrganizationsLocationsOperationsListCall) Do(opts ...googleapi.CallOpti // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *OrganizationsLocationsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { +func (c *ProjectsLocationsAppConnectionsResolveCall) Pages(ctx context.Context, f func(*GoogleCloudBeyondcorpAppconnectionsV1ResolveAppConnectionsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { @@ -3848,83 +5464,81 @@ func (c *OrganizationsLocationsOperationsListCall) Pages(ctx context.Context, f } } -type ProjectsLocationsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsAppConnectionsSetIamPolicyCall struct { + s *Service + resource string + googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets information about a location. +// SetIamPolicy: Sets the access control policy on the specified resource. +// Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, +// and `PERMISSION_DENIED` errors. // -// - name: Resource name for the location. -func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall { - c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - resource: REQUIRED: The resource for which the policy is being specified. +// See Resource names (https://cloud.google.com/apis/design/resource_names) +// for the appropriate value for this field. +func (r *ProjectsLocationsAppConnectionsService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsAppConnectionsSetIamPolicyCall { + c := &ProjectsLocationsAppConnectionsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall { +func (c *ProjectsLocationsAppConnectionsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectionsSetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets an 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. -func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall { +func (c *ProjectsLocationsAppConnectionsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsAppConnectionsSetIamPolicyCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsGetCall) Header() http.Header { +func (c *ProjectsLocationsAppConnectionsSetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } +func (c *ProjectsLocationsAppConnectionsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest) + if err != nil { + return nil, err + } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "resource": c.resource, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.get" call. +// Do executes the "beyondcorp.projects.locations.appConnections.setIamPolicy" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudLocationLocation.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationLocation, error) { +// *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsAppConnectionsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -3943,7 +5557,7 @@ func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleClou if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudLocationLocation{ + ret := &GoogleIamV1Policy{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -3956,107 +5570,84 @@ func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleClou return ret, nil } -type ProjectsLocationsListCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsAppConnectionsTestIamPermissionsCall struct { + s *Service + resource string + googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists information about the supported locations for this service. +// TestIamPermissions: Returns permissions that a caller has on the specified +// resource. If the resource does not exist, this will return an empty set of +// permissions, not a `NOT_FOUND` error. Note: This operation is designed to be +// used for building permission-aware UIs and command-line tools, not for +// authorization checking. This operation may "fail open" without warning. // -// - name: The resource that owns the locations collection, if applicable. -func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall { - c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Filter sets the optional parameter "filter": A filter to narrow down results -// to a preferred subset. The filtering language accepts strings like -// "displayName=tokyo", and is documented in more detail in AIP-160 -// (https://google.aip.dev/160). -func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number of -// results to return. If not set, the service selects a default. -func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": A page token received -// from the `next_page_token` field in the response. Send that page token to -// receive the subsequent page. -func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall { - c.urlParams_.Set("pageToken", pageToken) +// - resource: REQUIRED: The resource for which the policy detail is being +// requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the appropriate +// value for this field. +func (r *ProjectsLocationsAppConnectionsService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsAppConnectionsTestIamPermissionsCall { + c := &ProjectsLocationsAppConnectionsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall { +func (c *ProjectsLocationsAppConnectionsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectionsTestIamPermissionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets an 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. -func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall { +func (c *ProjectsLocationsAppConnectionsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsAppConnectionsTestIamPermissionsCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsListCall) Header() http.Header { +func (c *ProjectsLocationsAppConnectionsTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } +func (c *ProjectsLocationsAppConnectionsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest) + if err != nil { + return nil, err + } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/locations") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "resource": c.resource, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.list" call. +// Do executes the "beyondcorp.projects.locations.appConnections.testIamPermissions" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudLocationListLocationsResponse.ServerResponse.Header or (if a +// *GoogleIamV1TestIamPermissionsResponse.ServerResponse.Header or (if a // response was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was because // http.StatusNotModified was returned. -func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationListLocationsResponse, error) { +func (c *ProjectsLocationsAppConnectionsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -4075,7 +5666,7 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*GoogleClo if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudLocationListLocationsResponse{ + ret := &GoogleIamV1TestIamPermissionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -4088,52 +5679,31 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*GoogleClo return ret, nil } -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*GoogleCloudLocationListLocationsResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) - 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 ProjectsLocationsAppConnectionsCreateCall struct { - s *Service - parent string - googlecloudbeyondcorpappconnectionsv1appconnection *GoogleCloudBeyondcorpAppconnectionsV1AppConnection - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsAppConnectorsCreateCall struct { + s *Service + parent string + googlecloudbeyondcorpappconnectorsv1appconnector *GoogleCloudBeyondcorpAppconnectorsV1AppConnector + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Creates a new AppConnection in a given project and location. +// Create: Creates a new AppConnector in a given project and location. // -// - parent: The resource project name of the AppConnection location using the +// - parent: The resource project name of the AppConnector location using the // form: `projects/{project_id}/locations/{location_id}`. -func (r *ProjectsLocationsAppConnectionsService) Create(parent string, googlecloudbeyondcorpappconnectionsv1appconnection *GoogleCloudBeyondcorpAppconnectionsV1AppConnection) *ProjectsLocationsAppConnectionsCreateCall { - c := &ProjectsLocationsAppConnectionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsAppConnectorsService) Create(parent string, googlecloudbeyondcorpappconnectorsv1appconnector *GoogleCloudBeyondcorpAppconnectorsV1AppConnector) *ProjectsLocationsAppConnectorsCreateCall { + c := &ProjectsLocationsAppConnectorsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent - c.googlecloudbeyondcorpappconnectionsv1appconnection = googlecloudbeyondcorpappconnectionsv1appconnection + c.googlecloudbeyondcorpappconnectorsv1appconnector = googlecloudbeyondcorpappconnectorsv1appconnector return c } -// AppConnectionId sets the optional parameter "appConnectionId": User-settable -// AppConnection resource ID. * Must start with a letter. * Must contain -// between 4-63 characters from `/a-z-/`. * Must end with a number or a letter. -func (c *ProjectsLocationsAppConnectionsCreateCall) AppConnectionId(appConnectionId string) *ProjectsLocationsAppConnectionsCreateCall { - c.urlParams_.Set("appConnectionId", appConnectionId) +// AppConnectorId sets the optional parameter "appConnectorId": User-settable +// AppConnector resource ID. * Must start with a letter. * Must contain between +// 4-63 characters from `/a-z-/`. * Must end with a number or a letter. +func (c *ProjectsLocationsAppConnectorsCreateCall) AppConnectorId(appConnectorId string) *ProjectsLocationsAppConnectorsCreateCall { + c.urlParams_.Set("appConnectorId", appConnectorId) return c } @@ -4148,7 +5718,7 @@ func (c *ProjectsLocationsAppConnectionsCreateCall) AppConnectionId(appConnectio // This prevents clients from accidentally creating duplicate commitments. The // request ID must be a valid UUID with the exception that zero UUID is not // supported (00000000-0000-0000-0000-000000000000). -func (c *ProjectsLocationsAppConnectionsCreateCall) RequestId(requestId string) *ProjectsLocationsAppConnectionsCreateCall { +func (c *ProjectsLocationsAppConnectorsCreateCall) RequestId(requestId string) *ProjectsLocationsAppConnectorsCreateCall { c.urlParams_.Set("requestId", requestId) return c } @@ -4156,7 +5726,7 @@ func (c *ProjectsLocationsAppConnectionsCreateCall) RequestId(requestId string) // ValidateOnly sets the optional parameter "validateOnly": If set, validates // request by executing a dry-run which would not alter the resource in any // way. -func (c *ProjectsLocationsAppConnectionsCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsAppConnectionsCreateCall { +func (c *ProjectsLocationsAppConnectorsCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsAppConnectorsCreateCall { c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly)) return c } @@ -4164,36 +5734,36 @@ func (c *ProjectsLocationsAppConnectionsCreateCall) ValidateOnly(validateOnly bo // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsAppConnectionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectionsCreateCall { +func (c *ProjectsLocationsAppConnectorsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectorsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAppConnectionsCreateCall) Context(ctx context.Context) *ProjectsLocationsAppConnectionsCreateCall { +func (c *ProjectsLocationsAppConnectorsCreateCall) Context(ctx context.Context) *ProjectsLocationsAppConnectorsCreateCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsAppConnectionsCreateCall) Header() http.Header { +func (c *ProjectsLocationsAppConnectorsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAppConnectionsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsAppConnectorsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudbeyondcorpappconnectionsv1appconnection) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudbeyondcorpappconnectorsv1appconnector) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/appConnections") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/appConnectors") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -4206,13 +5776,13 @@ func (c *ProjectsLocationsAppConnectionsCreateCall) doRequest(alt string) (*http return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.appConnections.create" call. +// Do executes the "beyondcorp.projects.locations.appConnectors.create" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was because // http.StatusNotModified was returned. -func (c *ProjectsLocationsAppConnectionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsAppConnectorsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -4244,7 +5814,7 @@ func (c *ProjectsLocationsAppConnectionsCreateCall) Do(opts ...googleapi.CallOpt return ret, nil } -type ProjectsLocationsAppConnectionsDeleteCall struct { +type ProjectsLocationsAppConnectorsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -4252,13 +5822,13 @@ type ProjectsLocationsAppConnectionsDeleteCall struct { header_ http.Header } -// Delete: Deletes a single AppConnection. +// Delete: Deletes a single AppConnector. // -// - name: BeyondCorp Connector name using the form: -// `projects/{project_id}/locations/{location_id}/appConnections/{app_connecti -// on_id}`. -func (r *ProjectsLocationsAppConnectionsService) Delete(name string) *ProjectsLocationsAppConnectionsDeleteCall { - c := &ProjectsLocationsAppConnectionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: BeyondCorp AppConnector name using the form: +// `projects/{project_id}/locations/{location_id}/appConnectors/{app_connector +// _id}`. +func (r *ProjectsLocationsAppConnectorsService) Delete(name string) *ProjectsLocationsAppConnectorsDeleteCall { + c := &ProjectsLocationsAppConnectorsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -4274,7 +5844,7 @@ func (r *ProjectsLocationsAppConnectionsService) Delete(name string) *ProjectsLo // This prevents clients from accidentally creating duplicate commitments. The // request ID must be a valid UUID with the exception that zero UUID is not // supported (00000000-0000-0000-0000-000000000000). -func (c *ProjectsLocationsAppConnectionsDeleteCall) RequestId(requestId string) *ProjectsLocationsAppConnectionsDeleteCall { +func (c *ProjectsLocationsAppConnectorsDeleteCall) RequestId(requestId string) *ProjectsLocationsAppConnectorsDeleteCall { c.urlParams_.Set("requestId", requestId) return c } @@ -4282,7 +5852,7 @@ func (c *ProjectsLocationsAppConnectionsDeleteCall) RequestId(requestId string) // ValidateOnly sets the optional parameter "validateOnly": If set, validates // request by executing a dry-run which would not alter the resource in any // way. -func (c *ProjectsLocationsAppConnectionsDeleteCall) ValidateOnly(validateOnly bool) *ProjectsLocationsAppConnectionsDeleteCall { +func (c *ProjectsLocationsAppConnectorsDeleteCall) ValidateOnly(validateOnly bool) *ProjectsLocationsAppConnectorsDeleteCall { c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly)) return c } @@ -4290,27 +5860,27 @@ func (c *ProjectsLocationsAppConnectionsDeleteCall) ValidateOnly(validateOnly bo // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsAppConnectionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectionsDeleteCall { +func (c *ProjectsLocationsAppConnectorsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectorsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAppConnectionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAppConnectionsDeleteCall { +func (c *ProjectsLocationsAppConnectorsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAppConnectorsDeleteCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsAppConnectionsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsAppConnectorsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAppConnectionsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsAppConnectorsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) @@ -4328,13 +5898,13 @@ func (c *ProjectsLocationsAppConnectionsDeleteCall) doRequest(alt string) (*http return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.appConnections.delete" call. +// Do executes the "beyondcorp.projects.locations.appConnectors.delete" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was because // http.StatusNotModified was returned. -func (c *ProjectsLocationsAppConnectionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsAppConnectorsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -4366,7 +5936,7 @@ func (c *ProjectsLocationsAppConnectionsDeleteCall) Do(opts ...googleapi.CallOpt return ret, nil } -type ProjectsLocationsAppConnectionsGetCall struct { +type ProjectsLocationsAppConnectorsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -4375,13 +5945,13 @@ type ProjectsLocationsAppConnectionsGetCall struct { header_ http.Header } -// Get: Gets details of a single AppConnection. +// Get: Gets details of a single AppConnector. // -// - name: BeyondCorp AppConnection name using the form: -// `projects/{project_id}/locations/{location_id}/appConnections/{app_connecti -// on_id}`. -func (r *ProjectsLocationsAppConnectionsService) Get(name string) *ProjectsLocationsAppConnectionsGetCall { - c := &ProjectsLocationsAppConnectionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: BeyondCorp AppConnector name using the form: +// `projects/{project_id}/locations/{location_id}/appConnectors/{app_connector +// _id}`. +func (r *ProjectsLocationsAppConnectorsService) Get(name string) *ProjectsLocationsAppConnectorsGetCall { + c := &ProjectsLocationsAppConnectorsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -4389,7 +5959,7 @@ func (r *ProjectsLocationsAppConnectionsService) Get(name string) *ProjectsLocat // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsAppConnectionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectionsGetCall { +func (c *ProjectsLocationsAppConnectorsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectorsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -4397,27 +5967,27 @@ func (c *ProjectsLocationsAppConnectionsGetCall) Fields(s ...googleapi.Field) *P // IfNoneMatch sets an 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. -func (c *ProjectsLocationsAppConnectionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppConnectionsGetCall { +func (c *ProjectsLocationsAppConnectorsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppConnectorsGetCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAppConnectionsGetCall) Context(ctx context.Context) *ProjectsLocationsAppConnectionsGetCall { +func (c *ProjectsLocationsAppConnectorsGetCall) Context(ctx context.Context) *ProjectsLocationsAppConnectorsGetCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsAppConnectionsGetCall) Header() http.Header { +func (c *ProjectsLocationsAppConnectorsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAppConnectionsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsAppConnectorsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -4438,13 +6008,13 @@ func (c *ProjectsLocationsAppConnectionsGetCall) doRequest(alt string) (*http.Re return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.appConnections.get" call. +// Do executes the "beyondcorp.projects.locations.appConnectors.get" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudBeyondcorpAppconnectionsV1AppConnection.ServerResponse.Header or +// *GoogleCloudBeyondcorpAppconnectorsV1AppConnector.ServerResponse.Header or // (if a response was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was because // http.StatusNotModified was returned. -func (c *ProjectsLocationsAppConnectionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBeyondcorpAppconnectionsV1AppConnection, error) { +func (c *ProjectsLocationsAppConnectorsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBeyondcorpAppconnectorsV1AppConnector, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -4463,7 +6033,7 @@ func (c *ProjectsLocationsAppConnectionsGetCall) Do(opts ...googleapi.CallOption if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudBeyondcorpAppconnectionsV1AppConnection{ + ret := &GoogleCloudBeyondcorpAppconnectorsV1AppConnector{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -4476,7 +6046,7 @@ func (c *ProjectsLocationsAppConnectionsGetCall) Do(opts ...googleapi.CallOption return ret, nil } -type ProjectsLocationsAppConnectionsGetIamPolicyCall struct { +type ProjectsLocationsAppConnectorsGetIamPolicyCall struct { s *Service resource string urlParams_ gensupport.URLParams @@ -4491,8 +6061,8 @@ type ProjectsLocationsAppConnectionsGetIamPolicyCall struct { // - resource: REQUIRED: The resource for which the policy is being requested. // See Resource names (https://cloud.google.com/apis/design/resource_names) // for the appropriate value for this field. -func (r *ProjectsLocationsAppConnectionsService) GetIamPolicy(resource string) *ProjectsLocationsAppConnectionsGetIamPolicyCall { - c := &ProjectsLocationsAppConnectionsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsAppConnectorsService) GetIamPolicy(resource string) *ProjectsLocationsAppConnectorsGetIamPolicyCall { + c := &ProjectsLocationsAppConnectorsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource return c } @@ -4509,7 +6079,7 @@ func (r *ProjectsLocationsAppConnectionsService) GetIamPolicy(resource string) * // response uses version 1. To learn which resources support conditions in // their IAM policies, see the IAM documentation // (https://cloud.google.com/iam/help/conditions/resource-policies). -func (c *ProjectsLocationsAppConnectionsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsAppConnectionsGetIamPolicyCall { +func (c *ProjectsLocationsAppConnectorsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsAppConnectorsGetIamPolicyCall { c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) return c } @@ -4517,7 +6087,7 @@ func (c *ProjectsLocationsAppConnectionsGetIamPolicyCall) OptionsRequestedPolicy // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsAppConnectionsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectionsGetIamPolicyCall { +func (c *ProjectsLocationsAppConnectorsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectorsGetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -4525,27 +6095,27 @@ func (c *ProjectsLocationsAppConnectionsGetIamPolicyCall) Fields(s ...googleapi. // IfNoneMatch sets an 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. -func (c *ProjectsLocationsAppConnectionsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppConnectionsGetIamPolicyCall { +func (c *ProjectsLocationsAppConnectorsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppConnectorsGetIamPolicyCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAppConnectionsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsAppConnectionsGetIamPolicyCall { +func (c *ProjectsLocationsAppConnectorsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsAppConnectorsGetIamPolicyCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsAppConnectionsGetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsAppConnectorsGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAppConnectionsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsAppConnectorsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -4566,13 +6136,13 @@ func (c *ProjectsLocationsAppConnectionsGetIamPolicyCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.appConnections.getIamPolicy" call. +// Do executes the "beyondcorp.projects.locations.appConnectors.getIamPolicy" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to // check whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsAppConnectionsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { +func (c *ProjectsLocationsAppConnectorsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -4604,7 +6174,7 @@ func (c *ProjectsLocationsAppConnectionsGetIamPolicyCall) Do(opts ...googleapi.C return ret, nil } -type ProjectsLocationsAppConnectionsListCall struct { +type ProjectsLocationsAppConnectorsListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -4613,19 +6183,19 @@ type ProjectsLocationsAppConnectionsListCall struct { header_ http.Header } -// List: Lists AppConnections in a given project and location. +// List: Lists AppConnectors in a given project and location. // -// - parent: The resource name of the AppConnection location using the form: +// - parent: The resource name of the AppConnector location using the form: // `projects/{project_id}/locations/{location_id}`. -func (r *ProjectsLocationsAppConnectionsService) List(parent string) *ProjectsLocationsAppConnectionsListCall { - c := &ProjectsLocationsAppConnectionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsAppConnectorsService) List(parent string) *ProjectsLocationsAppConnectorsListCall { + c := &ProjectsLocationsAppConnectorsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } // Filter sets the optional parameter "filter": A filter specifying constraints // of a list operation. -func (c *ProjectsLocationsAppConnectionsListCall) Filter(filter string) *ProjectsLocationsAppConnectionsListCall { +func (c *ProjectsLocationsAppConnectorsListCall) Filter(filter string) *ProjectsLocationsAppConnectorsListCall { c.urlParams_.Set("filter", filter) return c } @@ -4634,7 +6204,7 @@ func (c *ProjectsLocationsAppConnectionsListCall) Filter(filter string) *Project // results. See Sorting order // (https://cloud.google.com/apis/design/design_patterns#sorting_order) for // more information. -func (c *ProjectsLocationsAppConnectionsListCall) OrderBy(orderBy string) *ProjectsLocationsAppConnectionsListCall { +func (c *ProjectsLocationsAppConnectorsListCall) OrderBy(orderBy string) *ProjectsLocationsAppConnectorsListCall { c.urlParams_.Set("orderBy", orderBy) return c } @@ -4644,14 +6214,14 @@ func (c *ProjectsLocationsAppConnectionsListCall) OrderBy(orderBy string) *Proje // service. Regardless of the page_size value, the response may include a // partial list and a caller should only rely on response's next_page_token to // determine if there are more instances left to be queried. -func (c *ProjectsLocationsAppConnectionsListCall) PageSize(pageSize int64) *ProjectsLocationsAppConnectionsListCall { +func (c *ProjectsLocationsAppConnectorsListCall) PageSize(pageSize int64) *ProjectsLocationsAppConnectorsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The next_page_token value -// returned from a previous ListAppConnectionsRequest, if any. -func (c *ProjectsLocationsAppConnectionsListCall) PageToken(pageToken string) *ProjectsLocationsAppConnectionsListCall { +// returned from a previous ListAppConnectorsRequest, if any. +func (c *ProjectsLocationsAppConnectorsListCall) PageToken(pageToken string) *ProjectsLocationsAppConnectorsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -4659,7 +6229,7 @@ func (c *ProjectsLocationsAppConnectionsListCall) PageToken(pageToken string) *P // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsAppConnectionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectionsListCall { +func (c *ProjectsLocationsAppConnectorsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectorsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -4667,27 +6237,27 @@ func (c *ProjectsLocationsAppConnectionsListCall) Fields(s ...googleapi.Field) * // IfNoneMatch sets an 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. -func (c *ProjectsLocationsAppConnectionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppConnectionsListCall { +func (c *ProjectsLocationsAppConnectorsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppConnectorsListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAppConnectionsListCall) Context(ctx context.Context) *ProjectsLocationsAppConnectionsListCall { +func (c *ProjectsLocationsAppConnectorsListCall) Context(ctx context.Context) *ProjectsLocationsAppConnectorsListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsAppConnectionsListCall) Header() http.Header { +func (c *ProjectsLocationsAppConnectorsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAppConnectionsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsAppConnectorsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -4695,7 +6265,7 @@ func (c *ProjectsLocationsAppConnectionsListCall) doRequest(alt string) (*http.R var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/appConnections") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/appConnectors") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -4708,13 +6278,13 @@ func (c *ProjectsLocationsAppConnectionsListCall) doRequest(alt string) (*http.R return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.appConnections.list" call. +// Do executes the "beyondcorp.projects.locations.appConnectors.list" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudBeyondcorpAppconnectionsV1ListAppConnectionsResponse.ServerRespon -// se.Header or (if a response was returned at all) in +// *GoogleCloudBeyondcorpAppconnectorsV1ListAppConnectorsResponse.ServerResponse +// .Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was returned. -func (c *ProjectsLocationsAppConnectionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBeyondcorpAppconnectionsV1ListAppConnectionsResponse, error) { +func (c *ProjectsLocationsAppConnectorsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBeyondcorpAppconnectorsV1ListAppConnectorsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -4733,7 +6303,7 @@ func (c *ProjectsLocationsAppConnectionsListCall) Do(opts ...googleapi.CallOptio if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudBeyondcorpAppconnectionsV1ListAppConnectionsResponse{ + ret := &GoogleCloudBeyondcorpAppconnectorsV1ListAppConnectorsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -4749,7 +6319,7 @@ func (c *ProjectsLocationsAppConnectionsListCall) Do(opts ...googleapi.CallOptio // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsAppConnectionsListCall) Pages(ctx context.Context, f func(*GoogleCloudBeyondcorpAppconnectionsV1ListAppConnectionsResponse) error) error { +func (c *ProjectsLocationsAppConnectorsListCall) Pages(ctx context.Context, f func(*GoogleCloudBeyondcorpAppconnectorsV1ListAppConnectorsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { @@ -4767,30 +6337,23 @@ func (c *ProjectsLocationsAppConnectionsListCall) Pages(ctx context.Context, f f } } -type ProjectsLocationsAppConnectionsPatchCall struct { - s *Service - name string - googlecloudbeyondcorpappconnectionsv1appconnection *GoogleCloudBeyondcorpAppconnectionsV1AppConnection - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsAppConnectorsPatchCall struct { + s *Service + name string + googlecloudbeyondcorpappconnectorsv1appconnector *GoogleCloudBeyondcorpAppconnectorsV1AppConnector + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Patch: Updates the parameters of a single AppConnection. +// Patch: Updates the parameters of a single AppConnector. // -// - name: Unique resource name of the AppConnection. The name is ignored when -// creating a AppConnection. -func (r *ProjectsLocationsAppConnectionsService) Patch(name string, googlecloudbeyondcorpappconnectionsv1appconnection *GoogleCloudBeyondcorpAppconnectionsV1AppConnection) *ProjectsLocationsAppConnectionsPatchCall { - c := &ProjectsLocationsAppConnectionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Unique resource name of the AppConnector. The name is ignored when +// creating a AppConnector. +func (r *ProjectsLocationsAppConnectorsService) Patch(name string, googlecloudbeyondcorpappconnectorsv1appconnector *GoogleCloudBeyondcorpAppconnectorsV1AppConnector) *ProjectsLocationsAppConnectorsPatchCall { + c := &ProjectsLocationsAppConnectorsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudbeyondcorpappconnectionsv1appconnection = googlecloudbeyondcorpappconnectionsv1appconnection - return c -} - -// AllowMissing sets the optional parameter "allowMissing": If set as true, -// will create the resource if it is not found. -func (c *ProjectsLocationsAppConnectionsPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsAppConnectionsPatchCall { - c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing)) + c.googlecloudbeyondcorpappconnectorsv1appconnector = googlecloudbeyondcorpappconnectorsv1appconnector return c } @@ -4805,81 +6368,183 @@ func (c *ProjectsLocationsAppConnectionsPatchCall) AllowMissing(allowMissing boo // This prevents clients from accidentally creating duplicate commitments. The // request ID must be a valid UUID with the exception that zero UUID is not // supported (00000000-0000-0000-0000-000000000000). -func (c *ProjectsLocationsAppConnectionsPatchCall) RequestId(requestId string) *ProjectsLocationsAppConnectionsPatchCall { +func (c *ProjectsLocationsAppConnectorsPatchCall) RequestId(requestId string) *ProjectsLocationsAppConnectorsPatchCall { c.urlParams_.Set("requestId", requestId) return c } -// UpdateMask sets the optional parameter "updateMask": Required. Mask of -// fields to update. At least one path must be supplied in this field. The -// elements of the repeated paths field may only include these fields from -// [BeyondCorp.AppConnection]: * `labels` * `display_name` * -// `application_endpoint` * `connectors` -func (c *ProjectsLocationsAppConnectionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAppConnectionsPatchCall { - c.urlParams_.Set("updateMask", updateMask) - return c +// UpdateMask sets the optional parameter "updateMask": Required. Mask of +// fields to update. At least one path must be supplied in this field. The +// elements of the repeated paths field may only include these fields from +// [BeyondCorp.AppConnector]: * `labels` * `display_name` +func (c *ProjectsLocationsAppConnectorsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAppConnectorsPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// ValidateOnly sets the optional parameter "validateOnly": If set, validates +// request by executing a dry-run which would not alter the resource in any +// way. +func (c *ProjectsLocationsAppConnectorsPatchCall) ValidateOnly(validateOnly bool) *ProjectsLocationsAppConnectorsPatchCall { + c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsAppConnectorsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectorsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAppConnectorsPatchCall) Context(ctx context.Context) *ProjectsLocationsAppConnectorsPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAppConnectorsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAppConnectorsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudbeyondcorpappconnectorsv1appconnector) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "beyondcorp.projects.locations.appConnectors.patch" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsAppConnectorsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsAppConnectorsReportStatusCall struct { + s *Service + appConnector string + googlecloudbeyondcorpappconnectorsv1reportstatusrequest *GoogleCloudBeyondcorpAppconnectorsV1ReportStatusRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// ValidateOnly sets the optional parameter "validateOnly": If set, validates -// request by executing a dry-run which would not alter the resource in any -// way. -func (c *ProjectsLocationsAppConnectionsPatchCall) ValidateOnly(validateOnly bool) *ProjectsLocationsAppConnectionsPatchCall { - c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly)) +// ReportStatus: Report status for a given connector. +// +// - appConnector: BeyondCorp Connector name using the form: +// `projects/{project_id}/locations/{location_id}/connectors/{connector}`. +func (r *ProjectsLocationsAppConnectorsService) ReportStatus(appConnector string, googlecloudbeyondcorpappconnectorsv1reportstatusrequest *GoogleCloudBeyondcorpAppconnectorsV1ReportStatusRequest) *ProjectsLocationsAppConnectorsReportStatusCall { + c := &ProjectsLocationsAppConnectorsReportStatusCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.appConnector = appConnector + c.googlecloudbeyondcorpappconnectorsv1reportstatusrequest = googlecloudbeyondcorpappconnectorsv1reportstatusrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsAppConnectionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectionsPatchCall { +func (c *ProjectsLocationsAppConnectorsReportStatusCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectorsReportStatusCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAppConnectionsPatchCall) Context(ctx context.Context) *ProjectsLocationsAppConnectionsPatchCall { +func (c *ProjectsLocationsAppConnectorsReportStatusCall) Context(ctx context.Context) *ProjectsLocationsAppConnectorsReportStatusCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsAppConnectionsPatchCall) Header() http.Header { +func (c *ProjectsLocationsAppConnectorsReportStatusCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAppConnectionsPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsAppConnectorsReportStatusCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudbeyondcorpappconnectionsv1appconnection) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudbeyondcorpappconnectorsv1reportstatusrequest) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+appConnector}:reportStatus") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "appConnector": c.appConnector, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.appConnections.patch" call. +// Do executes the "beyondcorp.projects.locations.appConnectors.reportStatus" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was because // http.StatusNotModified was returned. -func (c *ProjectsLocationsAppConnectionsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsAppConnectorsReportStatusCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -4911,57 +6576,31 @@ func (c *ProjectsLocationsAppConnectionsPatchCall) Do(opts ...googleapi.CallOpti return ret, nil } -type ProjectsLocationsAppConnectionsResolveCall struct { +type ProjectsLocationsAppConnectorsResolveInstanceConfigCall struct { s *Service - parent string + appConnector string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// Resolve: Resolves AppConnections details for a given AppConnector. An -// internal method called by a connector to find AppConnections to connect to. +// ResolveInstanceConfig: Gets instance configuration for a given AppConnector. +// An internal method called by a AppConnector to get its container config. // -// - parent: The resource name of the AppConnection location using the form: -// `projects/{project_id}/locations/{location_id}`. -func (r *ProjectsLocationsAppConnectionsService) Resolve(parent string) *ProjectsLocationsAppConnectionsResolveCall { - c := &ProjectsLocationsAppConnectionsResolveCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// AppConnectorId sets the optional parameter "appConnectorId": Required. -// BeyondCorp Connector name of the connector associated with those -// AppConnections using the form: -// `projects/{project_id}/locations/{location_id}/appConnectors/{app_connector_i -// d}` -func (c *ProjectsLocationsAppConnectionsResolveCall) AppConnectorId(appConnectorId string) *ProjectsLocationsAppConnectionsResolveCall { - c.urlParams_.Set("appConnectorId", appConnectorId) - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number of items -// to return. If not specified, a default value of 50 will be used by the -// service. Regardless of the page_size value, the response may include a -// partial list and a caller should only rely on response's next_page_token to -// determine if there are more instances left to be queried. -func (c *ProjectsLocationsAppConnectionsResolveCall) PageSize(pageSize int64) *ProjectsLocationsAppConnectionsResolveCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The next_page_token value -// returned from a previous ResolveAppConnectionsResponse, if any. -func (c *ProjectsLocationsAppConnectionsResolveCall) PageToken(pageToken string) *ProjectsLocationsAppConnectionsResolveCall { - c.urlParams_.Set("pageToken", pageToken) +// - appConnector: BeyondCorp AppConnector name using the form: +// `projects/{project_id}/locations/{location_id}/appConnectors/{app_connector +// }`. +func (r *ProjectsLocationsAppConnectorsService) ResolveInstanceConfig(appConnector string) *ProjectsLocationsAppConnectorsResolveInstanceConfigCall { + c := &ProjectsLocationsAppConnectorsResolveInstanceConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.appConnector = appConnector return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsAppConnectionsResolveCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectionsResolveCall { +func (c *ProjectsLocationsAppConnectorsResolveInstanceConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectorsResolveInstanceConfigCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -4969,27 +6608,27 @@ func (c *ProjectsLocationsAppConnectionsResolveCall) Fields(s ...googleapi.Field // IfNoneMatch sets an 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. -func (c *ProjectsLocationsAppConnectionsResolveCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppConnectionsResolveCall { +func (c *ProjectsLocationsAppConnectorsResolveInstanceConfigCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppConnectorsResolveInstanceConfigCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAppConnectionsResolveCall) Context(ctx context.Context) *ProjectsLocationsAppConnectionsResolveCall { +func (c *ProjectsLocationsAppConnectorsResolveInstanceConfigCall) Context(ctx context.Context) *ProjectsLocationsAppConnectorsResolveInstanceConfigCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsAppConnectionsResolveCall) Header() http.Header { +func (c *ProjectsLocationsAppConnectorsResolveInstanceConfigCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAppConnectionsResolveCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsAppConnectorsResolveInstanceConfigCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -4997,7 +6636,7 @@ func (c *ProjectsLocationsAppConnectionsResolveCall) doRequest(alt string) (*htt var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/appConnections:resolve") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+appConnector}:resolveInstanceConfig") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -5005,18 +6644,18 @@ func (c *ProjectsLocationsAppConnectionsResolveCall) doRequest(alt string) (*htt } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "appConnector": c.appConnector, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.appConnections.resolve" call. +// Do executes the "beyondcorp.projects.locations.appConnectors.resolveInstanceConfig" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudBeyondcorpAppconnectionsV1ResolveAppConnectionsResponse.ServerRes -// ponse.Header or (if a response was returned at all) in +// *GoogleCloudBeyondcorpAppconnectorsV1ResolveInstanceConfigResponse.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 *ProjectsLocationsAppConnectionsResolveCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBeyondcorpAppconnectionsV1ResolveAppConnectionsResponse, error) { +func (c *ProjectsLocationsAppConnectorsResolveInstanceConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBeyondcorpAppconnectorsV1ResolveInstanceConfigResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5035,7 +6674,7 @@ func (c *ProjectsLocationsAppConnectionsResolveCall) Do(opts ...googleapi.CallOp if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudBeyondcorpAppconnectionsV1ResolveAppConnectionsResponse{ + ret := &GoogleCloudBeyondcorpAppconnectorsV1ResolveInstanceConfigResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -5048,28 +6687,7 @@ func (c *ProjectsLocationsAppConnectionsResolveCall) Do(opts ...googleapi.CallOp return ret, nil } -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsAppConnectionsResolveCall) Pages(ctx context.Context, f func(*GoogleCloudBeyondcorpAppconnectionsV1ResolveAppConnectionsResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) - 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 ProjectsLocationsAppConnectionsSetIamPolicyCall struct { +type ProjectsLocationsAppConnectorsSetIamPolicyCall struct { s *Service resource string googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest @@ -5085,8 +6703,8 @@ type ProjectsLocationsAppConnectionsSetIamPolicyCall struct { // - resource: REQUIRED: The resource for which the policy is being specified. // See Resource names (https://cloud.google.com/apis/design/resource_names) // for the appropriate value for this field. -func (r *ProjectsLocationsAppConnectionsService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsAppConnectionsSetIamPolicyCall { - c := &ProjectsLocationsAppConnectionsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsAppConnectorsService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsAppConnectorsSetIamPolicyCall { + c := &ProjectsLocationsAppConnectorsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest return c @@ -5095,27 +6713,27 @@ func (r *ProjectsLocationsAppConnectionsService) SetIamPolicy(resource string, g // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsAppConnectionsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectionsSetIamPolicyCall { +func (c *ProjectsLocationsAppConnectorsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectorsSetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAppConnectionsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsAppConnectionsSetIamPolicyCall { +func (c *ProjectsLocationsAppConnectorsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsAppConnectorsSetIamPolicyCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsAppConnectionsSetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsAppConnectorsSetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAppConnectionsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsAppConnectorsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest) @@ -5137,13 +6755,13 @@ func (c *ProjectsLocationsAppConnectionsSetIamPolicyCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.appConnections.setIamPolicy" call. +// Do executes the "beyondcorp.projects.locations.appConnectors.setIamPolicy" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to // check whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsAppConnectionsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { +func (c *ProjectsLocationsAppConnectorsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5175,7 +6793,7 @@ func (c *ProjectsLocationsAppConnectionsSetIamPolicyCall) Do(opts ...googleapi.C return ret, nil } -type ProjectsLocationsAppConnectionsTestIamPermissionsCall struct { +type ProjectsLocationsAppConnectorsTestIamPermissionsCall struct { s *Service resource string googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest @@ -5194,8 +6812,8 @@ type ProjectsLocationsAppConnectionsTestIamPermissionsCall struct { // requested. See Resource names // (https://cloud.google.com/apis/design/resource_names) for the appropriate // value for this field. -func (r *ProjectsLocationsAppConnectionsService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsAppConnectionsTestIamPermissionsCall { - c := &ProjectsLocationsAppConnectionsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsAppConnectorsService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsAppConnectorsTestIamPermissionsCall { + c := &ProjectsLocationsAppConnectorsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest return c @@ -5204,27 +6822,27 @@ func (r *ProjectsLocationsAppConnectionsService) TestIamPermissions(resource str // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsAppConnectionsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectionsTestIamPermissionsCall { +func (c *ProjectsLocationsAppConnectorsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectorsTestIamPermissionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAppConnectionsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsAppConnectionsTestIamPermissionsCall { +func (c *ProjectsLocationsAppConnectorsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsAppConnectorsTestIamPermissionsCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsAppConnectionsTestIamPermissionsCall) Header() http.Header { +func (c *ProjectsLocationsAppConnectorsTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAppConnectionsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsAppConnectorsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest) @@ -5246,13 +6864,13 @@ func (c *ProjectsLocationsAppConnectionsTestIamPermissionsCall) doRequest(alt st return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.appConnections.testIamPermissions" call. +// Do executes the "beyondcorp.projects.locations.appConnectors.testIamPermissions" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleIamV1TestIamPermissionsResponse.ServerResponse.Header or (if a // response was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was because // http.StatusNotModified was returned. -func (c *ProjectsLocationsAppConnectionsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) { +func (c *ProjectsLocationsAppConnectorsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5284,31 +6902,31 @@ func (c *ProjectsLocationsAppConnectionsTestIamPermissionsCall) Do(opts ...googl return ret, nil } -type ProjectsLocationsAppConnectorsCreateCall struct { - s *Service - parent string - googlecloudbeyondcorpappconnectorsv1appconnector *GoogleCloudBeyondcorpAppconnectorsV1AppConnector - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsAppGatewaysCreateCall struct { + s *Service + parent string + appgateway *AppGateway + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Creates a new AppConnector in a given project and location. +// Create: Creates a new AppGateway in a given project and location. // -// - parent: The resource project name of the AppConnector location using the +// - parent: The resource project name of the AppGateway location using the // form: `projects/{project_id}/locations/{location_id}`. -func (r *ProjectsLocationsAppConnectorsService) Create(parent string, googlecloudbeyondcorpappconnectorsv1appconnector *GoogleCloudBeyondcorpAppconnectorsV1AppConnector) *ProjectsLocationsAppConnectorsCreateCall { - c := &ProjectsLocationsAppConnectorsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsAppGatewaysService) Create(parent string, appgateway *AppGateway) *ProjectsLocationsAppGatewaysCreateCall { + c := &ProjectsLocationsAppGatewaysCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent - c.googlecloudbeyondcorpappconnectorsv1appconnector = googlecloudbeyondcorpappconnectorsv1appconnector + c.appgateway = appgateway return c } -// AppConnectorId sets the optional parameter "appConnectorId": User-settable -// AppConnector resource ID. * Must start with a letter. * Must contain between +// AppGatewayId sets the optional parameter "appGatewayId": User-settable +// AppGateway resource ID. * Must start with a letter. * Must contain between // 4-63 characters from `/a-z-/`. * Must end with a number or a letter. -func (c *ProjectsLocationsAppConnectorsCreateCall) AppConnectorId(appConnectorId string) *ProjectsLocationsAppConnectorsCreateCall { - c.urlParams_.Set("appConnectorId", appConnectorId) +func (c *ProjectsLocationsAppGatewaysCreateCall) AppGatewayId(appGatewayId string) *ProjectsLocationsAppGatewaysCreateCall { + c.urlParams_.Set("appGatewayId", appGatewayId) return c } @@ -5323,7 +6941,7 @@ func (c *ProjectsLocationsAppConnectorsCreateCall) AppConnectorId(appConnectorId // This prevents clients from accidentally creating duplicate commitments. The // request ID must be a valid UUID with the exception that zero UUID is not // supported (00000000-0000-0000-0000-000000000000). -func (c *ProjectsLocationsAppConnectorsCreateCall) RequestId(requestId string) *ProjectsLocationsAppConnectorsCreateCall { +func (c *ProjectsLocationsAppGatewaysCreateCall) RequestId(requestId string) *ProjectsLocationsAppGatewaysCreateCall { c.urlParams_.Set("requestId", requestId) return c } @@ -5331,7 +6949,7 @@ func (c *ProjectsLocationsAppConnectorsCreateCall) RequestId(requestId string) * // ValidateOnly sets the optional parameter "validateOnly": If set, validates // request by executing a dry-run which would not alter the resource in any // way. -func (c *ProjectsLocationsAppConnectorsCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsAppConnectorsCreateCall { +func (c *ProjectsLocationsAppGatewaysCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsAppGatewaysCreateCall { c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly)) return c } @@ -5339,36 +6957,36 @@ func (c *ProjectsLocationsAppConnectorsCreateCall) ValidateOnly(validateOnly boo // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsAppConnectorsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectorsCreateCall { +func (c *ProjectsLocationsAppGatewaysCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppGatewaysCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAppConnectorsCreateCall) Context(ctx context.Context) *ProjectsLocationsAppConnectorsCreateCall { +func (c *ProjectsLocationsAppGatewaysCreateCall) Context(ctx context.Context) *ProjectsLocationsAppGatewaysCreateCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsAppConnectorsCreateCall) Header() http.Header { +func (c *ProjectsLocationsAppGatewaysCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAppConnectorsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsAppGatewaysCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudbeyondcorpappconnectorsv1appconnector) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.appgateway) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/appConnectors") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/appGateways") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -5381,13 +6999,13 @@ func (c *ProjectsLocationsAppConnectorsCreateCall) doRequest(alt string) (*http. return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.appConnectors.create" call. +// Do executes the "beyondcorp.projects.locations.appGateways.create" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was because // http.StatusNotModified was returned. -func (c *ProjectsLocationsAppConnectorsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsAppGatewaysCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5419,7 +7037,7 @@ func (c *ProjectsLocationsAppConnectorsCreateCall) Do(opts ...googleapi.CallOpti return ret, nil } -type ProjectsLocationsAppConnectorsDeleteCall struct { +type ProjectsLocationsAppGatewaysDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -5427,13 +7045,13 @@ type ProjectsLocationsAppConnectorsDeleteCall struct { header_ http.Header } -// Delete: Deletes a single AppConnector. +// Delete: Deletes a single AppGateway. // -// - name: BeyondCorp AppConnector name using the form: -// `projects/{project_id}/locations/{location_id}/appConnectors/{app_connector -// _id}`. -func (r *ProjectsLocationsAppConnectorsService) Delete(name string) *ProjectsLocationsAppConnectorsDeleteCall { - c := &ProjectsLocationsAppConnectorsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: BeyondCorp AppGateway name using the form: +// `projects/{project_id}/locations/{location_id}/appGateways/{app_gateway_id} +// `. +func (r *ProjectsLocationsAppGatewaysService) Delete(name string) *ProjectsLocationsAppGatewaysDeleteCall { + c := &ProjectsLocationsAppGatewaysDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -5449,7 +7067,7 @@ func (r *ProjectsLocationsAppConnectorsService) Delete(name string) *ProjectsLoc // This prevents clients from accidentally creating duplicate commitments. The // request ID must be a valid UUID with the exception that zero UUID is not // supported (00000000-0000-0000-0000-000000000000). -func (c *ProjectsLocationsAppConnectorsDeleteCall) RequestId(requestId string) *ProjectsLocationsAppConnectorsDeleteCall { +func (c *ProjectsLocationsAppGatewaysDeleteCall) RequestId(requestId string) *ProjectsLocationsAppGatewaysDeleteCall { c.urlParams_.Set("requestId", requestId) return c } @@ -5457,7 +7075,7 @@ func (c *ProjectsLocationsAppConnectorsDeleteCall) RequestId(requestId string) * // ValidateOnly sets the optional parameter "validateOnly": If set, validates // request by executing a dry-run which would not alter the resource in any // way. -func (c *ProjectsLocationsAppConnectorsDeleteCall) ValidateOnly(validateOnly bool) *ProjectsLocationsAppConnectorsDeleteCall { +func (c *ProjectsLocationsAppGatewaysDeleteCall) ValidateOnly(validateOnly bool) *ProjectsLocationsAppGatewaysDeleteCall { c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly)) return c } @@ -5465,27 +7083,27 @@ func (c *ProjectsLocationsAppConnectorsDeleteCall) ValidateOnly(validateOnly boo // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsAppConnectorsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectorsDeleteCall { +func (c *ProjectsLocationsAppGatewaysDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppGatewaysDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAppConnectorsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAppConnectorsDeleteCall { +func (c *ProjectsLocationsAppGatewaysDeleteCall) Context(ctx context.Context) *ProjectsLocationsAppGatewaysDeleteCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsAppConnectorsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsAppGatewaysDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAppConnectorsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsAppGatewaysDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) @@ -5503,13 +7121,13 @@ func (c *ProjectsLocationsAppConnectorsDeleteCall) doRequest(alt string) (*http. return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.appConnectors.delete" call. +// Do executes the "beyondcorp.projects.locations.appGateways.delete" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was because // http.StatusNotModified was returned. -func (c *ProjectsLocationsAppConnectorsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsAppGatewaysDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5541,7 +7159,7 @@ func (c *ProjectsLocationsAppConnectorsDeleteCall) Do(opts ...googleapi.CallOpti return ret, nil } -type ProjectsLocationsAppConnectorsGetCall struct { +type ProjectsLocationsAppGatewaysGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -5550,13 +7168,13 @@ type ProjectsLocationsAppConnectorsGetCall struct { header_ http.Header } -// Get: Gets details of a single AppConnector. +// Get: Gets details of a single AppGateway. // -// - name: BeyondCorp AppConnector name using the form: -// `projects/{project_id}/locations/{location_id}/appConnectors/{app_connector -// _id}`. -func (r *ProjectsLocationsAppConnectorsService) Get(name string) *ProjectsLocationsAppConnectorsGetCall { - c := &ProjectsLocationsAppConnectorsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: BeyondCorp AppGateway name using the form: +// `projects/{project_id}/locations/{location_id}/appGateways/{app_gateway_id} +// `. +func (r *ProjectsLocationsAppGatewaysService) Get(name string) *ProjectsLocationsAppGatewaysGetCall { + c := &ProjectsLocationsAppGatewaysGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -5564,7 +7182,7 @@ func (r *ProjectsLocationsAppConnectorsService) Get(name string) *ProjectsLocati // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsAppConnectorsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectorsGetCall { +func (c *ProjectsLocationsAppGatewaysGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppGatewaysGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -5572,27 +7190,27 @@ func (c *ProjectsLocationsAppConnectorsGetCall) Fields(s ...googleapi.Field) *Pr // IfNoneMatch sets an 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. -func (c *ProjectsLocationsAppConnectorsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppConnectorsGetCall { +func (c *ProjectsLocationsAppGatewaysGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppGatewaysGetCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAppConnectorsGetCall) Context(ctx context.Context) *ProjectsLocationsAppConnectorsGetCall { +func (c *ProjectsLocationsAppGatewaysGetCall) Context(ctx context.Context) *ProjectsLocationsAppGatewaysGetCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsAppConnectorsGetCall) Header() http.Header { +func (c *ProjectsLocationsAppGatewaysGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAppConnectorsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsAppGatewaysGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -5613,13 +7231,12 @@ func (c *ProjectsLocationsAppConnectorsGetCall) doRequest(alt string) (*http.Res return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.appConnectors.get" call. +// Do executes the "beyondcorp.projects.locations.appGateways.get" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudBeyondcorpAppconnectorsV1AppConnector.ServerResponse.Header or -// (if a response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *ProjectsLocationsAppConnectorsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBeyondcorpAppconnectorsV1AppConnector, error) { +// *AppGateway.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsAppGatewaysGetCall) Do(opts ...googleapi.CallOption) (*AppGateway, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5638,7 +7255,7 @@ func (c *ProjectsLocationsAppConnectorsGetCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudBeyondcorpAppconnectorsV1AppConnector{ + ret := &AppGateway{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -5651,7 +7268,7 @@ func (c *ProjectsLocationsAppConnectorsGetCall) Do(opts ...googleapi.CallOption) return ret, nil } -type ProjectsLocationsAppConnectorsGetIamPolicyCall struct { +type ProjectsLocationsAppGatewaysGetIamPolicyCall struct { s *Service resource string urlParams_ gensupport.URLParams @@ -5666,8 +7283,8 @@ type ProjectsLocationsAppConnectorsGetIamPolicyCall struct { // - resource: REQUIRED: The resource for which the policy is being requested. // See Resource names (https://cloud.google.com/apis/design/resource_names) // for the appropriate value for this field. -func (r *ProjectsLocationsAppConnectorsService) GetIamPolicy(resource string) *ProjectsLocationsAppConnectorsGetIamPolicyCall { - c := &ProjectsLocationsAppConnectorsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsAppGatewaysService) GetIamPolicy(resource string) *ProjectsLocationsAppGatewaysGetIamPolicyCall { + c := &ProjectsLocationsAppGatewaysGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource return c } @@ -5684,7 +7301,7 @@ func (r *ProjectsLocationsAppConnectorsService) GetIamPolicy(resource string) *P // response uses version 1. To learn which resources support conditions in // their IAM policies, see the IAM documentation // (https://cloud.google.com/iam/help/conditions/resource-policies). -func (c *ProjectsLocationsAppConnectorsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsAppConnectorsGetIamPolicyCall { +func (c *ProjectsLocationsAppGatewaysGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsAppGatewaysGetIamPolicyCall { c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) return c } @@ -5692,7 +7309,7 @@ func (c *ProjectsLocationsAppConnectorsGetIamPolicyCall) OptionsRequestedPolicyV // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsAppConnectorsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectorsGetIamPolicyCall { +func (c *ProjectsLocationsAppGatewaysGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppGatewaysGetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -5700,27 +7317,27 @@ func (c *ProjectsLocationsAppConnectorsGetIamPolicyCall) Fields(s ...googleapi.F // IfNoneMatch sets an 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. -func (c *ProjectsLocationsAppConnectorsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppConnectorsGetIamPolicyCall { +func (c *ProjectsLocationsAppGatewaysGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppGatewaysGetIamPolicyCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAppConnectorsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsAppConnectorsGetIamPolicyCall { +func (c *ProjectsLocationsAppGatewaysGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsAppGatewaysGetIamPolicyCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsAppConnectorsGetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsAppGatewaysGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAppConnectorsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsAppGatewaysGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -5741,13 +7358,13 @@ func (c *ProjectsLocationsAppConnectorsGetIamPolicyCall) doRequest(alt string) ( return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.appConnectors.getIamPolicy" call. +// Do executes the "beyondcorp.projects.locations.appGateways.getIamPolicy" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to // check whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsAppConnectorsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { +func (c *ProjectsLocationsAppGatewaysGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5779,7 +7396,7 @@ func (c *ProjectsLocationsAppConnectorsGetIamPolicyCall) Do(opts ...googleapi.Ca return ret, nil } -type ProjectsLocationsAppConnectorsListCall struct { +type ProjectsLocationsAppGatewaysListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -5788,19 +7405,19 @@ type ProjectsLocationsAppConnectorsListCall struct { header_ http.Header } -// List: Lists AppConnectors in a given project and location. +// List: Lists AppGateways in a given project and location. // -// - parent: The resource name of the AppConnector location using the form: +// - parent: The resource name of the AppGateway location using the form: // `projects/{project_id}/locations/{location_id}`. -func (r *ProjectsLocationsAppConnectorsService) List(parent string) *ProjectsLocationsAppConnectorsListCall { - c := &ProjectsLocationsAppConnectorsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsAppGatewaysService) List(parent string) *ProjectsLocationsAppGatewaysListCall { + c := &ProjectsLocationsAppGatewaysListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } // Filter sets the optional parameter "filter": A filter specifying constraints // of a list operation. -func (c *ProjectsLocationsAppConnectorsListCall) Filter(filter string) *ProjectsLocationsAppConnectorsListCall { +func (c *ProjectsLocationsAppGatewaysListCall) Filter(filter string) *ProjectsLocationsAppGatewaysListCall { c.urlParams_.Set("filter", filter) return c } @@ -5809,7 +7426,7 @@ func (c *ProjectsLocationsAppConnectorsListCall) Filter(filter string) *Projects // results. See Sorting order // (https://cloud.google.com/apis/design/design_patterns#sorting_order) for // more information. -func (c *ProjectsLocationsAppConnectorsListCall) OrderBy(orderBy string) *ProjectsLocationsAppConnectorsListCall { +func (c *ProjectsLocationsAppGatewaysListCall) OrderBy(orderBy string) *ProjectsLocationsAppGatewaysListCall { c.urlParams_.Set("orderBy", orderBy) return c } @@ -5819,14 +7436,14 @@ func (c *ProjectsLocationsAppConnectorsListCall) OrderBy(orderBy string) *Projec // service. Regardless of the page_size value, the response may include a // partial list and a caller should only rely on response's next_page_token to // determine if there are more instances left to be queried. -func (c *ProjectsLocationsAppConnectorsListCall) PageSize(pageSize int64) *ProjectsLocationsAppConnectorsListCall { +func (c *ProjectsLocationsAppGatewaysListCall) PageSize(pageSize int64) *ProjectsLocationsAppGatewaysListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The next_page_token value -// returned from a previous ListAppConnectorsRequest, if any. -func (c *ProjectsLocationsAppConnectorsListCall) PageToken(pageToken string) *ProjectsLocationsAppConnectorsListCall { +// returned from a previous ListAppGatewaysRequest, if any. +func (c *ProjectsLocationsAppGatewaysListCall) PageToken(pageToken string) *ProjectsLocationsAppGatewaysListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -5834,7 +7451,7 @@ func (c *ProjectsLocationsAppConnectorsListCall) PageToken(pageToken string) *Pr // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsAppConnectorsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectorsListCall { +func (c *ProjectsLocationsAppGatewaysListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppGatewaysListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -5842,27 +7459,27 @@ func (c *ProjectsLocationsAppConnectorsListCall) Fields(s ...googleapi.Field) *P // IfNoneMatch sets an 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. -func (c *ProjectsLocationsAppConnectorsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppConnectorsListCall { +func (c *ProjectsLocationsAppGatewaysListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppGatewaysListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAppConnectorsListCall) Context(ctx context.Context) *ProjectsLocationsAppConnectorsListCall { +func (c *ProjectsLocationsAppGatewaysListCall) Context(ctx context.Context) *ProjectsLocationsAppGatewaysListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsAppConnectorsListCall) Header() http.Header { +func (c *ProjectsLocationsAppGatewaysListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAppConnectorsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsAppGatewaysListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -5870,7 +7487,7 @@ func (c *ProjectsLocationsAppConnectorsListCall) doRequest(alt string) (*http.Re var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/appConnectors") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/appGateways") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -5883,13 +7500,13 @@ func (c *ProjectsLocationsAppConnectorsListCall) doRequest(alt string) (*http.Re return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.appConnectors.list" call. +// Do executes the "beyondcorp.projects.locations.appGateways.list" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudBeyondcorpAppconnectorsV1ListAppConnectorsResponse.ServerResponse -// .Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was returned. -func (c *ProjectsLocationsAppConnectorsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBeyondcorpAppconnectorsV1ListAppConnectorsResponse, error) { +// *ListAppGatewaysResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsAppGatewaysListCall) Do(opts ...googleapi.CallOption) (*ListAppGatewaysResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5908,7 +7525,7 @@ func (c *ProjectsLocationsAppConnectorsListCall) Do(opts ...googleapi.CallOption if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudBeyondcorpAppconnectorsV1ListAppConnectorsResponse{ + ret := &ListAppGatewaysResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -5924,7 +7541,7 @@ func (c *ProjectsLocationsAppConnectorsListCall) Do(opts ...googleapi.CallOption // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsAppConnectorsListCall) Pages(ctx context.Context, f func(*GoogleCloudBeyondcorpAppconnectorsV1ListAppConnectorsResponse) error) error { +func (c *ProjectsLocationsAppGatewaysListCall) Pages(ctx context.Context, f func(*ListAppGatewaysResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { @@ -5942,94 +7559,186 @@ func (c *ProjectsLocationsAppConnectorsListCall) Pages(ctx context.Context, f fu } } -type ProjectsLocationsAppConnectorsPatchCall struct { - s *Service - name string - googlecloudbeyondcorpappconnectorsv1appconnector *GoogleCloudBeyondcorpAppconnectorsV1AppConnector - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsAppGatewaysSetIamPolicyCall struct { + s *Service + resource string + googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Patch: Updates the parameters of a single AppConnector. +// SetIamPolicy: Sets the access control policy on the specified resource. +// Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, +// and `PERMISSION_DENIED` errors. // -// - name: Unique resource name of the AppConnector. The name is ignored when -// creating a AppConnector. -func (r *ProjectsLocationsAppConnectorsService) Patch(name string, googlecloudbeyondcorpappconnectorsv1appconnector *GoogleCloudBeyondcorpAppconnectorsV1AppConnector) *ProjectsLocationsAppConnectorsPatchCall { - c := &ProjectsLocationsAppConnectorsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.googlecloudbeyondcorpappconnectorsv1appconnector = googlecloudbeyondcorpappconnectorsv1appconnector +// - resource: REQUIRED: The resource for which the policy is being specified. +// See Resource names (https://cloud.google.com/apis/design/resource_names) +// for the appropriate value for this field. +func (r *ProjectsLocationsAppGatewaysService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsAppGatewaysSetIamPolicyCall { + c := &ProjectsLocationsAppGatewaysSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest return c } -// RequestId sets the optional parameter "requestId": An optional request ID to -// identify requests. Specify a unique request ID so that if you must retry -// your request, the server will know to ignore the request if it has already -// been completed. The server will guarantee that for at least 60 minutes since -// the first request. For example, consider a situation where you make an -// initial request and the request times out. If you make the request again -// with the same request ID, the server can check if original operation with -// the same request ID was received, and if so, will ignore the second request. -// This prevents clients from accidentally creating duplicate commitments. The -// request ID must be a valid UUID with the exception that zero UUID is not -// supported (00000000-0000-0000-0000-000000000000). -func (c *ProjectsLocationsAppConnectorsPatchCall) RequestId(requestId string) *ProjectsLocationsAppConnectorsPatchCall { - c.urlParams_.Set("requestId", requestId) +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsAppGatewaysSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppGatewaysSetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAppGatewaysSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsAppGatewaysSetIamPolicyCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAppGatewaysSetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAppGatewaysSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "beyondcorp.projects.locations.appGateways.setIamPolicy" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsAppGatewaysSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleIamV1Policy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsAppGatewaysShouldThrottleCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// ShouldThrottle: Calls the Bouncer method ShouldThrottle to check if a +// request should be throttled. +// +// - name: Name of the resource. +func (r *ProjectsLocationsAppGatewaysService) ShouldThrottle(name string) *ProjectsLocationsAppGatewaysShouldThrottleCall { + c := &ProjectsLocationsAppGatewaysShouldThrottleCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } -// UpdateMask sets the optional parameter "updateMask": Required. Mask of -// fields to update. At least one path must be supplied in this field. The -// elements of the repeated paths field may only include these fields from -// [BeyondCorp.AppConnector]: * `labels` * `display_name` -func (c *ProjectsLocationsAppConnectorsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAppConnectorsPatchCall { - c.urlParams_.Set("updateMask", updateMask) +// Port sets the optional parameter "port": The port that is being throttled +func (c *ProjectsLocationsAppGatewaysShouldThrottleCall) Port(port int64) *ProjectsLocationsAppGatewaysShouldThrottleCall { + c.urlParams_.Set("port", fmt.Sprint(port)) return c } -// ValidateOnly sets the optional parameter "validateOnly": If set, validates -// request by executing a dry-run which would not alter the resource in any -// way. -func (c *ProjectsLocationsAppConnectorsPatchCall) ValidateOnly(validateOnly bool) *ProjectsLocationsAppConnectorsPatchCall { - c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly)) +// RequestedAmount sets the optional parameter "requestedAmount": The current +// throughput through the port (mbps) +func (c *ProjectsLocationsAppGatewaysShouldThrottleCall) RequestedAmount(requestedAmount int64) *ProjectsLocationsAppGatewaysShouldThrottleCall { + c.urlParams_.Set("requestedAmount", fmt.Sprint(requestedAmount)) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsAppConnectorsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectorsPatchCall { +func (c *ProjectsLocationsAppGatewaysShouldThrottleCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppGatewaysShouldThrottleCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsAppGatewaysShouldThrottleCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppGatewaysShouldThrottleCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAppConnectorsPatchCall) Context(ctx context.Context) *ProjectsLocationsAppConnectorsPatchCall { +func (c *ProjectsLocationsAppGatewaysShouldThrottleCall) Context(ctx context.Context) *ProjectsLocationsAppGatewaysShouldThrottleCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsAppConnectorsPatchCall) Header() http.Header { +func (c *ProjectsLocationsAppGatewaysShouldThrottleCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAppConnectorsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudbeyondcorpappconnectorsv1appconnector) - if err != nil { - return nil, err +func (c *ProjectsLocationsAppGatewaysShouldThrottleCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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 := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:shouldThrottle") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -6040,13 +7749,13 @@ func (c *ProjectsLocationsAppConnectorsPatchCall) doRequest(alt string) (*http.R return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.appConnectors.patch" call. +// Do executes the "beyondcorp.projects.locations.appGateways.shouldThrottle" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *ProjectsLocationsAppConnectorsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// *ShouldThrottleResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsAppGatewaysShouldThrottleCall) Do(opts ...googleapi.CallOption) (*ShouldThrottleResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6065,7 +7774,7 @@ func (c *ProjectsLocationsAppConnectorsPatchCall) Do(opts ...googleapi.CallOptio if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &ShouldThrottleResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6078,59 +7787,65 @@ func (c *ProjectsLocationsAppConnectorsPatchCall) Do(opts ...googleapi.CallOptio return ret, nil } -type ProjectsLocationsAppConnectorsReportStatusCall struct { - s *Service - appConnector string - googlecloudbeyondcorpappconnectorsv1reportstatusrequest *GoogleCloudBeyondcorpAppconnectorsV1ReportStatusRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsAppGatewaysTestIamPermissionsCall struct { + s *Service + resource string + googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// ReportStatus: Report status for a given connector. +// TestIamPermissions: Returns permissions that a caller has on the specified +// resource. If the resource does not exist, this will return an empty set of +// permissions, not a `NOT_FOUND` error. Note: This operation is designed to be +// used for building permission-aware UIs and command-line tools, not for +// authorization checking. This operation may "fail open" without warning. // -// - appConnector: BeyondCorp Connector name using the form: -// `projects/{project_id}/locations/{location_id}/connectors/{connector}`. -func (r *ProjectsLocationsAppConnectorsService) ReportStatus(appConnector string, googlecloudbeyondcorpappconnectorsv1reportstatusrequest *GoogleCloudBeyondcorpAppconnectorsV1ReportStatusRequest) *ProjectsLocationsAppConnectorsReportStatusCall { - c := &ProjectsLocationsAppConnectorsReportStatusCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.appConnector = appConnector - c.googlecloudbeyondcorpappconnectorsv1reportstatusrequest = googlecloudbeyondcorpappconnectorsv1reportstatusrequest +// - resource: REQUIRED: The resource for which the policy detail is being +// requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the appropriate +// value for this field. +func (r *ProjectsLocationsAppGatewaysService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsAppGatewaysTestIamPermissionsCall { + c := &ProjectsLocationsAppGatewaysTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsAppConnectorsReportStatusCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectorsReportStatusCall { +func (c *ProjectsLocationsAppGatewaysTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppGatewaysTestIamPermissionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAppConnectorsReportStatusCall) Context(ctx context.Context) *ProjectsLocationsAppConnectorsReportStatusCall { +func (c *ProjectsLocationsAppGatewaysTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsAppGatewaysTestIamPermissionsCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsAppConnectorsReportStatusCall) Header() http.Header { +func (c *ProjectsLocationsAppGatewaysTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAppConnectorsReportStatusCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsAppGatewaysTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudbeyondcorpappconnectorsv1reportstatusrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+appConnector}:reportStatus") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -6138,18 +7853,18 @@ func (c *ProjectsLocationsAppConnectorsReportStatusCall) doRequest(alt string) ( } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "appConnector": c.appConnector, + "resource": c.resource, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.appConnectors.reportStatus" call. +// Do executes the "beyondcorp.projects.locations.appGateways.testIamPermissions" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use +// *GoogleIamV1TestIamPermissionsResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was because // http.StatusNotModified was returned. -func (c *ProjectsLocationsAppConnectorsReportStatusCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsAppGatewaysTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6168,7 +7883,7 @@ func (c *ProjectsLocationsAppConnectorsReportStatusCall) Do(opts ...googleapi.Ca if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleIamV1TestIamPermissionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6181,31 +7896,48 @@ func (c *ProjectsLocationsAppConnectorsReportStatusCall) Do(opts ...googleapi.Ca return ret, nil } -type ProjectsLocationsAppConnectorsResolveInstanceConfigCall struct { +type ProjectsLocationsClientConnectorServicesGetIamPolicyCall struct { s *Service - appConnector string + resource string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// ResolveInstanceConfig: Gets instance configuration for a given AppConnector. -// An internal method called by a AppConnector to get its container config. +// GetIamPolicy: Gets the access control policy for a resource. Returns an +// empty policy if the resource exists and does not have a policy set. // -// - appConnector: BeyondCorp AppConnector name using the form: -// `projects/{project_id}/locations/{location_id}/appConnectors/{app_connector -// }`. -func (r *ProjectsLocationsAppConnectorsService) ResolveInstanceConfig(appConnector string) *ProjectsLocationsAppConnectorsResolveInstanceConfigCall { - c := &ProjectsLocationsAppConnectorsResolveInstanceConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.appConnector = appConnector +// - resource: REQUIRED: The resource for which the policy is being requested. +// See Resource names (https://cloud.google.com/apis/design/resource_names) +// for the appropriate value for this field. +func (r *ProjectsLocationsClientConnectorServicesService) GetIamPolicy(resource string) *ProjectsLocationsClientConnectorServicesGetIamPolicyCall { + c := &ProjectsLocationsClientConnectorServicesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + return c +} + +// OptionsRequestedPolicyVersion sets the optional parameter +// "options.requestedPolicyVersion": The maximum policy version that will be +// used to format the policy. Valid values are 0, 1, and 3. Requests specifying +// an invalid value will be rejected. Requests for policies with any +// conditional role bindings must specify version 3. Policies with no +// conditional role bindings may specify any valid value or leave the field +// unset. The policy in the response might use the policy version that you +// specified, or it might use a lower policy version. For example, if you +// specify version 3, but the policy has no conditional role bindings, the +// response uses version 1. To learn which resources support conditions in +// their IAM policies, see the IAM documentation +// (https://cloud.google.com/iam/help/conditions/resource-policies). +func (c *ProjectsLocationsClientConnectorServicesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsClientConnectorServicesGetIamPolicyCall { + c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsAppConnectorsResolveInstanceConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectorsResolveInstanceConfigCall { +func (c *ProjectsLocationsClientConnectorServicesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsClientConnectorServicesGetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -6213,27 +7945,27 @@ func (c *ProjectsLocationsAppConnectorsResolveInstanceConfigCall) Fields(s ...go // IfNoneMatch sets an 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. -func (c *ProjectsLocationsAppConnectorsResolveInstanceConfigCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppConnectorsResolveInstanceConfigCall { +func (c *ProjectsLocationsClientConnectorServicesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsClientConnectorServicesGetIamPolicyCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAppConnectorsResolveInstanceConfigCall) Context(ctx context.Context) *ProjectsLocationsAppConnectorsResolveInstanceConfigCall { +func (c *ProjectsLocationsClientConnectorServicesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsClientConnectorServicesGetIamPolicyCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsAppConnectorsResolveInstanceConfigCall) Header() http.Header { +func (c *ProjectsLocationsClientConnectorServicesGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAppConnectorsResolveInstanceConfigCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsClientConnectorServicesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -6241,7 +7973,7 @@ func (c *ProjectsLocationsAppConnectorsResolveInstanceConfigCall) doRequest(alt var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+appConnector}:resolveInstanceConfig") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -6249,18 +7981,18 @@ func (c *ProjectsLocationsAppConnectorsResolveInstanceConfigCall) doRequest(alt } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "appConnector": c.appConnector, + "resource": c.resource, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.appConnectors.resolveInstanceConfig" call. +// Do executes the "beyondcorp.projects.locations.clientConnectorServices.getIamPolicy" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudBeyondcorpAppconnectorsV1ResolveInstanceConfigResponse.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 *ProjectsLocationsAppConnectorsResolveInstanceConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBeyondcorpAppconnectorsV1ResolveInstanceConfigResponse, error) { +// *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsClientConnectorServicesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6279,7 +8011,7 @@ func (c *ProjectsLocationsAppConnectorsResolveInstanceConfigCall) Do(opts ...goo if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudBeyondcorpAppconnectorsV1ResolveInstanceConfigResponse{ + ret := &GoogleIamV1Policy{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6292,7 +8024,7 @@ func (c *ProjectsLocationsAppConnectorsResolveInstanceConfigCall) Do(opts ...goo return ret, nil } -type ProjectsLocationsAppConnectorsSetIamPolicyCall struct { +type ProjectsLocationsClientConnectorServicesSetIamPolicyCall struct { s *Service resource string googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest @@ -6308,8 +8040,8 @@ type ProjectsLocationsAppConnectorsSetIamPolicyCall struct { // - resource: REQUIRED: The resource for which the policy is being specified. // See Resource names (https://cloud.google.com/apis/design/resource_names) // for the appropriate value for this field. -func (r *ProjectsLocationsAppConnectorsService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsAppConnectorsSetIamPolicyCall { - c := &ProjectsLocationsAppConnectorsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsClientConnectorServicesService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsClientConnectorServicesSetIamPolicyCall { + c := &ProjectsLocationsClientConnectorServicesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest return c @@ -6318,27 +8050,27 @@ func (r *ProjectsLocationsAppConnectorsService) SetIamPolicy(resource string, go // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsAppConnectorsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectorsSetIamPolicyCall { +func (c *ProjectsLocationsClientConnectorServicesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsClientConnectorServicesSetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAppConnectorsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsAppConnectorsSetIamPolicyCall { +func (c *ProjectsLocationsClientConnectorServicesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsClientConnectorServicesSetIamPolicyCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsAppConnectorsSetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsClientConnectorServicesSetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAppConnectorsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsClientConnectorServicesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest) @@ -6360,13 +8092,13 @@ func (c *ProjectsLocationsAppConnectorsSetIamPolicyCall) doRequest(alt string) ( return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.appConnectors.setIamPolicy" call. +// Do executes the "beyondcorp.projects.locations.clientConnectorServices.setIamPolicy" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to // check whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsAppConnectorsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { +func (c *ProjectsLocationsClientConnectorServicesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6398,7 +8130,7 @@ func (c *ProjectsLocationsAppConnectorsSetIamPolicyCall) Do(opts ...googleapi.Ca return ret, nil } -type ProjectsLocationsAppConnectorsTestIamPermissionsCall struct { +type ProjectsLocationsClientConnectorServicesTestIamPermissionsCall struct { s *Service resource string googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest @@ -6417,8 +8149,8 @@ type ProjectsLocationsAppConnectorsTestIamPermissionsCall struct { // requested. See Resource names // (https://cloud.google.com/apis/design/resource_names) for the appropriate // value for this field. -func (r *ProjectsLocationsAppConnectorsService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsAppConnectorsTestIamPermissionsCall { - c := &ProjectsLocationsAppConnectorsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsClientConnectorServicesService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsClientConnectorServicesTestIamPermissionsCall { + c := &ProjectsLocationsClientConnectorServicesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest return c @@ -6427,27 +8159,27 @@ func (r *ProjectsLocationsAppConnectorsService) TestIamPermissions(resource stri // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsAppConnectorsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectorsTestIamPermissionsCall { +func (c *ProjectsLocationsClientConnectorServicesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsClientConnectorServicesTestIamPermissionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAppConnectorsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsAppConnectorsTestIamPermissionsCall { +func (c *ProjectsLocationsClientConnectorServicesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsClientConnectorServicesTestIamPermissionsCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsAppConnectorsTestIamPermissionsCall) Header() http.Header { +func (c *ProjectsLocationsClientConnectorServicesTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAppConnectorsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsClientConnectorServicesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest) @@ -6469,13 +8201,13 @@ func (c *ProjectsLocationsAppConnectorsTestIamPermissionsCall) doRequest(alt str return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.appConnectors.testIamPermissions" call. +// Do executes the "beyondcorp.projects.locations.clientConnectorServices.testIamPermissions" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleIamV1TestIamPermissionsResponse.ServerResponse.Header or (if a // response was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was because // http.StatusNotModified was returned. -func (c *ProjectsLocationsAppConnectorsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) { +func (c *ProjectsLocationsClientConnectorServicesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6491,126 +8223,119 @@ func (c *ProjectsLocationsAppConnectorsTestIamPermissionsCall) Do(opts ...google return nil, err } defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleIamV1TestIamPermissionsResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil -} - -type ProjectsLocationsAppGatewaysCreateCall struct { - s *Service - parent string - appgateway *AppGateway - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Create: Creates a new AppGateway in a given project and location. -// -// - parent: The resource project name of the AppGateway location using the -// form: `projects/{project_id}/locations/{location_id}`. -func (r *ProjectsLocationsAppGatewaysService) Create(parent string, appgateway *AppGateway) *ProjectsLocationsAppGatewaysCreateCall { - c := &ProjectsLocationsAppGatewaysCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.appgateway = appgateway - return c + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleIamV1TestIamPermissionsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil } -// AppGatewayId sets the optional parameter "appGatewayId": User-settable -// AppGateway resource ID. * Must start with a letter. * Must contain between -// 4-63 characters from `/a-z-/`. * Must end with a number or a letter. -func (c *ProjectsLocationsAppGatewaysCreateCall) AppGatewayId(appGatewayId string) *ProjectsLocationsAppGatewaysCreateCall { - c.urlParams_.Set("appGatewayId", appGatewayId) - return c +type ProjectsLocationsClientGatewaysGetIamPolicyCall struct { + s *Service + resource string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// RequestId sets the optional parameter "requestId": An optional request ID to -// identify requests. Specify a unique request ID so that if you must retry -// your request, the server will know to ignore the request if it has already -// been completed. The server will guarantee that for at least 60 minutes since -// the first request. For example, consider a situation where you make an -// initial request and the request times out. If you make the request again -// with the same request ID, the server can check if original operation with -// the same request ID was received, and if so, will ignore the second request. -// This prevents clients from accidentally creating duplicate commitments. The -// request ID must be a valid UUID with the exception that zero UUID is not -// supported (00000000-0000-0000-0000-000000000000). -func (c *ProjectsLocationsAppGatewaysCreateCall) RequestId(requestId string) *ProjectsLocationsAppGatewaysCreateCall { - c.urlParams_.Set("requestId", requestId) +// GetIamPolicy: Gets the access control policy for a resource. Returns an +// empty policy if the resource exists and does not have a policy set. +// +// - resource: REQUIRED: The resource for which the policy is being requested. +// See Resource names (https://cloud.google.com/apis/design/resource_names) +// for the appropriate value for this field. +func (r *ProjectsLocationsClientGatewaysService) GetIamPolicy(resource string) *ProjectsLocationsClientGatewaysGetIamPolicyCall { + c := &ProjectsLocationsClientGatewaysGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource return c } -// ValidateOnly sets the optional parameter "validateOnly": If set, validates -// request by executing a dry-run which would not alter the resource in any -// way. -func (c *ProjectsLocationsAppGatewaysCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsAppGatewaysCreateCall { - c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly)) +// OptionsRequestedPolicyVersion sets the optional parameter +// "options.requestedPolicyVersion": The maximum policy version that will be +// used to format the policy. Valid values are 0, 1, and 3. Requests specifying +// an invalid value will be rejected. Requests for policies with any +// conditional role bindings must specify version 3. Policies with no +// conditional role bindings may specify any valid value or leave the field +// unset. The policy in the response might use the policy version that you +// specified, or it might use a lower policy version. For example, if you +// specify version 3, but the policy has no conditional role bindings, the +// response uses version 1. To learn which resources support conditions in +// their IAM policies, see the IAM documentation +// (https://cloud.google.com/iam/help/conditions/resource-policies). +func (c *ProjectsLocationsClientGatewaysGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsClientGatewaysGetIamPolicyCall { + c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsAppGatewaysCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppGatewaysCreateCall { +func (c *ProjectsLocationsClientGatewaysGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsClientGatewaysGetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsClientGatewaysGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsClientGatewaysGetIamPolicyCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAppGatewaysCreateCall) Context(ctx context.Context) *ProjectsLocationsAppGatewaysCreateCall { +func (c *ProjectsLocationsClientGatewaysGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsClientGatewaysGetIamPolicyCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsAppGatewaysCreateCall) Header() http.Header { +func (c *ProjectsLocationsClientGatewaysGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAppGatewaysCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.appgateway) - if err != nil { - return nil, err +func (c *ProjectsLocationsClientGatewaysGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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}/appGateways") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "resource": c.resource, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.appGateways.create" call. +// Do executes the "beyondcorp.projects.locations.clientGateways.getIamPolicy" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *ProjectsLocationsAppGatewaysCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsClientGatewaysGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6629,7 +8354,7 @@ func (c *ProjectsLocationsAppGatewaysCreateCall) Do(opts ...googleapi.CallOption if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleIamV1Policy{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6642,97 +8367,81 @@ func (c *ProjectsLocationsAppGatewaysCreateCall) Do(opts ...googleapi.CallOption return ret, nil } -type ProjectsLocationsAppGatewaysDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsClientGatewaysSetIamPolicyCall struct { + s *Service + resource string + googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Delete: Deletes a single AppGateway. +// SetIamPolicy: Sets the access control policy on the specified resource. +// Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, +// and `PERMISSION_DENIED` errors. // -// - name: BeyondCorp AppGateway name using the form: -// `projects/{project_id}/locations/{location_id}/appGateways/{app_gateway_id} -// `. -func (r *ProjectsLocationsAppGatewaysService) Delete(name string) *ProjectsLocationsAppGatewaysDeleteCall { - c := &ProjectsLocationsAppGatewaysDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// RequestId sets the optional parameter "requestId": An optional request ID to -// identify requests. Specify a unique request ID so that if you must retry -// your request, the server will know to ignore the request if it has already -// been completed. The server will guarantee that for at least 60 minutes after -// the first request. For example, consider a situation where you make an -// initial request and the request times out. If you make the request again -// with the same request ID, the server can check if original operation with -// the same request ID was received, and if so, will ignore the second request. -// This prevents clients from accidentally creating duplicate commitments. The -// request ID must be a valid UUID with the exception that zero UUID is not -// supported (00000000-0000-0000-0000-000000000000). -func (c *ProjectsLocationsAppGatewaysDeleteCall) RequestId(requestId string) *ProjectsLocationsAppGatewaysDeleteCall { - c.urlParams_.Set("requestId", requestId) - return c -} - -// ValidateOnly sets the optional parameter "validateOnly": If set, validates -// request by executing a dry-run which would not alter the resource in any -// way. -func (c *ProjectsLocationsAppGatewaysDeleteCall) ValidateOnly(validateOnly bool) *ProjectsLocationsAppGatewaysDeleteCall { - c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly)) +// - resource: REQUIRED: The resource for which the policy is being specified. +// See Resource names (https://cloud.google.com/apis/design/resource_names) +// for the appropriate value for this field. +func (r *ProjectsLocationsClientGatewaysService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsClientGatewaysSetIamPolicyCall { + c := &ProjectsLocationsClientGatewaysSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsAppGatewaysDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppGatewaysDeleteCall { +func (c *ProjectsLocationsClientGatewaysSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsClientGatewaysSetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAppGatewaysDeleteCall) Context(ctx context.Context) *ProjectsLocationsAppGatewaysDeleteCall { +func (c *ProjectsLocationsClientGatewaysSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsClientGatewaysSetIamPolicyCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsAppGatewaysDeleteCall) Header() http.Header { +func (c *ProjectsLocationsClientGatewaysSetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAppGatewaysDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) +func (c *ProjectsLocationsClientGatewaysSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest) + if err != nil { + return nil, err + } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "resource": c.resource, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.appGateways.delete" call. +// Do executes the "beyondcorp.projects.locations.clientGateways.setIamPolicy" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *ProjectsLocationsAppGatewaysDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsClientGatewaysSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6751,7 +8460,7 @@ func (c *ProjectsLocationsAppGatewaysDeleteCall) Do(opts ...googleapi.CallOption if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleIamV1Policy{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6764,84 +8473,84 @@ func (c *ProjectsLocationsAppGatewaysDeleteCall) Do(opts ...googleapi.CallOption return ret, nil } -type ProjectsLocationsAppGatewaysGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsClientGatewaysTestIamPermissionsCall struct { + s *Service + resource string + googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets details of a single AppGateway. +// TestIamPermissions: Returns permissions that a caller has on the specified +// resource. If the resource does not exist, this will return an empty set of +// permissions, not a `NOT_FOUND` error. Note: This operation is designed to be +// used for building permission-aware UIs and command-line tools, not for +// authorization checking. This operation may "fail open" without warning. // -// - name: BeyondCorp AppGateway name using the form: -// `projects/{project_id}/locations/{location_id}/appGateways/{app_gateway_id} -// `. -func (r *ProjectsLocationsAppGatewaysService) Get(name string) *ProjectsLocationsAppGatewaysGetCall { - c := &ProjectsLocationsAppGatewaysGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - resource: REQUIRED: The resource for which the policy detail is being +// requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the appropriate +// value for this field. +func (r *ProjectsLocationsClientGatewaysService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsClientGatewaysTestIamPermissionsCall { + c := &ProjectsLocationsClientGatewaysTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsAppGatewaysGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppGatewaysGetCall { +func (c *ProjectsLocationsClientGatewaysTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsClientGatewaysTestIamPermissionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets an 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. -func (c *ProjectsLocationsAppGatewaysGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppGatewaysGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAppGatewaysGetCall) Context(ctx context.Context) *ProjectsLocationsAppGatewaysGetCall { +func (c *ProjectsLocationsClientGatewaysTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsClientGatewaysTestIamPermissionsCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsAppGatewaysGetCall) Header() http.Header { +func (c *ProjectsLocationsClientGatewaysTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ -} - -func (c *ProjectsLocationsAppGatewaysGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } +} + +func (c *ProjectsLocationsClientGatewaysTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest) + if err != nil { + return nil, err + } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "resource": c.resource, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.appGateways.get" call. +// Do executes the "beyondcorp.projects.locations.clientGateways.testIamPermissions" call. // Any non-2xx status code is an error. Response headers are in either -// *AppGateway.ServerResponse.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was returned. -func (c *ProjectsLocationsAppGatewaysGetCall) Do(opts ...googleapi.CallOption) (*AppGateway, error) { +// *GoogleIamV1TestIamPermissionsResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsClientGatewaysTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6860,7 +8569,7 @@ func (c *ProjectsLocationsAppGatewaysGetCall) Do(opts ...googleapi.CallOption) ( if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &AppGateway{ + ret := &GoogleIamV1TestIamPermissionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6873,103 +8582,97 @@ func (c *ProjectsLocationsAppGatewaysGetCall) Do(opts ...googleapi.CallOption) ( return ret, nil } -type ProjectsLocationsAppGatewaysGetIamPolicyCall struct { - s *Service - resource string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsGlobalSecurityGatewaysApplicationsCreateCall struct { + s *Service + parent string + googlecloudbeyondcorpsecuritygatewaysv1application *GoogleCloudBeyondcorpSecuritygatewaysV1Application + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// GetIamPolicy: Gets the access control policy for a resource. Returns an -// empty policy if the resource exists and does not have a policy set. +// Create: Creates a new Application in a given project and location. // -// - resource: REQUIRED: The resource for which the policy is being requested. -// See Resource names (https://cloud.google.com/apis/design/resource_names) -// for the appropriate value for this field. -func (r *ProjectsLocationsAppGatewaysService) GetIamPolicy(resource string) *ProjectsLocationsAppGatewaysGetIamPolicyCall { - c := &ProjectsLocationsAppGatewaysGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource +// - parent: The resource name of the parent SecurityGateway using the form: +// `projects/{project_id}/locations/global/securityGateways/{security_gateway_ +// id}`. +func (r *ProjectsLocationsGlobalSecurityGatewaysApplicationsService) Create(parent string, googlecloudbeyondcorpsecuritygatewaysv1application *GoogleCloudBeyondcorpSecuritygatewaysV1Application) *ProjectsLocationsGlobalSecurityGatewaysApplicationsCreateCall { + c := &ProjectsLocationsGlobalSecurityGatewaysApplicationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudbeyondcorpsecuritygatewaysv1application = googlecloudbeyondcorpsecuritygatewaysv1application return c } -// OptionsRequestedPolicyVersion sets the optional parameter -// "options.requestedPolicyVersion": The maximum policy version that will be -// used to format the policy. Valid values are 0, 1, and 3. Requests specifying -// an invalid value will be rejected. Requests for policies with any -// conditional role bindings must specify version 3. Policies with no -// conditional role bindings may specify any valid value or leave the field -// unset. The policy in the response might use the policy version that you -// specified, or it might use a lower policy version. For example, if you -// specify version 3, but the policy has no conditional role bindings, the -// response uses version 1. To learn which resources support conditions in -// their IAM policies, see the IAM documentation -// (https://cloud.google.com/iam/help/conditions/resource-policies). -func (c *ProjectsLocationsAppGatewaysGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsAppGatewaysGetIamPolicyCall { - c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) +// ApplicationId sets the optional parameter "applicationId": User-settable +// Application resource ID. * Must start with a letter. * Must contain between +// 4-63 characters from `/a-z-/`. * Must end with a number or letter. +func (c *ProjectsLocationsGlobalSecurityGatewaysApplicationsCreateCall) ApplicationId(applicationId string) *ProjectsLocationsGlobalSecurityGatewaysApplicationsCreateCall { + c.urlParams_.Set("applicationId", applicationId) + return c +} + +// RequestId sets the optional parameter "requestId": An optional request ID to +// identify requests. Specify a unique request ID so that if you must retry +// your request, the server will know to ignore request if it has already been +// completed. The server will guarantee that for at least 60 minutes since the +// first request. +func (c *ProjectsLocationsGlobalSecurityGatewaysApplicationsCreateCall) RequestId(requestId string) *ProjectsLocationsGlobalSecurityGatewaysApplicationsCreateCall { + c.urlParams_.Set("requestId", requestId) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsAppGatewaysGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppGatewaysGetIamPolicyCall { +func (c *ProjectsLocationsGlobalSecurityGatewaysApplicationsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalSecurityGatewaysApplicationsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets an 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. -func (c *ProjectsLocationsAppGatewaysGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppGatewaysGetIamPolicyCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAppGatewaysGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsAppGatewaysGetIamPolicyCall { +func (c *ProjectsLocationsGlobalSecurityGatewaysApplicationsCreateCall) Context(ctx context.Context) *ProjectsLocationsGlobalSecurityGatewaysApplicationsCreateCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsAppGatewaysGetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsGlobalSecurityGatewaysApplicationsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAppGatewaysGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } +func (c *ProjectsLocationsGlobalSecurityGatewaysApplicationsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudbeyondcorpsecuritygatewaysv1application) + if err != nil { + return nil, err + } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/applications") 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{ - "resource": c.resource, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.appGateways.getIamPolicy" call. +// Do executes the "beyondcorp.projects.locations.global.securityGateways.applications.create" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsAppGatewaysGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsGlobalSecurityGatewaysApplicationsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6988,7 +8691,7 @@ func (c *ProjectsLocationsAppGatewaysGetIamPolicyCall) Do(opts ...googleapi.Call if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleIamV1Policy{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7001,117 +8704,100 @@ func (c *ProjectsLocationsAppGatewaysGetIamPolicyCall) Do(opts ...googleapi.Call return ret, nil } -type ProjectsLocationsAppGatewaysListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsGlobalSecurityGatewaysApplicationsPatchCall struct { + s *Service + name string + googlecloudbeyondcorpsecuritygatewaysv1application *GoogleCloudBeyondcorpSecuritygatewaysV1Application + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists AppGateways in a given project and location. +// Patch: Updates the parameters of a single Application. // -// - parent: The resource name of the AppGateway location using the form: -// `projects/{project_id}/locations/{location_id}`. -func (r *ProjectsLocationsAppGatewaysService) List(parent string) *ProjectsLocationsAppGatewaysListCall { - c := &ProjectsLocationsAppGatewaysListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// Filter sets the optional parameter "filter": A filter specifying constraints -// of a list operation. -func (c *ProjectsLocationsAppGatewaysListCall) Filter(filter string) *ProjectsLocationsAppGatewaysListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// OrderBy sets the optional parameter "orderBy": Specifies the ordering of -// results. See Sorting order -// (https://cloud.google.com/apis/design/design_patterns#sorting_order) for -// more information. -func (c *ProjectsLocationsAppGatewaysListCall) OrderBy(orderBy string) *ProjectsLocationsAppGatewaysListCall { - c.urlParams_.Set("orderBy", orderBy) +// - name: Identifier. Name of the resource. +func (r *ProjectsLocationsGlobalSecurityGatewaysApplicationsService) Patch(name string, googlecloudbeyondcorpsecuritygatewaysv1application *GoogleCloudBeyondcorpSecuritygatewaysV1Application) *ProjectsLocationsGlobalSecurityGatewaysApplicationsPatchCall { + c := &ProjectsLocationsGlobalSecurityGatewaysApplicationsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudbeyondcorpsecuritygatewaysv1application = googlecloudbeyondcorpsecuritygatewaysv1application return c } -// PageSize sets the optional parameter "pageSize": The maximum number of items -// to return. If not specified, a default value of 50 will be used by the -// service. Regardless of the page_size value, the response may include a -// partial list and a caller should only rely on response's next_page_token to -// determine if there are more instances left to be queried. -func (c *ProjectsLocationsAppGatewaysListCall) PageSize(pageSize int64) *ProjectsLocationsAppGatewaysListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) +// RequestId sets the optional parameter "requestId": An optional request ID to +// identify requests. Specify a unique request ID so that if you must retry +// your request, the server will know to ignore the request if it has already +// been completed. The server will guarantee that for at least 60 minutes after +// the first request. For example, consider a situation where you make an +// initial request and the request timed out. If you make the request again +// with the same request ID, the server can check if original operation with +// the same request ID was received, and if so, will ignore the second request. +// This prevents clients from accidentally creating duplicate commitments. The +// request ID must be a valid UUID with the exception that zero UUID is not +// supported (00000000-0000-0000-0000-000000000000). +func (c *ProjectsLocationsGlobalSecurityGatewaysApplicationsPatchCall) RequestId(requestId string) *ProjectsLocationsGlobalSecurityGatewaysApplicationsPatchCall { + c.urlParams_.Set("requestId", requestId) return c } -// PageToken sets the optional parameter "pageToken": The next_page_token value -// returned from a previous ListAppGatewaysRequest, if any. -func (c *ProjectsLocationsAppGatewaysListCall) PageToken(pageToken string) *ProjectsLocationsAppGatewaysListCall { - c.urlParams_.Set("pageToken", pageToken) +// UpdateMask sets the optional parameter "updateMask": Required. Mutable +// fields include: display_name. +func (c *ProjectsLocationsGlobalSecurityGatewaysApplicationsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsGlobalSecurityGatewaysApplicationsPatchCall { + 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 // details. -func (c *ProjectsLocationsAppGatewaysListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppGatewaysListCall { +func (c *ProjectsLocationsGlobalSecurityGatewaysApplicationsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalSecurityGatewaysApplicationsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets an 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. -func (c *ProjectsLocationsAppGatewaysListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppGatewaysListCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAppGatewaysListCall) Context(ctx context.Context) *ProjectsLocationsAppGatewaysListCall { +func (c *ProjectsLocationsGlobalSecurityGatewaysApplicationsPatchCall) Context(ctx context.Context) *ProjectsLocationsGlobalSecurityGatewaysApplicationsPatchCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsAppGatewaysListCall) Header() http.Header { +func (c *ProjectsLocationsGlobalSecurityGatewaysApplicationsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAppGatewaysListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } +func (c *ProjectsLocationsGlobalSecurityGatewaysApplicationsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudbeyondcorpsecuritygatewaysv1application) + if err != nil { + return nil, err + } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/appGateways") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", 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 "beyondcorp.projects.locations.appGateways.list" call. +// Do executes the "beyondcorp.projects.locations.global.securityGateways.applications.patch" call. // Any non-2xx status code is an error. Response headers are in either -// *ListAppGatewaysResponse.ServerResponse.Header or (if a response was +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was because // http.StatusNotModified was returned. -func (c *ProjectsLocationsAppGatewaysListCall) Do(opts ...googleapi.CallOption) (*ListAppGatewaysResponse, error) { +func (c *ProjectsLocationsGlobalSecurityGatewaysApplicationsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7130,7 +8816,7 @@ func (c *ProjectsLocationsAppGatewaysListCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ListAppGatewaysResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7143,83 +8829,66 @@ func (c *ProjectsLocationsAppGatewaysListCall) Do(opts ...googleapi.CallOption) return ret, nil } -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsAppGatewaysListCall) Pages(ctx context.Context, f func(*ListAppGatewaysResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) - 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 ProjectsLocationsAppGatewaysSetIamPolicyCall struct { - s *Service - resource string - googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsOperationsCancelCall struct { + s *Service + name string + googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// SetIamPolicy: Sets the access control policy on the specified resource. -// Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, -// and `PERMISSION_DENIED` errors. +// Cancel: Starts asynchronous cancellation on a long-running operation. The +// server makes a best effort to cancel the operation, but success is not +// guaranteed. If the server doesn't support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or +// other methods to check whether the cancellation succeeded or whether the +// operation completed despite cancellation. On successful cancellation, the +// operation is not deleted; instead, it becomes an operation with an +// Operation.error value with a google.rpc.Status.code of 1, corresponding to +// `Code.CANCELLED`. // -// - resource: REQUIRED: The resource for which the policy is being specified. -// See Resource names (https://cloud.google.com/apis/design/resource_names) -// for the appropriate value for this field. -func (r *ProjectsLocationsAppGatewaysService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsAppGatewaysSetIamPolicyCall { - c := &ProjectsLocationsAppGatewaysSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest +// - name: The name of the operation resource to be cancelled. +func (r *ProjectsLocationsOperationsService) Cancel(name string, googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest) *ProjectsLocationsOperationsCancelCall { + c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlelongrunningcanceloperationrequest = googlelongrunningcanceloperationrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsAppGatewaysSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppGatewaysSetIamPolicyCall { +func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAppGatewaysSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsAppGatewaysSetIamPolicyCall { +func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsAppGatewaysSetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAppGatewaysSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlelongrunningcanceloperationrequest) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -7227,18 +8896,17 @@ func (c *ProjectsLocationsAppGatewaysSetIamPolicyCall) doRequest(alt string) (*h } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.appGateways.setIamPolicy" call. +// Do executes the "beyondcorp.projects.locations.operations.cancel" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsAppGatewaysSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { +// *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 *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7257,7 +8925,7 @@ func (c *ProjectsLocationsAppGatewaysSetIamPolicyCall) Do(opts ...googleapi.Call if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleIamV1Policy{ + ret := &Empty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7270,80 +8938,57 @@ func (c *ProjectsLocationsAppGatewaysSetIamPolicyCall) Do(opts ...googleapi.Call return ret, nil } -type ProjectsLocationsAppGatewaysShouldThrottleCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsOperationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// ShouldThrottle: Calls the Bouncer method ShouldThrottle to check if a -// request should be throttled. +// Delete: Deletes a long-running operation. This method indicates that the +// client is no longer interested in the operation result. It does not cancel +// the operation. If the server doesn't support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. // -// - name: Name of the resource. -func (r *ProjectsLocationsAppGatewaysService) ShouldThrottle(name string) *ProjectsLocationsAppGatewaysShouldThrottleCall { - c := &ProjectsLocationsAppGatewaysShouldThrottleCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource to be deleted. +func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall { + c := &ProjectsLocationsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Port sets the optional parameter "port": The port that is being throttled -func (c *ProjectsLocationsAppGatewaysShouldThrottleCall) Port(port int64) *ProjectsLocationsAppGatewaysShouldThrottleCall { - c.urlParams_.Set("port", fmt.Sprint(port)) - return c -} - -// RequestedAmount sets the optional parameter "requestedAmount": The current -// throughput through the port (mbps) -func (c *ProjectsLocationsAppGatewaysShouldThrottleCall) RequestedAmount(requestedAmount int64) *ProjectsLocationsAppGatewaysShouldThrottleCall { - c.urlParams_.Set("requestedAmount", fmt.Sprint(requestedAmount)) - return c -} - // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsAppGatewaysShouldThrottleCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppGatewaysShouldThrottleCall { +func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets an 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. -func (c *ProjectsLocationsAppGatewaysShouldThrottleCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppGatewaysShouldThrottleCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAppGatewaysShouldThrottleCall) Context(ctx context.Context) *ProjectsLocationsAppGatewaysShouldThrottleCall { +func (c *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsAppGatewaysShouldThrottleCall) Header() http.Header { +func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAppGatewaysShouldThrottleCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - 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}:shouldThrottle") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } @@ -7354,13 +8999,12 @@ func (c *ProjectsLocationsAppGatewaysShouldThrottleCall) doRequest(alt string) ( return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.appGateways.shouldThrottle" call. +// Do executes the "beyondcorp.projects.locations.operations.delete" call. // Any non-2xx status code is an error. Response headers are in either -// *ShouldThrottleResponse.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsAppGatewaysShouldThrottleCall) Do(opts ...googleapi.CallOption) (*ShouldThrottleResponse, error) { +// *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 *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7379,7 +9023,7 @@ func (c *ProjectsLocationsAppGatewaysShouldThrottleCall) Do(opts ...googleapi.Ca if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ShouldThrottleResponse{ + ret := &Empty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7392,84 +9036,85 @@ func (c *ProjectsLocationsAppGatewaysShouldThrottleCall) Do(opts ...googleapi.Ca return ret, nil } -type ProjectsLocationsAppGatewaysTestIamPermissionsCall struct { - s *Service - resource string - googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// TestIamPermissions: Returns permissions that a caller has on the specified -// resource. If the resource does not exist, this will return an empty set of -// permissions, not a `NOT_FOUND` error. Note: This operation is designed to be -// used for building permission-aware UIs and command-line tools, not for -// authorization checking. This operation may "fail open" without warning. +// Get: Gets the latest state of a long-running operation. Clients can use this +// method to poll the operation result at intervals as recommended by the API +// service. // -// - resource: REQUIRED: The resource for which the policy detail is being -// requested. See Resource names -// (https://cloud.google.com/apis/design/resource_names) for the appropriate -// value for this field. -func (r *ProjectsLocationsAppGatewaysService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsAppGatewaysTestIamPermissionsCall { - c := &ProjectsLocationsAppGatewaysTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest +// - name: The name of the operation resource. +func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall { + c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsAppGatewaysTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppGatewaysTestIamPermissionsCall { +func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAppGatewaysTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsAppGatewaysTestIamPermissionsCall { +func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsAppGatewaysTestIamPermissionsCall) Header() http.Header { +func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAppGatewaysTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest) - if err != nil { - return nil, err +func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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/{+resource}:testIamPermissions") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.appGateways.testIamPermissions" call. +// Do executes the "beyondcorp.projects.locations.operations.get" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleIamV1TestIamPermissionsResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was because // http.StatusNotModified was returned. -func (c *ProjectsLocationsAppGatewaysTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) { +func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7488,7 +9133,7 @@ func (c *ProjectsLocationsAppGatewaysTestIamPermissionsCall) Do(opts ...googleap if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleIamV1TestIamPermissionsResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7501,48 +9146,49 @@ func (c *ProjectsLocationsAppGatewaysTestIamPermissionsCall) Do(opts ...googleap return ret, nil } -type ProjectsLocationsClientConnectorServicesGetIamPolicyCall struct { +type ProjectsLocationsOperationsListCall struct { s *Service - resource string + name string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// GetIamPolicy: Gets the access control policy for a resource. Returns an -// empty policy if the resource exists and does not have a policy set. +// List: Lists operations that match the specified filter in the request. If +// the server doesn't support this method, it returns `UNIMPLEMENTED`. // -// - resource: REQUIRED: The resource for which the policy is being requested. -// See Resource names (https://cloud.google.com/apis/design/resource_names) -// for the appropriate value for this field. -func (r *ProjectsLocationsClientConnectorServicesService) GetIamPolicy(resource string) *ProjectsLocationsClientConnectorServicesGetIamPolicyCall { - c := &ProjectsLocationsClientConnectorServicesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { + c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } -// OptionsRequestedPolicyVersion sets the optional parameter -// "options.requestedPolicyVersion": The maximum policy version that will be -// used to format the policy. Valid values are 0, 1, and 3. Requests specifying -// an invalid value will be rejected. Requests for policies with any -// conditional role bindings must specify version 3. Policies with no -// conditional role bindings may specify any valid value or leave the field -// unset. The policy in the response might use the policy version that you -// specified, or it might use a lower policy version. For example, if you -// specify version 3, but the policy has no conditional role bindings, the -// response uses version 1. To learn which resources support conditions in -// their IAM policies, see the IAM documentation -// (https://cloud.google.com/iam/help/conditions/resource-policies). -func (c *ProjectsLocationsClientConnectorServicesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsClientConnectorServicesGetIamPolicyCall { - c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) +// Filter sets the optional parameter "filter": The standard list filter. +func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list page +// size. +func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list page +// token. +func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsClientConnectorServicesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsClientConnectorServicesGetIamPolicyCall { +func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -7550,27 +9196,27 @@ func (c *ProjectsLocationsClientConnectorServicesGetIamPolicyCall) Fields(s ...g // IfNoneMatch sets an 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. -func (c *ProjectsLocationsClientConnectorServicesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsClientConnectorServicesGetIamPolicyCall { +func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsClientConnectorServicesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsClientConnectorServicesGetIamPolicyCall { +func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsClientConnectorServicesGetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsClientConnectorServicesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -7578,7 +9224,7 @@ func (c *ProjectsLocationsClientConnectorServicesGetIamPolicyCall) doRequest(alt var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -7586,18 +9232,18 @@ func (c *ProjectsLocationsClientConnectorServicesGetIamPolicyCall) doRequest(alt } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.clientConnectorServices.getIamPolicy" call. +// Do executes the "beyondcorp.projects.locations.operations.list" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsClientConnectorServicesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { +// *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7616,7 +9262,7 @@ func (c *ProjectsLocationsClientConnectorServicesGetIamPolicyCall) Do(opts ...go if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleIamV1Policy{ + ret := &GoogleLongrunningListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7626,65 +9272,102 @@ func (c *ProjectsLocationsClientConnectorServicesGetIamPolicyCall) Do(opts ...go if err := gensupport.DecodeResponse(target, res); err != nil { return nil, err } - return ret, nil + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + 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 ProjectsLocationsClientConnectorServicesSetIamPolicyCall struct { - s *Service - resource string - googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsSecurityGatewaysCreateCall struct { + s *Service + parent string + googlecloudbeyondcorpsecuritygatewaysv1securitygateway *GoogleCloudBeyondcorpSecuritygatewaysV1SecurityGateway + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// SetIamPolicy: Sets the access control policy on the specified resource. -// Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, -// and `PERMISSION_DENIED` errors. +// Create: Creates a new SecurityGateway in a given project and location. // -// - resource: REQUIRED: The resource for which the policy is being specified. -// See Resource names (https://cloud.google.com/apis/design/resource_names) -// for the appropriate value for this field. -func (r *ProjectsLocationsClientConnectorServicesService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsClientConnectorServicesSetIamPolicyCall { - c := &ProjectsLocationsClientConnectorServicesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest +// - parent: The resource project name of the SecurityGateway location using +// the form: `projects/{project_id}/locations/{location_id}`. +func (r *ProjectsLocationsSecurityGatewaysService) Create(parent string, googlecloudbeyondcorpsecuritygatewaysv1securitygateway *GoogleCloudBeyondcorpSecuritygatewaysV1SecurityGateway) *ProjectsLocationsSecurityGatewaysCreateCall { + c := &ProjectsLocationsSecurityGatewaysCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudbeyondcorpsecuritygatewaysv1securitygateway = googlecloudbeyondcorpsecuritygatewaysv1securitygateway + return c +} + +// RequestId sets the optional parameter "requestId": An optional request ID to +// identify requests. Specify a unique request ID so that if you must retry +// your request, the server will know to ignore request if it has already been +// completed. The server will guarantee that for at least 60 minutes since the +// first request. +func (c *ProjectsLocationsSecurityGatewaysCreateCall) RequestId(requestId string) *ProjectsLocationsSecurityGatewaysCreateCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// SecurityGatewayId sets the optional parameter "securityGatewayId": +// User-settable SecurityGateway resource ID. * Must start with a letter. * +// Must contain between 4-63 characters from `/a-z-/`. * Must end with a number +// or letter. +func (c *ProjectsLocationsSecurityGatewaysCreateCall) SecurityGatewayId(securityGatewayId string) *ProjectsLocationsSecurityGatewaysCreateCall { + c.urlParams_.Set("securityGatewayId", securityGatewayId) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsClientConnectorServicesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsClientConnectorServicesSetIamPolicyCall { +func (c *ProjectsLocationsSecurityGatewaysCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsSecurityGatewaysCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsClientConnectorServicesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsClientConnectorServicesSetIamPolicyCall { +func (c *ProjectsLocationsSecurityGatewaysCreateCall) Context(ctx context.Context) *ProjectsLocationsSecurityGatewaysCreateCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsClientConnectorServicesSetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsSecurityGatewaysCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsClientConnectorServicesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsSecurityGatewaysCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudbeyondcorpsecuritygatewaysv1securitygateway) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/securityGateways") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -7692,18 +9375,18 @@ func (c *ProjectsLocationsClientConnectorServicesSetIamPolicyCall) doRequest(alt } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.clientConnectorServices.setIamPolicy" call. +// Do executes the "beyondcorp.projects.locations.securityGateways.create" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsClientConnectorServicesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsSecurityGatewaysCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7722,7 +9405,7 @@ func (c *ProjectsLocationsClientConnectorServicesSetIamPolicyCall) Do(opts ...go if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleIamV1Policy{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7735,84 +9418,97 @@ func (c *ProjectsLocationsClientConnectorServicesSetIamPolicyCall) Do(opts ...go return ret, nil } -type ProjectsLocationsClientConnectorServicesTestIamPermissionsCall struct { - s *Service - resource string - googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsSecurityGatewaysDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// TestIamPermissions: Returns permissions that a caller has on the specified -// resource. If the resource does not exist, this will return an empty set of -// permissions, not a `NOT_FOUND` error. Note: This operation is designed to be -// used for building permission-aware UIs and command-line tools, not for -// authorization checking. This operation may "fail open" without warning. +// Delete: Deletes a single SecurityGateway. // -// - resource: REQUIRED: The resource for which the policy detail is being -// requested. See Resource names -// (https://cloud.google.com/apis/design/resource_names) for the appropriate -// value for this field. -func (r *ProjectsLocationsClientConnectorServicesService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsClientConnectorServicesTestIamPermissionsCall { - c := &ProjectsLocationsClientConnectorServicesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest +// - name: BeyondCorp SecurityGateway name using the form: +// `projects/{project_id}/locations/{location_id}/securityGateways/{security_g +// ateway_id}`. +func (r *ProjectsLocationsSecurityGatewaysService) Delete(name string) *ProjectsLocationsSecurityGatewaysDeleteCall { + c := &ProjectsLocationsSecurityGatewaysDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// RequestId sets the optional parameter "requestId": An optional request ID to +// identify requests. Specify a unique request ID so that if you must retry +// your request, the server will know to ignore the request if it has already +// been completed. The server will guarantee that for at least 60 minutes after +// the first request. For example, consider a situation where you make an +// initial request and the request times out. If you make the request again +// with the same request ID, the server can check if original operation with +// the same request ID was received, and if so, will ignore the second request. +// This prevents clients from accidentally creating duplicate commitments. The +// request ID must be a valid UUID with the exception that zero UUID is not +// supported (00000000-0000-0000-0000-000000000000). +func (c *ProjectsLocationsSecurityGatewaysDeleteCall) RequestId(requestId string) *ProjectsLocationsSecurityGatewaysDeleteCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// ValidateOnly sets the optional parameter "validateOnly": If set, validates +// request by executing a dry-run which would not alter the resource in any +// way. +func (c *ProjectsLocationsSecurityGatewaysDeleteCall) ValidateOnly(validateOnly bool) *ProjectsLocationsSecurityGatewaysDeleteCall { + c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly)) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsClientConnectorServicesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsClientConnectorServicesTestIamPermissionsCall { +func (c *ProjectsLocationsSecurityGatewaysDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsSecurityGatewaysDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsClientConnectorServicesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsClientConnectorServicesTestIamPermissionsCall { +func (c *ProjectsLocationsSecurityGatewaysDeleteCall) Context(ctx context.Context) *ProjectsLocationsSecurityGatewaysDeleteCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsClientConnectorServicesTestIamPermissionsCall) Header() http.Header { +func (c *ProjectsLocationsSecurityGatewaysDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsClientConnectorServicesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) +func (c *ProjectsLocationsSecurityGatewaysDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest) - if err != nil { - return nil, err - } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.clientConnectorServices.testIamPermissions" call. +// Do executes the "beyondcorp.projects.locations.securityGateways.delete" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleIamV1TestIamPermissionsResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was because // http.StatusNotModified was returned. -func (c *ProjectsLocationsClientConnectorServicesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) { +func (c *ProjectsLocationsSecurityGatewaysDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7831,7 +9527,7 @@ func (c *ProjectsLocationsClientConnectorServicesTestIamPermissionsCall) Do(opts if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleIamV1TestIamPermissionsResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7844,48 +9540,30 @@ func (c *ProjectsLocationsClientConnectorServicesTestIamPermissionsCall) Do(opts return ret, nil } -type ProjectsLocationsClientGatewaysGetIamPolicyCall struct { +type ProjectsLocationsSecurityGatewaysGetCall struct { s *Service - resource string + name string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// GetIamPolicy: Gets the access control policy for a resource. Returns an -// empty policy if the resource exists and does not have a policy set. +// Get: Gets details of a single SecurityGateway. // -// - resource: REQUIRED: The resource for which the policy is being requested. -// See Resource names (https://cloud.google.com/apis/design/resource_names) -// for the appropriate value for this field. -func (r *ProjectsLocationsClientGatewaysService) GetIamPolicy(resource string) *ProjectsLocationsClientGatewaysGetIamPolicyCall { - c := &ProjectsLocationsClientGatewaysGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - return c -} - -// OptionsRequestedPolicyVersion sets the optional parameter -// "options.requestedPolicyVersion": The maximum policy version that will be -// used to format the policy. Valid values are 0, 1, and 3. Requests specifying -// an invalid value will be rejected. Requests for policies with any -// conditional role bindings must specify version 3. Policies with no -// conditional role bindings may specify any valid value or leave the field -// unset. The policy in the response might use the policy version that you -// specified, or it might use a lower policy version. For example, if you -// specify version 3, but the policy has no conditional role bindings, the -// response uses version 1. To learn which resources support conditions in -// their IAM policies, see the IAM documentation -// (https://cloud.google.com/iam/help/conditions/resource-policies). -func (c *ProjectsLocationsClientGatewaysGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsClientGatewaysGetIamPolicyCall { - c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) +// - name: The resource name of the PartnerTenant using the form: +// `projects/{project_id}/locations/{location_id}/securityGateway/{security_ga +// teway_id}`. +func (r *ProjectsLocationsSecurityGatewaysService) Get(name string) *ProjectsLocationsSecurityGatewaysGetCall { + c := &ProjectsLocationsSecurityGatewaysGetCall{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 // details. -func (c *ProjectsLocationsClientGatewaysGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsClientGatewaysGetIamPolicyCall { +func (c *ProjectsLocationsSecurityGatewaysGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsSecurityGatewaysGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -7893,27 +9571,27 @@ func (c *ProjectsLocationsClientGatewaysGetIamPolicyCall) Fields(s ...googleapi. // IfNoneMatch sets an 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. -func (c *ProjectsLocationsClientGatewaysGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsClientGatewaysGetIamPolicyCall { +func (c *ProjectsLocationsSecurityGatewaysGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsSecurityGatewaysGetCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsClientGatewaysGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsClientGatewaysGetIamPolicyCall { +func (c *ProjectsLocationsSecurityGatewaysGetCall) Context(ctx context.Context) *ProjectsLocationsSecurityGatewaysGetCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsClientGatewaysGetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsSecurityGatewaysGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsClientGatewaysGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsSecurityGatewaysGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -7921,7 +9599,7 @@ func (c *ProjectsLocationsClientGatewaysGetIamPolicyCall) doRequest(alt string) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -7929,18 +9607,20 @@ func (c *ProjectsLocationsClientGatewaysGetIamPolicyCall) doRequest(alt string) } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.clientGateways.getIamPolicy" call. +// Do executes the "beyondcorp.projects.locations.securityGateways.get" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsClientGatewaysGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { +// *GoogleCloudBeyondcorpSecuritygatewaysV1SecurityGateway.ServerResponse.Header +// +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsSecurityGatewaysGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBeyondcorpSecuritygatewaysV1SecurityGateway, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7959,7 +9639,7 @@ func (c *ProjectsLocationsClientGatewaysGetIamPolicyCall) Do(opts ...googleapi.C if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleIamV1Policy{ + ret := &GoogleCloudBeyondcorpSecuritygatewaysV1SecurityGateway{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7972,81 +9652,120 @@ func (c *ProjectsLocationsClientGatewaysGetIamPolicyCall) Do(opts ...googleapi.C return ret, nil } -type ProjectsLocationsClientGatewaysSetIamPolicyCall struct { - s *Service - resource string - googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsSecurityGatewaysListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// SetIamPolicy: Sets the access control policy on the specified resource. -// Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, -// and `PERMISSION_DENIED` errors. +// List: Lists SecurityGateways in a given project and location. // -// - resource: REQUIRED: The resource for which the policy is being specified. -// See Resource names (https://cloud.google.com/apis/design/resource_names) -// for the appropriate value for this field. -func (r *ProjectsLocationsClientGatewaysService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsClientGatewaysSetIamPolicyCall { - c := &ProjectsLocationsClientGatewaysSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest +// - parent: The parent location to which the resources belong. +// `projects/{project_id}/locations/{location_id}/`. +func (r *ProjectsLocationsSecurityGatewaysService) List(parent string) *ProjectsLocationsSecurityGatewaysListCall { + c := &ProjectsLocationsSecurityGatewaysListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": A filter specifying constraints +// of a list operation. All fields in the SecurityGateway message are +// supported. For example, the following query will return the SecurityGateway +// with displayName "test-security-gateway" For more information, please refer +// to https://google.aip.dev/160. +func (c *ProjectsLocationsSecurityGatewaysListCall) Filter(filter string) *ProjectsLocationsSecurityGatewaysListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": Specifies the ordering of +// results. See Sorting order +// (https://cloud.google.com/apis/design/design_patterns#sorting_order) for +// more information. +func (c *ProjectsLocationsSecurityGatewaysListCall) OrderBy(orderBy string) *ProjectsLocationsSecurityGatewaysListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of items +// to return. If not specified, a default value of 50 will be used by the +// service. Regardless of the page_size value, the response may include a +// partial list and a caller should only rely on response's next_page_token to +// determine if there are more instances left to be queried. +func (c *ProjectsLocationsSecurityGatewaysListCall) PageSize(pageSize int64) *ProjectsLocationsSecurityGatewaysListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The next_page_token value +// returned from a previous ListSecurityGatewayRequest, if any. +func (c *ProjectsLocationsSecurityGatewaysListCall) PageToken(pageToken string) *ProjectsLocationsSecurityGatewaysListCall { + 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 // details. -func (c *ProjectsLocationsClientGatewaysSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsClientGatewaysSetIamPolicyCall { +func (c *ProjectsLocationsSecurityGatewaysListCall) Fields(s ...googleapi.Field) *ProjectsLocationsSecurityGatewaysListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsSecurityGatewaysListCall) IfNoneMatch(entityTag string) *ProjectsLocationsSecurityGatewaysListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsClientGatewaysSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsClientGatewaysSetIamPolicyCall { +func (c *ProjectsLocationsSecurityGatewaysListCall) Context(ctx context.Context) *ProjectsLocationsSecurityGatewaysListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsClientGatewaysSetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsSecurityGatewaysListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } - return c.header_ -} - -func (c *ProjectsLocationsClientGatewaysSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest) - if err != nil { - return nil, err - } + return c.header_ +} + +func (c *ProjectsLocationsSecurityGatewaysListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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/{+resource}:setIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/securityGateways") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.clientGateways.setIamPolicy" call. +// Do executes the "beyondcorp.projects.locations.securityGateways.list" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsClientGatewaysSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { +// *GoogleCloudBeyondcorpSecuritygatewaysV1ListSecurityGatewaysResponse.ServerRe +// sponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsSecurityGatewaysListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBeyondcorpSecuritygatewaysV1ListSecurityGatewaysResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8065,7 +9784,7 @@ func (c *ProjectsLocationsClientGatewaysSetIamPolicyCall) Do(opts ...googleapi.C if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleIamV1Policy{ + ret := &GoogleCloudBeyondcorpSecuritygatewaysV1ListSecurityGatewaysResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -8078,84 +9797,121 @@ func (c *ProjectsLocationsClientGatewaysSetIamPolicyCall) Do(opts ...googleapi.C return ret, nil } -type ProjectsLocationsClientGatewaysTestIamPermissionsCall struct { - s *Service - resource string - googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// 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 *ProjectsLocationsSecurityGatewaysListCall) Pages(ctx context.Context, f func(*GoogleCloudBeyondcorpSecuritygatewaysV1ListSecurityGatewaysResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + 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) + } } -// TestIamPermissions: Returns permissions that a caller has on the specified -// resource. If the resource does not exist, this will return an empty set of -// permissions, not a `NOT_FOUND` error. Note: This operation is designed to be -// used for building permission-aware UIs and command-line tools, not for -// authorization checking. This operation may "fail open" without warning. +type ProjectsLocationsSecurityGatewaysPatchCall struct { + s *Service + name string + googlecloudbeyondcorpsecuritygatewaysv1securitygateway *GoogleCloudBeyondcorpSecuritygatewaysV1SecurityGateway + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates the parameters of a single SecurityGateway. // -// - resource: REQUIRED: The resource for which the policy detail is being -// requested. See Resource names -// (https://cloud.google.com/apis/design/resource_names) for the appropriate -// value for this field. -func (r *ProjectsLocationsClientGatewaysService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsClientGatewaysTestIamPermissionsCall { - c := &ProjectsLocationsClientGatewaysTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest +// - name: Identifier. Name of the resource. +func (r *ProjectsLocationsSecurityGatewaysService) Patch(name string, googlecloudbeyondcorpsecuritygatewaysv1securitygateway *GoogleCloudBeyondcorpSecuritygatewaysV1SecurityGateway) *ProjectsLocationsSecurityGatewaysPatchCall { + c := &ProjectsLocationsSecurityGatewaysPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudbeyondcorpsecuritygatewaysv1securitygateway = googlecloudbeyondcorpsecuritygatewaysv1securitygateway + return c +} + +// RequestId sets the optional parameter "requestId": An optional request ID to +// identify requests. Specify a unique request ID so that if you must retry +// your request, the server will know to ignore the request if it has already +// been completed. The server will guarantee that for at least 60 minutes after +// the first request. For example, consider a situation where you make an +// initial request and the request timed out. If you make the request again +// with the same request ID, the server can check if original operation with +// the same request ID was received, and if so, will ignore the second request. +// This prevents clients from accidentally creating duplicate commitments. The +// request ID must be a valid UUID with the exception that zero UUID is not +// supported (00000000-0000-0000-0000-000000000000). +func (c *ProjectsLocationsSecurityGatewaysPatchCall) RequestId(requestId string) *ProjectsLocationsSecurityGatewaysPatchCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. Mutable +// fields include: display_name, hubs. +func (c *ProjectsLocationsSecurityGatewaysPatchCall) UpdateMask(updateMask string) *ProjectsLocationsSecurityGatewaysPatchCall { + 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 // details. -func (c *ProjectsLocationsClientGatewaysTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsClientGatewaysTestIamPermissionsCall { +func (c *ProjectsLocationsSecurityGatewaysPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsSecurityGatewaysPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsClientGatewaysTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsClientGatewaysTestIamPermissionsCall { +func (c *ProjectsLocationsSecurityGatewaysPatchCall) Context(ctx context.Context) *ProjectsLocationsSecurityGatewaysPatchCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsClientGatewaysTestIamPermissionsCall) Header() http.Header { +func (c *ProjectsLocationsSecurityGatewaysPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsClientGatewaysTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsSecurityGatewaysPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudbeyondcorpsecuritygatewaysv1securitygateway) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.clientGateways.testIamPermissions" call. +// Do executes the "beyondcorp.projects.locations.securityGateways.patch" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleIamV1TestIamPermissionsResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was because // http.StatusNotModified was returned. -func (c *ProjectsLocationsClientGatewaysTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) { +func (c *ProjectsLocationsSecurityGatewaysPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8174,7 +9930,7 @@ func (c *ProjectsLocationsClientGatewaysTestIamPermissionsCall) Do(opts ...googl if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleIamV1TestIamPermissionsResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -8187,66 +9943,62 @@ func (c *ProjectsLocationsClientGatewaysTestIamPermissionsCall) Do(opts ...googl return ret, nil } -type ProjectsLocationsOperationsCancelCall struct { - s *Service - name string - googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsSecurityGatewaysSetPeeringCall struct { + s *Service + securityGateway string + googlecloudbeyondcorpsecuritygatewaysv1setpeeringrequest *GoogleCloudBeyondcorpSecuritygatewaysV1SetPeeringRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Cancel: Starts asynchronous cancellation on a long-running operation. The -// server makes a best effort to cancel the operation, but success is not -// guaranteed. If the server doesn't support this method, it returns -// `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or -// other methods to check whether the cancellation succeeded or whether the -// operation completed despite cancellation. On successful cancellation, the -// operation is not deleted; instead, it becomes an operation with an -// Operation.error value with a google.rpc.Status.code of 1, corresponding to -// `Code.CANCELLED`. +// SetPeering: This is a custom method to allow customers to create a peering +// connections between Google network and customer networks. This is enabled +// only for the allowlisted customers. // -// - name: The name of the operation resource to be cancelled. -func (r *ProjectsLocationsOperationsService) Cancel(name string, googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest) *ProjectsLocationsOperationsCancelCall { - c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.googlelongrunningcanceloperationrequest = googlelongrunningcanceloperationrequest +// - securityGateway: BeyondCorp SecurityGateway name using the form: +// `projects/{project}/locations/{location}/securityGateways/{security_gateway +// }`. +func (r *ProjectsLocationsSecurityGatewaysService) SetPeering(securityGateway string, googlecloudbeyondcorpsecuritygatewaysv1setpeeringrequest *GoogleCloudBeyondcorpSecuritygatewaysV1SetPeeringRequest) *ProjectsLocationsSecurityGatewaysSetPeeringCall { + c := &ProjectsLocationsSecurityGatewaysSetPeeringCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.securityGateway = securityGateway + c.googlecloudbeyondcorpsecuritygatewaysv1setpeeringrequest = googlecloudbeyondcorpsecuritygatewaysv1setpeeringrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall { +func (c *ProjectsLocationsSecurityGatewaysSetPeeringCall) Fields(s ...googleapi.Field) *ProjectsLocationsSecurityGatewaysSetPeeringCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall { +func (c *ProjectsLocationsSecurityGatewaysSetPeeringCall) Context(ctx context.Context) *ProjectsLocationsSecurityGatewaysSetPeeringCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { +func (c *ProjectsLocationsSecurityGatewaysSetPeeringCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsSecurityGatewaysSetPeeringCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlelongrunningcanceloperationrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudbeyondcorpsecuritygatewaysv1setpeeringrequest) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+securityGateway}:setPeering") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -8254,17 +10006,18 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "securityGateway": c.securityGateway, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.operations.cancel" call. +// Do executes the "beyondcorp.projects.locations.securityGateways.setPeering" call. // 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 *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) { +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsSecurityGatewaysSetPeeringCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8283,7 +10036,7 @@ func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Empty{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -8296,7 +10049,7 @@ func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) return ret, nil } -type ProjectsLocationsOperationsDeleteCall struct { +type ProjectsLocationsSecurityGatewaysApplicationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -8304,42 +10057,63 @@ type ProjectsLocationsOperationsDeleteCall struct { header_ http.Header } -// Delete: Deletes a long-running operation. This method indicates that the -// client is no longer interested in the operation result. It does not cancel -// the operation. If the server doesn't support this method, it returns -// `google.rpc.Code.UNIMPLEMENTED`. +// Delete: Deletes a single Application. // -// - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall { - c := &ProjectsLocationsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Name of the resource. +func (r *ProjectsLocationsSecurityGatewaysApplicationsService) Delete(name string) *ProjectsLocationsSecurityGatewaysApplicationsDeleteCall { + c := &ProjectsLocationsSecurityGatewaysApplicationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } +// RequestId sets the optional parameter "requestId": An optional request ID to +// identify requests. Specify a unique request ID so that if you must retry +// your request, the server will know to ignore the request if it has already +// been completed. The server will guarantee that for at least 60 minutes after +// the first request. For example, consider a situation where you make an +// initial request and the request times out. If you make the request again +// with the same request ID, the server can check if original operation with +// the same request ID was received, and if so, will ignore the second request. +// This prevents clients from accidentally creating duplicate commitments. The +// request ID must be a valid UUID with the exception that zero UUID is not +// supported (00000000-0000-0000-0000-000000000000). +func (c *ProjectsLocationsSecurityGatewaysApplicationsDeleteCall) RequestId(requestId string) *ProjectsLocationsSecurityGatewaysApplicationsDeleteCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// ValidateOnly sets the optional parameter "validateOnly": If set, validates +// request by executing a dry-run which would not alter the resource in any +// way. +func (c *ProjectsLocationsSecurityGatewaysApplicationsDeleteCall) ValidateOnly(validateOnly bool) *ProjectsLocationsSecurityGatewaysApplicationsDeleteCall { + c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall { +func (c *ProjectsLocationsSecurityGatewaysApplicationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsSecurityGatewaysApplicationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall { +func (c *ProjectsLocationsSecurityGatewaysApplicationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsSecurityGatewaysApplicationsDeleteCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsSecurityGatewaysApplicationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsSecurityGatewaysApplicationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) @@ -8357,12 +10131,13 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.operations.delete" call. +// Do executes the "beyondcorp.projects.locations.securityGateways.applications.delete" call. // 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 *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsSecurityGatewaysApplicationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8381,7 +10156,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Empty{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -8394,7 +10169,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) return ret, nil } -type ProjectsLocationsOperationsGetCall struct { +type ProjectsLocationsSecurityGatewaysApplicationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -8403,13 +10178,13 @@ type ProjectsLocationsOperationsGetCall struct { header_ http.Header } -// Get: Gets the latest state of a long-running operation. Clients can use this -// method to poll the operation result at intervals as recommended by the API -// service. +// Get: Gets details of a single Application. // -// - name: The name of the operation resource. -func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall { - c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The resource name of the Application using the form: +// `projects/{project_id}/locations/global/securityGateway/{security_gateway_i +// d}/applications/{application_id}`. +func (r *ProjectsLocationsSecurityGatewaysApplicationsService) Get(name string) *ProjectsLocationsSecurityGatewaysApplicationsGetCall { + c := &ProjectsLocationsSecurityGatewaysApplicationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -8417,7 +10192,7 @@ func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocations // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall { +func (c *ProjectsLocationsSecurityGatewaysApplicationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsSecurityGatewaysApplicationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -8425,27 +10200,27 @@ func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *Proje // IfNoneMatch sets an 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. -func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall { +func (c *ProjectsLocationsSecurityGatewaysApplicationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsSecurityGatewaysApplicationsGetCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall { +func (c *ProjectsLocationsSecurityGatewaysApplicationsGetCall) Context(ctx context.Context) *ProjectsLocationsSecurityGatewaysApplicationsGetCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsSecurityGatewaysApplicationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsSecurityGatewaysApplicationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -8466,13 +10241,13 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.operations.get" call. +// Do executes the "beyondcorp.projects.locations.securityGateways.applications.get" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use +// *GoogleCloudBeyondcorpSecuritygatewaysV1Application.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was because // http.StatusNotModified was returned. -func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsSecurityGatewaysApplicationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBeyondcorpSecuritygatewaysV1Application, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8491,7 +10266,7 @@ func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (* if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudBeyondcorpSecuritygatewaysV1Application{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -8504,41 +10279,58 @@ func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (* return ret, nil } -type ProjectsLocationsOperationsListCall struct { +type ProjectsLocationsSecurityGatewaysApplicationsListCall struct { s *Service - name string + parent string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Lists operations that match the specified filter in the request. If -// the server doesn't support this method, it returns `UNIMPLEMENTED`. +// List: Lists Applications in a given project and location. // -// - name: The name of the operation's parent resource. -func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { - c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The parent location to which the resources belong. +// `projects/{project_id}/locations/global/securityGateways/{security_gateway_ +// id}`. +func (r *ProjectsLocationsSecurityGatewaysApplicationsService) List(parent string) *ProjectsLocationsSecurityGatewaysApplicationsListCall { + c := &ProjectsLocationsSecurityGatewaysApplicationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent return c } -// Filter sets the optional parameter "filter": The standard list filter. -func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall { +// Filter sets the optional parameter "filter": A filter specifying constraints +// of a list operation. All fields in the Application message are supported. +// For example, the following query will return the Application with +// displayName "test-application" For more information, please refer to +// https://google.aip.dev/160. +func (c *ProjectsLocationsSecurityGatewaysApplicationsListCall) Filter(filter string) *ProjectsLocationsSecurityGatewaysApplicationsListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The standard list page -// size. -func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall { +// OrderBy sets the optional parameter "orderBy": Specifies the ordering of +// results. See Sorting order +// (https://cloud.google.com/apis/design/design_patterns#sorting_order) for +// more information. +func (c *ProjectsLocationsSecurityGatewaysApplicationsListCall) OrderBy(orderBy string) *ProjectsLocationsSecurityGatewaysApplicationsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of items +// to return. If not specified, a default value of 50 will be used by the +// service. Regardless of the page_size value, the response may include a +// partial list and a caller should only rely on response's next_page_token to +// determine if there are more instances left to be queried. +func (c *ProjectsLocationsSecurityGatewaysApplicationsListCall) PageSize(pageSize int64) *ProjectsLocationsSecurityGatewaysApplicationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The standard list page -// token. -func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall { +// PageToken sets the optional parameter "pageToken": The next_page_token value +// returned from a previous ListApplicationsRequest, if any. +func (c *ProjectsLocationsSecurityGatewaysApplicationsListCall) PageToken(pageToken string) *ProjectsLocationsSecurityGatewaysApplicationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -8546,7 +10338,7 @@ func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *Proje // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall { +func (c *ProjectsLocationsSecurityGatewaysApplicationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsSecurityGatewaysApplicationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -8554,27 +10346,27 @@ func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *Proj // IfNoneMatch sets an 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. -func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall { +func (c *ProjectsLocationsSecurityGatewaysApplicationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsSecurityGatewaysApplicationsListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall { +func (c *ProjectsLocationsSecurityGatewaysApplicationsListCall) Context(ctx context.Context) *ProjectsLocationsSecurityGatewaysApplicationsListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsSecurityGatewaysApplicationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsSecurityGatewaysApplicationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -8582,7 +10374,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/applications") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -8590,18 +10382,18 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo } 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 "beyondcorp.projects.locations.operations.list" call. +// Do executes the "beyondcorp.projects.locations.securityGateways.applications.list" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +// *GoogleCloudBeyondcorpSecuritygatewaysV1ListApplicationsResponse.ServerRespon +// se.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsSecurityGatewaysApplicationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBeyondcorpSecuritygatewaysV1ListApplicationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8620,7 +10412,7 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningListOperationsResponse{ + ret := &GoogleCloudBeyondcorpSecuritygatewaysV1ListApplicationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -8636,7 +10428,7 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { +func (c *ProjectsLocationsSecurityGatewaysApplicationsListCall) Pages(ctx context.Context, f func(*GoogleCloudBeyondcorpSecuritygatewaysV1ListApplicationsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { diff --git a/businessprofileperformance/v1/businessprofileperformance-api.json b/businessprofileperformance/v1/businessprofileperformance-api.json index 9344b8c8dae..abe0870f343 100644 --- a/businessprofileperformance/v1/businessprofileperformance-api.json +++ b/businessprofileperformance/v1/businessprofileperformance-api.json @@ -294,25 +294,25 @@ "type": "string" }, "dailySubEntityType.timeOfDay.hours": { - "description": "Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value \"24:00:00\" for scenarios like business closing time.", + "description": "Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal to 23. An API may choose to allow the value \"24:00:00\" for scenarios like business closing time.", "format": "int32", "location": "query", "type": "integer" }, "dailySubEntityType.timeOfDay.minutes": { - "description": "Minutes of hour of day. Must be from 0 to 59.", + "description": "Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.", "format": "int32", "location": "query", "type": "integer" }, "dailySubEntityType.timeOfDay.nanos": { - "description": "Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.", + "description": "Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.", "format": "int32", "location": "query", "type": "integer" }, "dailySubEntityType.timeOfDay.seconds": { - "description": "Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.", + "description": "Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds.", "format": "int32", "location": "query", "type": "integer" @@ -417,7 +417,7 @@ } } }, - "revision": "20230607", + "revision": "20241002", "rootUrl": "https://businessprofileperformance.googleapis.com/", "schemas": { "DailyMetricTimeSeries": { @@ -635,22 +635,22 @@ "id": "TimeOfDay", "properties": { "hours": { - "description": "Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value \"24:00:00\" for scenarios like business closing time.", + "description": "Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal to 23. An API may choose to allow the value \"24:00:00\" for scenarios like business closing time.", "format": "int32", "type": "integer" }, "minutes": { - "description": "Minutes of hour of day. Must be from 0 to 59.", + "description": "Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.", "format": "int32", "type": "integer" }, "nanos": { - "description": "Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.", + "description": "Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.", "format": "int32", "type": "integer" }, "seconds": { - "description": "Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.", + "description": "Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds.", "format": "int32", "type": "integer" } diff --git a/businessprofileperformance/v1/businessprofileperformance-gen.go b/businessprofileperformance/v1/businessprofileperformance-gen.go index fec21eda660..59060db47eb 100644 --- a/businessprofileperformance/v1/businessprofileperformance-gen.go +++ b/businessprofileperformance/v1/businessprofileperformance-gen.go @@ -507,16 +507,19 @@ func (s SearchKeywordCount) MarshalJSON() ([]byte, error) { // significant or are specified elsewhere. An API may choose to allow leap // seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. type TimeOfDay struct { - // Hours: Hours of day in 24 hour format. Should be from 0 to 23. An API may - // choose to allow the value "24:00:00" for scenarios like business closing - // time. + // Hours: Hours of a day in 24 hour format. Must be greater than or equal to 0 + // and typically must be less than or equal to 23. An API may choose to allow + // the value "24:00:00" for scenarios like business closing time. Hours int64 `json:"hours,omitempty"` - // Minutes: Minutes of hour of day. Must be from 0 to 59. + // Minutes: Minutes of an hour. Must be greater than or equal to 0 and less + // than or equal to 59. Minutes int64 `json:"minutes,omitempty"` - // Nanos: Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. + // Nanos: Fractions of seconds, in nanoseconds. Must be greater than or equal + // to 0 and less than or equal to 999,999,999. Nanos int64 `json:"nanos,omitempty"` - // Seconds: Seconds of minutes of the time. Must normally be from 0 to 59. An - // API may allow the value 60 if it allows leap-seconds. + // Seconds: Seconds of a minute. Must be greater than or equal to 0 and + // typically must be less than or equal to 59. An API may allow the value 60 if + // it allows leap-seconds. Seconds int64 `json:"seconds,omitempty"` // ForceSendFields is a list of field names (e.g. "Hours") to unconditionally // include in API requests. By default, fields with empty or default values are @@ -932,34 +935,35 @@ func (c *LocationsGetDailyMetricsTimeSeriesCall) DailySubEntityTypeDayOfWeek(dai } // DailySubEntityTypeTimeOfDayHours sets the optional parameter -// "dailySubEntityType.timeOfDay.hours": Hours of day in 24 hour format. Should -// be from 0 to 23. An API may choose to allow the value "24:00:00" for -// scenarios like business closing time. +// "dailySubEntityType.timeOfDay.hours": Hours of a day in 24 hour format. Must +// be greater than or equal to 0 and typically must be less than or equal to +// 23. An API may choose to allow the value "24:00:00" for scenarios like +// business closing time. func (c *LocationsGetDailyMetricsTimeSeriesCall) DailySubEntityTypeTimeOfDayHours(dailySubEntityTypeTimeOfDayHours int64) *LocationsGetDailyMetricsTimeSeriesCall { c.urlParams_.Set("dailySubEntityType.timeOfDay.hours", fmt.Sprint(dailySubEntityTypeTimeOfDayHours)) return c } // DailySubEntityTypeTimeOfDayMinutes sets the optional parameter -// "dailySubEntityType.timeOfDay.minutes": Minutes of hour of day. Must be from -// 0 to 59. +// "dailySubEntityType.timeOfDay.minutes": Minutes of an hour. Must be greater +// than or equal to 0 and less than or equal to 59. func (c *LocationsGetDailyMetricsTimeSeriesCall) DailySubEntityTypeTimeOfDayMinutes(dailySubEntityTypeTimeOfDayMinutes int64) *LocationsGetDailyMetricsTimeSeriesCall { c.urlParams_.Set("dailySubEntityType.timeOfDay.minutes", fmt.Sprint(dailySubEntityTypeTimeOfDayMinutes)) return c } // DailySubEntityTypeTimeOfDayNanos sets the optional parameter -// "dailySubEntityType.timeOfDay.nanos": Fractions of seconds in nanoseconds. -// Must be from 0 to 999,999,999. +// "dailySubEntityType.timeOfDay.nanos": Fractions of seconds, in nanoseconds. +// Must be greater than or equal to 0 and less than or equal to 999,999,999. func (c *LocationsGetDailyMetricsTimeSeriesCall) DailySubEntityTypeTimeOfDayNanos(dailySubEntityTypeTimeOfDayNanos int64) *LocationsGetDailyMetricsTimeSeriesCall { c.urlParams_.Set("dailySubEntityType.timeOfDay.nanos", fmt.Sprint(dailySubEntityTypeTimeOfDayNanos)) return c } // DailySubEntityTypeTimeOfDaySeconds sets the optional parameter -// "dailySubEntityType.timeOfDay.seconds": Seconds of minutes of the time. Must -// normally be from 0 to 59. An API may allow the value 60 if it allows -// leap-seconds. +// "dailySubEntityType.timeOfDay.seconds": Seconds of a minute. Must be greater +// than or equal to 0 and typically must be less than or equal to 59. An API +// may allow the value 60 if it allows leap-seconds. func (c *LocationsGetDailyMetricsTimeSeriesCall) DailySubEntityTypeTimeOfDaySeconds(dailySubEntityTypeTimeOfDaySeconds int64) *LocationsGetDailyMetricsTimeSeriesCall { c.urlParams_.Set("dailySubEntityType.timeOfDay.seconds", fmt.Sprint(dailySubEntityTypeTimeOfDaySeconds)) return c diff --git a/calendar/v3/calendar-api.json b/calendar/v3/calendar-api.json index 775d6f311a1..5b4b20d757d 100644 --- a/calendar/v3/calendar-api.json +++ b/calendar/v3/calendar-api.json @@ -1767,7 +1767,7 @@ } } }, - "revision": "20240906", + "revision": "20240927", "rootUrl": "https://www.googleapis.com/", "schemas": { "Acl": { @@ -2737,7 +2737,7 @@ "type": "boolean" }, "responseStatus": { - "description": "The attendee's response status. Possible values are: \n- \"needsAction\" - The attendee has not responded to the invitation (recommended for new events). \n- \"declined\" - The attendee has declined the invitation. \n- \"tentative\" - The attendee has tentatively accepted the invitation. \n- \"accepted\" - The attendee has accepted the invitation. Warning: If you add an event using the values declined, tentative, or accepted, attendees with the \"Add invitations to my calendar\" setting set to \"When I respond to invitation in email\" won't see an event on their calendar unless they choose to change their invitation response in the event invitation email.", + "description": "The attendee's response status. Possible values are: \n- \"needsAction\" - The attendee has not responded to the invitation (recommended for new events). \n- \"declined\" - The attendee has declined the invitation. \n- \"tentative\" - The attendee has tentatively accepted the invitation. \n- \"accepted\" - The attendee has accepted the invitation. Warning: If you add an event using the values declined, tentative, or accepted, attendees with the \"Add invitations to my calendar\" setting set to \"When I respond to invitation in email\" or \"Only if the sender is known\" might have their response reset to needsAction and won't see an event in their calendar unless they change their response in the event invitation email. Furthermore, if more than 200 guests are invited to the event, response status is not propagated to the guests.", "type": "string" }, "self": { diff --git a/calendar/v3/calendar-gen.go b/calendar/v3/calendar-gen.go index 18ceb776a5d..0a9342ed2b4 100644 --- a/calendar/v3/calendar-gen.go +++ b/calendar/v3/calendar-gen.go @@ -1553,8 +1553,11 @@ type EventAttendee struct { // - "accepted" - The attendee has accepted the invitation. Warning: If you // add an event using the values declined, tentative, or accepted, attendees // with the "Add invitations to my calendar" setting set to "When I respond to - // invitation in email" won't see an event on their calendar unless they choose - // to change their invitation response in the event invitation email. + // invitation in email" or "Only if the sender is known" might have their + // response reset to needsAction and won't see an event in their calendar + // unless they change their response in the event invitation email. + // Furthermore, if more than 200 guests are invited to the event, response + // status is not propagated to the guests. ResponseStatus string `json:"responseStatus,omitempty"` // Self: Whether this entry represents the calendar on which this copy of the // event appears. Read-only. The default is False. diff --git a/chromemanagement/v1/chromemanagement-api.json b/chromemanagement/v1/chromemanagement-api.json index 7668432689c..0729fbad566 100644 --- a/chromemanagement/v1/chromemanagement-api.json +++ b/chromemanagement/v1/chromemanagement-api.json @@ -1172,7 +1172,7 @@ } } }, - "revision": "20240815", + "revision": "20241001", "rootUrl": "https://chromemanagement.googleapis.com/", "schemas": { "GoogleChromeManagementV1AndroidAppInfo": { @@ -3682,7 +3682,8 @@ "APPLICATION_LAUNCH_SOURCE_FIRST_RUN", "APPLICATION_LAUNCH_SOURCE_WELCOME_TOUR", "APPLICATION_LAUNCH_SOURCE_FOCUS_MODE", - "APPLICATION_LAUNCH_SOURCE_SPARKY" + "APPLICATION_LAUNCH_SOURCE_SPARKY", + "APPLICATION_LAUNCH_SOURCE_NAVIGATION_CAPTURING" ], "enumDescriptions": [ "Application launch source unknown.", @@ -3726,7 +3727,8 @@ "Count first-run Help app launches separately so that we can understand the number of user-triggered launches.", "Application launched from welcome tour.", "Applicationed launched from focus panel.", - "Application launched from experimental feature Sparky." + "Application launched from experimental feature Sparky.", + "Application launched from navigation capturing." ], "type": "string" }, diff --git a/chromemanagement/v1/chromemanagement-gen.go b/chromemanagement/v1/chromemanagement-gen.go index 4bb53a28a9b..d2eeaeec15b 100644 --- a/chromemanagement/v1/chromemanagement-gen.go +++ b/chromemanagement/v1/chromemanagement-gen.go @@ -2984,6 +2984,8 @@ type GoogleChromeManagementV1TelemetryAppLaunchEvent struct { // panel. // "APPLICATION_LAUNCH_SOURCE_SPARKY" - Application launched from // experimental feature Sparky. + // "APPLICATION_LAUNCH_SOURCE_NAVIGATION_CAPTURING" - Application launched + // from navigation capturing. AppLaunchSource string `json:"appLaunchSource,omitempty"` // AppType: Type of app. // diff --git a/clouddeploy/v1/clouddeploy-api.json b/clouddeploy/v1/clouddeploy-api.json index a6709d40a84..89a6b66d5d1 100644 --- a/clouddeploy/v1/clouddeploy-api.json +++ b/clouddeploy/v1/clouddeploy-api.json @@ -2289,7 +2289,7 @@ } } }, - "revision": "20240920", + "revision": "20240929", "rootUrl": "https://clouddeploy.googleapis.com/", "schemas": { "AbandonReleaseRequest": { @@ -2731,7 +2731,7 @@ }, "policyViolation": { "$ref": "PolicyViolation", - "description": "Output only. Contains information about what policies prevented the `AutomationRun` to proceed.", + "description": "Output only. Contains information about what policies prevented the `AutomationRun` from proceeding.", "readOnly": true }, "promoteReleaseOperation": { @@ -3627,7 +3627,7 @@ "type": "object" }, "DeployPolicy": { - "description": "A `DeployPolicy` resource in the Cloud Deploy API. A `DeployPolicy` inhibits manual or automation driven actions within a Delivery Pipeline or Target.", + "description": "A `DeployPolicy` resource in the Cloud Deploy API. A `DeployPolicy` inhibits manual or automation-driven actions within a Delivery Pipeline or Target.", "id": "DeployPolicy", "properties": { "annotations": { @@ -5517,10 +5517,31 @@ }, "type": "object" }, + "RepairPhaseConfig": { + "description": "Configuration of the repair phase.", + "id": "RepairPhaseConfig", + "properties": { + "retry": { + "$ref": "Retry", + "description": "Optional. Retries a failed job." + }, + "rollback": { + "$ref": "Rollback", + "description": "Optional. Rolls back a `Rollout`." + } + }, + "type": "object" + }, "RepairRolloutOperation": { "description": "Contains the information for an automated `repair rollout` operation.", "id": "RepairRolloutOperation", "properties": { + "currentRepairPhaseIndex": { + "description": "Output only. The index of the current repair action in the repair sequence.", + "format": "int64", + "readOnly": true, + "type": "string" + }, "jobId": { "description": "Output only. The job ID for the Job to repair.", "readOnly": true, @@ -5566,6 +5587,51 @@ "type": "string" }, "type": "array" + }, + "phases": { + "description": "Optional. Phases within which jobs are subject to automatic repair actions on failure. Proceeds only after phase name matched any one in the list, or for all phases if unspecified. This value must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a letter or a number, and have a max length of 63 characters. In other words, it must match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.", + "items": { + "type": "string" + }, + "type": "array" + }, + "repairPhases": { + "description": "Required. Defines the types of automatic repair phases for failed jobs.", + "items": { + "$ref": "RepairPhaseConfig" + }, + "type": "array" + } + }, + "type": "object" + }, + "Retry": { + "description": "Retries the failed job.", + "id": "Retry", + "properties": { + "attempts": { + "description": "Required. Total number of retries. Retry is skipped if set to 0; The minimum value is 1, and the maximum value is 10.", + "format": "int64", + "type": "string" + }, + "backoffMode": { + "description": "Optional. The pattern of how wait time will be increased. Default is linear. Backoff mode will be ignored if `wait` is 0.", + "enum": [ + "BACKOFF_MODE_UNSPECIFIED", + "BACKOFF_MODE_LINEAR", + "BACKOFF_MODE_EXPONENTIAL" + ], + "enumDescriptions": [ + "No WaitMode is specified.", + "Increases the wait time linearly.", + "Increases the wait time exponentially." + ], + "type": "string" + }, + "wait": { + "description": "Optional. How long to wait for the first retry. Default is 0, and the maximum value is 14d.", + "format": "google-duration", + "type": "string" } }, "type": "object" @@ -5681,6 +5747,21 @@ }, "type": "object" }, + "Rollback": { + "description": "Rolls back a `Rollout`.", + "id": "Rollback", + "properties": { + "destinationPhase": { + "description": "Optional. The starting phase ID for the `Rollout`. If unspecified, the `Rollout` will start in the stable phase.", + "type": "string" + }, + "disableRollbackIfRolloutPending": { + "description": "Optional. If pending rollout exists on the target, the rollback operation will be aborted.", + "type": "boolean" + } + }, + "type": "object" + }, "RollbackAttempt": { "description": "RollbackAttempt represents an action of rolling back a Cloud Deploy 'Target'.", "id": "RollbackAttempt", @@ -5690,6 +5771,11 @@ "readOnly": true, "type": "string" }, + "disableRollbackIfRolloutPending": { + "description": "Output only. If active rollout exists on the target, abort this rollback.", + "readOnly": true, + "type": "boolean" + }, "rolloutId": { "description": "Output only. ID of the rollback `Rollout` to create.", "readOnly": true, @@ -5794,6 +5880,11 @@ "description": "A `Rollout` resource in the Cloud Deploy API. A `Rollout` contains information around a specific deployment to a `Target`.", "id": "Rollout", "properties": { + "activeRepairAutomationRun": { + "description": "Output only. The AutomationRun actively repairing the rollout.", + "readOnly": true, + "type": "string" + }, "annotations": { "additionalProperties": { "type": "string" @@ -6640,7 +6731,7 @@ "type": "object" }, "TargetAttribute": { - "description": "Contains criteria for selecting Targets.", + "description": "Contains criteria for selecting Targets. This could be used to select targets for a Deploy Policy or for an Automation.", "id": "TargetAttribute", "properties": { "id": { @@ -6887,7 +6978,7 @@ "type": "object" }, "TimeWindows": { - "description": "Time windows within which actions are restricted.", + "description": "Time windows within which actions are restricted. See the [documentation](https://cloud.google.com/deploy/docs/deploy-policy#dates_times) for more information on how to configure dates/times.", "id": "TimeWindows", "properties": { "oneTimeWindows": { diff --git a/clouddeploy/v1/clouddeploy-gen.go b/clouddeploy/v1/clouddeploy-gen.go index 5e847ed38c0..81649426fd9 100644 --- a/clouddeploy/v1/clouddeploy-gen.go +++ b/clouddeploy/v1/clouddeploy-gen.go @@ -822,7 +822,7 @@ type AutomationRun struct { // }/automationRuns/{automation_run}`. Name string `json:"name,omitempty"` // PolicyViolation: Output only. Contains information about what policies - // prevented the `AutomationRun` to proceed. + // prevented the `AutomationRun` from proceeding. PolicyViolation *PolicyViolation `json:"policyViolation,omitempty"` // PromoteReleaseOperation: Output only. Promotes a release to a specified // 'Target'. @@ -1946,7 +1946,7 @@ func (s DeployParameters) MarshalJSON() ([]byte, error) { } // DeployPolicy: A `DeployPolicy` resource in the Cloud Deploy API. A -// `DeployPolicy` inhibits manual or automation driven actions within a +// `DeployPolicy` inhibits manual or automation-driven actions within a // Delivery Pipeline or Target. type DeployPolicy struct { // Annotations: User annotations. These attributes can only be set and used by @@ -4083,9 +4083,36 @@ func (s RepairPhase) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// RepairPhaseConfig: Configuration of the repair phase. +type RepairPhaseConfig struct { + // Retry: Optional. Retries a failed job. + Retry *Retry `json:"retry,omitempty"` + // Rollback: Optional. Rolls back a `Rollout`. + Rollback *Rollback `json:"rollback,omitempty"` + // ForceSendFields is a list of field names (e.g. "Retry") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Retry") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s RepairPhaseConfig) MarshalJSON() ([]byte, error) { + type NoMethod RepairPhaseConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // RepairRolloutOperation: Contains the information for an automated `repair // rollout` operation. type RepairRolloutOperation struct { + // CurrentRepairPhaseIndex: Output only. The index of the current repair action + // in the repair sequence. + CurrentRepairPhaseIndex int64 `json:"currentRepairPhaseIndex,omitempty,string"` // JobId: Output only. The job ID for the Job to repair. JobId string `json:"jobId,omitempty"` // PhaseId: Output only. The phase ID of the phase that includes the job being @@ -4097,15 +4124,15 @@ type RepairRolloutOperation struct { // Rollout: Output only. The name of the rollout that initiates the // `AutomationRun`. Rollout string `json:"rollout,omitempty"` - // ForceSendFields is a list of field names (e.g. "JobId") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See + // ForceSendFields is a list of field names (e.g. "CurrentRepairPhaseIndex") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "JobId") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "CurrentRepairPhaseIndex") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -4133,6 +4160,16 @@ type RepairRolloutRule struct { // characters. In other words, it must match the following regex: `^a-z // ([a-z0-9-]{0,61}[a-z0-9])?$`. Jobs []string `json:"jobs,omitempty"` + // Phases: Optional. Phases within which jobs are subject to automatic repair + // actions on failure. Proceeds only after phase name matched any one in the + // list, or for all phases if unspecified. This value must consist of + // lower-case letters, numbers, and hyphens, start with a letter and end with a + // letter or a number, and have a max length of 63 characters. In other words, + // it must match the following regex: `^a-z ([a-z0-9-]{0,61}[a-z0-9])?$`. + Phases []string `json:"phases,omitempty"` + // RepairPhases: Required. Defines the types of automatic repair phases for + // failed jobs. + RepairPhases []*RepairPhaseConfig `json:"repairPhases,omitempty"` // ForceSendFields is a list of field names (e.g. "Condition") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -4151,6 +4188,40 @@ func (s RepairRolloutRule) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// Retry: Retries the failed job. +type Retry struct { + // Attempts: Required. Total number of retries. Retry is skipped if set to 0; + // The minimum value is 1, and the maximum value is 10. + Attempts int64 `json:"attempts,omitempty,string"` + // BackoffMode: Optional. The pattern of how wait time will be increased. + // Default is linear. Backoff mode will be ignored if `wait` is 0. + // + // Possible values: + // "BACKOFF_MODE_UNSPECIFIED" - No WaitMode is specified. + // "BACKOFF_MODE_LINEAR" - Increases the wait time linearly. + // "BACKOFF_MODE_EXPONENTIAL" - Increases the wait time exponentially. + BackoffMode string `json:"backoffMode,omitempty"` + // Wait: Optional. How long to wait for the first retry. Default is 0, and the + // maximum value is 14d. + Wait string `json:"wait,omitempty"` + // ForceSendFields is a list of field names (e.g. "Attempts") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Attempts") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s Retry) MarshalJSON() ([]byte, error) { + type NoMethod Retry + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // RetryAttempt: RetryAttempt represents an action of retrying the failed Cloud // Deploy job. type RetryAttempt struct { @@ -4255,12 +4326,41 @@ func (s RetryPhase) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// Rollback: Rolls back a `Rollout`. +type Rollback struct { + // DestinationPhase: Optional. The starting phase ID for the `Rollout`. If + // unspecified, the `Rollout` will start in the stable phase. + DestinationPhase string `json:"destinationPhase,omitempty"` + // DisableRollbackIfRolloutPending: Optional. If pending rollout exists on the + // target, the rollback operation will be aborted. + DisableRollbackIfRolloutPending bool `json:"disableRollbackIfRolloutPending,omitempty"` + // ForceSendFields is a list of field names (e.g. "DestinationPhase") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "DestinationPhase") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s Rollback) MarshalJSON() ([]byte, error) { + type NoMethod Rollback + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // RollbackAttempt: RollbackAttempt represents an action of rolling back a // Cloud Deploy 'Target'. type RollbackAttempt struct { // DestinationPhase: Output only. The phase to which the rollout will be rolled // back to. DestinationPhase string `json:"destinationPhase,omitempty"` + // DisableRollbackIfRolloutPending: Output only. If active rollout exists on + // the target, abort this rollback. + DisableRollbackIfRolloutPending bool `json:"disableRollbackIfRolloutPending,omitempty"` // RolloutId: Output only. ID of the rollback `Rollout` to create. RolloutId string `json:"rolloutId,omitempty"` // State: Output only. Valid state of this rollback action. @@ -4387,6 +4487,9 @@ func (s RollbackTargetResponse) MarshalJSON() ([]byte, error) { // Rollout: A `Rollout` resource in the Cloud Deploy API. A `Rollout` contains // information around a specific deployment to a `Target`. type Rollout struct { + // ActiveRepairAutomationRun: Output only. The AutomationRun actively repairing + // the rollout. + ActiveRepairAutomationRun string `json:"activeRepairAutomationRun,omitempty"` // Annotations: User annotations. These attributes can only be set and used by // the user, and not by Cloud Deploy. See // https://google.aip.dev/128#annotations for more details such as format and @@ -4501,15 +4604,15 @@ type Rollout struct { // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Annotations") to - // unconditionally include in API requests. By default, fields with empty or + // ForceSendFields is a list of field names (e.g. "ActiveRepairAutomationRun") + // to unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Annotations") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "ActiveRepairAutomationRun") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -5220,7 +5323,8 @@ func (s TargetArtifact) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// TargetAttribute: Contains criteria for selecting Targets. +// TargetAttribute: Contains criteria for selecting Targets. This could be used +// to select targets for a Deploy Policy or for an Automation. type TargetAttribute struct { // Id: ID of the `Target`. The value of this field could be one of the // following: * The last segment of a target name * "*", all targets in a @@ -5523,7 +5627,10 @@ func (s TimeOfDay) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// TimeWindows: Time windows within which actions are restricted. +// TimeWindows: Time windows within which actions are restricted. See the +// documentation +// (https://cloud.google.com/deploy/docs/deploy-policy#dates_times) for more +// information on how to configure dates/times. type TimeWindows struct { // OneTimeWindows: Optional. One-time windows within which actions are // restricted. diff --git a/cloudidentity/v1beta1/cloudidentity-api.json b/cloudidentity/v1beta1/cloudidentity-api.json index 7fb757cc14c..7d1ffd18351 100644 --- a/cloudidentity/v1beta1/cloudidentity-api.json +++ b/cloudidentity/v1beta1/cloudidentity-api.json @@ -2015,7 +2015,7 @@ } } }, - "revision": "20240924", + "revision": "20241001", "rootUrl": "https://cloudidentity.googleapis.com/", "schemas": { "AddIdpCredentialOperationMetadata": { @@ -4806,7 +4806,7 @@ "type": "object" }, "PosixGroup": { - "description": "POSIX Group definition to represent a group in a POSIX compliant system.", + "description": "POSIX Group definition to represent a group in a POSIX compliant system. Caution: POSIX groups are deprecated. As of September 26, 2024, you can no longer create new POSIX groups. For more information, see https://cloud.google.com/identity/docs/deprecations/posix-groups", "id": "PosixGroup", "properties": { "gid": { diff --git a/cloudidentity/v1beta1/cloudidentity-gen.go b/cloudidentity/v1beta1/cloudidentity-gen.go index 13de56ce183..689184df9d5 100644 --- a/cloudidentity/v1beta1/cloudidentity-gen.go +++ b/cloudidentity/v1beta1/cloudidentity-gen.go @@ -3485,7 +3485,9 @@ func (s OrgMembership) MarshalJSON() ([]byte, error) { } // PosixGroup: POSIX Group definition to represent a group in a POSIX compliant -// system. +// system. Caution: POSIX groups are deprecated. As of September 26, 2024, you +// can no longer create new POSIX groups. For more information, see +// https://cloud.google.com/identity/docs/deprecations/posix-groups type PosixGroup struct { // Gid: GID of the POSIX group. Gid uint64 `json:"gid,omitempty,string"` diff --git a/cloudkms/v1/cloudkms-api.json b/cloudkms/v1/cloudkms-api.json index 16cefdbde05..564d18634c3 100644 --- a/cloudkms/v1/cloudkms-api.json +++ b/cloudkms/v1/cloudkms-api.json @@ -880,7 +880,7 @@ "type": "string" }, "pageSize": { - "description": "Optional. Optional limit on the number of KeyHandles to include in the response. The service may return fewer than this value. Further KeyHandles can subsequently be obtained by including the ListKeyHandlesResponse.next_page_token in a subsequent request. If unspecified, at most KeyHandles 100 will be returned.", + "description": "Optional. Optional limit on the number of KeyHandles to include in the response. The service may return fewer than this value. Further KeyHandles can subsequently be obtained by including the ListKeyHandlesResponse.next_page_token in a subsequent request. If unspecified, at most 100 KeyHandles will be returned.", "format": "int32", "location": "query", "type": "integer" @@ -2132,7 +2132,7 @@ } } }, - "revision": "20240918", + "revision": "20240926", "rootUrl": "https://cloudkms.googleapis.com/", "schemas": { "AsymmetricDecryptRequest": { diff --git a/cloudkms/v1/cloudkms-gen.go b/cloudkms/v1/cloudkms-gen.go index 5194747f6cb..a12cc2e5d4d 100644 --- a/cloudkms/v1/cloudkms-gen.go +++ b/cloudkms/v1/cloudkms-gen.go @@ -5866,7 +5866,7 @@ func (c *ProjectsLocationsKeyHandlesListCall) Filter(filter string) *ProjectsLoc // number of KeyHandles to include in the response. The service may return // fewer than this value. Further KeyHandles can subsequently be obtained by // including the ListKeyHandlesResponse.next_page_token in a subsequent -// request. If unspecified, at most KeyHandles 100 will be returned. +// request. If unspecified, at most 100 KeyHandles will be returned. func (c *ProjectsLocationsKeyHandlesListCall) PageSize(pageSize int64) *ProjectsLocationsKeyHandlesListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c diff --git a/container/v1beta1/container-api.json b/container/v1beta1/container-api.json index 58895c6a91d..7eccfd84ea2 100644 --- a/container/v1beta1/container-api.json +++ b/container/v1beta1/container-api.json @@ -2565,7 +2565,7 @@ } } }, - "revision": "20240905", + "revision": "20240912", "rootUrl": "https://container.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -3602,6 +3602,10 @@ "readOnly": true, "type": "string" }, + "userManagedKeysConfig": { + "$ref": "UserManagedKeysConfig", + "description": "The Custom keys configuration for the cluster." + }, "verticalPodAutoscaling": { "$ref": "VerticalPodAutoscaling", "description": "Cluster-level Vertical Pod Autoscaling configuration." @@ -4038,6 +4042,10 @@ "removedAdditionalPodRangesConfig": { "$ref": "AdditionalPodRangesConfig", "description": "The additional pod ranges that are to be removed from the cluster. The pod ranges specified here must have been specified earlier in the 'additional_pod_ranges_config' argument." + }, + "userManagedKeysConfig": { + "$ref": "UserManagedKeysConfig", + "description": "The Custom keys configuration for the cluster." } }, "type": "object" @@ -5248,7 +5256,9 @@ "WORKLOADS", "APISERVER", "SCHEDULER", - "CONTROLLER_MANAGER" + "CONTROLLER_MANAGER", + "KCP_SSHD", + "KCP_CONNECTION" ], "enumDescriptions": [ "Default value. This shouldn't be used.", @@ -5256,7 +5266,9 @@ "workloads", "kube-apiserver", "kube-scheduler", - "kube-controller-manager" + "kube-controller-manager", + "kcp-sshd", + "kcp connection logs" ], "type": "string" }, @@ -5810,6 +5822,21 @@ "description": "Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or 'pd-balanced') If unspecified, the default disk type is 'pd-standard'", "type": "string" }, + "effectiveCgroupMode": { + "description": "Output only. effective_cgroup_mode is the cgroup mode actually used by the node pool. It is determined by the cgroup mode specified in the LinuxNodeConfig or the default cgroup mode based on the cluster creation version.", + "enum": [ + "EFFECTIVE_CGROUP_MODE_UNSPECIFIED", + "EFFECTIVE_CGROUP_MODE_V1", + "EFFECTIVE_CGROUP_MODE_V2" + ], + "enumDescriptions": [ + "EFFECTIVE_CGROUP_MODE_UNSPECIFIED means the cgroup configuration for the node pool is unspecified, i.e. the node pool is a Windows node pool.", + "CGROUP_MODE_V1 means the node pool is configured to use cgroupv1 for the cgroup configuration.", + "CGROUP_MODE_V2 means the node pool is configured to use cgroupv2 for the cgroup configuration." + ], + "readOnly": true, + "type": "string" + }, "enableConfidentialStorage": { "description": "Optional. Reserved for future use.", "type": "boolean" @@ -8402,6 +8429,51 @@ }, "type": "object" }, + "UserManagedKeysConfig": { + "description": "UserManagedKeysConfig holds the resource address to Keys which are used for signing certs and token that are used for communication within cluster.", + "id": "UserManagedKeysConfig", + "properties": { + "aggregationCa": { + "description": "The Certificate Authority Service caPool to use for the aggregation CA in this cluster.", + "type": "string" + }, + "clusterCa": { + "description": "The Certificate Authority Service caPool to use for the cluster CA in this cluster.", + "type": "string" + }, + "controlPlaneDiskEncryptionKey": { + "description": "The Cloud KMS cryptoKey to use for Confidential Hyperdisk on the control plane nodes.", + "type": "string" + }, + "etcdApiCa": { + "description": "Resource path of the Certificate Authority Service caPool to use for the etcd API CA in this cluster.", + "type": "string" + }, + "etcdPeerCa": { + "description": "Resource path of the Certificate Authority Service caPool to use for the etcd peer CA in this cluster.", + "type": "string" + }, + "gkeopsEtcdBackupEncryptionKey": { + "description": "Resource path of the Cloud KMS cryptoKey to use for encryption of internal etcd backups.", + "type": "string" + }, + "serviceAccountSigningKeys": { + "description": "The Cloud KMS cryptoKeyVersions to use for signing service account JWTs issued by this cluster. Format: `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}`", + "items": { + "type": "string" + }, + "type": "array" + }, + "serviceAccountVerificationKeys": { + "description": "The Cloud KMS cryptoKeyVersions to use for verifying service account JWTs issued by this cluster. Format: `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}`", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "VerticalPodAutoscaling": { "description": "VerticalPodAutoscaling contains global, per-cluster information required by Vertical Pod Autoscaler to automatically adjust the resources of pods controlled by it.", "id": "VerticalPodAutoscaling", diff --git a/container/v1beta1/container-gen.go b/container/v1beta1/container-gen.go index d3cb1e4bb00..d34be03239b 100644 --- a/container/v1beta1/container-gen.go +++ b/container/v1beta1/container-gen.go @@ -1447,6 +1447,8 @@ type Cluster struct { // (http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g. // `1.2.3.4/29`). TpuIpv4CidrBlock string `json:"tpuIpv4CidrBlock,omitempty"` + // UserManagedKeysConfig: The Custom keys configuration for the cluster. + UserManagedKeysConfig *UserManagedKeysConfig `json:"userManagedKeysConfig,omitempty"` // VerticalPodAutoscaling: Cluster-level Vertical Pod Autoscaling // configuration. VerticalPodAutoscaling *VerticalPodAutoscaling `json:"verticalPodAutoscaling,omitempty"` @@ -1839,6 +1841,8 @@ type ClusterUpdate struct { // removed from the cluster. The pod ranges specified here must have been // specified earlier in the 'additional_pod_ranges_config' argument. RemovedAdditionalPodRangesConfig *AdditionalPodRangesConfig `json:"removedAdditionalPodRangesConfig,omitempty"` + // UserManagedKeysConfig: The Custom keys configuration for the cluster. + UserManagedKeysConfig *UserManagedKeysConfig `json:"userManagedKeysConfig,omitempty"` // ForceSendFields is a list of field names (e.g. "AdditionalPodRangesConfig") // to unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -3650,6 +3654,8 @@ type LoggingComponentConfig struct { // "APISERVER" - kube-apiserver // "SCHEDULER" - kube-scheduler // "CONTROLLER_MANAGER" - kube-controller-manager + // "KCP_SSHD" - kcp-sshd + // "KCP_CONNECTION" - kcp connection logs EnableComponents []string `json:"enableComponents,omitempty"` // ForceSendFields is a list of field names (e.g. "EnableComponents") to // unconditionally include in API requests. By default, fields with empty or @@ -4352,6 +4358,20 @@ type NodeConfig struct { // 'pd-ssd' or 'pd-balanced') If unspecified, the default disk type is // 'pd-standard' DiskType string `json:"diskType,omitempty"` + // EffectiveCgroupMode: Output only. effective_cgroup_mode is the cgroup mode + // actually used by the node pool. It is determined by the cgroup mode + // specified in the LinuxNodeConfig or the default cgroup mode based on the + // cluster creation version. + // + // Possible values: + // "EFFECTIVE_CGROUP_MODE_UNSPECIFIED" - EFFECTIVE_CGROUP_MODE_UNSPECIFIED + // means the cgroup configuration for the node pool is unspecified, i.e. the + // node pool is a Windows node pool. + // "EFFECTIVE_CGROUP_MODE_V1" - CGROUP_MODE_V1 means the node pool is + // configured to use cgroupv1 for the cgroup configuration. + // "EFFECTIVE_CGROUP_MODE_V2" - CGROUP_MODE_V2 means the node pool is + // configured to use cgroupv2 for the cgroup configuration. + EffectiveCgroupMode string `json:"effectiveCgroupMode,omitempty"` // EnableConfidentialStorage: Optional. Reserved for future use. EnableConfidentialStorage bool `json:"enableConfidentialStorage,omitempty"` // EphemeralStorageConfig: Parameters for the ephemeral storage filesystem. If @@ -7689,6 +7709,56 @@ func (s UsableSubnetworkSecondaryRange) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// UserManagedKeysConfig: UserManagedKeysConfig holds the resource address to +// Keys which are used for signing certs and token that are used for +// communication within cluster. +type UserManagedKeysConfig struct { + // AggregationCa: The Certificate Authority Service caPool to use for the + // aggregation CA in this cluster. + AggregationCa string `json:"aggregationCa,omitempty"` + // ClusterCa: The Certificate Authority Service caPool to use for the cluster + // CA in this cluster. + ClusterCa string `json:"clusterCa,omitempty"` + // ControlPlaneDiskEncryptionKey: The Cloud KMS cryptoKey to use for + // Confidential Hyperdisk on the control plane nodes. + ControlPlaneDiskEncryptionKey string `json:"controlPlaneDiskEncryptionKey,omitempty"` + // EtcdApiCa: Resource path of the Certificate Authority Service caPool to use + // for the etcd API CA in this cluster. + EtcdApiCa string `json:"etcdApiCa,omitempty"` + // EtcdPeerCa: Resource path of the Certificate Authority Service caPool to use + // for the etcd peer CA in this cluster. + EtcdPeerCa string `json:"etcdPeerCa,omitempty"` + // GkeopsEtcdBackupEncryptionKey: Resource path of the Cloud KMS cryptoKey to + // use for encryption of internal etcd backups. + GkeopsEtcdBackupEncryptionKey string `json:"gkeopsEtcdBackupEncryptionKey,omitempty"` + // ServiceAccountSigningKeys: The Cloud KMS cryptoKeyVersions to use for + // signing service account JWTs issued by this cluster. Format: + // `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{crypt + // oKey}/cryptoKeyVersions/{cryptoKeyVersion}` + ServiceAccountSigningKeys []string `json:"serviceAccountSigningKeys,omitempty"` + // ServiceAccountVerificationKeys: The Cloud KMS cryptoKeyVersions to use for + // verifying service account JWTs issued by this cluster. Format: + // `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{crypt + // oKey}/cryptoKeyVersions/{cryptoKeyVersion}` + ServiceAccountVerificationKeys []string `json:"serviceAccountVerificationKeys,omitempty"` + // ForceSendFields is a list of field names (e.g. "AggregationCa") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AggregationCa") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s UserManagedKeysConfig) MarshalJSON() ([]byte, error) { + type NoMethod UserManagedKeysConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // VerticalPodAutoscaling: VerticalPodAutoscaling contains global, per-cluster // information required by Vertical Pod Autoscaler to automatically adjust the // resources of pods controlled by it. diff --git a/dataproc/v1/dataproc-api.json b/dataproc/v1/dataproc-api.json index 5d5ba867ba5..03af01be480 100644 --- a/dataproc/v1/dataproc-api.json +++ b/dataproc/v1/dataproc-api.json @@ -31,6 +31,61 @@ "endpointUrl": "https://dataproc.us-central1.rep.googleapis.com/", "location": "us-central1" }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://dataproc.us-central2.rep.googleapis.com/", + "location": "us-central2" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://dataproc.us-east1.rep.googleapis.com/", + "location": "us-east1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://dataproc.us-east4.rep.googleapis.com/", + "location": "us-east4" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://dataproc.us-east5.rep.googleapis.com/", + "location": "us-east5" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://dataproc.us-east7.rep.googleapis.com/", + "location": "us-east7" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://dataproc.us-south1.rep.googleapis.com/", + "location": "us-south1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://dataproc.us-west1.rep.googleapis.com/", + "location": "us-west1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://dataproc.us-west2.rep.googleapis.com/", + "location": "us-west2" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://dataproc.us-west3.rep.googleapis.com/", + "location": "us-west3" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://dataproc.us-west8.rep.googleapis.com/", + "location": "us-west8" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://dataproc.europe-west8.rep.googleapis.com/", + "location": "europe-west8" + }, { "description": "Regional Endpoint", "endpointUrl": "https://dataproc.me-central2.rep.googleapis.com/", @@ -525,795 +580,1094 @@ "https://www.googleapis.com/auth/cloud-platform" ] } - } - }, - "operations": { - "methods": { - "cancel": { - "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", - "httpMethod": "POST", - "id": "dataproc.projects.locations.operations.cancel", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the operation resource to be cancelled.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}:cancel", - "response": { - "$ref": "Empty" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "delete": { - "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", - "httpMethod": "DELETE", - "id": "dataproc.projects.locations.operations.delete", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the operation resource to be deleted.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "Empty" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "get": { - "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", - "httpMethod": "GET", - "id": "dataproc.projects.locations.operations.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the operation resource.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "list": { - "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations", - "httpMethod": "GET", - "id": "dataproc.projects.locations.operations.list", - "parameterOrder": [ - "name" - ], - "parameters": { - "filter": { - "description": "The standard list filter.", - "location": "query", - "type": "string" + }, + "resources": { + "sparkApplications": { + "methods": { + "access": { + "description": "Obtain high level information corresponding to a single Spark Application.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/batches/{batchesId}/sparkApplications/{sparkApplicationsId}:access", + "httpMethod": "GET", + "id": "dataproc.projects.locations.batches.sparkApplications.access", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The fully qualified name of the batch to retrieve in the format \"projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICATION_ID\"", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/batches/[^/]+/sparkApplications/[^/]+$", + "required": true, + "type": "string" + }, + "parent": { + "description": "Required. Parent (Batch) resource reference.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}:access", + "response": { + "$ref": "AccessSparkApplicationResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] }, - "name": { - "description": "The name of the operation's parent resource.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/operations$", - "required": true, - "type": "string" + "accessEnvironmentInfo": { + "description": "Obtain environment details for a Spark Application", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/batches/{batchesId}/sparkApplications/{sparkApplicationsId}:accessEnvironmentInfo", + "httpMethod": "GET", + "id": "dataproc.projects.locations.batches.sparkApplications.accessEnvironmentInfo", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The fully qualified name of the batch to retrieve in the format \"projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICATION_ID\"", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/batches/[^/]+/sparkApplications/[^/]+$", + "required": true, + "type": "string" + }, + "parent": { + "description": "Required. Parent (Batch) resource reference.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}:accessEnvironmentInfo", + "response": { + "$ref": "AccessSparkApplicationEnvironmentInfoResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] }, - "pageSize": { - "description": "The standard list page size.", - "format": "int32", - "location": "query", - "type": "integer" + "accessJob": { + "description": "Obtain data corresponding to a spark job for a Spark Application.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/batches/{batchesId}/sparkApplications/{sparkApplicationsId}:accessJob", + "httpMethod": "GET", + "id": "dataproc.projects.locations.batches.sparkApplications.accessJob", + "parameterOrder": [ + "name" + ], + "parameters": { + "jobId": { + "description": "Required. Job ID to fetch data for.", + "format": "int64", + "location": "query", + "type": "string" + }, + "name": { + "description": "Required. The fully qualified name of the batch to retrieve in the format \"projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICATION_ID\"", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/batches/[^/]+/sparkApplications/[^/]+$", + "required": true, + "type": "string" + }, + "parent": { + "description": "Required. Parent (Batch) resource reference.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}:accessJob", + "response": { + "$ref": "AccessSparkApplicationJobResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] }, - "pageToken": { - "description": "The standard list page token.", - "location": "query", - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "ListOperationsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } - }, - "sessionTemplates": { - "methods": { - "create": { - "description": "Create a session template synchronously.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sessionTemplates", - "httpMethod": "POST", - "id": "dataproc.projects.locations.sessionTemplates.create", - "parameterOrder": [ - "parent" - ], - "parameters": { - "parent": { - "description": "Required. The parent resource where this session template will be created.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}/sessionTemplates", - "request": { - "$ref": "SessionTemplate" - }, - "response": { - "$ref": "SessionTemplate" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "delete": { - "description": "Deletes a session template.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sessionTemplates/{sessionTemplatesId}", - "httpMethod": "DELETE", - "id": "dataproc.projects.locations.sessionTemplates.delete", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The name of the session template resource to delete.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/sessionTemplates/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "Empty" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "get": { - "description": "Gets the resource representation for a session template.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sessionTemplates/{sessionTemplatesId}", - "httpMethod": "GET", - "id": "dataproc.projects.locations.sessionTemplates.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The name of the session template to retrieve.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/sessionTemplates/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "SessionTemplate" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "list": { - "description": "Lists session templates.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sessionTemplates", - "httpMethod": "GET", - "id": "dataproc.projects.locations.sessionTemplates.list", - "parameterOrder": [ - "parent" - ], - "parameters": { - "filter": { - "description": "Optional. A filter for the session templates to return in the response. Filters are case sensitive and have the following syntax:field = value AND field = value ...", - "location": "query", - "type": "string" - }, - "pageSize": { - "description": "Optional. The maximum number of sessions to return in each response. The service may return fewer than this value.", - "format": "int32", - "location": "query", - "type": "integer" + "accessSqlPlan": { + "description": "Obtain Spark Plan Graph for a Spark Application SQL execution. Limits the number of clusters returned as part of the graph to 10000.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/batches/{batchesId}/sparkApplications/{sparkApplicationsId}:accessSqlPlan", + "httpMethod": "GET", + "id": "dataproc.projects.locations.batches.sparkApplications.accessSqlPlan", + "parameterOrder": [ + "name" + ], + "parameters": { + "executionId": { + "description": "Required. Execution ID", + "format": "int64", + "location": "query", + "type": "string" + }, + "name": { + "description": "Required. The fully qualified name of the batch to retrieve in the format \"projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICATION_ID\"", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/batches/[^/]+/sparkApplications/[^/]+$", + "required": true, + "type": "string" + }, + "parent": { + "description": "Required. Parent (Batch) resource reference.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}:accessSqlPlan", + "response": { + "$ref": "AccessSparkApplicationSqlSparkPlanGraphResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] }, - "pageToken": { - "description": "Optional. A page token received from a previous ListSessions call. Provide this token to retrieve the subsequent page.", - "location": "query", - "type": "string" + "accessSqlQuery": { + "description": "Obtain data corresponding to a particular SQL Query for a Spark Application.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/batches/{batchesId}/sparkApplications/{sparkApplicationsId}:accessSqlQuery", + "httpMethod": "GET", + "id": "dataproc.projects.locations.batches.sparkApplications.accessSqlQuery", + "parameterOrder": [ + "name" + ], + "parameters": { + "details": { + "description": "Optional. Lists/ hides details of Spark plan nodes. True is set to list and false to hide.", + "location": "query", + "type": "boolean" + }, + "executionId": { + "description": "Required. Execution ID", + "format": "int64", + "location": "query", + "type": "string" + }, + "name": { + "description": "Required. The fully qualified name of the batch to retrieve in the format \"projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICATION_ID\"", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/batches/[^/]+/sparkApplications/[^/]+$", + "required": true, + "type": "string" + }, + "parent": { + "description": "Required. Parent (Batch) resource reference.", + "location": "query", + "type": "string" + }, + "planDescription": { + "description": "Optional. Enables/ disables physical plan description on demand", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+name}:accessSqlQuery", + "response": { + "$ref": "AccessSparkApplicationSqlQueryResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] }, - "parent": { - "description": "Required. The parent that owns this collection of session templates.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}/sessionTemplates", - "response": { - "$ref": "ListSessionTemplatesResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "patch": { - "description": "Updates the session template synchronously.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sessionTemplates/{sessionTemplatesId}", - "httpMethod": "PATCH", - "id": "dataproc.projects.locations.sessionTemplates.patch", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The resource name of the session template.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/sessionTemplates/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}", - "request": { - "$ref": "SessionTemplate" - }, - "response": { - "$ref": "SessionTemplate" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } - }, - "sessions": { - "methods": { - "create": { - "description": "Create an interactive session asynchronously.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sessions", - "httpMethod": "POST", - "id": "dataproc.projects.locations.sessions.create", - "parameterOrder": [ - "parent" - ], - "parameters": { - "parent": { - "description": "Required. The parent resource where this session will be created.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" + "accessStageAttempt": { + "description": "Obtain data corresponding to a spark stage attempt for a Spark Application.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/batches/{batchesId}/sparkApplications/{sparkApplicationsId}:accessStageAttempt", + "httpMethod": "GET", + "id": "dataproc.projects.locations.batches.sparkApplications.accessStageAttempt", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The fully qualified name of the batch to retrieve in the format \"projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICATION_ID\"", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/batches/[^/]+/sparkApplications/[^/]+$", + "required": true, + "type": "string" + }, + "parent": { + "description": "Required. Parent (Batch) resource reference.", + "location": "query", + "type": "string" + }, + "stageAttemptId": { + "description": "Required. Stage Attempt ID", + "format": "int32", + "location": "query", + "type": "integer" + }, + "stageId": { + "description": "Required. Stage ID", + "format": "int64", + "location": "query", + "type": "string" + }, + "summaryMetricsMask": { + "description": "Optional. The list of summary metrics fields to include. Empty list will default to skip all summary metrics fields. Example, if the response should include TaskQuantileMetrics, the request should have task_quantile_metrics in summary_metrics_mask field", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}:accessStageAttempt", + "response": { + "$ref": "AccessSparkApplicationStageAttemptResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] }, - "requestId": { - "description": "Optional. A unique ID used to identify the request. If the service receives two CreateSessionRequests (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateSessionRequest)s with the same ID, the second request is ignored, and the first Session is created and stored in the backend.Recommendation: Set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The value must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", - "location": "query", - "type": "string" + "accessStageRddGraph": { + "description": "Obtain RDD operation graph for a Spark Application Stage. Limits the number of clusters returned as part of the graph to 10000.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/batches/{batchesId}/sparkApplications/{sparkApplicationsId}:accessStageRddGraph", + "httpMethod": "GET", + "id": "dataproc.projects.locations.batches.sparkApplications.accessStageRddGraph", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The fully qualified name of the batch to retrieve in the format \"projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICATION_ID\"", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/batches/[^/]+/sparkApplications/[^/]+$", + "required": true, + "type": "string" + }, + "parent": { + "description": "Required. Parent (Batch) resource reference.", + "location": "query", + "type": "string" + }, + "stageId": { + "description": "Required. Stage ID", + "format": "int64", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}:accessStageRddGraph", + "response": { + "$ref": "AccessSparkApplicationStageRddOperationGraphResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] }, - "sessionId": { - "description": "Required. The ID to use for the session, which becomes the final component of the session's resource name.This value must be 4-63 characters. Valid characters are /a-z-/.", - "location": "query", - "type": "string" - } - }, - "path": "v1/{+parent}/sessions", - "request": { - "$ref": "Session" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "delete": { - "description": "Deletes the interactive session resource. If the session is not in terminal state, it is terminated, and then deleted.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sessions/{sessionsId}", - "httpMethod": "DELETE", - "id": "dataproc.projects.locations.sessions.delete", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The name of the session resource to delete.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/sessions/[^/]+$", - "required": true, - "type": "string" + "search": { + "description": "Obtain high level information and list of Spark Applications corresponding to a batch", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/batches/{batchesId}/sparkApplications:search", + "httpMethod": "GET", + "id": "dataproc.projects.locations.batches.sparkApplications.search", + "parameterOrder": [ + "parent" + ], + "parameters": { + "applicationStatus": { + "description": "Optional. Search only applications in the chosen state.", + "enum": [ + "APPLICATION_STATUS_UNSPECIFIED", + "APPLICATION_STATUS_RUNNING", + "APPLICATION_STATUS_COMPLETED" + ], + "enumDescriptions": [ + "", + "", + "" + ], + "location": "query", + "type": "string" + }, + "maxEndTime": { + "description": "Optional. Latest end timestamp to list.", + "format": "google-datetime", + "location": "query", + "type": "string" + }, + "maxTime": { + "description": "Optional. Latest start timestamp to list.", + "format": "google-datetime", + "location": "query", + "type": "string" + }, + "minEndTime": { + "description": "Optional. Earliest end timestamp to list.", + "format": "google-datetime", + "location": "query", + "type": "string" + }, + "minTime": { + "description": "Optional. Earliest start timestamp to list.", + "format": "google-datetime", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. Maximum number of applications to return in each response. The service may return fewer than this. The default page size is 10; the maximum page size is 100.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token received from a previous SearchSparkApplications call. Provide this token to retrieve the subsequent page.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The fully qualified name of the batch to retrieve in the format \"projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID\"", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/batches/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/sparkApplications:search", + "response": { + "$ref": "SearchSparkApplicationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] }, - "requestId": { - "description": "Optional. A unique ID used to identify the request. If the service receives two DeleteSessionRequest (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.DeleteSessionRequest)s with the same ID, the second request is ignored.Recommendation: Set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The value must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", - "location": "query", - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "get": { - "description": "Gets the resource representation for an interactive session.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sessions/{sessionsId}", - "httpMethod": "GET", - "id": "dataproc.projects.locations.sessions.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The name of the session to retrieve.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/sessions/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "Session" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "list": { - "description": "Lists interactive sessions.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sessions", - "httpMethod": "GET", - "id": "dataproc.projects.locations.sessions.list", - "parameterOrder": [ - "parent" - ], - "parameters": { - "filter": { - "description": "Optional. A filter for the sessions to return in the response.A filter is a logical expression constraining the values of various fields in each session resource. Filters are case sensitive, and may contain multiple clauses combined with logical operators (AND, OR). Supported fields are session_id, session_uuid, state, create_time, and labels.Example: state = ACTIVE and create_time \u003c \"2023-01-01T00:00:00Z\" is a filter for sessions in an ACTIVE state that were created before 2023-01-01. state = ACTIVE and labels.environment=production is a filter for sessions in an ACTIVE state that have a production environment label.See https://google.aip.dev/assets/misc/ebnf-filtering.txt for a detailed description of the filter syntax and a list of supported comparators.", - "location": "query", - "type": "string" + "searchExecutorStageSummary": { + "description": "Obtain executor summary with respect to a spark stage attempt.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/batches/{batchesId}/sparkApplications/{sparkApplicationsId}:searchExecutorStageSummary", + "httpMethod": "GET", + "id": "dataproc.projects.locations.batches.sparkApplications.searchExecutorStageSummary", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The fully qualified name of the batch to retrieve in the format \"projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICATION_ID\"", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/batches/[^/]+/sparkApplications/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "Optional. Maximum number of executors to return in each response. The service may return fewer than this. The default page size is 10; the maximum page size is 100.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token received from a previous AccessSparkApplicationExecutorsList call. Provide this token to retrieve the subsequent page.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Parent (Batch) resource reference.", + "location": "query", + "type": "string" + }, + "stageAttemptId": { + "description": "Required. Stage Attempt ID", + "format": "int32", + "location": "query", + "type": "integer" + }, + "stageId": { + "description": "Required. Stage ID", + "format": "int64", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}:searchExecutorStageSummary", + "response": { + "$ref": "SearchSparkApplicationExecutorStageSummaryResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] }, - "pageSize": { - "description": "Optional. The maximum number of sessions to return in each response. The service may return fewer than this value.", - "format": "int32", - "location": "query", - "type": "integer" + "searchExecutors": { + "description": "Obtain data corresponding to executors for a Spark Application.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/batches/{batchesId}/sparkApplications/{sparkApplicationsId}:searchExecutors", + "httpMethod": "GET", + "id": "dataproc.projects.locations.batches.sparkApplications.searchExecutors", + "parameterOrder": [ + "name" + ], + "parameters": { + "executorStatus": { + "description": "Optional. Filter to select whether active/ dead or all executors should be selected.", + "enum": [ + "EXECUTOR_STATUS_UNSPECIFIED", + "EXECUTOR_STATUS_ACTIVE", + "EXECUTOR_STATUS_DEAD" + ], + "enumDescriptions": [ + "", + "", + "" + ], + "location": "query", + "type": "string" + }, + "name": { + "description": "Required. The fully qualified name of the batch to retrieve in the format \"projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICATION_ID\"", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/batches/[^/]+/sparkApplications/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "Optional. Maximum number of executors to return in each response. The service may return fewer than this. The default page size is 10; the maximum page size is 100.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token received from a previous AccessSparkApplicationExecutorsList call. Provide this token to retrieve the subsequent page.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Parent (Batch) resource reference.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}:searchExecutors", + "response": { + "$ref": "SearchSparkApplicationExecutorsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] }, - "pageToken": { - "description": "Optional. A page token received from a previous ListSessions call. Provide this token to retrieve the subsequent page.", - "location": "query", - "type": "string" + "searchJobs": { + "description": "Obtain list of spark jobs corresponding to a Spark Application.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/batches/{batchesId}/sparkApplications/{sparkApplicationsId}:searchJobs", + "httpMethod": "GET", + "id": "dataproc.projects.locations.batches.sparkApplications.searchJobs", + "parameterOrder": [ + "name" + ], + "parameters": { + "jobStatus": { + "description": "Optional. List only jobs in the specific state.", + "enum": [ + "JOB_EXECUTION_STATUS_UNSPECIFIED", + "JOB_EXECUTION_STATUS_RUNNING", + "JOB_EXECUTION_STATUS_SUCCEEDED", + "JOB_EXECUTION_STATUS_FAILED", + "JOB_EXECUTION_STATUS_UNKNOWN" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "" + ], + "location": "query", + "type": "string" + }, + "name": { + "description": "Required. The fully qualified name of the batch to retrieve in the format \"projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICATION_ID\"", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/batches/[^/]+/sparkApplications/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "Optional. Maximum number of jobs to return in each response. The service may return fewer than this. The default page size is 10; the maximum page size is 100.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token received from a previous SearchSparkApplicationJobs call. Provide this token to retrieve the subsequent page.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Parent (Batch) resource reference.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}:searchJobs", + "response": { + "$ref": "SearchSparkApplicationJobsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] }, - "parent": { - "description": "Required. The parent, which owns this collection of sessions.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}/sessions", - "response": { - "$ref": "ListSessionsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "terminate": { - "description": "Terminates the interactive session.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sessions/{sessionsId}:terminate", - "httpMethod": "POST", - "id": "dataproc.projects.locations.sessions.terminate", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The name of the session resource to terminate.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/sessions/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}:terminate", - "request": { - "$ref": "TerminateSessionRequest" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } - }, - "workflowTemplates": { - "methods": { - "create": { - "description": "Creates new workflow template.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workflowTemplates", - "httpMethod": "POST", - "id": "dataproc.projects.locations.workflowTemplates.create", - "parameterOrder": [ - "parent" - ], - "parameters": { - "parent": { - "description": "Required. The resource name of the region or location, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates.create, the resource name of the region has the following format: projects/{project_id}/regions/{region} For projects.locations.workflowTemplates.create, the resource name of the location has the following format: projects/{project_id}/locations/{location}", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}/workflowTemplates", - "request": { - "$ref": "WorkflowTemplate" - }, - "response": { - "$ref": "WorkflowTemplate" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "delete": { - "description": "Deletes a workflow template. It does not cancel in-progress workflows.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workflowTemplates/{workflowTemplatesId}", - "httpMethod": "DELETE", - "id": "dataproc.projects.locations.workflowTemplates.delete", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates.delete, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id} For projects.locations.workflowTemplates.instantiate, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id}", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/workflowTemplates/[^/]+$", - "required": true, - "type": "string" + "searchSqlQueries": { + "description": "Obtain data corresponding to SQL Queries for a Spark Application.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/batches/{batchesId}/sparkApplications/{sparkApplicationsId}:searchSqlQueries", + "httpMethod": "GET", + "id": "dataproc.projects.locations.batches.sparkApplications.searchSqlQueries", + "parameterOrder": [ + "name" + ], + "parameters": { + "details": { + "description": "Optional. Lists/ hides details of Spark plan nodes. True is set to list and false to hide.", + "location": "query", + "type": "boolean" + }, + "name": { + "description": "Required. The fully qualified name of the batch to retrieve in the format \"projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICATION_ID\"", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/batches/[^/]+/sparkApplications/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "Optional. Maximum number of queries to return in each response. The service may return fewer than this. The default page size is 10; the maximum page size is 100.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token received from a previous SearchSparkApplicationSqlQueries call. Provide this token to retrieve the subsequent page.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Parent (Batch) resource reference.", + "location": "query", + "type": "string" + }, + "planDescription": { + "description": "Optional. Enables/ disables physical plan description on demand", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+name}:searchSqlQueries", + "response": { + "$ref": "SearchSparkApplicationSqlQueriesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] }, - "version": { - "description": "Optional. The version of workflow template to delete. If specified, will only delete the template if the current server version matches specified version.", - "format": "int32", - "location": "query", - "type": "integer" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "Empty" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "get": { - "description": "Retrieves the latest workflow template.Can retrieve previously instantiated template by specifying optional version parameter.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workflowTemplates/{workflowTemplatesId}", - "httpMethod": "GET", - "id": "dataproc.projects.locations.workflowTemplates.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates.get, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id} For projects.locations.workflowTemplates.get, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id}", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/workflowTemplates/[^/]+$", - "required": true, - "type": "string" + "searchStageAttemptTasks": { + "description": "Obtain data corresponding to tasks for a spark stage attempt for a Spark Application.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/batches/{batchesId}/sparkApplications/{sparkApplicationsId}:searchStageAttemptTasks", + "httpMethod": "GET", + "id": "dataproc.projects.locations.batches.sparkApplications.searchStageAttemptTasks", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The fully qualified name of the batch to retrieve in the format \"projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICATION_ID\"", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/batches/[^/]+/sparkApplications/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "Optional. Maximum number of tasks to return in each response. The service may return fewer than this. The default page size is 10; the maximum page size is 100.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token received from a previous ListSparkApplicationStageAttemptTasks call. Provide this token to retrieve the subsequent page.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Parent (Batch) resource reference.", + "location": "query", + "type": "string" + }, + "sortRuntime": { + "description": "Optional. Sort the tasks by runtime.", + "location": "query", + "type": "boolean" + }, + "stageAttemptId": { + "description": "Optional. Stage Attempt ID", + "format": "int32", + "location": "query", + "type": "integer" + }, + "stageId": { + "description": "Optional. Stage ID", + "format": "int64", + "location": "query", + "type": "string" + }, + "taskStatus": { + "description": "Optional. List only tasks in the state.", + "enum": [ + "TASK_STATUS_UNSPECIFIED", + "TASK_STATUS_RUNNING", + "TASK_STATUS_SUCCESS", + "TASK_STATUS_FAILED", + "TASK_STATUS_KILLED", + "TASK_STATUS_PENDING" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "" + ], + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}:searchStageAttemptTasks", + "response": { + "$ref": "SearchSparkApplicationStageAttemptTasksResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] }, - "version": { - "description": "Optional. The version of workflow template to retrieve. Only previously instantiated versions can be retrieved.If unspecified, retrieves the current version.", - "format": "int32", - "location": "query", - "type": "integer" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "WorkflowTemplate" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "getIamPolicy": { - "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workflowTemplates/{workflowTemplatesId}:getIamPolicy", - "httpMethod": "POST", - "id": "dataproc.projects.locations.workflowTemplates.getIamPolicy", - "parameterOrder": [ - "resource" - ], - "parameters": { - "resource": { - "description": "REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/workflowTemplates/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+resource}:getIamPolicy", - "request": { - "$ref": "GetIamPolicyRequest" - }, - "response": { - "$ref": "Policy" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "instantiate": { - "description": "Instantiates a template and begins execution.The returned Operation can be used to track execution of workflow by polling operations.get. The Operation will complete when entire workflow is finished.The running workflow can be aborted via operations.cancel. This will cause any inflight jobs to be cancelled and workflow-owned clusters to be deleted.The Operation.metadata will be WorkflowMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata). Also see Using WorkflowMetadata (https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata).On successful completion, Operation.response will be Empty.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workflowTemplates/{workflowTemplatesId}:instantiate", - "httpMethod": "POST", - "id": "dataproc.projects.locations.workflowTemplates.instantiate", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates.instantiate, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id} For projects.locations.workflowTemplates.instantiate, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id}", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/workflowTemplates/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}:instantiate", - "request": { - "$ref": "InstantiateWorkflowTemplateRequest" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "instantiateInline": { - "description": "Instantiates a template and begins execution.This method is equivalent to executing the sequence CreateWorkflowTemplate, InstantiateWorkflowTemplate, DeleteWorkflowTemplate.The returned Operation can be used to track execution of workflow by polling operations.get. The Operation will complete when entire workflow is finished.The running workflow can be aborted via operations.cancel. This will cause any inflight jobs to be cancelled and workflow-owned clusters to be deleted.The Operation.metadata will be WorkflowMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata). Also see Using WorkflowMetadata (https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata).On successful completion, Operation.response will be Empty.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workflowTemplates:instantiateInline", - "httpMethod": "POST", - "id": "dataproc.projects.locations.workflowTemplates.instantiateInline", - "parameterOrder": [ - "parent" - ], - "parameters": { - "parent": { - "description": "Required. The resource name of the region or location, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates,instantiateinline, the resource name of the region has the following format: projects/{project_id}/regions/{region} For projects.locations.workflowTemplates.instantiateinline, the resource name of the location has the following format: projects/{project_id}/locations/{location}", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" + "searchStageAttempts": { + "description": "Obtain data corresponding to a spark stage attempts for a Spark Application.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/batches/{batchesId}/sparkApplications/{sparkApplicationsId}:searchStageAttempts", + "httpMethod": "GET", + "id": "dataproc.projects.locations.batches.sparkApplications.searchStageAttempts", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The fully qualified name of the batch to retrieve in the format \"projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICATION_ID\"", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/batches/[^/]+/sparkApplications/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "Optional. Maximum number of stage attempts (paging based on stage_attempt_id) to return in each response. The service may return fewer than this. The default page size is 10; the maximum page size is 100.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token received from a previous SearchSparkApplicationStageAttempts call. Provide this token to retrieve the subsequent page.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Parent (Batch) resource reference.", + "location": "query", + "type": "string" + }, + "stageId": { + "description": "Required. Stage ID for which attempts are to be fetched", + "format": "int64", + "location": "query", + "type": "string" + }, + "summaryMetricsMask": { + "description": "Optional. The list of summary metrics fields to include. Empty list will default to skip all summary metrics fields. Example, if the response should include TaskQuantileMetrics, the request should have task_quantile_metrics in summary_metrics_mask field", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}:searchStageAttempts", + "response": { + "$ref": "SearchSparkApplicationStageAttemptsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] }, - "requestId": { - "description": "Optional. A tag that prevents multiple concurrent workflow instances with the same tag from running. This mitigates risk of concurrent instances started due to retries.It is recommended to always set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The tag must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", - "location": "query", - "type": "string" - } - }, - "path": "v1/{+parent}/workflowTemplates:instantiateInline", - "request": { - "$ref": "WorkflowTemplate" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "list": { - "description": "Lists workflows that match the specified filter in the request.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workflowTemplates", - "httpMethod": "GET", - "id": "dataproc.projects.locations.workflowTemplates.list", + "searchStages": { + "description": "Obtain data corresponding to stages for a Spark Application.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/batches/{batchesId}/sparkApplications/{sparkApplicationsId}:searchStages", + "httpMethod": "GET", + "id": "dataproc.projects.locations.batches.sparkApplications.searchStages", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The fully qualified name of the batch to retrieve in the format \"projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICATION_ID\"", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/batches/[^/]+/sparkApplications/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "Optional. Maximum number of stages (paging based on stage_id) to return in each response. The service may return fewer than this. The default page size is 10; the maximum page size is 100.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token received from a previous FetchSparkApplicationStagesList call. Provide this token to retrieve the subsequent page.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Parent (Batch) resource reference.", + "location": "query", + "type": "string" + }, + "stageStatus": { + "description": "Optional. List only stages in the given state.", + "enum": [ + "STAGE_STATUS_UNSPECIFIED", + "STAGE_STATUS_ACTIVE", + "STAGE_STATUS_COMPLETE", + "STAGE_STATUS_FAILED", + "STAGE_STATUS_PENDING", + "STAGE_STATUS_SKIPPED" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "" + ], + "location": "query", + "type": "string" + }, + "summaryMetricsMask": { + "description": "Optional. The list of summary metrics fields to include. Empty list will default to skip all summary metrics fields. Example, if the response should include TaskQuantileMetrics, the request should have task_quantile_metrics in summary_metrics_mask field", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}:searchStages", + "response": { + "$ref": "SearchSparkApplicationStagesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "summarizeExecutors": { + "description": "Obtain summary of Executor Summary for a Spark Application", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/batches/{batchesId}/sparkApplications/{sparkApplicationsId}:summarizeExecutors", + "httpMethod": "GET", + "id": "dataproc.projects.locations.batches.sparkApplications.summarizeExecutors", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The fully qualified name of the batch to retrieve in the format \"projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICATION_ID\"", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/batches/[^/]+/sparkApplications/[^/]+$", + "required": true, + "type": "string" + }, + "parent": { + "description": "Required. Parent (Batch) resource reference.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}:summarizeExecutors", + "response": { + "$ref": "SummarizeSparkApplicationExecutorsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "summarizeJobs": { + "description": "Obtain summary of Jobs for a Spark Application", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/batches/{batchesId}/sparkApplications/{sparkApplicationsId}:summarizeJobs", + "httpMethod": "GET", + "id": "dataproc.projects.locations.batches.sparkApplications.summarizeJobs", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The fully qualified name of the batch to retrieve in the format \"projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICATION_ID\"", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/batches/[^/]+/sparkApplications/[^/]+$", + "required": true, + "type": "string" + }, + "parent": { + "description": "Required. Parent (Batch) resource reference.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}:summarizeJobs", + "response": { + "$ref": "SummarizeSparkApplicationJobsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "summarizeStageAttemptTasks": { + "description": "Obtain summary of Tasks for a Spark Application Stage Attempt", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/batches/{batchesId}/sparkApplications/{sparkApplicationsId}:summarizeStageAttemptTasks", + "httpMethod": "GET", + "id": "dataproc.projects.locations.batches.sparkApplications.summarizeStageAttemptTasks", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The fully qualified name of the batch to retrieve in the format \"projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICATION_ID\"", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/batches/[^/]+/sparkApplications/[^/]+$", + "required": true, + "type": "string" + }, + "parent": { + "description": "Required. Parent (Batch) resource reference.", + "location": "query", + "type": "string" + }, + "stageAttemptId": { + "description": "Required. Stage Attempt ID", + "format": "int32", + "location": "query", + "type": "integer" + }, + "stageId": { + "description": "Required. Stage ID", + "format": "int64", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}:summarizeStageAttemptTasks", + "response": { + "$ref": "SummarizeSparkApplicationStageAttemptTasksResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "summarizeStages": { + "description": "Obtain summary of Stages for a Spark Application", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/batches/{batchesId}/sparkApplications/{sparkApplicationsId}:summarizeStages", + "httpMethod": "GET", + "id": "dataproc.projects.locations.batches.sparkApplications.summarizeStages", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The fully qualified name of the batch to retrieve in the format \"projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICATION_ID\"", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/batches/[^/]+/sparkApplications/[^/]+$", + "required": true, + "type": "string" + }, + "parent": { + "description": "Required. Parent (Batch) resource reference.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}:summarizeStages", + "response": { + "$ref": "SummarizeSparkApplicationStagesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "write": { + "description": "Write wrapper objects from dataplane to spanner", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/batches/{batchesId}/sparkApplications/{sparkApplicationsId}:write", + "httpMethod": "POST", + "id": "dataproc.projects.locations.batches.sparkApplications.write", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The fully qualified name of the spark application to write data about in the format \"projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICATION_ID\"", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/batches/[^/]+/sparkApplications/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:write", + "request": { + "$ref": "WriteSparkApplicationContextRequest" + }, + "response": { + "$ref": "WriteSparkApplicationContextResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + }, + "operations": { + "methods": { + "cancel": { + "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "dataproc.projects.locations.operations.cancel", "parameterOrder": [ - "parent" + "name" ], "parameters": { - "pageSize": { - "description": "Optional. The maximum number of results to return in each response.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "Optional. The page token, returned by a previous call, to request the next page of results.", - "location": "query", - "type": "string" - }, - "parent": { - "description": "Required. The resource name of the region or location, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates,list, the resource name of the region has the following format: projects/{project_id}/regions/{region} For projects.locations.workflowTemplates.list, the resource name of the location has the following format: projects/{project_id}/locations/{location}", + "name": { + "description": "The name of the operation resource to be cancelled.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+parent}/workflowTemplates", + "path": "v1/{+name}:cancel", "response": { - "$ref": "ListWorkflowTemplatesResponse" + "$ref": "Empty" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "setIamPolicy": { - "description": "Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workflowTemplates/{workflowTemplatesId}:setIamPolicy", - "httpMethod": "POST", - "id": "dataproc.projects.locations.workflowTemplates.setIamPolicy", + "delete": { + "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "dataproc.projects.locations.operations.delete", "parameterOrder": [ - "resource" + "name" ], "parameters": { - "resource": { - "description": "REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "name": { + "description": "The name of the operation resource to be deleted.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/workflowTemplates/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+resource}:setIamPolicy", - "request": { - "$ref": "SetIamPolicyRequest" - }, + "path": "v1/{+name}", "response": { - "$ref": "Policy" + "$ref": "Empty" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "testIamPermissions": { - "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workflowTemplates/{workflowTemplatesId}:testIamPermissions", - "httpMethod": "POST", - "id": "dataproc.projects.locations.workflowTemplates.testIamPermissions", + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "dataproc.projects.locations.operations.get", "parameterOrder": [ - "resource" + "name" ], "parameters": { - "resource": { - "description": "REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "name": { + "description": "The name of the operation resource.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/workflowTemplates/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+resource}:testIamPermissions", - "request": { - "$ref": "TestIamPermissionsRequest" - }, + "path": "v1/{+name}", "response": { - "$ref": "TestIamPermissionsResponse" + "$ref": "Operation" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "update": { - "description": "Updates (replaces) workflow template. The updated template must contain version that matches the current server version.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workflowTemplates/{workflowTemplatesId}", - "httpMethod": "PUT", - "id": "dataproc.projects.locations.workflowTemplates.update", + "list": { + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations", + "httpMethod": "GET", + "id": "dataproc.projects.locations.operations.list", "parameterOrder": [ "name" ], "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" + }, "name": { - "description": "Output only. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id} For projects.locations.workflowTemplates, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id}", + "description": "The name of the operation's parent resource.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/workflowTemplates/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/operations$", "required": true, "type": "string" - } - }, - "path": "v1/{+name}", - "request": { - "$ref": "WorkflowTemplate" - }, - "response": { - "$ref": "WorkflowTemplate" - }, + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "ListOperationsResponse" + }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] } } - } - } - }, - "regions": { - "resources": { - "autoscalingPolicies": { + }, + "sessionTemplates": { "methods": { "create": { - "description": "Creates new autoscaling policy.", - "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/autoscalingPolicies", + "description": "Create a session template synchronously.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sessionTemplates", "httpMethod": "POST", - "id": "dataproc.projects.regions.autoscalingPolicies.create", + "id": "dataproc.projects.locations.sessionTemplates.create", "parameterOrder": [ "parent" ], "parameters": { "parent": { - "description": "Required. The \"resource name\" of the region or location, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.autoscalingPolicies.create, the resource name of the region has the following format: projects/{project_id}/regions/{region} For projects.locations.autoscalingPolicies.create, the resource name of the location has the following format: projects/{project_id}/locations/{location}", + "description": "Required. The parent resource where this session template will be created.", "location": "path", - "pattern": "^projects/[^/]+/regions/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+parent}/autoscalingPolicies", + "path": "v1/{+parent}/sessionTemplates", "request": { - "$ref": "AutoscalingPolicy" + "$ref": "SessionTemplate" }, "response": { - "$ref": "AutoscalingPolicy" + "$ref": "SessionTemplate" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "delete": { - "description": "Deletes an autoscaling policy. It is an error to delete an autoscaling policy that is in use by one or more clusters.", - "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/autoscalingPolicies/{autoscalingPoliciesId}", + "description": "Deletes a session template.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sessionTemplates/{sessionTemplatesId}", "httpMethod": "DELETE", - "id": "dataproc.projects.regions.autoscalingPolicies.delete", + "id": "dataproc.projects.locations.sessionTemplates.delete", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Required. The \"resource name\" of the autoscaling policy, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.autoscalingPolicies.delete, the resource name of the policy has the following format: projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id} For projects.locations.autoscalingPolicies.delete, the resource name of the policy has the following format: projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}", + "description": "Required. The name of the session template resource to delete.", "location": "path", - "pattern": "^projects/[^/]+/regions/[^/]+/autoscalingPolicies/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/sessionTemplates/[^/]+$", "required": true, "type": "string" } @@ -1327,173 +1681,94 @@ ] }, "get": { - "description": "Retrieves autoscaling policy.", - "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/autoscalingPolicies/{autoscalingPoliciesId}", + "description": "Gets the resource representation for a session template.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sessionTemplates/{sessionTemplatesId}", "httpMethod": "GET", - "id": "dataproc.projects.regions.autoscalingPolicies.get", + "id": "dataproc.projects.locations.sessionTemplates.get", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Required. The \"resource name\" of the autoscaling policy, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.autoscalingPolicies.get, the resource name of the policy has the following format: projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id} For projects.locations.autoscalingPolicies.get, the resource name of the policy has the following format: projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}", + "description": "Required. The name of the session template to retrieve.", "location": "path", - "pattern": "^projects/[^/]+/regions/[^/]+/autoscalingPolicies/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/sessionTemplates/[^/]+$", "required": true, "type": "string" } }, "path": "v1/{+name}", "response": { - "$ref": "AutoscalingPolicy" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "getIamPolicy": { - "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", - "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/autoscalingPolicies/{autoscalingPoliciesId}:getIamPolicy", - "httpMethod": "POST", - "id": "dataproc.projects.regions.autoscalingPolicies.getIamPolicy", - "parameterOrder": [ - "resource" - ], - "parameters": { - "resource": { - "description": "REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", - "location": "path", - "pattern": "^projects/[^/]+/regions/[^/]+/autoscalingPolicies/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+resource}:getIamPolicy", - "request": { - "$ref": "GetIamPolicyRequest" - }, - "response": { - "$ref": "Policy" + "$ref": "SessionTemplate" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "list": { - "description": "Lists autoscaling policies in the project.", - "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/autoscalingPolicies", + "description": "Lists session templates.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sessionTemplates", "httpMethod": "GET", - "id": "dataproc.projects.regions.autoscalingPolicies.list", + "id": "dataproc.projects.locations.sessionTemplates.list", "parameterOrder": [ "parent" ], "parameters": { + "filter": { + "description": "Optional. A filter for the session templates to return in the response. Filters are case sensitive and have the following syntax:field = value AND field = value ...", + "location": "query", + "type": "string" + }, "pageSize": { - "description": "Optional. The maximum number of results to return in each response. Must be less than or equal to 1000. Defaults to 100.", + "description": "Optional. The maximum number of sessions to return in each response. The service may return fewer than this value.", "format": "int32", "location": "query", "type": "integer" }, "pageToken": { - "description": "Optional. The page token, returned by a previous call, to request the next page of results.", + "description": "Optional. A page token received from a previous ListSessions call. Provide this token to retrieve the subsequent page.", "location": "query", "type": "string" }, "parent": { - "description": "Required. The \"resource name\" of the region or location, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.autoscalingPolicies.list, the resource name of the region has the following format: projects/{project_id}/regions/{region} For projects.locations.autoscalingPolicies.list, the resource name of the location has the following format: projects/{project_id}/locations/{location}", - "location": "path", - "pattern": "^projects/[^/]+/regions/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}/autoscalingPolicies", - "response": { - "$ref": "ListAutoscalingPoliciesResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "setIamPolicy": { - "description": "Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.", - "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/autoscalingPolicies/{autoscalingPoliciesId}:setIamPolicy", - "httpMethod": "POST", - "id": "dataproc.projects.regions.autoscalingPolicies.setIamPolicy", - "parameterOrder": [ - "resource" - ], - "parameters": { - "resource": { - "description": "REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", - "location": "path", - "pattern": "^projects/[^/]+/regions/[^/]+/autoscalingPolicies/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+resource}:setIamPolicy", - "request": { - "$ref": "SetIamPolicyRequest" - }, - "response": { - "$ref": "Policy" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "testIamPermissions": { - "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/autoscalingPolicies/{autoscalingPoliciesId}:testIamPermissions", - "httpMethod": "POST", - "id": "dataproc.projects.regions.autoscalingPolicies.testIamPermissions", - "parameterOrder": [ - "resource" - ], - "parameters": { - "resource": { - "description": "REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "description": "Required. The parent that owns this collection of session templates.", "location": "path", - "pattern": "^projects/[^/]+/regions/[^/]+/autoscalingPolicies/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+resource}:testIamPermissions", - "request": { - "$ref": "TestIamPermissionsRequest" - }, + "path": "v1/{+parent}/sessionTemplates", "response": { - "$ref": "TestIamPermissionsResponse" + "$ref": "ListSessionTemplatesResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "update": { - "description": "Updates (replaces) autoscaling policy.Disabled check for update_mask, because all updates will be full replacements.", - "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/autoscalingPolicies/{autoscalingPoliciesId}", - "httpMethod": "PUT", - "id": "dataproc.projects.regions.autoscalingPolicies.update", + "patch": { + "description": "Updates the session template synchronously.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sessionTemplates/{sessionTemplatesId}", + "httpMethod": "PATCH", + "id": "dataproc.projects.locations.sessionTemplates.patch", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Output only. The \"resource name\" of the autoscaling policy, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.autoscalingPolicies, the resource name of the policy has the following format: projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id} For projects.locations.autoscalingPolicies, the resource name of the policy has the following format: projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}", + "description": "Required. The resource name of the session template.", "location": "path", - "pattern": "^projects/[^/]+/regions/[^/]+/autoscalingPolicies/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/sessionTemplates/[^/]+$", "required": true, "type": "string" } }, "path": "v1/{+name}", "request": { - "$ref": "AutoscalingPolicy" + "$ref": "SessionTemplate" }, "response": { - "$ref": "AutoscalingPolicy" + "$ref": "SessionTemplate" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" @@ -1501,54 +1776,38 @@ } } }, - "clusters": { + "sessions": { "methods": { "create": { - "description": "Creates a cluster in a project. The returned Operation.metadata will be ClusterOperationMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).", - "flatPath": "v1/projects/{projectId}/regions/{region}/clusters", + "description": "Create an interactive session asynchronously.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sessions", "httpMethod": "POST", - "id": "dataproc.projects.regions.clusters.create", + "id": "dataproc.projects.locations.sessions.create", "parameterOrder": [ - "projectId", - "region" + "parent" ], "parameters": { - "actionOnFailedPrimaryWorkers": { - "description": "Optional. Failure action when primary worker creation fails.", - "enum": [ - "FAILURE_ACTION_UNSPECIFIED", - "NO_ACTION", - "DELETE" - ], - "enumDescriptions": [ - "When FailureAction is unspecified, failure action defaults to NO_ACTION.", - "Take no action on failure to create a cluster resource. NO_ACTION is the default.", - "Delete the failed cluster resource." - ], - "location": "query", - "type": "string" - }, - "projectId": { - "description": "Required. The ID of the Google Cloud Platform project that the cluster belongs to.", + "parent": { + "description": "Required. The parent resource where this session will be created.", "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "type": "string" }, - "region": { - "description": "Required. The Dataproc region in which to handle the request.", - "location": "path", - "required": true, + "requestId": { + "description": "Optional. A unique ID used to identify the request. If the service receives two CreateSessionRequests (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateSessionRequest)s with the same ID, the second request is ignored, and the first Session is created and stored in the backend.Recommendation: Set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The value must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", + "location": "query", "type": "string" }, - "requestId": { - "description": "Optional. A unique ID used to identify the request. If the server receives two CreateClusterRequest (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateClusterRequest)s with the same id, then the second request will be ignored and the first google.longrunning.Operation created and stored in the backend is returned.It is recommended to always set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", + "sessionId": { + "description": "Required. The ID to use for the session, which becomes the final component of the session's resource name.This value must be 4-63 characters. Valid characters are /a-z-/.", "location": "query", "type": "string" } }, - "path": "v1/projects/{projectId}/regions/{region}/clusters", + "path": "v1/{+parent}/sessions", "request": { - "$ref": "Cluster" + "$ref": "Session" }, "response": { "$ref": "Operation" @@ -1558,93 +1817,28 @@ ] }, "delete": { - "description": "Deletes a cluster in a project. The returned Operation.metadata will be ClusterOperationMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).", - "flatPath": "v1/projects/{projectId}/regions/{region}/clusters/{clusterName}", + "description": "Deletes the interactive session resource. If the session is not in terminal state, it is terminated, and then deleted.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sessions/{sessionsId}", "httpMethod": "DELETE", - "id": "dataproc.projects.regions.clusters.delete", + "id": "dataproc.projects.locations.sessions.delete", "parameterOrder": [ - "projectId", - "region", - "clusterName" + "name" ], "parameters": { - "clusterName": { - "description": "Required. The cluster name.", + "name": { + "description": "Required. The name of the session resource to delete.", "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/sessions/[^/]+$", "required": true, "type": "string" }, - "clusterUuid": { - "description": "Optional. Specifying the cluster_uuid means the RPC should fail (with error NOT_FOUND) if cluster with specified UUID does not exist.", + "requestId": { + "description": "Optional. A unique ID used to identify the request. If the service receives two DeleteSessionRequest (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.DeleteSessionRequest)s with the same ID, the second request is ignored.Recommendation: Set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The value must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", "location": "query", "type": "string" - }, - "gracefulTerminationTimeout": { - "description": "Optional. The graceful termination timeout for the deletion of the cluster. Indicate the time the request will wait to complete the running jobs on the cluster before its forceful deletion. Default value is 0 indicating that the user has not enabled the graceful termination. Value can be between 60 second and 6 Hours, in case the graceful termination is enabled. (There is no separate flag to check the enabling or disabling of graceful termination, it can be checked by the values in the field).", - "format": "google-duration", - "location": "query", - "type": "string" - }, - "projectId": { - "description": "Required. The ID of the Google Cloud Platform project that the cluster belongs to.", - "location": "path", - "required": true, - "type": "string" - }, - "region": { - "description": "Required. The Dataproc region in which to handle the request.", - "location": "path", - "required": true, - "type": "string" - }, - "requestId": { - "description": "Optional. A unique ID used to identify the request. If the server receives two DeleteClusterRequest (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.DeleteClusterRequest)s with the same id, then the second request will be ignored and the first google.longrunning.Operation created and stored in the backend is returned.It is recommended to always set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", - "location": "query", - "type": "string" - } - }, - "path": "v1/projects/{projectId}/regions/{region}/clusters/{clusterName}", - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "diagnose": { - "description": "Gets cluster diagnostic information. The returned Operation.metadata will be ClusterOperationMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). After the operation completes, Operation.response contains DiagnoseClusterResults (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#diagnoseclusterresults).", - "flatPath": "v1/projects/{projectId}/regions/{region}/clusters/{clusterName}:diagnose", - "httpMethod": "POST", - "id": "dataproc.projects.regions.clusters.diagnose", - "parameterOrder": [ - "projectId", - "region", - "clusterName" - ], - "parameters": { - "clusterName": { - "description": "Required. The cluster name.", - "location": "path", - "required": true, - "type": "string" - }, - "projectId": { - "description": "Required. The ID of the Google Cloud Platform project that the cluster belongs to.", - "location": "path", - "required": true, - "type": "string" - }, - "region": { - "description": "Required. The Dataproc region in which to handle the request.", - "location": "path", - "required": true, - "type": "string" } }, - "path": "v1/projects/{projectId}/regions/{region}/clusters/{clusterName}:diagnose", - "request": { - "$ref": "DiagnoseClusterRequest" - }, + "path": "v1/{+name}", "response": { "$ref": "Operation" }, @@ -1653,212 +1847,91 @@ ] }, "get": { - "description": "Gets the resource representation for a cluster in a project.", - "flatPath": "v1/projects/{projectId}/regions/{region}/clusters/{clusterName}", + "description": "Gets the resource representation for an interactive session.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sessions/{sessionsId}", "httpMethod": "GET", - "id": "dataproc.projects.regions.clusters.get", - "parameterOrder": [ - "projectId", - "region", - "clusterName" - ], - "parameters": { - "clusterName": { - "description": "Required. The cluster name.", - "location": "path", - "required": true, - "type": "string" - }, - "projectId": { - "description": "Required. The ID of the Google Cloud Platform project that the cluster belongs to.", - "location": "path", - "required": true, - "type": "string" - }, - "region": { - "description": "Required. The Dataproc region in which to handle the request.", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "v1/projects/{projectId}/regions/{region}/clusters/{clusterName}", - "response": { - "$ref": "Cluster" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "getIamPolicy": { - "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", - "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/clusters/{clustersId}:getIamPolicy", - "httpMethod": "POST", - "id": "dataproc.projects.regions.clusters.getIamPolicy", - "parameterOrder": [ - "resource" - ], - "parameters": { - "resource": { - "description": "REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", - "location": "path", - "pattern": "^projects/[^/]+/regions/[^/]+/clusters/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+resource}:getIamPolicy", - "request": { - "$ref": "GetIamPolicyRequest" - }, - "response": { - "$ref": "Policy" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "injectCredentials": { - "description": "Inject encrypted credentials into all of the VMs in a cluster.The target cluster must be a personal auth cluster assigned to the user who is issuing the RPC.", - "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/clusters/{clustersId}:injectCredentials", - "httpMethod": "POST", - "id": "dataproc.projects.regions.clusters.injectCredentials", + "id": "dataproc.projects.locations.sessions.get", "parameterOrder": [ - "project", - "region", - "cluster" + "name" ], "parameters": { - "cluster": { - "description": "Required. The cluster, in the form clusters/.", - "location": "path", - "pattern": "^clusters/[^/]+$", - "required": true, - "type": "string" - }, - "project": { - "description": "Required. The ID of the Google Cloud Platform project the cluster belongs to, of the form projects/.", - "location": "path", - "pattern": "^projects/[^/]+$", - "required": true, - "type": "string" - }, - "region": { - "description": "Required. The region containing the cluster, of the form regions/.", + "name": { + "description": "Required. The name of the session to retrieve.", "location": "path", - "pattern": "^regions/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/sessions/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+project}/{+region}/{+cluster}:injectCredentials", - "request": { - "$ref": "InjectCredentialsRequest" - }, + "path": "v1/{+name}", "response": { - "$ref": "Operation" + "$ref": "Session" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "list": { - "description": "Lists all regions/{region}/clusters in a project alphabetically.", - "flatPath": "v1/projects/{projectId}/regions/{region}/clusters", + "description": "Lists interactive sessions.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sessions", "httpMethod": "GET", - "id": "dataproc.projects.regions.clusters.list", + "id": "dataproc.projects.locations.sessions.list", "parameterOrder": [ - "projectId", - "region" + "parent" ], "parameters": { "filter": { - "description": "Optional. A filter constraining the clusters to list. Filters are case-sensitive and have the following syntax:field = value AND field = value ...where field is one of status.state, clusterName, or labels.[KEY], and [KEY] is a label key. value can be * to match all values. status.state can be one of the following: ACTIVE, INACTIVE, CREATING, RUNNING, ERROR, DELETING, UPDATING, STOPPING, or STOPPED. ACTIVE contains the CREATING, UPDATING, and RUNNING states. INACTIVE contains the DELETING, ERROR, STOPPING, and STOPPED states. clusterName is the name of the cluster provided at creation time. Only the logical AND operator is supported; space-separated items are treated as having an implicit AND operator.Example filter:status.state = ACTIVE AND clusterName = mycluster AND labels.env = staging AND labels.starred = *", + "description": "Optional. A filter for the sessions to return in the response.A filter is a logical expression constraining the values of various fields in each session resource. Filters are case sensitive, and may contain multiple clauses combined with logical operators (AND, OR). Supported fields are session_id, session_uuid, state, create_time, and labels.Example: state = ACTIVE and create_time \u003c \"2023-01-01T00:00:00Z\" is a filter for sessions in an ACTIVE state that were created before 2023-01-01. state = ACTIVE and labels.environment=production is a filter for sessions in an ACTIVE state that have a production environment label.See https://google.aip.dev/assets/misc/ebnf-filtering.txt for a detailed description of the filter syntax and a list of supported comparators.", "location": "query", "type": "string" }, "pageSize": { - "description": "Optional. The standard List page size.", + "description": "Optional. The maximum number of sessions to return in each response. The service may return fewer than this value.", "format": "int32", "location": "query", "type": "integer" }, "pageToken": { - "description": "Optional. The standard List page token.", + "description": "Optional. A page token received from a previous ListSessions call. Provide this token to retrieve the subsequent page.", "location": "query", "type": "string" }, - "projectId": { - "description": "Required. The ID of the Google Cloud Platform project that the cluster belongs to.", - "location": "path", - "required": true, - "type": "string" - }, - "region": { - "description": "Required. The Dataproc region in which to handle the request.", + "parent": { + "description": "Required. The parent, which owns this collection of sessions.", "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/projects/{projectId}/regions/{region}/clusters", + "path": "v1/{+parent}/sessions", "response": { - "$ref": "ListClustersResponse" + "$ref": "ListSessionsResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "patch": { - "description": "Updates a cluster in a project. The returned Operation.metadata will be ClusterOperationMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). The cluster must be in a RUNNING state or an error is returned.", - "flatPath": "v1/projects/{projectId}/regions/{region}/clusters/{clusterName}", - "httpMethod": "PATCH", - "id": "dataproc.projects.regions.clusters.patch", + "terminate": { + "description": "Terminates the interactive session.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sessions/{sessionsId}:terminate", + "httpMethod": "POST", + "id": "dataproc.projects.locations.sessions.terminate", "parameterOrder": [ - "projectId", - "region", - "clusterName" + "name" ], "parameters": { - "clusterName": { - "description": "Required. The cluster name.", - "location": "path", - "required": true, - "type": "string" - }, - "gracefulDecommissionTimeout": { - "description": "Optional. Timeout for graceful YARN decommissioning. Graceful decommissioning allows removing nodes from the cluster without interrupting jobs in progress. Timeout specifies how long to wait for jobs in progress to finish before forcefully removing nodes (and potentially interrupting jobs). Default timeout is 0 (for forceful decommission), and the maximum allowed timeout is 1 day. (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)).Only supported on Dataproc image versions 1.2 and higher.", - "format": "google-duration", - "location": "query", - "type": "string" - }, - "projectId": { - "description": "Required. The ID of the Google Cloud Platform project the cluster belongs to.", - "location": "path", - "required": true, - "type": "string" - }, - "region": { - "description": "Required. The Dataproc region in which to handle the request.", + "name": { + "description": "Required. The name of the session resource to terminate.", "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/sessions/[^/]+$", "required": true, "type": "string" - }, - "requestId": { - "description": "Optional. A unique ID used to identify the request. If the server receives two UpdateClusterRequest (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.UpdateClusterRequest)s with the same id, then the second request will be ignored and the first google.longrunning.Operation created and stored in the backend is returned.It is recommended to always set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", - "location": "query", - "type": "string" - }, - "updateMask": { - "description": "Required. Specifies the path, relative to Cluster, of the field to update. For example, to change the number of workers in a cluster to 5, the update_mask parameter would be specified as config.worker_config.num_instances, and the PATCH request body would specify the new value, as follows: { \"config\":{ \"workerConfig\":{ \"numInstances\":\"5\" } } } Similarly, to change the number of preemptible workers in a cluster to 5, the update_mask parameter would be config.secondary_worker_config.num_instances, and the PATCH request body would be set as follows: { \"config\":{ \"secondaryWorkerConfig\":{ \"numInstances\":\"5\" } } } *Note:* Currently, only the following fields can be updated: *Mask* *Purpose* *labels* Update labels *config.worker_config.num_instances* Resize primary worker group *config.secondary_worker_config.num_instances* Resize secondary worker group config.autoscaling_config.policy_uri Use, stop using, or change autoscaling policies ", - "format": "google-fieldmask", - "location": "query", - "type": "string" } }, - "path": "v1/projects/{projectId}/regions/{region}/clusters/{clusterName}", + "path": "v1/{+name}:terminate", "request": { - "$ref": "Cluster" + "$ref": "TerminateSessionRequest" }, "response": { "$ref": "Operation" @@ -1866,599 +1939,1044 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] - }, - "repair": { - "description": "Repairs a cluster.", - "flatPath": "v1/projects/{projectId}/regions/{region}/clusters/{clusterName}:repair", - "httpMethod": "POST", - "id": "dataproc.projects.regions.clusters.repair", - "parameterOrder": [ - "projectId", - "region", - "clusterName" - ], - "parameters": { - "clusterName": { - "description": "Required. The cluster name.", - "location": "path", - "required": true, - "type": "string" - }, - "projectId": { - "description": "Required. The ID of the Google Cloud Platform project the cluster belongs to.", - "location": "path", - "required": true, - "type": "string" - }, - "region": { - "description": "Required. The Dataproc region in which to handle the request.", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "v1/projects/{projectId}/regions/{region}/clusters/{clusterName}:repair", - "request": { - "$ref": "RepairClusterRequest" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "setIamPolicy": { - "description": "Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.", - "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/clusters/{clustersId}:setIamPolicy", - "httpMethod": "POST", - "id": "dataproc.projects.regions.clusters.setIamPolicy", - "parameterOrder": [ - "resource" - ], - "parameters": { - "resource": { - "description": "REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", - "location": "path", - "pattern": "^projects/[^/]+/regions/[^/]+/clusters/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+resource}:setIamPolicy", - "request": { - "$ref": "SetIamPolicyRequest" - }, - "response": { - "$ref": "Policy" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "start": { - "description": "Starts a cluster in a project.", - "flatPath": "v1/projects/{projectId}/regions/{region}/clusters/{clusterName}:start", - "httpMethod": "POST", - "id": "dataproc.projects.regions.clusters.start", - "parameterOrder": [ - "projectId", - "region", - "clusterName" - ], - "parameters": { - "clusterName": { - "description": "Required. The cluster name.", - "location": "path", - "required": true, - "type": "string" - }, - "projectId": { - "description": "Required. The ID of the Google Cloud Platform project the cluster belongs to.", - "location": "path", - "required": true, - "type": "string" - }, - "region": { - "description": "Required. The Dataproc region in which to handle the request.", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "v1/projects/{projectId}/regions/{region}/clusters/{clusterName}:start", - "request": { - "$ref": "StartClusterRequest" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "stop": { - "description": "Stops a cluster in a project.", - "flatPath": "v1/projects/{projectId}/regions/{region}/clusters/{clusterName}:stop", - "httpMethod": "POST", - "id": "dataproc.projects.regions.clusters.stop", - "parameterOrder": [ - "projectId", - "region", - "clusterName" - ], - "parameters": { - "clusterName": { - "description": "Required. The cluster name.", - "location": "path", - "required": true, - "type": "string" - }, - "projectId": { - "description": "Required. The ID of the Google Cloud Platform project the cluster belongs to.", - "location": "path", - "required": true, - "type": "string" - }, - "region": { - "description": "Required. The Dataproc region in which to handle the request.", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "v1/projects/{projectId}/regions/{region}/clusters/{clusterName}:stop", - "request": { - "$ref": "StopClusterRequest" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "testIamPermissions": { - "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/clusters/{clustersId}:testIamPermissions", - "httpMethod": "POST", - "id": "dataproc.projects.regions.clusters.testIamPermissions", - "parameterOrder": [ - "resource" - ], - "parameters": { - "resource": { - "description": "REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", - "location": "path", - "pattern": "^projects/[^/]+/regions/[^/]+/clusters/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+resource}:testIamPermissions", - "request": { - "$ref": "TestIamPermissionsRequest" - }, - "response": { - "$ref": "TestIamPermissionsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] } }, "resources": { - "nodeGroups": { + "sparkApplications": { "methods": { - "create": { - "description": "Creates a node group in a cluster. The returned Operation.metadata is NodeGroupOperationMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#nodegroupoperationmetadata).", - "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/clusters/{clustersId}/nodeGroups", - "httpMethod": "POST", - "id": "dataproc.projects.regions.clusters.nodeGroups.create", + "access": { + "description": "Obtain high level information corresponding to a single Spark Application.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sessions/{sessionsId}/sparkApplications/{sparkApplicationsId}:access", + "httpMethod": "GET", + "id": "dataproc.projects.locations.sessions.sparkApplications.access", "parameterOrder": [ - "parent" + "name" ], "parameters": { - "nodeGroupId": { - "description": "Optional. An optional node group ID. Generated if not specified.The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of from 3 to 33 characters.", - "location": "query", - "type": "string" - }, - "parent": { - "description": "Required. The parent resource where this node group will be created. Format: projects/{project}/regions/{region}/clusters/{cluster}", + "name": { + "description": "Required. The fully qualified name of the session to retrieve in the format \"projects/PROJECT_ID/locations/DATAPROC_REGION/sessions/SESSION_ID/sparkApplications/APPLICATION_ID\"", "location": "path", - "pattern": "^projects/[^/]+/regions/[^/]+/clusters/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/sessions/[^/]+/sparkApplications/[^/]+$", "required": true, "type": "string" }, - "parentOperationId": { - "description": "Optional. operation id of the parent operation sending the create request", - "location": "query", - "type": "string" - }, - "requestId": { - "description": "Optional. A unique ID used to identify the request. If the server receives two CreateNodeGroupRequest (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateNodeGroupRequest) with the same ID, the second request is ignored and the first google.longrunning.Operation created and stored in the backend is returned.Recommendation: Set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", + "parent": { + "description": "Required. Parent (Session) resource reference.", "location": "query", "type": "string" } }, - "path": "v1/{+parent}/nodeGroups", - "request": { - "$ref": "NodeGroup" - }, + "path": "v1/{+name}:access", "response": { - "$ref": "Operation" + "$ref": "AccessSessionSparkApplicationResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "get": { - "description": "Gets the resource representation for a node group in a cluster.", - "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/clusters/{clustersId}/nodeGroups/{nodeGroupsId}", + "accessEnvironmentInfo": { + "description": "Obtain environment details for a Spark Application", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sessions/{sessionsId}/sparkApplications/{sparkApplicationsId}:accessEnvironmentInfo", "httpMethod": "GET", - "id": "dataproc.projects.regions.clusters.nodeGroups.get", + "id": "dataproc.projects.locations.sessions.sparkApplications.accessEnvironmentInfo", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Required. The name of the node group to retrieve. Format: projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}", + "description": "Required. The fully qualified name of the session to retrieve in the format \"projects/PROJECT_ID/locations/DATAPROC_REGION/sessions/SESSION_ID/sparkApplications/APPLICATION_ID\"", "location": "path", - "pattern": "^projects/[^/]+/regions/[^/]+/clusters/[^/]+/nodeGroups/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/sessions/[^/]+/sparkApplications/[^/]+$", "required": true, "type": "string" + }, + "parent": { + "description": "Required. Parent (Session) resource reference.", + "location": "query", + "type": "string" } }, - "path": "v1/{+name}", + "path": "v1/{+name}:accessEnvironmentInfo", "response": { - "$ref": "NodeGroup" + "$ref": "AccessSessionSparkApplicationEnvironmentInfoResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "repair": { - "description": "Repair nodes in a node group.", - "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/clusters/{clustersId}/nodeGroups/{nodeGroupsId}:repair", - "httpMethod": "POST", - "id": "dataproc.projects.regions.clusters.nodeGroups.repair", + "accessJob": { + "description": "Obtain data corresponding to a spark job for a Spark Application.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sessions/{sessionsId}/sparkApplications/{sparkApplicationsId}:accessJob", + "httpMethod": "GET", + "id": "dataproc.projects.locations.sessions.sparkApplications.accessJob", "parameterOrder": [ "name" ], "parameters": { + "jobId": { + "description": "Required. Job ID to fetch data for.", + "format": "int64", + "location": "query", + "type": "string" + }, "name": { - "description": "Required. The name of the node group to resize. Format: projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}", + "description": "Required. The fully qualified name of the session to retrieve in the format \"projects/PROJECT_ID/locations/DATAPROC_REGION/sessions/SESSION_ID/sparkApplications/APPLICATION_ID\"", "location": "path", - "pattern": "^projects/[^/]+/regions/[^/]+/clusters/[^/]+/nodeGroups/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/sessions/[^/]+/sparkApplications/[^/]+$", "required": true, "type": "string" + }, + "parent": { + "description": "Required. Parent (Session) resource reference.", + "location": "query", + "type": "string" } }, - "path": "v1/{+name}:repair", - "request": { - "$ref": "RepairNodeGroupRequest" - }, + "path": "v1/{+name}:accessJob", "response": { - "$ref": "Operation" + "$ref": "AccessSessionSparkApplicationJobResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "resize": { - "description": "Resizes a node group in a cluster. The returned Operation.metadata is NodeGroupOperationMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#nodegroupoperationmetadata).", - "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/clusters/{clustersId}/nodeGroups/{nodeGroupsId}:resize", - "httpMethod": "POST", - "id": "dataproc.projects.regions.clusters.nodeGroups.resize", + "accessSqlPlan": { + "description": "Obtain Spark Plan Graph for a Spark Application SQL execution. Limits the number of clusters returned as part of the graph to 10000.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sessions/{sessionsId}/sparkApplications/{sparkApplicationsId}:accessSqlPlan", + "httpMethod": "GET", + "id": "dataproc.projects.locations.sessions.sparkApplications.accessSqlPlan", "parameterOrder": [ "name" ], "parameters": { + "executionId": { + "description": "Required. Execution ID", + "format": "int64", + "location": "query", + "type": "string" + }, "name": { - "description": "Required. The name of the node group to resize. Format: projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}", + "description": "Required. The fully qualified name of the session to retrieve in the format \"projects/PROJECT_ID/locations/DATAPROC_REGION/sessions/SESSION_ID/sparkApplications/APPLICATION_ID\"", "location": "path", - "pattern": "^projects/[^/]+/regions/[^/]+/clusters/[^/]+/nodeGroups/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/sessions/[^/]+/sparkApplications/[^/]+$", "required": true, "type": "string" + }, + "parent": { + "description": "Required. Parent (Session) resource reference.", + "location": "query", + "type": "string" } }, - "path": "v1/{+name}:resize", - "request": { - "$ref": "ResizeNodeGroupRequest" - }, + "path": "v1/{+name}:accessSqlPlan", "response": { - "$ref": "Operation" + "$ref": "AccessSessionSparkApplicationSqlSparkPlanGraphResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] - } - } - } - } - }, - "jobs": { - "methods": { - "cancel": { - "description": "Starts a job cancellation request. To access the job resource after cancellation, call regions/{region}/jobs.list (https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/list) or regions/{region}/jobs.get (https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/get).", - "flatPath": "v1/projects/{projectId}/regions/{region}/jobs/{jobId}:cancel", - "httpMethod": "POST", - "id": "dataproc.projects.regions.jobs.cancel", - "parameterOrder": [ - "projectId", - "region", - "jobId" - ], - "parameters": { - "jobId": { - "description": "Required. The job ID.", - "location": "path", - "required": true, - "type": "string" }, - "projectId": { - "description": "Required. The ID of the Google Cloud Platform project that the job belongs to.", - "location": "path", - "required": true, - "type": "string" + "accessSqlQuery": { + "description": "Obtain data corresponding to a particular SQL Query for a Spark Application.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sessions/{sessionsId}/sparkApplications/{sparkApplicationsId}:accessSqlQuery", + "httpMethod": "GET", + "id": "dataproc.projects.locations.sessions.sparkApplications.accessSqlQuery", + "parameterOrder": [ + "name" + ], + "parameters": { + "details": { + "description": "Optional. Lists/ hides details of Spark plan nodes. True is set to list and false to hide.", + "location": "query", + "type": "boolean" + }, + "executionId": { + "description": "Required. Execution ID", + "format": "int64", + "location": "query", + "type": "string" + }, + "name": { + "description": "Required. The fully qualified name of the session to retrieve in the format \"projects/PROJECT_ID/locations/DATAPROC_REGION/sessions/SESSION_ID/sparkApplications/APPLICATION_ID\"", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/sessions/[^/]+/sparkApplications/[^/]+$", + "required": true, + "type": "string" + }, + "parent": { + "description": "Required. Parent (Session) resource reference.", + "location": "query", + "type": "string" + }, + "planDescription": { + "description": "Optional. Enables/ disables physical plan description on demand", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+name}:accessSqlQuery", + "response": { + "$ref": "AccessSessionSparkApplicationSqlQueryResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] }, - "region": { - "description": "Required. The Dataproc region in which to handle the request.", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "v1/projects/{projectId}/regions/{region}/jobs/{jobId}:cancel", - "request": { - "$ref": "CancelJobRequest" - }, - "response": { - "$ref": "Job" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "delete": { - "description": "Deletes the job from the project. If the job is active, the delete fails, and the response returns FAILED_PRECONDITION.", - "flatPath": "v1/projects/{projectId}/regions/{region}/jobs/{jobId}", - "httpMethod": "DELETE", - "id": "dataproc.projects.regions.jobs.delete", - "parameterOrder": [ - "projectId", - "region", - "jobId" - ], - "parameters": { - "jobId": { - "description": "Required. The job ID.", - "location": "path", - "required": true, - "type": "string" + "accessStageAttempt": { + "description": "Obtain data corresponding to a spark stage attempt for a Spark Application.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sessions/{sessionsId}/sparkApplications/{sparkApplicationsId}:accessStageAttempt", + "httpMethod": "GET", + "id": "dataproc.projects.locations.sessions.sparkApplications.accessStageAttempt", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The fully qualified name of the session to retrieve in the format \"projects/PROJECT_ID/locations/DATAPROC_REGION/sessions/SESSION_ID/sparkApplications/APPLICATION_ID\"", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/sessions/[^/]+/sparkApplications/[^/]+$", + "required": true, + "type": "string" + }, + "parent": { + "description": "Required. Parent (Session) resource reference.", + "location": "query", + "type": "string" + }, + "stageAttemptId": { + "description": "Required. Stage Attempt ID", + "format": "int32", + "location": "query", + "type": "integer" + }, + "stageId": { + "description": "Required. Stage ID", + "format": "int64", + "location": "query", + "type": "string" + }, + "summaryMetricsMask": { + "description": "Optional. The list of summary metrics fields to include. Empty list will default to skip all summary metrics fields. Example, if the response should include TaskQuantileMetrics, the request should have task_quantile_metrics in summary_metrics_mask field", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}:accessStageAttempt", + "response": { + "$ref": "AccessSessionSparkApplicationStageAttemptResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] }, - "projectId": { - "description": "Required. The ID of the Google Cloud Platform project that the job belongs to.", - "location": "path", - "required": true, - "type": "string" + "accessStageRddGraph": { + "description": "Obtain RDD operation graph for a Spark Application Stage. Limits the number of clusters returned as part of the graph to 10000.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sessions/{sessionsId}/sparkApplications/{sparkApplicationsId}:accessStageRddGraph", + "httpMethod": "GET", + "id": "dataproc.projects.locations.sessions.sparkApplications.accessStageRddGraph", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The fully qualified name of the session to retrieve in the format \"projects/PROJECT_ID/locations/DATAPROC_REGION/sessions/SESSION_ID/sparkApplications/APPLICATION_ID\"", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/sessions/[^/]+/sparkApplications/[^/]+$", + "required": true, + "type": "string" + }, + "parent": { + "description": "Required. Parent (Session) resource reference.", + "location": "query", + "type": "string" + }, + "stageId": { + "description": "Required. Stage ID", + "format": "int64", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}:accessStageRddGraph", + "response": { + "$ref": "AccessSessionSparkApplicationStageRddOperationGraphResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] }, - "region": { - "description": "Required. The Dataproc region in which to handle the request.", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "v1/projects/{projectId}/regions/{region}/jobs/{jobId}", - "response": { - "$ref": "Empty" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "get": { - "description": "Gets the resource representation for a job in a project.", - "flatPath": "v1/projects/{projectId}/regions/{region}/jobs/{jobId}", - "httpMethod": "GET", - "id": "dataproc.projects.regions.jobs.get", - "parameterOrder": [ - "projectId", - "region", - "jobId" - ], - "parameters": { - "jobId": { - "description": "Required. The job ID.", - "location": "path", - "required": true, - "type": "string" + "search": { + "description": "Obtain high level information and list of Spark Applications corresponding to a batch", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sessions/{sessionsId}/sparkApplications:search", + "httpMethod": "GET", + "id": "dataproc.projects.locations.sessions.sparkApplications.search", + "parameterOrder": [ + "parent" + ], + "parameters": { + "applicationStatus": { + "description": "Optional. Search only applications in the chosen state.", + "enum": [ + "APPLICATION_STATUS_UNSPECIFIED", + "APPLICATION_STATUS_RUNNING", + "APPLICATION_STATUS_COMPLETED" + ], + "enumDescriptions": [ + "", + "", + "" + ], + "location": "query", + "type": "string" + }, + "maxEndTime": { + "description": "Optional. Latest end timestamp to list.", + "format": "google-datetime", + "location": "query", + "type": "string" + }, + "maxTime": { + "description": "Optional. Latest start timestamp to list.", + "format": "google-datetime", + "location": "query", + "type": "string" + }, + "minEndTime": { + "description": "Optional. Earliest end timestamp to list.", + "format": "google-datetime", + "location": "query", + "type": "string" + }, + "minTime": { + "description": "Optional. Earliest start timestamp to list.", + "format": "google-datetime", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. Maximum number of applications to return in each response. The service may return fewer than this. The default page size is 10; the maximum page size is 100.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token received from a previous SearchSessionSparkApplications call. Provide this token to retrieve the subsequent page.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The fully qualified name of the session to retrieve in the format \"projects/PROJECT_ID/locations/DATAPROC_REGION/sessions/SESSION_ID\"", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/sessions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/sparkApplications:search", + "response": { + "$ref": "SearchSessionSparkApplicationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] }, - "projectId": { - "description": "Required. The ID of the Google Cloud Platform project that the job belongs to.", - "location": "path", - "required": true, - "type": "string" + "searchExecutorStageSummary": { + "description": "Obtain executor summary with respect to a spark stage attempt.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sessions/{sessionsId}/sparkApplications/{sparkApplicationsId}:searchExecutorStageSummary", + "httpMethod": "GET", + "id": "dataproc.projects.locations.sessions.sparkApplications.searchExecutorStageSummary", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The fully qualified name of the session to retrieve in the format \"projects/PROJECT_ID/locations/DATAPROC_REGION/sessions/SESSION_ID/sparkApplications/APPLICATION_ID\"", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/sessions/[^/]+/sparkApplications/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "Optional. Maximum number of executors to return in each response. The service may return fewer than this. The default page size is 10; the maximum page size is 100.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token received from a previous SearchSessionSparkApplicationExecutorStageSummary call. Provide this token to retrieve the subsequent page.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Parent (Session) resource reference.", + "location": "query", + "type": "string" + }, + "stageAttemptId": { + "description": "Required. Stage Attempt ID", + "format": "int32", + "location": "query", + "type": "integer" + }, + "stageId": { + "description": "Required. Stage ID", + "format": "int64", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}:searchExecutorStageSummary", + "response": { + "$ref": "SearchSessionSparkApplicationExecutorStageSummaryResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] }, - "region": { - "description": "Required. The Dataproc region in which to handle the request.", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "v1/projects/{projectId}/regions/{region}/jobs/{jobId}", - "response": { - "$ref": "Job" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "getIamPolicy": { - "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", - "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/jobs/{jobsId}:getIamPolicy", - "httpMethod": "POST", - "id": "dataproc.projects.regions.jobs.getIamPolicy", - "parameterOrder": [ - "resource" - ], - "parameters": { - "resource": { - "description": "REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", - "location": "path", - "pattern": "^projects/[^/]+/regions/[^/]+/jobs/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+resource}:getIamPolicy", - "request": { - "$ref": "GetIamPolicyRequest" - }, - "response": { - "$ref": "Policy" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "list": { - "description": "Lists regions/{region}/jobs in a project.", - "flatPath": "v1/projects/{projectId}/regions/{region}/jobs", - "httpMethod": "GET", - "id": "dataproc.projects.regions.jobs.list", - "parameterOrder": [ - "projectId", - "region" - ], - "parameters": { - "clusterName": { - "description": "Optional. If set, the returned jobs list includes only jobs that were submitted to the named cluster.", - "location": "query", - "type": "string" + "searchExecutors": { + "description": "Obtain data corresponding to executors for a Spark Application.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sessions/{sessionsId}/sparkApplications/{sparkApplicationsId}:searchExecutors", + "httpMethod": "GET", + "id": "dataproc.projects.locations.sessions.sparkApplications.searchExecutors", + "parameterOrder": [ + "name" + ], + "parameters": { + "executorStatus": { + "description": "Optional. Filter to select whether active/ dead or all executors should be selected.", + "enum": [ + "EXECUTOR_STATUS_UNSPECIFIED", + "EXECUTOR_STATUS_ACTIVE", + "EXECUTOR_STATUS_DEAD" + ], + "enumDescriptions": [ + "", + "", + "" + ], + "location": "query", + "type": "string" + }, + "name": { + "description": "Required. The fully qualified name of the session to retrieve in the format \"projects/PROJECT_ID/locations/DATAPROC_REGION/sessions/SESSION_ID/sparkApplications/APPLICATION_ID\"", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/sessions/[^/]+/sparkApplications/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "Optional. Maximum number of executors to return in each response. The service may return fewer than this. The default page size is 10; the maximum page size is 100.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token received from a previous SearchSessionSparkApplicationExecutors call. Provide this token to retrieve the subsequent page.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Parent (Session) resource reference.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}:searchExecutors", + "response": { + "$ref": "SearchSessionSparkApplicationExecutorsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] }, - "filter": { - "description": "Optional. A filter constraining the jobs to list. Filters are case-sensitive and have the following syntax:field = value AND field = value ...where field is status.state or labels.[KEY], and [KEY] is a label key. value can be * to match all values. status.state can be either ACTIVE or NON_ACTIVE. Only the logical AND operator is supported; space-separated items are treated as having an implicit AND operator.Example filter:status.state = ACTIVE AND labels.env = staging AND labels.starred = *", - "location": "query", - "type": "string" + "searchJobs": { + "description": "Obtain list of spark jobs corresponding to a Spark Application.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sessions/{sessionsId}/sparkApplications/{sparkApplicationsId}:searchJobs", + "httpMethod": "GET", + "id": "dataproc.projects.locations.sessions.sparkApplications.searchJobs", + "parameterOrder": [ + "name" + ], + "parameters": { + "jobStatus": { + "description": "Optional. List only jobs in the specific state.", + "enum": [ + "JOB_EXECUTION_STATUS_UNSPECIFIED", + "JOB_EXECUTION_STATUS_RUNNING", + "JOB_EXECUTION_STATUS_SUCCEEDED", + "JOB_EXECUTION_STATUS_FAILED", + "JOB_EXECUTION_STATUS_UNKNOWN" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "" + ], + "location": "query", + "type": "string" + }, + "name": { + "description": "Required. The fully qualified name of the session to retrieve in the format \"projects/PROJECT_ID/locations/DATAPROC_REGION/sessions/SESSION_ID/sparkApplications/APPLICATION_ID\"", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/sessions/[^/]+/sparkApplications/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "Optional. Maximum number of jobs to return in each response. The service may return fewer than this. The default page size is 10; the maximum page size is 100.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token received from a previous SearchSessionSparkApplicationJobs call. Provide this token to retrieve the subsequent page.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Parent (Session) resource reference.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}:searchJobs", + "response": { + "$ref": "SearchSessionSparkApplicationJobsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] }, - "jobStateMatcher": { - "description": "Optional. Specifies enumerated categories of jobs to list. (default = match ALL jobs).If filter is provided, jobStateMatcher will be ignored.", - "enum": [ - "ALL", - "ACTIVE", - "NON_ACTIVE" + "searchSqlQueries": { + "description": "Obtain data corresponding to SQL Queries for a Spark Application.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sessions/{sessionsId}/sparkApplications/{sparkApplicationsId}:searchSqlQueries", + "httpMethod": "GET", + "id": "dataproc.projects.locations.sessions.sparkApplications.searchSqlQueries", + "parameterOrder": [ + "name" ], - "enumDescriptions": [ - "Match all jobs, regardless of state.", - "Only match jobs in non-terminal states: PENDING, RUNNING, or CANCEL_PENDING.", - "Only match jobs in terminal states: CANCELLED, DONE, or ERROR." + "parameters": { + "details": { + "description": "Optional. Lists/ hides details of Spark plan nodes. True is set to list and false to hide.", + "location": "query", + "type": "boolean" + }, + "name": { + "description": "Required. The fully qualified name of the session to retrieve in the format \"projects/PROJECT_ID/locations/DATAPROC_REGION/sessions/SESSION_ID/sparkApplications/APPLICATION_ID\"", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/sessions/[^/]+/sparkApplications/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "Optional. Maximum number of queries to return in each response. The service may return fewer than this. The default page size is 10; the maximum page size is 100.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token received from a previous SearchSessionSparkApplicationSqlQueries call. Provide this token to retrieve the subsequent page.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Parent (Session) resource reference.", + "location": "query", + "type": "string" + }, + "planDescription": { + "description": "Optional. Enables/ disables physical plan description on demand", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+name}:searchSqlQueries", + "response": { + "$ref": "SearchSessionSparkApplicationSqlQueriesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "searchStageAttemptTasks": { + "description": "Obtain data corresponding to tasks for a spark stage attempt for a Spark Application.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sessions/{sessionsId}/sparkApplications/{sparkApplicationsId}:searchStageAttemptTasks", + "httpMethod": "GET", + "id": "dataproc.projects.locations.sessions.sparkApplications.searchStageAttemptTasks", + "parameterOrder": [ + "name" ], - "location": "query", - "type": "string" + "parameters": { + "name": { + "description": "Required. The fully qualified name of the session to retrieve in the format \"projects/PROJECT_ID/locations/DATAPROC_REGION/sessions/SESSION_ID/sparkApplications/APPLICATION_ID\"", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/sessions/[^/]+/sparkApplications/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "Optional. Maximum number of tasks to return in each response. The service may return fewer than this. The default page size is 10; the maximum page size is 100.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token received from a previous SearchSessionSparkApplicationStageAttemptTasks call. Provide this token to retrieve the subsequent page.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Parent (Session) resource reference.", + "location": "query", + "type": "string" + }, + "sortRuntime": { + "description": "Optional. Sort the tasks by runtime.", + "location": "query", + "type": "boolean" + }, + "stageAttemptId": { + "description": "Optional. Stage Attempt ID", + "format": "int32", + "location": "query", + "type": "integer" + }, + "stageId": { + "description": "Optional. Stage ID", + "format": "int64", + "location": "query", + "type": "string" + }, + "taskStatus": { + "description": "Optional. List only tasks in the state.", + "enum": [ + "TASK_STATUS_UNSPECIFIED", + "TASK_STATUS_RUNNING", + "TASK_STATUS_SUCCESS", + "TASK_STATUS_FAILED", + "TASK_STATUS_KILLED", + "TASK_STATUS_PENDING" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "" + ], + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}:searchStageAttemptTasks", + "response": { + "$ref": "SearchSessionSparkApplicationStageAttemptTasksResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] }, - "pageSize": { - "description": "Optional. The number of results to return in each response.", - "format": "int32", - "location": "query", - "type": "integer" + "searchStageAttempts": { + "description": "Obtain data corresponding to a spark stage attempts for a Spark Application.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sessions/{sessionsId}/sparkApplications/{sparkApplicationsId}:searchStageAttempts", + "httpMethod": "GET", + "id": "dataproc.projects.locations.sessions.sparkApplications.searchStageAttempts", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The fully qualified name of the session to retrieve in the format \"projects/PROJECT_ID/locations/DATAPROC_REGION/sessions/SESSION_ID/sparkApplications/APPLICATION_ID\"", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/sessions/[^/]+/sparkApplications/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "Optional. Maximum number of stage attempts (paging based on stage_attempt_id) to return in each response. The service may return fewer than this. The default page size is 10; the maximum page size is 100.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token received from a previous SearchSessionSparkApplicationStageAttempts call. Provide this token to retrieve the subsequent page.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Parent (Session) resource reference.", + "location": "query", + "type": "string" + }, + "stageId": { + "description": "Required. Stage ID for which attempts are to be fetched", + "format": "int64", + "location": "query", + "type": "string" + }, + "summaryMetricsMask": { + "description": "Optional. The list of summary metrics fields to include. Empty list will default to skip all summary metrics fields. Example, if the response should include TaskQuantileMetrics, the request should have task_quantile_metrics in summary_metrics_mask field", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}:searchStageAttempts", + "response": { + "$ref": "SearchSessionSparkApplicationStageAttemptsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] }, - "pageToken": { - "description": "Optional. The page token, returned by a previous call, to request the next page of results.", - "location": "query", - "type": "string" + "searchStages": { + "description": "Obtain data corresponding to stages for a Spark Application.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sessions/{sessionsId}/sparkApplications/{sparkApplicationsId}:searchStages", + "httpMethod": "GET", + "id": "dataproc.projects.locations.sessions.sparkApplications.searchStages", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The fully qualified name of the session to retrieve in the format \"projects/PROJECT_ID/locations/DATAPROC_REGION/sessions/SESSION_ID/sparkApplications/APPLICATION_ID\"", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/sessions/[^/]+/sparkApplications/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "Optional. Maximum number of stages (paging based on stage_id) to return in each response. The service may return fewer than this. The default page size is 10; the maximum page size is 100.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token received from a previous SearchSessionSparkApplicationStages call. Provide this token to retrieve the subsequent page.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Parent (Session) resource reference.", + "location": "query", + "type": "string" + }, + "stageStatus": { + "description": "Optional. List only stages in the given state.", + "enum": [ + "STAGE_STATUS_UNSPECIFIED", + "STAGE_STATUS_ACTIVE", + "STAGE_STATUS_COMPLETE", + "STAGE_STATUS_FAILED", + "STAGE_STATUS_PENDING", + "STAGE_STATUS_SKIPPED" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "" + ], + "location": "query", + "type": "string" + }, + "summaryMetricsMask": { + "description": "Optional. The list of summary metrics fields to include. Empty list will default to skip all summary metrics fields. Example, if the response should include TaskQuantileMetrics, the request should have task_quantile_metrics in summary_metrics_mask field", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}:searchStages", + "response": { + "$ref": "SearchSessionSparkApplicationStagesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] }, - "projectId": { - "description": "Required. The ID of the Google Cloud Platform project that the job belongs to.", - "location": "path", - "required": true, - "type": "string" + "summarizeExecutors": { + "description": "Obtain summary of Executor Summary for a Spark Application", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sessions/{sessionsId}/sparkApplications/{sparkApplicationsId}:summarizeExecutors", + "httpMethod": "GET", + "id": "dataproc.projects.locations.sessions.sparkApplications.summarizeExecutors", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The fully qualified name of the session to retrieve in the format \"projects/PROJECT_ID/locations/DATAPROC_REGION/sessions/SESSION_ID/sparkApplications/APPLICATION_ID\"", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/sessions/[^/]+/sparkApplications/[^/]+$", + "required": true, + "type": "string" + }, + "parent": { + "description": "Required. Parent (Session) resource reference.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}:summarizeExecutors", + "response": { + "$ref": "SummarizeSessionSparkApplicationExecutorsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] }, - "region": { - "description": "Required. The Dataproc region in which to handle the request.", + "summarizeJobs": { + "description": "Obtain summary of Jobs for a Spark Application", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sessions/{sessionsId}/sparkApplications/{sparkApplicationsId}:summarizeJobs", + "httpMethod": "GET", + "id": "dataproc.projects.locations.sessions.sparkApplications.summarizeJobs", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The fully qualified name of the session to retrieve in the format \"projects/PROJECT_ID/locations/DATAPROC_REGION/sessions/SESSION_ID/sparkApplications/APPLICATION_ID\"", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/sessions/[^/]+/sparkApplications/[^/]+$", + "required": true, + "type": "string" + }, + "parent": { + "description": "Required. Parent (Session) resource reference.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}:summarizeJobs", + "response": { + "$ref": "SummarizeSessionSparkApplicationJobsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "summarizeStageAttemptTasks": { + "description": "Obtain summary of Tasks for a Spark Application Stage Attempt", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sessions/{sessionsId}/sparkApplications/{sparkApplicationsId}:summarizeStageAttemptTasks", + "httpMethod": "GET", + "id": "dataproc.projects.locations.sessions.sparkApplications.summarizeStageAttemptTasks", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The fully qualified name of the session to retrieve in the format \"projects/PROJECT_ID/locations/DATAPROC_REGION/sessions/SESSION_ID/sparkApplications/APPLICATION_ID\"", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/sessions/[^/]+/sparkApplications/[^/]+$", + "required": true, + "type": "string" + }, + "parent": { + "description": "Required. Parent (Session) resource reference.", + "location": "query", + "type": "string" + }, + "stageAttemptId": { + "description": "Required. Stage Attempt ID", + "format": "int32", + "location": "query", + "type": "integer" + }, + "stageId": { + "description": "Required. Stage ID", + "format": "int64", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}:summarizeStageAttemptTasks", + "response": { + "$ref": "SummarizeSessionSparkApplicationStageAttemptTasksResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "summarizeStages": { + "description": "Obtain summary of Stages for a Spark Application", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sessions/{sessionsId}/sparkApplications/{sparkApplicationsId}:summarizeStages", + "httpMethod": "GET", + "id": "dataproc.projects.locations.sessions.sparkApplications.summarizeStages", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The fully qualified name of the session to retrieve in the format \"projects/PROJECT_ID/locations/DATAPROC_REGION/sessions/SESSION_ID/sparkApplications/APPLICATION_ID\"", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/sessions/[^/]+/sparkApplications/[^/]+$", + "required": true, + "type": "string" + }, + "parent": { + "description": "Required. Parent (Session) resource reference.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}:summarizeStages", + "response": { + "$ref": "SummarizeSessionSparkApplicationStagesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "write": { + "description": "Write wrapper objects from dataplane to spanner", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sessions/{sessionsId}/sparkApplications/{sparkApplicationsId}:write", + "httpMethod": "POST", + "id": "dataproc.projects.locations.sessions.sparkApplications.write", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The fully qualified name of the spark application to write data about in the format \"projects/PROJECT_ID/locations/DATAPROC_REGION/sessions/SESSION_ID/sparkApplications/APPLICATION_ID\"", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/sessions/[^/]+/sparkApplications/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:write", + "request": { + "$ref": "WriteSessionSparkApplicationContextRequest" + }, + "response": { + "$ref": "WriteSessionSparkApplicationContextResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + }, + "workflowTemplates": { + "methods": { + "create": { + "description": "Creates new workflow template.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workflowTemplates", + "httpMethod": "POST", + "id": "dataproc.projects.locations.workflowTemplates.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The resource name of the region or location, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates.create, the resource name of the region has the following format: projects/{project_id}/regions/{region} For projects.locations.workflowTemplates.create, the resource name of the location has the following format: projects/{project_id}/locations/{location}", "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/projects/{projectId}/regions/{region}/jobs", + "path": "v1/{+parent}/workflowTemplates", + "request": { + "$ref": "WorkflowTemplate" + }, "response": { - "$ref": "ListJobsResponse" + "$ref": "WorkflowTemplate" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "patch": { - "description": "Updates a job in a project.", - "flatPath": "v1/projects/{projectId}/regions/{region}/jobs/{jobId}", - "httpMethod": "PATCH", - "id": "dataproc.projects.regions.jobs.patch", + "delete": { + "description": "Deletes a workflow template. It does not cancel in-progress workflows.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workflowTemplates/{workflowTemplatesId}", + "httpMethod": "DELETE", + "id": "dataproc.projects.locations.workflowTemplates.delete", "parameterOrder": [ - "projectId", - "region", - "jobId" + "name" ], "parameters": { - "jobId": { - "description": "Required. The job ID.", - "location": "path", - "required": true, - "type": "string" - }, - "projectId": { - "description": "Required. The ID of the Google Cloud Platform project that the job belongs to.", + "name": { + "description": "Required. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates.delete, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id} For projects.locations.workflowTemplates.instantiate, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id}", "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/workflowTemplates/[^/]+$", "required": true, "type": "string" }, - "region": { - "description": "Required. The Dataproc region in which to handle the request.", + "version": { + "description": "Optional. The version of workflow template to delete. If specified, will only delete the template if the current server version matches specified version.", + "format": "int32", + "location": "query", + "type": "integer" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Retrieves the latest workflow template.Can retrieve previously instantiated template by specifying optional version parameter.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workflowTemplates/{workflowTemplatesId}", + "httpMethod": "GET", + "id": "dataproc.projects.locations.workflowTemplates.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates.get, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id} For projects.locations.workflowTemplates.get, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id}", "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/workflowTemplates/[^/]+$", "required": true, "type": "string" }, - "updateMask": { - "description": "Required. Specifies the path, relative to Job, of the field to update. For example, to update the labels of a Job the update_mask parameter would be specified as labels, and the PATCH request body would specify the new value. *Note:* Currently, labels is the only field that can be updated.", - "format": "google-fieldmask", + "version": { + "description": "Optional. The version of workflow template to retrieve. Only previously instantiated versions can be retrieved.If unspecified, retrieves the current version.", + "format": "int32", "location": "query", - "type": "string" + "type": "integer" } }, - "path": "v1/projects/{projectId}/regions/{region}/jobs/{jobId}", - "request": { - "$ref": "Job" - }, + "path": "v1/{+name}", "response": { - "$ref": "Job" + "$ref": "WorkflowTemplate" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "setIamPolicy": { - "description": "Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.", - "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/jobs/{jobsId}:setIamPolicy", + "getIamPolicy": { + "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workflowTemplates/{workflowTemplatesId}:getIamPolicy", "httpMethod": "POST", - "id": "dataproc.projects.regions.jobs.setIamPolicy", + "id": "dataproc.projects.locations.workflowTemplates.getIamPolicy", "parameterOrder": [ "resource" ], "parameters": { "resource": { - "description": "REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "description": "REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", "location": "path", - "pattern": "^projects/[^/]+/regions/[^/]+/jobs/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/workflowTemplates/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+resource}:setIamPolicy", + "path": "v1/{+resource}:getIamPolicy", "request": { - "$ref": "SetIamPolicyRequest" + "$ref": "GetIamPolicyRequest" }, "response": { "$ref": "Policy" @@ -2467,69 +2985,126 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, - "submit": { - "description": "Submits a job to a cluster.", - "flatPath": "v1/projects/{projectId}/regions/{region}/jobs:submit", + "instantiate": { + "description": "Instantiates a template and begins execution.The returned Operation can be used to track execution of workflow by polling operations.get. The Operation will complete when entire workflow is finished.The running workflow can be aborted via operations.cancel. This will cause any inflight jobs to be cancelled and workflow-owned clusters to be deleted.The Operation.metadata will be WorkflowMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata). Also see Using WorkflowMetadata (https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata).On successful completion, Operation.response will be Empty.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workflowTemplates/{workflowTemplatesId}:instantiate", "httpMethod": "POST", - "id": "dataproc.projects.regions.jobs.submit", + "id": "dataproc.projects.locations.workflowTemplates.instantiate", "parameterOrder": [ - "projectId", - "region" + "name" ], "parameters": { - "projectId": { - "description": "Required. The ID of the Google Cloud Platform project that the job belongs to.", - "location": "path", - "required": true, - "type": "string" - }, - "region": { - "description": "Required. The Dataproc region in which to handle the request.", + "name": { + "description": "Required. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates.instantiate, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id} For projects.locations.workflowTemplates.instantiate, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id}", "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/workflowTemplates/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/projects/{projectId}/regions/{region}/jobs:submit", + "path": "v1/{+name}:instantiate", "request": { - "$ref": "SubmitJobRequest" + "$ref": "InstantiateWorkflowTemplateRequest" }, "response": { - "$ref": "Job" + "$ref": "Operation" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "submitAsOperation": { - "description": "Submits job to a cluster.", - "flatPath": "v1/projects/{projectId}/regions/{region}/jobs:submitAsOperation", + "instantiateInline": { + "description": "Instantiates a template and begins execution.This method is equivalent to executing the sequence CreateWorkflowTemplate, InstantiateWorkflowTemplate, DeleteWorkflowTemplate.The returned Operation can be used to track execution of workflow by polling operations.get. The Operation will complete when entire workflow is finished.The running workflow can be aborted via operations.cancel. This will cause any inflight jobs to be cancelled and workflow-owned clusters to be deleted.The Operation.metadata will be WorkflowMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata). Also see Using WorkflowMetadata (https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata).On successful completion, Operation.response will be Empty.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workflowTemplates:instantiateInline", "httpMethod": "POST", - "id": "dataproc.projects.regions.jobs.submitAsOperation", + "id": "dataproc.projects.locations.workflowTemplates.instantiateInline", "parameterOrder": [ - "projectId", - "region" + "parent" ], "parameters": { - "projectId": { - "description": "Required. The ID of the Google Cloud Platform project that the job belongs to.", + "parent": { + "description": "Required. The resource name of the region or location, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates,instantiateinline, the resource name of the region has the following format: projects/{project_id}/regions/{region} For projects.locations.workflowTemplates.instantiateinline, the resource name of the location has the following format: projects/{project_id}/locations/{location}", "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "type": "string" }, - "region": { - "description": "Required. The Dataproc region in which to handle the request.", + "requestId": { + "description": "Optional. A tag that prevents multiple concurrent workflow instances with the same tag from running. This mitigates risk of concurrent instances started due to retries.It is recommended to always set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The tag must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/workflowTemplates:instantiateInline", + "request": { + "$ref": "WorkflowTemplate" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists workflows that match the specified filter in the request.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workflowTemplates", + "httpMethod": "GET", + "id": "dataproc.projects.locations.workflowTemplates.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. The maximum number of results to return in each response.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. The page token, returned by a previous call, to request the next page of results.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The resource name of the region or location, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates,list, the resource name of the region has the following format: projects/{project_id}/regions/{region} For projects.locations.workflowTemplates.list, the resource name of the location has the following format: projects/{project_id}/locations/{location}", "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/projects/{projectId}/regions/{region}/jobs:submitAsOperation", + "path": "v1/{+parent}/workflowTemplates", + "response": { + "$ref": "ListWorkflowTemplatesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "setIamPolicy": { + "description": "Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workflowTemplates/{workflowTemplatesId}:setIamPolicy", + "httpMethod": "POST", + "id": "dataproc.projects.locations.workflowTemplates.setIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/workflowTemplates/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:setIamPolicy", "request": { - "$ref": "SubmitJobRequest" + "$ref": "SetIamPolicyRequest" }, "response": { - "$ref": "Operation" + "$ref": "Policy" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" @@ -2537,9 +3112,9 @@ }, "testIamPermissions": { "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/jobs/{jobsId}:testIamPermissions", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workflowTemplates/{workflowTemplatesId}:testIamPermissions", "httpMethod": "POST", - "id": "dataproc.projects.regions.jobs.testIamPermissions", + "id": "dataproc.projects.locations.workflowTemplates.testIamPermissions", "parameterOrder": [ "resource" ], @@ -2547,7 +3122,7 @@ "resource": { "description": "REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", "location": "path", - "pattern": "^projects/[^/]+/regions/[^/]+/jobs/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/workflowTemplates/[^/]+$", "required": true, "type": "string" } @@ -2562,49 +3137,84 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + }, + "update": { + "description": "Updates (replaces) workflow template. The updated template must contain version that matches the current server version.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workflowTemplates/{workflowTemplatesId}", + "httpMethod": "PUT", + "id": "dataproc.projects.locations.workflowTemplates.update", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Output only. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id} For projects.locations.workflowTemplates, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/workflowTemplates/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "WorkflowTemplate" + }, + "response": { + "$ref": "WorkflowTemplate" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } } - }, - "operations": { + } + } + }, + "regions": { + "resources": { + "autoscalingPolicies": { "methods": { - "cancel": { - "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.", - "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/operations/{operationsId}:cancel", + "create": { + "description": "Creates new autoscaling policy.", + "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/autoscalingPolicies", "httpMethod": "POST", - "id": "dataproc.projects.regions.operations.cancel", + "id": "dataproc.projects.regions.autoscalingPolicies.create", "parameterOrder": [ - "name" + "parent" ], "parameters": { - "name": { - "description": "The name of the operation resource to be cancelled.", + "parent": { + "description": "Required. The \"resource name\" of the region or location, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.autoscalingPolicies.create, the resource name of the region has the following format: projects/{project_id}/regions/{region} For projects.locations.autoscalingPolicies.create, the resource name of the location has the following format: projects/{project_id}/locations/{location}", "location": "path", - "pattern": "^projects/[^/]+/regions/[^/]+/operations/[^/]+$", + "pattern": "^projects/[^/]+/regions/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+name}:cancel", + "path": "v1/{+parent}/autoscalingPolicies", + "request": { + "$ref": "AutoscalingPolicy" + }, "response": { - "$ref": "Empty" + "$ref": "AutoscalingPolicy" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "delete": { - "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.", - "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/operations/{operationsId}", + "description": "Deletes an autoscaling policy. It is an error to delete an autoscaling policy that is in use by one or more clusters.", + "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/autoscalingPolicies/{autoscalingPoliciesId}", "httpMethod": "DELETE", - "id": "dataproc.projects.regions.operations.delete", + "id": "dataproc.projects.regions.autoscalingPolicies.delete", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "The name of the operation resource to be deleted.", + "description": "Required. The \"resource name\" of the autoscaling policy, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.autoscalingPolicies.delete, the resource name of the policy has the following format: projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id} For projects.locations.autoscalingPolicies.delete, the resource name of the policy has the following format: projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}", "location": "path", - "pattern": "^projects/[^/]+/regions/[^/]+/operations/[^/]+$", + "pattern": "^projects/[^/]+/regions/[^/]+/autoscalingPolicies/[^/]+$", "required": true, "type": "string" } @@ -2618,25 +3228,25 @@ ] }, "get": { - "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/operations/{operationsId}", + "description": "Retrieves autoscaling policy.", + "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/autoscalingPolicies/{autoscalingPoliciesId}", "httpMethod": "GET", - "id": "dataproc.projects.regions.operations.get", + "id": "dataproc.projects.regions.autoscalingPolicies.get", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "The name of the operation resource.", + "description": "Required. The \"resource name\" of the autoscaling policy, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.autoscalingPolicies.get, the resource name of the policy has the following format: projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id} For projects.locations.autoscalingPolicies.get, the resource name of the policy has the following format: projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}", "location": "path", - "pattern": "^projects/[^/]+/regions/[^/]+/operations/[^/]+$", + "pattern": "^projects/[^/]+/regions/[^/]+/autoscalingPolicies/[^/]+$", "required": true, "type": "string" } }, "path": "v1/{+name}", "response": { - "$ref": "Operation" + "$ref": "AutoscalingPolicy" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" @@ -2644,9 +3254,9 @@ }, "getIamPolicy": { "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", - "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/operations/{operationsId}:getIamPolicy", + "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/autoscalingPolicies/{autoscalingPoliciesId}:getIamPolicy", "httpMethod": "POST", - "id": "dataproc.projects.regions.operations.getIamPolicy", + "id": "dataproc.projects.regions.autoscalingPolicies.getIamPolicy", "parameterOrder": [ "resource" ], @@ -2654,7 +3264,7 @@ "resource": { "description": "REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", "location": "path", - "pattern": "^projects/[^/]+/regions/[^/]+/operations/[^/]+$", + "pattern": "^projects/[^/]+/regions/[^/]+/autoscalingPolicies/[^/]+$", "required": true, "type": "string" } @@ -2671,41 +3281,36 @@ ] }, "list": { - "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.", - "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/operations", + "description": "Lists autoscaling policies in the project.", + "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/autoscalingPolicies", "httpMethod": "GET", - "id": "dataproc.projects.regions.operations.list", + "id": "dataproc.projects.regions.autoscalingPolicies.list", "parameterOrder": [ - "name" + "parent" ], "parameters": { - "filter": { - "description": "The standard list filter.", - "location": "query", - "type": "string" - }, - "name": { - "description": "The name of the operation's parent resource.", - "location": "path", - "pattern": "^projects/[^/]+/regions/[^/]+/operations$", - "required": true, - "type": "string" - }, "pageSize": { - "description": "The standard list page size.", + "description": "Optional. The maximum number of results to return in each response. Must be less than or equal to 1000. Defaults to 100.", "format": "int32", "location": "query", "type": "integer" }, "pageToken": { - "description": "The standard list page token.", + "description": "Optional. The page token, returned by a previous call, to request the next page of results.", "location": "query", "type": "string" + }, + "parent": { + "description": "Required. The \"resource name\" of the region or location, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.autoscalingPolicies.list, the resource name of the region has the following format: projects/{project_id}/regions/{region} For projects.locations.autoscalingPolicies.list, the resource name of the location has the following format: projects/{project_id}/locations/{location}", + "location": "path", + "pattern": "^projects/[^/]+/regions/[^/]+$", + "required": true, + "type": "string" } }, - "path": "v1/{+name}", + "path": "v1/{+parent}/autoscalingPolicies", "response": { - "$ref": "ListOperationsResponse" + "$ref": "ListAutoscalingPoliciesResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" @@ -2713,9 +3318,9 @@ }, "setIamPolicy": { "description": "Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.", - "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/operations/{operationsId}:setIamPolicy", + "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/autoscalingPolicies/{autoscalingPoliciesId}:setIamPolicy", "httpMethod": "POST", - "id": "dataproc.projects.regions.operations.setIamPolicy", + "id": "dataproc.projects.regions.autoscalingPolicies.setIamPolicy", "parameterOrder": [ "resource" ], @@ -2723,7 +3328,7 @@ "resource": { "description": "REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", "location": "path", - "pattern": "^projects/[^/]+/regions/[^/]+/operations/[^/]+$", + "pattern": "^projects/[^/]+/regions/[^/]+/autoscalingPolicies/[^/]+$", "required": true, "type": "string" } @@ -2741,9 +3346,9 @@ }, "testIamPermissions": { "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/operations/{operationsId}:testIamPermissions", + "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/autoscalingPolicies/{autoscalingPoliciesId}:testIamPermissions", "httpMethod": "POST", - "id": "dataproc.projects.regions.operations.testIamPermissions", + "id": "dataproc.projects.regions.autoscalingPolicies.testIamPermissions", "parameterOrder": [ "resource" ], @@ -2751,7 +3356,7 @@ "resource": { "description": "REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", "location": "path", - "pattern": "^projects/[^/]+/regions/[^/]+/operations/[^/]+$", + "pattern": "^projects/[^/]+/regions/[^/]+/autoscalingPolicies/[^/]+$", "required": true, "type": "string" } @@ -2766,150 +3371,140 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] - } - } - }, - "workflowTemplates": { - "methods": { - "create": { - "description": "Creates new workflow template.", - "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/workflowTemplates", - "httpMethod": "POST", - "id": "dataproc.projects.regions.workflowTemplates.create", + }, + "update": { + "description": "Updates (replaces) autoscaling policy.Disabled check for update_mask, because all updates will be full replacements.", + "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/autoscalingPolicies/{autoscalingPoliciesId}", + "httpMethod": "PUT", + "id": "dataproc.projects.regions.autoscalingPolicies.update", "parameterOrder": [ - "parent" + "name" ], "parameters": { - "parent": { - "description": "Required. The resource name of the region or location, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates.create, the resource name of the region has the following format: projects/{project_id}/regions/{region} For projects.locations.workflowTemplates.create, the resource name of the location has the following format: projects/{project_id}/locations/{location}", + "name": { + "description": "Output only. The \"resource name\" of the autoscaling policy, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.autoscalingPolicies, the resource name of the policy has the following format: projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id} For projects.locations.autoscalingPolicies, the resource name of the policy has the following format: projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}", "location": "path", - "pattern": "^projects/[^/]+/regions/[^/]+$", + "pattern": "^projects/[^/]+/regions/[^/]+/autoscalingPolicies/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+parent}/workflowTemplates", + "path": "v1/{+name}", "request": { - "$ref": "WorkflowTemplate" + "$ref": "AutoscalingPolicy" }, "response": { - "$ref": "WorkflowTemplate" + "$ref": "AutoscalingPolicy" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] - }, - "delete": { - "description": "Deletes a workflow template. It does not cancel in-progress workflows.", - "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/workflowTemplates/{workflowTemplatesId}", - "httpMethod": "DELETE", - "id": "dataproc.projects.regions.workflowTemplates.delete", + } + } + }, + "clusters": { + "methods": { + "create": { + "description": "Creates a cluster in a project. The returned Operation.metadata will be ClusterOperationMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).", + "flatPath": "v1/projects/{projectId}/regions/{region}/clusters", + "httpMethod": "POST", + "id": "dataproc.projects.regions.clusters.create", "parameterOrder": [ - "name" + "projectId", + "region" ], "parameters": { - "name": { - "description": "Required. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates.delete, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id} For projects.locations.workflowTemplates.instantiate, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id}", + "actionOnFailedPrimaryWorkers": { + "description": "Optional. Failure action when primary worker creation fails.", + "enum": [ + "FAILURE_ACTION_UNSPECIFIED", + "NO_ACTION", + "DELETE" + ], + "enumDescriptions": [ + "When FailureAction is unspecified, failure action defaults to NO_ACTION.", + "Take no action on failure to create a cluster resource. NO_ACTION is the default.", + "Delete the failed cluster resource." + ], + "location": "query", + "type": "string" + }, + "projectId": { + "description": "Required. The ID of the Google Cloud Platform project that the cluster belongs to.", "location": "path", - "pattern": "^projects/[^/]+/regions/[^/]+/workflowTemplates/[^/]+$", "required": true, "type": "string" }, - "version": { - "description": "Optional. The version of workflow template to delete. If specified, will only delete the template if the current server version matches specified version.", - "format": "int32", + "region": { + "description": "Required. The Dataproc region in which to handle the request.", + "location": "path", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. A unique ID used to identify the request. If the server receives two CreateClusterRequest (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateClusterRequest)s with the same id, then the second request will be ignored and the first google.longrunning.Operation created and stored in the backend is returned.It is recommended to always set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", "location": "query", - "type": "integer" + "type": "string" } }, - "path": "v1/{+name}", + "path": "v1/projects/{projectId}/regions/{region}/clusters", + "request": { + "$ref": "Cluster" + }, "response": { - "$ref": "Empty" + "$ref": "Operation" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "get": { - "description": "Retrieves the latest workflow template.Can retrieve previously instantiated template by specifying optional version parameter.", - "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/workflowTemplates/{workflowTemplatesId}", - "httpMethod": "GET", - "id": "dataproc.projects.regions.workflowTemplates.get", + "delete": { + "description": "Deletes a cluster in a project. The returned Operation.metadata will be ClusterOperationMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).", + "flatPath": "v1/projects/{projectId}/regions/{region}/clusters/{clusterName}", + "httpMethod": "DELETE", + "id": "dataproc.projects.regions.clusters.delete", "parameterOrder": [ - "name" + "projectId", + "region", + "clusterName" ], "parameters": { - "name": { - "description": "Required. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates.get, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id} For projects.locations.workflowTemplates.get, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id}", + "clusterName": { + "description": "Required. The cluster name.", "location": "path", - "pattern": "^projects/[^/]+/regions/[^/]+/workflowTemplates/[^/]+$", "required": true, "type": "string" }, - "version": { - "description": "Optional. The version of workflow template to retrieve. Only previously instantiated versions can be retrieved.If unspecified, retrieves the current version.", - "format": "int32", + "clusterUuid": { + "description": "Optional. Specifying the cluster_uuid means the RPC should fail (with error NOT_FOUND) if cluster with specified UUID does not exist.", "location": "query", - "type": "integer" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "WorkflowTemplate" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "getIamPolicy": { - "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", - "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/workflowTemplates/{workflowTemplatesId}:getIamPolicy", - "httpMethod": "POST", - "id": "dataproc.projects.regions.workflowTemplates.getIamPolicy", - "parameterOrder": [ - "resource" - ], - "parameters": { - "resource": { - "description": "REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "type": "string" + }, + "gracefulTerminationTimeout": { + "description": "Optional. The graceful termination timeout for the deletion of the cluster. Indicate the time the request will wait to complete the running jobs on the cluster before its forceful deletion. Default value is 0 indicating that the user has not enabled the graceful termination. Value can be between 60 second and 6 Hours, in case the graceful termination is enabled. (There is no separate flag to check the enabling or disabling of graceful termination, it can be checked by the values in the field).", + "format": "google-duration", + "location": "query", + "type": "string" + }, + "projectId": { + "description": "Required. The ID of the Google Cloud Platform project that the cluster belongs to.", "location": "path", - "pattern": "^projects/[^/]+/regions/[^/]+/workflowTemplates/[^/]+$", "required": true, "type": "string" - } - }, - "path": "v1/{+resource}:getIamPolicy", - "request": { - "$ref": "GetIamPolicyRequest" - }, - "response": { - "$ref": "Policy" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "instantiate": { - "description": "Instantiates a template and begins execution.The returned Operation can be used to track execution of workflow by polling operations.get. The Operation will complete when entire workflow is finished.The running workflow can be aborted via operations.cancel. This will cause any inflight jobs to be cancelled and workflow-owned clusters to be deleted.The Operation.metadata will be WorkflowMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata). Also see Using WorkflowMetadata (https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata).On successful completion, Operation.response will be Empty.", - "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/workflowTemplates/{workflowTemplatesId}:instantiate", - "httpMethod": "POST", - "id": "dataproc.projects.regions.workflowTemplates.instantiate", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates.instantiate, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id} For projects.locations.workflowTemplates.instantiate, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id}", + }, + "region": { + "description": "Required. The Dataproc region in which to handle the request.", "location": "path", - "pattern": "^projects/[^/]+/regions/[^/]+/workflowTemplates/[^/]+$", "required": true, "type": "string" + }, + "requestId": { + "description": "Optional. A unique ID used to identify the request. If the server receives two DeleteClusterRequest (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.DeleteClusterRequest)s with the same id, then the second request will be ignored and the first google.longrunning.Operation created and stored in the backend is returned.It is recommended to always set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", + "location": "query", + "type": "string" } }, - "path": "v1/{+name}:instantiate", - "request": { - "$ref": "InstantiateWorkflowTemplateRequest" - }, + "path": "v1/projects/{projectId}/regions/{region}/clusters/{clusterName}", "response": { "$ref": "Operation" }, @@ -2917,31 +3512,39 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, - "instantiateInline": { - "description": "Instantiates a template and begins execution.This method is equivalent to executing the sequence CreateWorkflowTemplate, InstantiateWorkflowTemplate, DeleteWorkflowTemplate.The returned Operation can be used to track execution of workflow by polling operations.get. The Operation will complete when entire workflow is finished.The running workflow can be aborted via operations.cancel. This will cause any inflight jobs to be cancelled and workflow-owned clusters to be deleted.The Operation.metadata will be WorkflowMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata). Also see Using WorkflowMetadata (https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata).On successful completion, Operation.response will be Empty.", - "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/workflowTemplates:instantiateInline", + "diagnose": { + "description": "Gets cluster diagnostic information. The returned Operation.metadata will be ClusterOperationMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). After the operation completes, Operation.response contains DiagnoseClusterResults (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#diagnoseclusterresults).", + "flatPath": "v1/projects/{projectId}/regions/{region}/clusters/{clusterName}:diagnose", "httpMethod": "POST", - "id": "dataproc.projects.regions.workflowTemplates.instantiateInline", + "id": "dataproc.projects.regions.clusters.diagnose", "parameterOrder": [ - "parent" + "projectId", + "region", + "clusterName" ], "parameters": { - "parent": { - "description": "Required. The resource name of the region or location, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates,instantiateinline, the resource name of the region has the following format: projects/{project_id}/regions/{region} For projects.locations.workflowTemplates.instantiateinline, the resource name of the location has the following format: projects/{project_id}/locations/{location}", + "clusterName": { + "description": "Required. The cluster name.", "location": "path", - "pattern": "^projects/[^/]+/regions/[^/]+$", "required": true, "type": "string" }, - "requestId": { - "description": "Optional. A tag that prevents multiple concurrent workflow instances with the same tag from running. This mitigates risk of concurrent instances started due to retries.It is recommended to always set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The tag must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", - "location": "query", + "projectId": { + "description": "Required. The ID of the Google Cloud Platform project that the cluster belongs to.", + "location": "path", + "required": true, + "type": "string" + }, + "region": { + "description": "Required. The Dataproc region in which to handle the request.", + "location": "path", + "required": true, "type": "string" } }, - "path": "v1/{+parent}/workflowTemplates:instantiateInline", + "path": "v1/projects/{projectId}/regions/{region}/clusters/{clusterName}:diagnose", "request": { - "$ref": "WorkflowTemplate" + "$ref": "DiagnoseClusterRequest" }, "response": { "$ref": "Operation" @@ -2950,62 +3553,64 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, - "list": { - "description": "Lists workflows that match the specified filter in the request.", - "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/workflowTemplates", + "get": { + "description": "Gets the resource representation for a cluster in a project.", + "flatPath": "v1/projects/{projectId}/regions/{region}/clusters/{clusterName}", "httpMethod": "GET", - "id": "dataproc.projects.regions.workflowTemplates.list", + "id": "dataproc.projects.regions.clusters.get", "parameterOrder": [ - "parent" + "projectId", + "region", + "clusterName" ], "parameters": { - "pageSize": { - "description": "Optional. The maximum number of results to return in each response.", - "format": "int32", - "location": "query", - "type": "integer" + "clusterName": { + "description": "Required. The cluster name.", + "location": "path", + "required": true, + "type": "string" }, - "pageToken": { - "description": "Optional. The page token, returned by a previous call, to request the next page of results.", - "location": "query", + "projectId": { + "description": "Required. The ID of the Google Cloud Platform project that the cluster belongs to.", + "location": "path", + "required": true, "type": "string" }, - "parent": { - "description": "Required. The resource name of the region or location, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates,list, the resource name of the region has the following format: projects/{project_id}/regions/{region} For projects.locations.workflowTemplates.list, the resource name of the location has the following format: projects/{project_id}/locations/{location}", + "region": { + "description": "Required. The Dataproc region in which to handle the request.", "location": "path", - "pattern": "^projects/[^/]+/regions/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+parent}/workflowTemplates", + "path": "v1/projects/{projectId}/regions/{region}/clusters/{clusterName}", "response": { - "$ref": "ListWorkflowTemplatesResponse" + "$ref": "Cluster" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "setIamPolicy": { - "description": "Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.", - "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/workflowTemplates/{workflowTemplatesId}:setIamPolicy", + "getIamPolicy": { + "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/clusters/{clustersId}:getIamPolicy", "httpMethod": "POST", - "id": "dataproc.projects.regions.workflowTemplates.setIamPolicy", + "id": "dataproc.projects.regions.clusters.getIamPolicy", "parameterOrder": [ "resource" ], "parameters": { "resource": { - "description": "REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "description": "REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", "location": "path", - "pattern": "^projects/[^/]+/regions/[^/]+/workflowTemplates/[^/]+$", + "pattern": "^projects/[^/]+/regions/[^/]+/clusters/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+resource}:setIamPolicy", + "path": "v1/{+resource}:getIamPolicy", "request": { - "$ref": "SetIamPolicyRequest" + "$ref": "GetIamPolicyRequest" }, "response": { "$ref": "Policy" @@ -3014,708 +3619,4906 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, - "testIamPermissions": { - "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/workflowTemplates/{workflowTemplatesId}:testIamPermissions", + "injectCredentials": { + "description": "Inject encrypted credentials into all of the VMs in a cluster.The target cluster must be a personal auth cluster assigned to the user who is issuing the RPC.", + "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/clusters/{clustersId}:injectCredentials", "httpMethod": "POST", - "id": "dataproc.projects.regions.workflowTemplates.testIamPermissions", + "id": "dataproc.projects.regions.clusters.injectCredentials", "parameterOrder": [ - "resource" + "project", + "region", + "cluster" ], "parameters": { - "resource": { - "description": "REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "cluster": { + "description": "Required. The cluster, in the form clusters/.", "location": "path", - "pattern": "^projects/[^/]+/regions/[^/]+/workflowTemplates/[^/]+$", + "pattern": "^clusters/[^/]+$", "required": true, "type": "string" - } + }, + "project": { + "description": "Required. The ID of the Google Cloud Platform project the cluster belongs to, of the form projects/.", + "location": "path", + "pattern": "^projects/[^/]+$", + "required": true, + "type": "string" + }, + "region": { + "description": "Required. The region containing the cluster, of the form regions/.", + "location": "path", + "pattern": "^regions/[^/]+$", + "required": true, + "type": "string" + } }, - "path": "v1/{+resource}:testIamPermissions", + "path": "v1/{+project}/{+region}/{+cluster}:injectCredentials", "request": { - "$ref": "TestIamPermissionsRequest" + "$ref": "InjectCredentialsRequest" }, "response": { - "$ref": "TestIamPermissionsResponse" + "$ref": "Operation" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "update": { - "description": "Updates (replaces) workflow template. The updated template must contain version that matches the current server version.", - "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/workflowTemplates/{workflowTemplatesId}", - "httpMethod": "PUT", - "id": "dataproc.projects.regions.workflowTemplates.update", + "list": { + "description": "Lists all regions/{region}/clusters in a project alphabetically.", + "flatPath": "v1/projects/{projectId}/regions/{region}/clusters", + "httpMethod": "GET", + "id": "dataproc.projects.regions.clusters.list", "parameterOrder": [ - "name" + "projectId", + "region" ], "parameters": { - "name": { - "description": "Output only. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id} For projects.locations.workflowTemplates, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id}", + "filter": { + "description": "Optional. A filter constraining the clusters to list. Filters are case-sensitive and have the following syntax:field = value AND field = value ...where field is one of status.state, clusterName, or labels.[KEY], and [KEY] is a label key. value can be * to match all values. status.state can be one of the following: ACTIVE, INACTIVE, CREATING, RUNNING, ERROR, DELETING, UPDATING, STOPPING, or STOPPED. ACTIVE contains the CREATING, UPDATING, and RUNNING states. INACTIVE contains the DELETING, ERROR, STOPPING, and STOPPED states. clusterName is the name of the cluster provided at creation time. Only the logical AND operator is supported; space-separated items are treated as having an implicit AND operator.Example filter:status.state = ACTIVE AND clusterName = mycluster AND labels.env = staging AND labels.starred = *", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. The standard List page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. The standard List page token.", + "location": "query", + "type": "string" + }, + "projectId": { + "description": "Required. The ID of the Google Cloud Platform project that the cluster belongs to.", + "location": "path", + "required": true, + "type": "string" + }, + "region": { + "description": "Required. The Dataproc region in which to handle the request.", "location": "path", - "pattern": "^projects/[^/]+/regions/[^/]+/workflowTemplates/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+name}", + "path": "v1/projects/{projectId}/regions/{region}/clusters", + "response": { + "$ref": "ListClustersResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates a cluster in a project. The returned Operation.metadata will be ClusterOperationMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). The cluster must be in a RUNNING state or an error is returned.", + "flatPath": "v1/projects/{projectId}/regions/{region}/clusters/{clusterName}", + "httpMethod": "PATCH", + "id": "dataproc.projects.regions.clusters.patch", + "parameterOrder": [ + "projectId", + "region", + "clusterName" + ], + "parameters": { + "clusterName": { + "description": "Required. The cluster name.", + "location": "path", + "required": true, + "type": "string" + }, + "gracefulDecommissionTimeout": { + "description": "Optional. Timeout for graceful YARN decommissioning. Graceful decommissioning allows removing nodes from the cluster without interrupting jobs in progress. Timeout specifies how long to wait for jobs in progress to finish before forcefully removing nodes (and potentially interrupting jobs). Default timeout is 0 (for forceful decommission), and the maximum allowed timeout is 1 day. (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)).Only supported on Dataproc image versions 1.2 and higher.", + "format": "google-duration", + "location": "query", + "type": "string" + }, + "projectId": { + "description": "Required. The ID of the Google Cloud Platform project the cluster belongs to.", + "location": "path", + "required": true, + "type": "string" + }, + "region": { + "description": "Required. The Dataproc region in which to handle the request.", + "location": "path", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. A unique ID used to identify the request. If the server receives two UpdateClusterRequest (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.UpdateClusterRequest)s with the same id, then the second request will be ignored and the first google.longrunning.Operation created and stored in the backend is returned.It is recommended to always set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", + "location": "query", + "type": "string" + }, + "updateMask": { + "description": "Required. Specifies the path, relative to Cluster, of the field to update. For example, to change the number of workers in a cluster to 5, the update_mask parameter would be specified as config.worker_config.num_instances, and the PATCH request body would specify the new value, as follows: { \"config\":{ \"workerConfig\":{ \"numInstances\":\"5\" } } } Similarly, to change the number of preemptible workers in a cluster to 5, the update_mask parameter would be config.secondary_worker_config.num_instances, and the PATCH request body would be set as follows: { \"config\":{ \"secondaryWorkerConfig\":{ \"numInstances\":\"5\" } } } *Note:* Currently, only the following fields can be updated: *Mask* *Purpose* *labels* Update labels *config.worker_config.num_instances* Resize primary worker group *config.secondary_worker_config.num_instances* Resize secondary worker group config.autoscaling_config.policy_uri Use, stop using, or change autoscaling policies ", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/projects/{projectId}/regions/{region}/clusters/{clusterName}", "request": { - "$ref": "WorkflowTemplate" + "$ref": "Cluster" }, "response": { - "$ref": "WorkflowTemplate" + "$ref": "Operation" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] - } - } - } - } + }, + "repair": { + "description": "Repairs a cluster.", + "flatPath": "v1/projects/{projectId}/regions/{region}/clusters/{clusterName}:repair", + "httpMethod": "POST", + "id": "dataproc.projects.regions.clusters.repair", + "parameterOrder": [ + "projectId", + "region", + "clusterName" + ], + "parameters": { + "clusterName": { + "description": "Required. The cluster name.", + "location": "path", + "required": true, + "type": "string" + }, + "projectId": { + "description": "Required. The ID of the Google Cloud Platform project the cluster belongs to.", + "location": "path", + "required": true, + "type": "string" + }, + "region": { + "description": "Required. The Dataproc region in which to handle the request.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "v1/projects/{projectId}/regions/{region}/clusters/{clusterName}:repair", + "request": { + "$ref": "RepairClusterRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "setIamPolicy": { + "description": "Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.", + "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/clusters/{clustersId}:setIamPolicy", + "httpMethod": "POST", + "id": "dataproc.projects.regions.clusters.setIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/regions/[^/]+/clusters/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:setIamPolicy", + "request": { + "$ref": "SetIamPolicyRequest" + }, + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "start": { + "description": "Starts a cluster in a project.", + "flatPath": "v1/projects/{projectId}/regions/{region}/clusters/{clusterName}:start", + "httpMethod": "POST", + "id": "dataproc.projects.regions.clusters.start", + "parameterOrder": [ + "projectId", + "region", + "clusterName" + ], + "parameters": { + "clusterName": { + "description": "Required. The cluster name.", + "location": "path", + "required": true, + "type": "string" + }, + "projectId": { + "description": "Required. The ID of the Google Cloud Platform project the cluster belongs to.", + "location": "path", + "required": true, + "type": "string" + }, + "region": { + "description": "Required. The Dataproc region in which to handle the request.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "v1/projects/{projectId}/regions/{region}/clusters/{clusterName}:start", + "request": { + "$ref": "StartClusterRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "stop": { + "description": "Stops a cluster in a project.", + "flatPath": "v1/projects/{projectId}/regions/{region}/clusters/{clusterName}:stop", + "httpMethod": "POST", + "id": "dataproc.projects.regions.clusters.stop", + "parameterOrder": [ + "projectId", + "region", + "clusterName" + ], + "parameters": { + "clusterName": { + "description": "Required. The cluster name.", + "location": "path", + "required": true, + "type": "string" + }, + "projectId": { + "description": "Required. The ID of the Google Cloud Platform project the cluster belongs to.", + "location": "path", + "required": true, + "type": "string" + }, + "region": { + "description": "Required. The Dataproc region in which to handle the request.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "v1/projects/{projectId}/regions/{region}/clusters/{clusterName}:stop", + "request": { + "$ref": "StopClusterRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "testIamPermissions": { + "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/clusters/{clustersId}:testIamPermissions", + "httpMethod": "POST", + "id": "dataproc.projects.regions.clusters.testIamPermissions", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/regions/[^/]+/clusters/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:testIamPermissions", + "request": { + "$ref": "TestIamPermissionsRequest" + }, + "response": { + "$ref": "TestIamPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "nodeGroups": { + "methods": { + "create": { + "description": "Creates a node group in a cluster. The returned Operation.metadata is NodeGroupOperationMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#nodegroupoperationmetadata).", + "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/clusters/{clustersId}/nodeGroups", + "httpMethod": "POST", + "id": "dataproc.projects.regions.clusters.nodeGroups.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "nodeGroupId": { + "description": "Optional. An optional node group ID. Generated if not specified.The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of from 3 to 33 characters.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent resource where this node group will be created. Format: projects/{project}/regions/{region}/clusters/{cluster}", + "location": "path", + "pattern": "^projects/[^/]+/regions/[^/]+/clusters/[^/]+$", + "required": true, + "type": "string" + }, + "parentOperationId": { + "description": "Optional. operation id of the parent operation sending the create request", + "location": "query", + "type": "string" + }, + "requestId": { + "description": "Optional. A unique ID used to identify the request. If the server receives two CreateNodeGroupRequest (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateNodeGroupRequest) with the same ID, the second request is ignored and the first google.longrunning.Operation created and stored in the backend is returned.Recommendation: Set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/nodeGroups", + "request": { + "$ref": "NodeGroup" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets the resource representation for a node group in a cluster.", + "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/clusters/{clustersId}/nodeGroups/{nodeGroupsId}", + "httpMethod": "GET", + "id": "dataproc.projects.regions.clusters.nodeGroups.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the node group to retrieve. Format: projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}", + "location": "path", + "pattern": "^projects/[^/]+/regions/[^/]+/clusters/[^/]+/nodeGroups/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "NodeGroup" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "repair": { + "description": "Repair nodes in a node group.", + "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/clusters/{clustersId}/nodeGroups/{nodeGroupsId}:repair", + "httpMethod": "POST", + "id": "dataproc.projects.regions.clusters.nodeGroups.repair", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the node group to resize. Format: projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}", + "location": "path", + "pattern": "^projects/[^/]+/regions/[^/]+/clusters/[^/]+/nodeGroups/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:repair", + "request": { + "$ref": "RepairNodeGroupRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "resize": { + "description": "Resizes a node group in a cluster. The returned Operation.metadata is NodeGroupOperationMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#nodegroupoperationmetadata).", + "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/clusters/{clustersId}/nodeGroups/{nodeGroupsId}:resize", + "httpMethod": "POST", + "id": "dataproc.projects.regions.clusters.nodeGroups.resize", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the node group to resize. Format: projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}", + "location": "path", + "pattern": "^projects/[^/]+/regions/[^/]+/clusters/[^/]+/nodeGroups/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:resize", + "request": { + "$ref": "ResizeNodeGroupRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + }, + "jobs": { + "methods": { + "cancel": { + "description": "Starts a job cancellation request. To access the job resource after cancellation, call regions/{region}/jobs.list (https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/list) or regions/{region}/jobs.get (https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/get).", + "flatPath": "v1/projects/{projectId}/regions/{region}/jobs/{jobId}:cancel", + "httpMethod": "POST", + "id": "dataproc.projects.regions.jobs.cancel", + "parameterOrder": [ + "projectId", + "region", + "jobId" + ], + "parameters": { + "jobId": { + "description": "Required. The job ID.", + "location": "path", + "required": true, + "type": "string" + }, + "projectId": { + "description": "Required. The ID of the Google Cloud Platform project that the job belongs to.", + "location": "path", + "required": true, + "type": "string" + }, + "region": { + "description": "Required. The Dataproc region in which to handle the request.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "v1/projects/{projectId}/regions/{region}/jobs/{jobId}:cancel", + "request": { + "$ref": "CancelJobRequest" + }, + "response": { + "$ref": "Job" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes the job from the project. If the job is active, the delete fails, and the response returns FAILED_PRECONDITION.", + "flatPath": "v1/projects/{projectId}/regions/{region}/jobs/{jobId}", + "httpMethod": "DELETE", + "id": "dataproc.projects.regions.jobs.delete", + "parameterOrder": [ + "projectId", + "region", + "jobId" + ], + "parameters": { + "jobId": { + "description": "Required. The job ID.", + "location": "path", + "required": true, + "type": "string" + }, + "projectId": { + "description": "Required. The ID of the Google Cloud Platform project that the job belongs to.", + "location": "path", + "required": true, + "type": "string" + }, + "region": { + "description": "Required. The Dataproc region in which to handle the request.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "v1/projects/{projectId}/regions/{region}/jobs/{jobId}", + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets the resource representation for a job in a project.", + "flatPath": "v1/projects/{projectId}/regions/{region}/jobs/{jobId}", + "httpMethod": "GET", + "id": "dataproc.projects.regions.jobs.get", + "parameterOrder": [ + "projectId", + "region", + "jobId" + ], + "parameters": { + "jobId": { + "description": "Required. The job ID.", + "location": "path", + "required": true, + "type": "string" + }, + "projectId": { + "description": "Required. The ID of the Google Cloud Platform project that the job belongs to.", + "location": "path", + "required": true, + "type": "string" + }, + "region": { + "description": "Required. The Dataproc region in which to handle the request.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "v1/projects/{projectId}/regions/{region}/jobs/{jobId}", + "response": { + "$ref": "Job" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "getIamPolicy": { + "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/jobs/{jobsId}:getIamPolicy", + "httpMethod": "POST", + "id": "dataproc.projects.regions.jobs.getIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/regions/[^/]+/jobs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:getIamPolicy", + "request": { + "$ref": "GetIamPolicyRequest" + }, + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists regions/{region}/jobs in a project.", + "flatPath": "v1/projects/{projectId}/regions/{region}/jobs", + "httpMethod": "GET", + "id": "dataproc.projects.regions.jobs.list", + "parameterOrder": [ + "projectId", + "region" + ], + "parameters": { + "clusterName": { + "description": "Optional. If set, the returned jobs list includes only jobs that were submitted to the named cluster.", + "location": "query", + "type": "string" + }, + "filter": { + "description": "Optional. A filter constraining the jobs to list. Filters are case-sensitive and have the following syntax:field = value AND field = value ...where field is status.state or labels.[KEY], and [KEY] is a label key. value can be * to match all values. status.state can be either ACTIVE or NON_ACTIVE. Only the logical AND operator is supported; space-separated items are treated as having an implicit AND operator.Example filter:status.state = ACTIVE AND labels.env = staging AND labels.starred = *", + "location": "query", + "type": "string" + }, + "jobStateMatcher": { + "description": "Optional. Specifies enumerated categories of jobs to list. (default = match ALL jobs).If filter is provided, jobStateMatcher will be ignored.", + "enum": [ + "ALL", + "ACTIVE", + "NON_ACTIVE" + ], + "enumDescriptions": [ + "Match all jobs, regardless of state.", + "Only match jobs in non-terminal states: PENDING, RUNNING, or CANCEL_PENDING.", + "Only match jobs in terminal states: CANCELLED, DONE, or ERROR." + ], + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. The number of results to return in each response.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. The page token, returned by a previous call, to request the next page of results.", + "location": "query", + "type": "string" + }, + "projectId": { + "description": "Required. The ID of the Google Cloud Platform project that the job belongs to.", + "location": "path", + "required": true, + "type": "string" + }, + "region": { + "description": "Required. The Dataproc region in which to handle the request.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "v1/projects/{projectId}/regions/{region}/jobs", + "response": { + "$ref": "ListJobsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates a job in a project.", + "flatPath": "v1/projects/{projectId}/regions/{region}/jobs/{jobId}", + "httpMethod": "PATCH", + "id": "dataproc.projects.regions.jobs.patch", + "parameterOrder": [ + "projectId", + "region", + "jobId" + ], + "parameters": { + "jobId": { + "description": "Required. The job ID.", + "location": "path", + "required": true, + "type": "string" + }, + "projectId": { + "description": "Required. The ID of the Google Cloud Platform project that the job belongs to.", + "location": "path", + "required": true, + "type": "string" + }, + "region": { + "description": "Required. The Dataproc region in which to handle the request.", + "location": "path", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Required. Specifies the path, relative to Job, of the field to update. For example, to update the labels of a Job the update_mask parameter would be specified as labels, and the PATCH request body would specify the new value. *Note:* Currently, labels is the only field that can be updated.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/projects/{projectId}/regions/{region}/jobs/{jobId}", + "request": { + "$ref": "Job" + }, + "response": { + "$ref": "Job" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "setIamPolicy": { + "description": "Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.", + "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/jobs/{jobsId}:setIamPolicy", + "httpMethod": "POST", + "id": "dataproc.projects.regions.jobs.setIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/regions/[^/]+/jobs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:setIamPolicy", + "request": { + "$ref": "SetIamPolicyRequest" + }, + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "submit": { + "description": "Submits a job to a cluster.", + "flatPath": "v1/projects/{projectId}/regions/{region}/jobs:submit", + "httpMethod": "POST", + "id": "dataproc.projects.regions.jobs.submit", + "parameterOrder": [ + "projectId", + "region" + ], + "parameters": { + "projectId": { + "description": "Required. The ID of the Google Cloud Platform project that the job belongs to.", + "location": "path", + "required": true, + "type": "string" + }, + "region": { + "description": "Required. The Dataproc region in which to handle the request.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "v1/projects/{projectId}/regions/{region}/jobs:submit", + "request": { + "$ref": "SubmitJobRequest" + }, + "response": { + "$ref": "Job" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "submitAsOperation": { + "description": "Submits job to a cluster.", + "flatPath": "v1/projects/{projectId}/regions/{region}/jobs:submitAsOperation", + "httpMethod": "POST", + "id": "dataproc.projects.regions.jobs.submitAsOperation", + "parameterOrder": [ + "projectId", + "region" + ], + "parameters": { + "projectId": { + "description": "Required. The ID of the Google Cloud Platform project that the job belongs to.", + "location": "path", + "required": true, + "type": "string" + }, + "region": { + "description": "Required. The Dataproc region in which to handle the request.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "v1/projects/{projectId}/regions/{region}/jobs:submitAsOperation", + "request": { + "$ref": "SubmitJobRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "testIamPermissions": { + "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/jobs/{jobsId}:testIamPermissions", + "httpMethod": "POST", + "id": "dataproc.projects.regions.jobs.testIamPermissions", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/regions/[^/]+/jobs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:testIamPermissions", + "request": { + "$ref": "TestIamPermissionsRequest" + }, + "response": { + "$ref": "TestIamPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "operations": { + "methods": { + "cancel": { + "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.", + "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "dataproc.projects.regions.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^projects/[^/]+/regions/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:cancel", + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.", + "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "dataproc.projects.regions.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^projects/[^/]+/regions/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "dataproc.projects.regions.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^projects/[^/]+/regions/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "getIamPolicy": { + "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/operations/{operationsId}:getIamPolicy", + "httpMethod": "POST", + "id": "dataproc.projects.regions.operations.getIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/regions/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:getIamPolicy", + "request": { + "$ref": "GetIamPolicyRequest" + }, + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.", + "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/operations", + "httpMethod": "GET", + "id": "dataproc.projects.regions.operations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" + }, + "name": { + "description": "The name of the operation's parent resource.", + "location": "path", + "pattern": "^projects/[^/]+/regions/[^/]+/operations$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "ListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "setIamPolicy": { + "description": "Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.", + "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/operations/{operationsId}:setIamPolicy", + "httpMethod": "POST", + "id": "dataproc.projects.regions.operations.setIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/regions/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:setIamPolicy", + "request": { + "$ref": "SetIamPolicyRequest" + }, + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "testIamPermissions": { + "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/operations/{operationsId}:testIamPermissions", + "httpMethod": "POST", + "id": "dataproc.projects.regions.operations.testIamPermissions", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/regions/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:testIamPermissions", + "request": { + "$ref": "TestIamPermissionsRequest" + }, + "response": { + "$ref": "TestIamPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "workflowTemplates": { + "methods": { + "create": { + "description": "Creates new workflow template.", + "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/workflowTemplates", + "httpMethod": "POST", + "id": "dataproc.projects.regions.workflowTemplates.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The resource name of the region or location, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates.create, the resource name of the region has the following format: projects/{project_id}/regions/{region} For projects.locations.workflowTemplates.create, the resource name of the location has the following format: projects/{project_id}/locations/{location}", + "location": "path", + "pattern": "^projects/[^/]+/regions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/workflowTemplates", + "request": { + "$ref": "WorkflowTemplate" + }, + "response": { + "$ref": "WorkflowTemplate" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a workflow template. It does not cancel in-progress workflows.", + "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/workflowTemplates/{workflowTemplatesId}", + "httpMethod": "DELETE", + "id": "dataproc.projects.regions.workflowTemplates.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates.delete, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id} For projects.locations.workflowTemplates.instantiate, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id}", + "location": "path", + "pattern": "^projects/[^/]+/regions/[^/]+/workflowTemplates/[^/]+$", + "required": true, + "type": "string" + }, + "version": { + "description": "Optional. The version of workflow template to delete. If specified, will only delete the template if the current server version matches specified version.", + "format": "int32", + "location": "query", + "type": "integer" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Retrieves the latest workflow template.Can retrieve previously instantiated template by specifying optional version parameter.", + "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/workflowTemplates/{workflowTemplatesId}", + "httpMethod": "GET", + "id": "dataproc.projects.regions.workflowTemplates.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates.get, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id} For projects.locations.workflowTemplates.get, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id}", + "location": "path", + "pattern": "^projects/[^/]+/regions/[^/]+/workflowTemplates/[^/]+$", + "required": true, + "type": "string" + }, + "version": { + "description": "Optional. The version of workflow template to retrieve. Only previously instantiated versions can be retrieved.If unspecified, retrieves the current version.", + "format": "int32", + "location": "query", + "type": "integer" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "WorkflowTemplate" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "getIamPolicy": { + "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/workflowTemplates/{workflowTemplatesId}:getIamPolicy", + "httpMethod": "POST", + "id": "dataproc.projects.regions.workflowTemplates.getIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/regions/[^/]+/workflowTemplates/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:getIamPolicy", + "request": { + "$ref": "GetIamPolicyRequest" + }, + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "instantiate": { + "description": "Instantiates a template and begins execution.The returned Operation can be used to track execution of workflow by polling operations.get. The Operation will complete when entire workflow is finished.The running workflow can be aborted via operations.cancel. This will cause any inflight jobs to be cancelled and workflow-owned clusters to be deleted.The Operation.metadata will be WorkflowMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata). Also see Using WorkflowMetadata (https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata).On successful completion, Operation.response will be Empty.", + "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/workflowTemplates/{workflowTemplatesId}:instantiate", + "httpMethod": "POST", + "id": "dataproc.projects.regions.workflowTemplates.instantiate", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates.instantiate, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id} For projects.locations.workflowTemplates.instantiate, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id}", + "location": "path", + "pattern": "^projects/[^/]+/regions/[^/]+/workflowTemplates/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:instantiate", + "request": { + "$ref": "InstantiateWorkflowTemplateRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "instantiateInline": { + "description": "Instantiates a template and begins execution.This method is equivalent to executing the sequence CreateWorkflowTemplate, InstantiateWorkflowTemplate, DeleteWorkflowTemplate.The returned Operation can be used to track execution of workflow by polling operations.get. The Operation will complete when entire workflow is finished.The running workflow can be aborted via operations.cancel. This will cause any inflight jobs to be cancelled and workflow-owned clusters to be deleted.The Operation.metadata will be WorkflowMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata). Also see Using WorkflowMetadata (https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata).On successful completion, Operation.response will be Empty.", + "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/workflowTemplates:instantiateInline", + "httpMethod": "POST", + "id": "dataproc.projects.regions.workflowTemplates.instantiateInline", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The resource name of the region or location, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates,instantiateinline, the resource name of the region has the following format: projects/{project_id}/regions/{region} For projects.locations.workflowTemplates.instantiateinline, the resource name of the location has the following format: projects/{project_id}/locations/{location}", + "location": "path", + "pattern": "^projects/[^/]+/regions/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. A tag that prevents multiple concurrent workflow instances with the same tag from running. This mitigates risk of concurrent instances started due to retries.It is recommended to always set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The tag must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/workflowTemplates:instantiateInline", + "request": { + "$ref": "WorkflowTemplate" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists workflows that match the specified filter in the request.", + "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/workflowTemplates", + "httpMethod": "GET", + "id": "dataproc.projects.regions.workflowTemplates.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. The maximum number of results to return in each response.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. The page token, returned by a previous call, to request the next page of results.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The resource name of the region or location, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates,list, the resource name of the region has the following format: projects/{project_id}/regions/{region} For projects.locations.workflowTemplates.list, the resource name of the location has the following format: projects/{project_id}/locations/{location}", + "location": "path", + "pattern": "^projects/[^/]+/regions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/workflowTemplates", + "response": { + "$ref": "ListWorkflowTemplatesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "setIamPolicy": { + "description": "Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.", + "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/workflowTemplates/{workflowTemplatesId}:setIamPolicy", + "httpMethod": "POST", + "id": "dataproc.projects.regions.workflowTemplates.setIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/regions/[^/]+/workflowTemplates/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:setIamPolicy", + "request": { + "$ref": "SetIamPolicyRequest" + }, + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "testIamPermissions": { + "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/workflowTemplates/{workflowTemplatesId}:testIamPermissions", + "httpMethod": "POST", + "id": "dataproc.projects.regions.workflowTemplates.testIamPermissions", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/regions/[^/]+/workflowTemplates/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:testIamPermissions", + "request": { + "$ref": "TestIamPermissionsRequest" + }, + "response": { + "$ref": "TestIamPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "update": { + "description": "Updates (replaces) workflow template. The updated template must contain version that matches the current server version.", + "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/workflowTemplates/{workflowTemplatesId}", + "httpMethod": "PUT", + "id": "dataproc.projects.regions.workflowTemplates.update", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Output only. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id} For projects.locations.workflowTemplates, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id}", + "location": "path", + "pattern": "^projects/[^/]+/regions/[^/]+/workflowTemplates/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "WorkflowTemplate" + }, + "response": { + "$ref": "WorkflowTemplate" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + } + } + } + }, + "revision": "20240928", + "rootUrl": "https://dataproc.googleapis.com/", + "schemas": { + "AcceleratorConfig": { + "description": "Specifies the type and number of accelerator cards attached to the instances of an instance. See GPUs on Compute Engine (https://cloud.google.com/compute/docs/gpus/).", + "id": "AcceleratorConfig", + "properties": { + "acceleratorCount": { + "description": "The number of the accelerator cards of this type exposed to this instance.", + "format": "int32", + "type": "integer" + }, + "acceleratorTypeUri": { + "description": "Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypes (https://cloud.google.com/compute/docs/reference/v1/acceleratorTypes).Examples: https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]/acceleratorTypes/nvidia-tesla-t4 projects/[project_id]/zones/[zone]/acceleratorTypes/nvidia-tesla-t4 nvidia-tesla-t4Auto Zone Exception: If you are using the Dataproc Auto Zone Placement (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the accelerator type resource, for example, nvidia-tesla-t4.", + "type": "string" + } + }, + "type": "object" + }, + "AccessSessionSparkApplicationEnvironmentInfoResponse": { + "description": "Environment details of a Saprk Application.", + "id": "AccessSessionSparkApplicationEnvironmentInfoResponse", + "properties": { + "applicationEnvironmentInfo": { + "$ref": "ApplicationEnvironmentInfo", + "description": "Details about the Environment that the application is running in." + } + }, + "type": "object" + }, + "AccessSessionSparkApplicationJobResponse": { + "description": "Details of a particular job associated with Spark Application", + "id": "AccessSessionSparkApplicationJobResponse", + "properties": { + "jobData": { + "$ref": "JobData", + "description": "Output only. Data corresponding to a spark job.", + "readOnly": true + } + }, + "type": "object" + }, + "AccessSessionSparkApplicationResponse": { + "description": "A summary of Spark Application", + "id": "AccessSessionSparkApplicationResponse", + "properties": { + "application": { + "$ref": "ApplicationInfo", + "description": "Output only. High level information corresponding to an application.", + "readOnly": true + } + }, + "type": "object" + }, + "AccessSessionSparkApplicationSqlQueryResponse": { + "description": "Details of a query for a Spark Application", + "id": "AccessSessionSparkApplicationSqlQueryResponse", + "properties": { + "executionData": { + "$ref": "SqlExecutionUiData", + "description": "SQL Execution Data" + } + }, + "type": "object" + }, + "AccessSessionSparkApplicationSqlSparkPlanGraphResponse": { + "description": "SparkPlanGraph for a Spark Application execution limited to maximum 10000 clusters.", + "id": "AccessSessionSparkApplicationSqlSparkPlanGraphResponse", + "properties": { + "sparkPlanGraph": { + "$ref": "SparkPlanGraph", + "description": "SparkPlanGraph for a Spark Application execution." + } + }, + "type": "object" + }, + "AccessSessionSparkApplicationStageAttemptResponse": { + "description": "Stage Attempt for a Stage of a Spark Application", + "id": "AccessSessionSparkApplicationStageAttemptResponse", + "properties": { + "stageData": { + "$ref": "StageData", + "description": "Output only. Data corresponding to a stage.", + "readOnly": true + } + }, + "type": "object" + }, + "AccessSessionSparkApplicationStageRddOperationGraphResponse": { + "description": "RDD operation graph for a Spark Application Stage limited to maximum 10000 clusters.", + "id": "AccessSessionSparkApplicationStageRddOperationGraphResponse", + "properties": { + "rddOperationGraph": { + "$ref": "RddOperationGraph", + "description": "RDD operation graph for a Spark Application Stage." + } + }, + "type": "object" + }, + "AccessSparkApplicationEnvironmentInfoResponse": { + "description": "Environment details of a Saprk Application.", + "id": "AccessSparkApplicationEnvironmentInfoResponse", + "properties": { + "applicationEnvironmentInfo": { + "$ref": "ApplicationEnvironmentInfo", + "description": "Details about the Environment that the application is running in." + } + }, + "type": "object" + }, + "AccessSparkApplicationJobResponse": { + "description": "Details of a particular job associated with Spark Application", + "id": "AccessSparkApplicationJobResponse", + "properties": { + "jobData": { + "$ref": "JobData", + "description": "Output only. Data corresponding to a spark job.", + "readOnly": true + } + }, + "type": "object" + }, + "AccessSparkApplicationResponse": { + "description": "A summary of Spark Application", + "id": "AccessSparkApplicationResponse", + "properties": { + "application": { + "$ref": "ApplicationInfo", + "description": "Output only. High level information corresponding to an application.", + "readOnly": true + } + }, + "type": "object" + }, + "AccessSparkApplicationSqlQueryResponse": { + "description": "Details of a query for a Spark Application", + "id": "AccessSparkApplicationSqlQueryResponse", + "properties": { + "executionData": { + "$ref": "SqlExecutionUiData", + "description": "SQL Execution Data" + } + }, + "type": "object" + }, + "AccessSparkApplicationSqlSparkPlanGraphResponse": { + "description": "SparkPlanGraph for a Spark Application execution limited to maximum 10000 clusters.", + "id": "AccessSparkApplicationSqlSparkPlanGraphResponse", + "properties": { + "sparkPlanGraph": { + "$ref": "SparkPlanGraph", + "description": "SparkPlanGraph for a Spark Application execution." + } + }, + "type": "object" + }, + "AccessSparkApplicationStageAttemptResponse": { + "description": "Stage Attempt for a Stage of a Spark Application", + "id": "AccessSparkApplicationStageAttemptResponse", + "properties": { + "stageData": { + "$ref": "StageData", + "description": "Output only. Data corresponding to a stage.", + "readOnly": true + } + }, + "type": "object" + }, + "AccessSparkApplicationStageRddOperationGraphResponse": { + "description": "RDD operation graph for a Spark Application Stage limited to maximum 10000 clusters.", + "id": "AccessSparkApplicationStageRddOperationGraphResponse", + "properties": { + "rddOperationGraph": { + "$ref": "RddOperationGraph", + "description": "RDD operation graph for a Spark Application Stage." + } + }, + "type": "object" + }, + "AccumulableInfo": { + "id": "AccumulableInfo", + "properties": { + "accumullableInfoId": { + "format": "int64", + "type": "string" + }, + "name": { + "type": "string" + }, + "update": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "type": "object" + }, + "AnalyzeBatchRequest": { + "description": "A request to analyze a batch workload.", + "id": "AnalyzeBatchRequest", + "properties": { + "requestId": { + "description": "Optional. A unique ID used to identify the request. If the service receives two AnalyzeBatchRequest (http://cloud/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.AnalyzeBatchRequest)s with the same request_id, the second request is ignored and the Operation that corresponds to the first request created and stored in the backend is returned.Recommendation: Set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The value must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", + "type": "string" + } + }, + "type": "object" + }, + "AnalyzeOperationMetadata": { + "description": "Metadata describing the Analyze operation.", + "id": "AnalyzeOperationMetadata", + "properties": { + "analyzedWorkloadName": { + "description": "Output only. name of the workload being analyzed.", + "readOnly": true, + "type": "string" + }, + "analyzedWorkloadType": { + "description": "Output only. Type of the workload being analyzed.", + "enum": [ + "WORKLOAD_TYPE_UNSPECIFIED", + "BATCH" + ], + "enumDescriptions": [ + "Undefined option", + "Serverless batch job" + ], + "readOnly": true, + "type": "string" + }, + "analyzedWorkloadUuid": { + "description": "Output only. unique identifier of the workload typically generated by control plane. E.g. batch uuid.", + "readOnly": true, + "type": "string" + }, + "createTime": { + "description": "Output only. The time when the operation was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "description": { + "description": "Output only. Short description of the operation.", + "readOnly": true, + "type": "string" + }, + "doneTime": { + "description": "Output only. The time when the operation finished.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Output only. Labels associated with the operation.", + "readOnly": true, + "type": "object" + }, + "warnings": { + "description": "Output only. Warnings encountered during operation execution.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + } + }, + "type": "object" + }, + "AppSummary": { + "id": "AppSummary", + "properties": { + "numCompletedJobs": { + "format": "int32", + "type": "integer" + }, + "numCompletedStages": { + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "ApplicationAttemptInfo": { + "description": "Specific attempt of an application.", + "id": "ApplicationAttemptInfo", + "properties": { + "appSparkVersion": { + "type": "string" + }, + "attemptId": { + "type": "string" + }, + "completed": { + "type": "boolean" + }, + "durationMillis": { + "format": "int64", + "type": "string" + }, + "endTime": { + "format": "google-datetime", + "type": "string" + }, + "lastUpdated": { + "format": "google-datetime", + "type": "string" + }, + "sparkUser": { + "type": "string" + }, + "startTime": { + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "ApplicationEnvironmentInfo": { + "description": "Details about the Environment that the application is running in.", + "id": "ApplicationEnvironmentInfo", + "properties": { + "classpathEntries": { + "additionalProperties": { + "type": "string" + }, + "type": "object" + }, + "hadoopProperties": { + "additionalProperties": { + "type": "string" + }, + "type": "object" + }, + "metricsProperties": { + "additionalProperties": { + "type": "string" + }, + "type": "object" + }, + "resourceProfiles": { + "items": { + "$ref": "ResourceProfileInfo" + }, + "type": "array" + }, + "runtime": { + "$ref": "SparkRuntimeInfo" + }, + "sparkProperties": { + "additionalProperties": { + "type": "string" + }, + "type": "object" + }, + "systemProperties": { + "additionalProperties": { + "type": "string" + }, + "type": "object" + } + }, + "type": "object" + }, + "ApplicationInfo": { + "description": "High level information corresponding to an application.", + "id": "ApplicationInfo", + "properties": { + "applicationContextIngestionStatus": { + "enum": [ + "APPLICATION_CONTEXT_INGESTION_STATUS_UNSPECIFIED", + "APPLICATION_CONTEXT_INGESTION_STATUS_COMPLETED" + ], + "enumDescriptions": [ + "", + "" + ], + "type": "string" + }, + "applicationId": { + "type": "string" + }, + "attempts": { + "items": { + "$ref": "ApplicationAttemptInfo" + }, + "type": "array" + }, + "coresGranted": { + "format": "int32", + "type": "integer" + }, + "coresPerExecutor": { + "format": "int32", + "type": "integer" + }, + "maxCores": { + "format": "int32", + "type": "integer" + }, + "memoryPerExecutorMb": { + "format": "int32", + "type": "integer" + }, + "name": { + "type": "string" + }, + "quantileDataStatus": { + "enum": [ + "QUANTILE_DATA_STATUS_UNSPECIFIED", + "QUANTILE_DATA_STATUS_COMPLETED", + "QUANTILE_DATA_STATUS_FAILED" + ], + "enumDescriptions": [ + "", + "", + "" + ], + "type": "string" + } + }, + "type": "object" + }, + "AutoscalingConfig": { + "description": "Autoscaling Policy config associated with the cluster.", + "id": "AutoscalingConfig", + "properties": { + "policyUri": { + "description": "Optional. The autoscaling policy used by the cluster.Only resource names including projectid and location (region) are valid. Examples: https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id] projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]Note that the policy must be in the same project and Dataproc region.", + "type": "string" + } + }, + "type": "object" + }, + "AutoscalingPolicy": { + "description": "Describes an autoscaling policy for Dataproc cluster autoscaler.", + "id": "AutoscalingPolicy", + "properties": { + "basicAlgorithm": { + "$ref": "BasicAutoscalingAlgorithm" + }, + "id": { + "description": "Required. The policy id.The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of between 3 and 50 characters.", + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. The labels to associate with this autoscaling policy. Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with an autoscaling policy.", + "type": "object" + }, + "name": { + "description": "Output only. The \"resource name\" of the autoscaling policy, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.autoscalingPolicies, the resource name of the policy has the following format: projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id} For projects.locations.autoscalingPolicies, the resource name of the policy has the following format: projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}", + "readOnly": true, + "type": "string" + }, + "secondaryWorkerConfig": { + "$ref": "InstanceGroupAutoscalingPolicyConfig", + "description": "Optional. Describes how the autoscaler will operate for secondary workers." + }, + "workerConfig": { + "$ref": "InstanceGroupAutoscalingPolicyConfig", + "description": "Required. Describes how the autoscaler will operate for primary workers." + } + }, + "type": "object" + }, + "AutotuningConfig": { + "description": "Autotuning configuration of the workload.", + "id": "AutotuningConfig", + "properties": { + "scenarios": { + "description": "Optional. Scenarios for which tunings are applied.", + "items": { + "enum": [ + "SCENARIO_UNSPECIFIED", + "SCALING", + "BROADCAST_HASH_JOIN", + "MEMORY" + ], + "enumDescriptions": [ + "Default value.", + "Scaling recommendations such as initialExecutors.", + "Adding hints for potential relation broadcasts.", + "Memory management for workloads." + ], + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "AuxiliaryNodeGroup": { + "description": "Node group identification and configuration information.", + "id": "AuxiliaryNodeGroup", + "properties": { + "nodeGroup": { + "$ref": "NodeGroup", + "description": "Required. Node group configuration." + }, + "nodeGroupId": { + "description": "Optional. A node group ID. Generated if not specified.The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of from 3 to 33 characters.", + "type": "string" + } + }, + "type": "object" + }, + "AuxiliaryServicesConfig": { + "description": "Auxiliary services configuration for a Cluster.", + "id": "AuxiliaryServicesConfig", + "properties": { + "metastoreConfig": { + "$ref": "MetastoreConfig", + "description": "Optional. The Hive Metastore configuration for this workload." + }, + "sparkHistoryServerConfig": { + "$ref": "SparkHistoryServerConfig", + "description": "Optional. The Spark History Server configuration for the workload." + } + }, + "type": "object" + }, + "BasicAutoscalingAlgorithm": { + "description": "Basic algorithm for autoscaling.", + "id": "BasicAutoscalingAlgorithm", + "properties": { + "cooldownPeriod": { + "description": "Optional. Duration between scaling events. A scaling period starts after the update operation from the previous event has completed.Bounds: 2m, 1d. Default: 2m.", + "format": "google-duration", + "type": "string" + }, + "sparkStandaloneConfig": { + "$ref": "SparkStandaloneAutoscalingConfig", + "description": "Optional. Spark Standalone autoscaling configuration" + }, + "yarnConfig": { + "$ref": "BasicYarnAutoscalingConfig", + "description": "Optional. YARN autoscaling configuration." + } + }, + "type": "object" + }, + "BasicYarnAutoscalingConfig": { + "description": "Basic autoscaling configurations for YARN.", + "id": "BasicYarnAutoscalingConfig", + "properties": { + "gracefulDecommissionTimeout": { + "description": "Required. Timeout for YARN graceful decommissioning of Node Managers. Specifies the duration to wait for jobs to complete before forcefully removing workers (and potentially interrupting jobs). Only applicable to downscaling operations.Bounds: 0s, 1d.", + "format": "google-duration", + "type": "string" + }, + "scaleDownFactor": { + "description": "Required. Fraction of average YARN pending memory in the last cooldown period for which to remove workers. A scale-down factor of 1 will result in scaling down so that there is no available memory remaining after the update (more aggressive scaling). A scale-down factor of 0 disables removing workers, which can be beneficial for autoscaling a single job. See How autoscaling works (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/autoscaling#how_autoscaling_works) for more information.Bounds: 0.0, 1.0.", + "format": "double", + "type": "number" + }, + "scaleDownMinWorkerFraction": { + "description": "Optional. Minimum scale-down threshold as a fraction of total cluster size before scaling occurs. For example, in a 20-worker cluster, a threshold of 0.1 means the autoscaler must recommend at least a 2 worker scale-down for the cluster to scale. A threshold of 0 means the autoscaler will scale down on any recommended change.Bounds: 0.0, 1.0. Default: 0.0.", + "format": "double", + "type": "number" + }, + "scaleUpFactor": { + "description": "Required. Fraction of average YARN pending memory in the last cooldown period for which to add workers. A scale-up factor of 1.0 will result in scaling up so that there is no pending memory remaining after the update (more aggressive scaling). A scale-up factor closer to 0 will result in a smaller magnitude of scaling up (less aggressive scaling). See How autoscaling works (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/autoscaling#how_autoscaling_works) for more information.Bounds: 0.0, 1.0.", + "format": "double", + "type": "number" + }, + "scaleUpMinWorkerFraction": { + "description": "Optional. Minimum scale-up threshold as a fraction of total cluster size before scaling occurs. For example, in a 20-worker cluster, a threshold of 0.1 means the autoscaler must recommend at least a 2-worker scale-up for the cluster to scale. A threshold of 0 means the autoscaler will scale up on any recommended change.Bounds: 0.0, 1.0. Default: 0.0.", + "format": "double", + "type": "number" + } + }, + "type": "object" + }, + "Batch": { + "description": "A representation of a batch workload in the service.", + "id": "Batch", + "properties": { + "createTime": { + "description": "Output only. The time when the batch was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "creator": { + "description": "Output only. The email address of the user who created the batch.", + "readOnly": true, + "type": "string" + }, + "environmentConfig": { + "$ref": "EnvironmentConfig", + "description": "Optional. Environment configuration for the batch execution." + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. The labels to associate with this batch. Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a batch.", + "type": "object" + }, + "name": { + "description": "Output only. The resource name of the batch.", + "readOnly": true, + "type": "string" + }, + "operation": { + "description": "Output only. The resource name of the operation associated with this batch.", + "readOnly": true, + "type": "string" + }, + "pysparkBatch": { + "$ref": "PySparkBatch", + "description": "Optional. PySpark batch config." + }, + "runtimeConfig": { + "$ref": "RuntimeConfig", + "description": "Optional. Runtime configuration for the batch execution." + }, + "runtimeInfo": { + "$ref": "RuntimeInfo", + "description": "Output only. Runtime information about batch execution.", + "readOnly": true + }, + "sparkBatch": { + "$ref": "SparkBatch", + "description": "Optional. Spark batch config." + }, + "sparkRBatch": { + "$ref": "SparkRBatch", + "description": "Optional. SparkR batch config." + }, + "sparkSqlBatch": { + "$ref": "SparkSqlBatch", + "description": "Optional. SparkSql batch config." + }, + "state": { + "description": "Output only. The state of the batch.", + "enum": [ + "STATE_UNSPECIFIED", + "PENDING", + "RUNNING", + "CANCELLING", + "CANCELLED", + "SUCCEEDED", + "FAILED" + ], + "enumDescriptions": [ + "The batch state is unknown.", + "The batch is created before running.", + "The batch is running.", + "The batch is cancelling.", + "The batch cancellation was successful.", + "The batch completed successfully.", + "The batch is no longer running due to an error." + ], + "readOnly": true, + "type": "string" + }, + "stateHistory": { + "description": "Output only. Historical state information for the batch.", + "items": { + "$ref": "StateHistory" + }, + "readOnly": true, + "type": "array" + }, + "stateMessage": { + "description": "Output only. Batch state details, such as a failure description if the state is FAILED.", + "readOnly": true, + "type": "string" + }, + "stateTime": { + "description": "Output only. The time when the batch entered a current state.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "uuid": { + "description": "Output only. A batch UUID (Unique Universal Identifier). The service generates this value when it creates the batch.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "BatchOperationMetadata": { + "description": "Metadata describing the Batch operation.", + "id": "BatchOperationMetadata", + "properties": { + "batch": { + "description": "Name of the batch for the operation.", + "type": "string" + }, + "batchUuid": { + "description": "Batch UUID for the operation.", + "type": "string" + }, + "createTime": { + "description": "The time when the operation was created.", + "format": "google-datetime", + "type": "string" + }, + "description": { + "description": "Short description of the operation.", + "type": "string" + }, + "doneTime": { + "description": "The time when the operation finished.", + "format": "google-datetime", + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Labels associated with the operation.", + "type": "object" + }, + "operationType": { + "description": "The operation type.", + "enum": [ + "BATCH_OPERATION_TYPE_UNSPECIFIED", + "BATCH" + ], + "enumDescriptions": [ + "Batch operation type is unknown.", + "Batch operation type." + ], + "type": "string" + }, + "warnings": { + "description": "Warnings encountered during operation execution.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "Binding": { + "description": "Associates members, or principals, with a role.", + "id": "Binding", + "properties": { + "condition": { + "$ref": "Expr", + "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. domain:{domain}: The G Suite domain (primary) that represents all the users of that domain. For example, google.com or example.com. principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}: A single identity in a workforce identity pool. principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}: All workforce identities in a group. principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}: All workforce identities with a specific attribute value. principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*: All identities in a workforce identity pool. principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}: A single identity in a workload identity pool. principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}: A workload identity pool group. principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}: All identities in a workload identity pool with a certain attribute. principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*: All identities in a workload identity pool. 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. deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}: Deleted single identity in a workforce identity pool. For example, deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value.", + "items": { + "type": "string" + }, + "type": "array" + }, + "role": { + "description": "Role that is assigned to the list of members, or principals. For example, roles/viewer, roles/editor, or roles/owner.For an overview of the IAM roles and permissions, see the IAM documentation (https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see here (https://cloud.google.com/iam/docs/understanding-roles).", + "type": "string" + } + }, + "type": "object" + }, + "CancelJobRequest": { + "description": "A request to cancel a job.", + "id": "CancelJobRequest", + "properties": {}, + "type": "object" + }, + "Cluster": { + "description": "Describes the identifying information, config, and status of a Dataproc cluster", + "id": "Cluster", + "properties": { + "clusterName": { + "description": "Required. The cluster name, which must be unique within a project. The name must start with a lowercase letter, and can contain up to 51 lowercase letters, numbers, and hyphens. It cannot end with a hyphen. The name of a deleted cluster can be reused.", + "type": "string" + }, + "clusterUuid": { + "description": "Output only. A cluster UUID (Unique Universal Identifier). Dataproc generates this value when it creates the cluster.", + "readOnly": true, + "type": "string" + }, + "config": { + "$ref": "ClusterConfig", + "description": "Optional. The cluster config for a cluster of Compute Engine Instances. Note that Dataproc may set default values, and values may change when clusters are updated.Exactly one of ClusterConfig or VirtualClusterConfig must be specified." + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. The labels to associate with this cluster. Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a cluster.", + "type": "object" + }, + "metrics": { + "$ref": "ClusterMetrics", + "description": "Output only. Contains cluster daemon metrics such as HDFS and YARN stats.Beta Feature: This report is available for testing purposes only. It may be changed before final release.", + "readOnly": true + }, + "projectId": { + "description": "Required. The Google Cloud Platform project ID that the cluster belongs to.", + "type": "string" + }, + "status": { + "$ref": "ClusterStatus", + "description": "Output only. Cluster status.", + "readOnly": true + }, + "statusHistory": { + "description": "Output only. The previous cluster status.", + "items": { + "$ref": "ClusterStatus" + }, + "readOnly": true, + "type": "array" + }, + "virtualClusterConfig": { + "$ref": "VirtualClusterConfig", + "description": "Optional. The virtual cluster config is used when creating a Dataproc cluster that does not directly control the underlying compute resources, for example, when creating a Dataproc-on-GKE cluster (https://cloud.google.com/dataproc/docs/guides/dpgke/dataproc-gke-overview). Dataproc may set default values, and values may change when clusters are updated. Exactly one of config or virtual_cluster_config must be specified." + } + }, + "type": "object" + }, + "ClusterConfig": { + "description": "The cluster config.", + "id": "ClusterConfig", + "properties": { + "autoscalingConfig": { + "$ref": "AutoscalingConfig", + "description": "Optional. Autoscaling config for the policy associated with the cluster. Cluster does not autoscale if this field is unset." + }, + "auxiliaryNodeGroups": { + "description": "Optional. The node group settings.", + "items": { + "$ref": "AuxiliaryNodeGroup" + }, + "type": "array" + }, + "configBucket": { + "description": "Optional. A Cloud Storage bucket used to stage job dependencies, config files, and job driver console output. If you do not specify a staging bucket, Cloud Dataproc will determine a Cloud Storage location (US, ASIA, or EU) for your cluster's staging bucket according to the Compute Engine zone where your cluster is deployed, and then create and manage this project-level, per-location bucket (see Dataproc staging and temp buckets (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). This field requires a Cloud Storage bucket name, not a gs://... URI to a Cloud Storage bucket.", + "type": "string" + }, + "dataprocMetricConfig": { + "$ref": "DataprocMetricConfig", + "description": "Optional. The config for Dataproc metrics." + }, + "encryptionConfig": { + "$ref": "EncryptionConfig", + "description": "Optional. Encryption settings for the cluster." + }, + "endpointConfig": { + "$ref": "EndpointConfig", + "description": "Optional. Port/endpoint configuration for this cluster" + }, + "gceClusterConfig": { + "$ref": "GceClusterConfig", + "description": "Optional. The shared Compute Engine config settings for all instances in a cluster." + }, + "gkeClusterConfig": { + "$ref": "GkeClusterConfig", + "deprecated": true, + "description": "Optional. BETA. The Kubernetes Engine config for Dataproc clusters deployed to The Kubernetes Engine config for Dataproc clusters deployed to Kubernetes. These config settings are mutually exclusive with Compute Engine-based options, such as gce_cluster_config, master_config, worker_config, secondary_worker_config, and autoscaling_config." + }, + "initializationActions": { + "description": "Optional. Commands to execute on each node after config is completed. By default, executables are run on master and all worker nodes. You can test a node's role metadata to run an executable on a master or worker node, as shown below using curl (you can also use wget): ROLE=$(curl -H Metadata-Flavor:Google http://metadata/computeMetadata/v1/instance/attributes/dataproc-role) if [[ \"${ROLE}\" == 'Master' ]]; then ... master specific actions ... else ... worker specific actions ... fi ", + "items": { + "$ref": "NodeInitializationAction" + }, + "type": "array" + }, + "lifecycleConfig": { + "$ref": "LifecycleConfig", + "description": "Optional. Lifecycle setting for the cluster." + }, + "masterConfig": { + "$ref": "InstanceGroupConfig", + "description": "Optional. The Compute Engine config settings for the cluster's master instance." + }, + "metastoreConfig": { + "$ref": "MetastoreConfig", + "description": "Optional. Metastore configuration." + }, + "secondaryWorkerConfig": { + "$ref": "InstanceGroupConfig", + "description": "Optional. The Compute Engine config settings for a cluster's secondary worker instances" + }, + "securityConfig": { + "$ref": "SecurityConfig", + "description": "Optional. Security settings for the cluster." + }, + "softwareConfig": { + "$ref": "SoftwareConfig", + "description": "Optional. The config settings for cluster software." + }, + "tempBucket": { + "description": "Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs data, such as Spark and MapReduce history files. If you do not specify a temp bucket, Dataproc will determine a Cloud Storage location (US, ASIA, or EU) for your cluster's temp bucket according to the Compute Engine zone where your cluster is deployed, and then create and manage this project-level, per-location bucket. The default bucket has a TTL of 90 days, but you can use any TTL (or none) if you specify a bucket (see Dataproc staging and temp buckets (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). This field requires a Cloud Storage bucket name, not a gs://... URI to a Cloud Storage bucket.", + "type": "string" + }, + "workerConfig": { + "$ref": "InstanceGroupConfig", + "description": "Optional. The Compute Engine config settings for the cluster's worker instances." + } + }, + "type": "object" + }, + "ClusterMetrics": { + "description": "Contains cluster daemon metrics, such as HDFS and YARN stats.Beta Feature: This report is available for testing purposes only. It may be changed before final release.", + "id": "ClusterMetrics", + "properties": { + "hdfsMetrics": { + "additionalProperties": { + "format": "int64", + "type": "string" + }, + "description": "The HDFS metrics.", + "type": "object" + }, + "yarnMetrics": { + "additionalProperties": { + "format": "int64", + "type": "string" + }, + "description": "YARN metrics.", + "type": "object" + } + }, + "type": "object" + }, + "ClusterOperation": { + "description": "The cluster operation triggered by a workflow.", + "id": "ClusterOperation", + "properties": { + "done": { + "description": "Output only. Indicates the operation is done.", + "readOnly": true, + "type": "boolean" + }, + "error": { + "description": "Output only. Error, if operation failed.", + "readOnly": true, + "type": "string" + }, + "operationId": { + "description": "Output only. The id of the cluster operation.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "ClusterOperationMetadata": { + "description": "Metadata describing the operation.", + "id": "ClusterOperationMetadata", + "properties": { + "childOperationIds": { + "description": "Output only. Child operation ids", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, + "clusterName": { + "description": "Output only. Name of the cluster for the operation.", + "readOnly": true, + "type": "string" + }, + "clusterUuid": { + "description": "Output only. Cluster UUID for the operation.", + "readOnly": true, + "type": "string" + }, + "description": { + "description": "Output only. Short description of operation.", + "readOnly": true, + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Output only. Labels associated with the operation", + "readOnly": true, + "type": "object" + }, + "operationType": { + "description": "Output only. The operation type.", + "readOnly": true, + "type": "string" + }, + "status": { + "$ref": "ClusterOperationStatus", + "description": "Output only. Current operation status.", + "readOnly": true + }, + "statusHistory": { + "description": "Output only. The previous operation status.", + "items": { + "$ref": "ClusterOperationStatus" + }, + "readOnly": true, + "type": "array" + }, + "warnings": { + "description": "Output only. Errors encountered during operation execution.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + } + }, + "type": "object" + }, + "ClusterOperationStatus": { + "description": "The status of the operation.", + "id": "ClusterOperationStatus", + "properties": { + "details": { + "description": "Output only. A message containing any operation metadata details.", + "readOnly": true, + "type": "string" + }, + "innerState": { + "description": "Output only. A message containing the detailed operation state.", + "readOnly": true, + "type": "string" + }, + "state": { + "description": "Output only. A message containing the operation state.", + "enum": [ + "UNKNOWN", + "PENDING", + "RUNNING", + "DONE" + ], + "enumDescriptions": [ + "Unused.", + "The operation has been created.", + "The operation is running.", + "The operation is done; either cancelled or completed." + ], + "readOnly": true, + "type": "string" + }, + "stateStartTime": { + "description": "Output only. The time this state was entered.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "ClusterSelector": { + "description": "A selector that chooses target cluster for jobs based on metadata.", + "id": "ClusterSelector", + "properties": { + "clusterLabels": { + "additionalProperties": { + "type": "string" + }, + "description": "Required. The cluster labels. Cluster must have all labels to match.", + "type": "object" + }, + "zone": { + "description": "Optional. The zone where workflow process executes. This parameter does not affect the selection of the cluster.If unspecified, the zone of the first cluster matching the selector is used.", + "type": "string" + } + }, + "type": "object" + }, + "ClusterStatus": { + "description": "The status of a cluster and its instances.", + "id": "ClusterStatus", + "properties": { + "detail": { + "description": "Optional. Output only. Details of cluster's state.", + "readOnly": true, + "type": "string" + }, + "state": { + "description": "Output only. The cluster's state.", + "enum": [ + "UNKNOWN", + "CREATING", + "RUNNING", + "ERROR", + "ERROR_DUE_TO_UPDATE", + "DELETING", + "UPDATING", + "STOPPING", + "STOPPED", + "STARTING", + "REPAIRING" + ], + "enumDescriptions": [ + "The cluster state is unknown.", + "The cluster is being created and set up. It is not ready for use.", + "The cluster is currently running and healthy. It is ready for use.Note: The cluster state changes from \"creating\" to \"running\" status after the master node(s), first two primary worker nodes (and the last primary worker node if primary workers \u003e 2) are running.", + "The cluster encountered an error. It is not ready for use.", + "The cluster has encountered an error while being updated. Jobs can be submitted to the cluster, but the cluster cannot be updated.", + "The cluster is being deleted. It cannot be used.", + "The cluster is being updated. It continues to accept and process jobs.", + "The cluster is being stopped. It cannot be used.", + "The cluster is currently stopped. It is not ready for use.", + "The cluster is being started. It is not ready for use.", + "The cluster is being repaired. It is not ready for use." + ], + "readOnly": true, + "type": "string" + }, + "stateStartTime": { + "description": "Output only. Time when this state was entered (see JSON representation of Timestamp (https://developers.google.com/protocol-buffers/docs/proto3#json)).", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "substate": { + "description": "Output only. Additional state information that includes status reported by the agent.", + "enum": [ + "UNSPECIFIED", + "UNHEALTHY", + "STALE_STATUS" + ], + "enumDescriptions": [ + "The cluster substate is unknown.", + "The cluster is known to be in an unhealthy state (for example, critical daemons are not running or HDFS capacity is exhausted).Applies to RUNNING state.", + "The agent-reported status is out of date (may occur if Dataproc loses communication with Agent).Applies to RUNNING state." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "ClusterToRepair": { + "description": "Cluster to be repaired", + "id": "ClusterToRepair", + "properties": { + "clusterRepairAction": { + "description": "Required. Repair action to take on the cluster resource.", + "enum": [ + "CLUSTER_REPAIR_ACTION_UNSPECIFIED", + "REPAIR_ERROR_DUE_TO_UPDATE_CLUSTER" + ], + "enumDescriptions": [ + "No action will be taken by default.", + "Repair cluster in ERROR_DUE_TO_UPDATE states." + ], + "type": "string" + } + }, + "type": "object" + }, + "ConfidentialInstanceConfig": { + "description": "Confidential Instance Config for clusters using Confidential VMs (https://cloud.google.com/compute/confidential-vm/docs)", + "id": "ConfidentialInstanceConfig", + "properties": { + "enableConfidentialCompute": { + "description": "Optional. Defines whether the instance should have confidential compute enabled.", + "type": "boolean" + } + }, + "type": "object" + }, + "ConsolidatedExecutorSummary": { + "description": "Consolidated summary about executors used by the application.", + "id": "ConsolidatedExecutorSummary", + "properties": { + "activeTasks": { + "format": "int32", + "type": "integer" + }, + "completedTasks": { + "format": "int32", + "type": "integer" + }, + "count": { + "format": "int32", + "type": "integer" + }, + "diskUsed": { + "format": "int64", + "type": "string" + }, + "failedTasks": { + "format": "int32", + "type": "integer" + }, + "isExcluded": { + "format": "int32", + "type": "integer" + }, + "maxMemory": { + "format": "int64", + "type": "string" + }, + "memoryMetrics": { + "$ref": "MemoryMetrics" + }, + "memoryUsed": { + "format": "int64", + "type": "string" + }, + "rddBlocks": { + "format": "int32", + "type": "integer" + }, + "totalCores": { + "format": "int32", + "type": "integer" + }, + "totalDurationMillis": { + "format": "int64", + "type": "string" + }, + "totalGcTimeMillis": { + "format": "int64", + "type": "string" + }, + "totalInputBytes": { + "format": "int64", + "type": "string" + }, + "totalShuffleRead": { + "format": "int64", + "type": "string" + }, + "totalShuffleWrite": { + "format": "int64", + "type": "string" + }, + "totalTasks": { + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "DataprocMetricConfig": { + "description": "Dataproc metric config.", + "id": "DataprocMetricConfig", + "properties": { + "metrics": { + "description": "Required. Metrics sources to enable.", + "items": { + "$ref": "Metric" + }, + "type": "array" + } + }, + "type": "object" + }, + "DiagnoseClusterRequest": { + "description": "A request to collect cluster diagnostic information.", + "id": "DiagnoseClusterRequest", + "properties": { + "diagnosisInterval": { + "$ref": "Interval", + "description": "Optional. Time interval in which diagnosis should be carried out on the cluster." + }, + "job": { + "deprecated": true, + "description": "Optional. DEPRECATED Specifies the job on which diagnosis is to be performed. Format: projects/{project}/regions/{region}/jobs/{job}", + "type": "string" + }, + "jobs": { + "description": "Optional. Specifies a list of jobs on which diagnosis is to be performed. Format: projects/{project}/regions/{region}/jobs/{job}", + "items": { + "type": "string" + }, + "type": "array" + }, + "tarballAccess": { + "description": "Optional. (Optional) The access type to the diagnostic tarball. If not specified, falls back to default access of the bucket", + "enum": [ + "TARBALL_ACCESS_UNSPECIFIED", + "GOOGLE_CLOUD_SUPPORT", + "GOOGLE_DATAPROC_DIAGNOSE" + ], + "enumDescriptions": [ + "Tarball Access unspecified. Falls back to default access of the bucket", + "Google Cloud Support group has read access to the diagnostic tarball", + "Google Cloud Dataproc Diagnose service account has read access to the diagnostic tarball" + ], + "type": "string" + }, + "tarballGcsDir": { + "description": "Optional. (Optional) The output Cloud Storage directory for the diagnostic tarball. If not specified, a task-specific directory in the cluster's staging bucket will be used.", + "type": "string" + }, + "yarnApplicationId": { + "deprecated": true, + "description": "Optional. DEPRECATED Specifies the yarn application on which diagnosis is to be performed.", + "type": "string" + }, + "yarnApplicationIds": { + "description": "Optional. Specifies a list of yarn applications on which diagnosis is to be performed.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "DiagnoseClusterResults": { + "description": "The location of diagnostic output.", + "id": "DiagnoseClusterResults", + "properties": { + "outputUri": { + "description": "Output only. The Cloud Storage URI of the diagnostic output. The output report is a plain text file with a summary of collected diagnostics.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "DiskConfig": { + "description": "Specifies the config of disk options for a group of VM instances.", + "id": "DiskConfig", + "properties": { + "bootDiskProvisionedIops": { + "description": "Optional. Indicates how many IOPS to provision for the disk. This sets the number of I/O operations per second that the disk can handle. Note: This field is only supported if boot_disk_type is hyperdisk-balanced.", + "format": "int64", + "type": "string" + }, + "bootDiskProvisionedThroughput": { + "description": "Optional. Indicates how much throughput to provision for the disk. This sets the number of throughput mb per second that the disk can handle. Values must be greater than or equal to 1. Note: This field is only supported if boot_disk_type is hyperdisk-balanced.", + "format": "int64", + "type": "string" + }, + "bootDiskSizeGb": { + "description": "Optional. Size in GB of the boot disk (default is 500GB).", + "format": "int32", + "type": "integer" + }, + "bootDiskType": { + "description": "Optional. Type of the boot disk (default is \"pd-standard\"). Valid values: \"pd-balanced\" (Persistent Disk Balanced Solid State Drive), \"pd-ssd\" (Persistent Disk Solid State Drive), or \"pd-standard\" (Persistent Disk Hard Disk Drive). See Disk types (https://cloud.google.com/compute/docs/disks#disk-types).", + "type": "string" + }, + "localSsdInterface": { + "description": "Optional. Interface type of local SSDs (default is \"scsi\"). Valid values: \"scsi\" (Small Computer System Interface), \"nvme\" (Non-Volatile Memory Express). See local SSD performance (https://cloud.google.com/compute/docs/disks/local-ssd#performance).", + "type": "string" + }, + "numLocalSsds": { + "description": "Optional. Number of attached SSDs, from 0 to 8 (default is 0). If SSDs are not attached, the boot disk is used to store runtime logs and HDFS (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic config and installed binaries.Note: Local SSD options may vary by machine type and number of vCPUs selected.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "DriverSchedulingConfig": { + "description": "Driver scheduling configuration.", + "id": "DriverSchedulingConfig", + "properties": { + "memoryMb": { + "description": "Required. The amount of memory in MB the driver is requesting.", + "format": "int32", + "type": "integer" + }, + "vcores": { + "description": "Required. The number of vCPUs the driver is requesting.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "Empty": { + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } ", + "id": "Empty", + "properties": {}, + "type": "object" + }, + "EncryptionConfig": { + "description": "Encryption settings for the cluster.", + "id": "EncryptionConfig", + "properties": { + "gcePdKmsKeyName": { + "description": "Optional. The Cloud KMS key resource name to use for persistent disk encryption for all instances in the cluster. See Use CMEK with cluster data (https://cloud.google.com//dataproc/docs/concepts/configuring-clusters/customer-managed-encryption#use_cmek_with_cluster_data) for more information.", + "type": "string" + }, + "kmsKey": { + "description": "Optional. The Cloud KMS key resource name to use for cluster persistent disk and job argument encryption. See Use CMEK with cluster data (https://cloud.google.com//dataproc/docs/concepts/configuring-clusters/customer-managed-encryption#use_cmek_with_cluster_data) for more information.When this key resource name is provided, the following job arguments of the following job types submitted to the cluster are encrypted using CMEK: FlinkJob args (https://cloud.google.com/dataproc/docs/reference/rest/v1/FlinkJob) HadoopJob args (https://cloud.google.com/dataproc/docs/reference/rest/v1/HadoopJob) SparkJob args (https://cloud.google.com/dataproc/docs/reference/rest/v1/SparkJob) SparkRJob args (https://cloud.google.com/dataproc/docs/reference/rest/v1/SparkRJob) PySparkJob args (https://cloud.google.com/dataproc/docs/reference/rest/v1/PySparkJob) SparkSqlJob (https://cloud.google.com/dataproc/docs/reference/rest/v1/SparkSqlJob) scriptVariables and queryList.queries HiveJob (https://cloud.google.com/dataproc/docs/reference/rest/v1/HiveJob) scriptVariables and queryList.queries PigJob (https://cloud.google.com/dataproc/docs/reference/rest/v1/PigJob) scriptVariables and queryList.queries PrestoJob (https://cloud.google.com/dataproc/docs/reference/rest/v1/PrestoJob) scriptVariables and queryList.queries", + "type": "string" + } + }, + "type": "object" + }, + "EndpointConfig": { + "description": "Endpoint config for this cluster", + "id": "EndpointConfig", + "properties": { + "enableHttpPortAccess": { + "description": "Optional. If true, enable http access to specific ports on the cluster from external sources. Defaults to false.", + "type": "boolean" + }, + "httpPorts": { + "additionalProperties": { + "type": "string" + }, + "description": "Output only. The map of port descriptions to URLs. Will only be populated if enable_http_port_access is true.", + "readOnly": true, + "type": "object" + } + }, + "type": "object" + }, + "EnvironmentConfig": { + "description": "Environment configuration for a workload.", + "id": "EnvironmentConfig", + "properties": { + "executionConfig": { + "$ref": "ExecutionConfig", + "description": "Optional. Execution configuration for a workload." + }, + "peripheralsConfig": { + "$ref": "PeripheralsConfig", + "description": "Optional. Peripherals configuration that workload has access to." + } + }, + "type": "object" + }, + "ExecutionConfig": { + "description": "Execution configuration for a workload.", + "id": "ExecutionConfig", + "properties": { + "idleTtl": { + "description": "Optional. Applies to sessions only. The duration to keep the session alive while it's idling. Exceeding this threshold causes the session to terminate. This field cannot be set on a batch workload. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)). Defaults to 1 hour if not set. If both ttl and idle_ttl are specified for an interactive session, the conditions are treated as OR conditions: the workload will be terminated when it has been idle for idle_ttl or when ttl has been exceeded, whichever occurs first.", + "format": "google-duration", + "type": "string" + }, + "kmsKey": { + "description": "Optional. The Cloud KMS key to use for encryption.", + "type": "string" + }, + "networkTags": { + "description": "Optional. Tags used for network traffic control.", + "items": { + "type": "string" + }, + "type": "array" + }, + "networkUri": { + "description": "Optional. Network URI to connect workload to.", + "type": "string" + }, + "serviceAccount": { + "description": "Optional. Service account that used to execute workload.", + "type": "string" + }, + "stagingBucket": { + "description": "Optional. A Cloud Storage bucket used to stage workload dependencies, config files, and store workload output and other ephemeral data, such as Spark history files. If you do not specify a staging bucket, Cloud Dataproc will determine a Cloud Storage location according to the region where your workload is running, and then create and manage project-level, per-location staging and temporary buckets. This field requires a Cloud Storage bucket name, not a gs://... URI to a Cloud Storage bucket.", + "type": "string" + }, + "subnetworkUri": { + "description": "Optional. Subnetwork URI to connect workload to.", + "type": "string" + }, + "ttl": { + "description": "Optional. The duration after which the workload will be terminated, specified as the JSON representation for Duration (https://protobuf.dev/programming-guides/proto3/#json). When the workload exceeds this duration, it will be unconditionally terminated without waiting for ongoing work to finish. If ttl is not specified for a batch workload, the workload will be allowed to run until it exits naturally (or run forever without exiting). If ttl is not specified for an interactive session, it defaults to 24 hours. If ttl is not specified for a batch that uses 2.1+ runtime version, it defaults to 4 hours. Minimum value is 10 minutes; maximum value is 14 days. If both ttl and idle_ttl are specified (for an interactive session), the conditions are treated as OR conditions: the workload will be terminated when it has been idle for idle_ttl or when ttl has been exceeded, whichever occurs first.", + "format": "google-duration", + "type": "string" + } + }, + "type": "object" + }, + "ExecutorMetrics": { + "id": "ExecutorMetrics", + "properties": { + "metrics": { + "additionalProperties": { + "format": "int64", + "type": "string" + }, + "type": "object" + } + }, + "type": "object" + }, + "ExecutorMetricsDistributions": { + "id": "ExecutorMetricsDistributions", + "properties": { + "diskBytesSpilled": { + "items": { + "format": "double", + "type": "number" + }, + "type": "array" + }, + "failedTasks": { + "items": { + "format": "double", + "type": "number" + }, + "type": "array" + }, + "inputBytes": { + "items": { + "format": "double", + "type": "number" + }, + "type": "array" + }, + "inputRecords": { + "items": { + "format": "double", + "type": "number" + }, + "type": "array" + }, + "killedTasks": { + "items": { + "format": "double", + "type": "number" + }, + "type": "array" + }, + "memoryBytesSpilled": { + "items": { + "format": "double", + "type": "number" + }, + "type": "array" + }, + "outputBytes": { + "items": { + "format": "double", + "type": "number" + }, + "type": "array" + }, + "outputRecords": { + "items": { + "format": "double", + "type": "number" + }, + "type": "array" + }, + "peakMemoryMetrics": { + "$ref": "ExecutorPeakMetricsDistributions" + }, + "quantiles": { + "items": { + "format": "double", + "type": "number" + }, + "type": "array" + }, + "shuffleRead": { + "items": { + "format": "double", + "type": "number" + }, + "type": "array" + }, + "shuffleReadRecords": { + "items": { + "format": "double", + "type": "number" + }, + "type": "array" + }, + "shuffleWrite": { + "items": { + "format": "double", + "type": "number" + }, + "type": "array" + }, + "shuffleWriteRecords": { + "items": { + "format": "double", + "type": "number" + }, + "type": "array" + }, + "succeededTasks": { + "items": { + "format": "double", + "type": "number" + }, + "type": "array" + }, + "taskTimeMillis": { + "items": { + "format": "double", + "type": "number" + }, + "type": "array" + } + }, + "type": "object" + }, + "ExecutorPeakMetricsDistributions": { + "id": "ExecutorPeakMetricsDistributions", + "properties": { + "executorMetrics": { + "items": { + "$ref": "ExecutorMetrics" + }, + "type": "array" + }, + "quantiles": { + "items": { + "format": "double", + "type": "number" + }, + "type": "array" + } + }, + "type": "object" + }, + "ExecutorResourceRequest": { + "description": "Resources used per executor used by the application.", + "id": "ExecutorResourceRequest", + "properties": { + "amount": { + "format": "int64", + "type": "string" + }, + "discoveryScript": { + "type": "string" + }, + "resourceName": { + "type": "string" + }, + "vendor": { + "type": "string" + } + }, + "type": "object" + }, + "ExecutorStageSummary": { + "description": "Executor resources consumed by a stage.", + "id": "ExecutorStageSummary", + "properties": { + "diskBytesSpilled": { + "format": "int64", + "type": "string" + }, + "executorId": { + "type": "string" + }, + "failedTasks": { + "format": "int32", + "type": "integer" + }, + "inputBytes": { + "format": "int64", + "type": "string" + }, + "inputRecords": { + "format": "int64", + "type": "string" + }, + "isExcludedForStage": { + "type": "boolean" + }, + "killedTasks": { + "format": "int32", + "type": "integer" + }, + "memoryBytesSpilled": { + "format": "int64", + "type": "string" + }, + "outputBytes": { + "format": "int64", + "type": "string" + }, + "outputRecords": { + "format": "int64", + "type": "string" + }, + "peakMemoryMetrics": { + "$ref": "ExecutorMetrics" + }, + "shuffleRead": { + "format": "int64", + "type": "string" + }, + "shuffleReadRecords": { + "format": "int64", + "type": "string" + }, + "shuffleWrite": { + "format": "int64", + "type": "string" + }, + "shuffleWriteRecords": { + "format": "int64", + "type": "string" + }, + "stageAttemptId": { + "format": "int32", + "type": "integer" + }, + "stageId": { + "format": "int64", + "type": "string" + }, + "succeededTasks": { + "format": "int32", + "type": "integer" + }, + "taskTimeMillis": { + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "ExecutorSummary": { + "description": "Details about executors used by the application.", + "id": "ExecutorSummary", + "properties": { + "activeTasks": { + "format": "int32", + "type": "integer" + }, + "addTime": { + "format": "google-datetime", + "type": "string" + }, + "attributes": { + "additionalProperties": { + "type": "string" + }, + "type": "object" + }, + "completedTasks": { + "format": "int32", + "type": "integer" + }, + "diskUsed": { + "format": "int64", + "type": "string" + }, + "excludedInStages": { + "items": { + "format": "int64", + "type": "string" + }, + "type": "array" + }, + "executorId": { + "type": "string" + }, + "executorLogs": { + "additionalProperties": { + "type": "string" + }, + "type": "object" + }, + "failedTasks": { + "format": "int32", + "type": "integer" + }, + "hostPort": { + "type": "string" + }, + "isActive": { + "type": "boolean" + }, + "isExcluded": { + "type": "boolean" + }, + "maxMemory": { + "format": "int64", + "type": "string" + }, + "maxTasks": { + "format": "int32", + "type": "integer" + }, + "memoryMetrics": { + "$ref": "MemoryMetrics" + }, + "memoryUsed": { + "format": "int64", + "type": "string" + }, + "peakMemoryMetrics": { + "$ref": "ExecutorMetrics" + }, + "rddBlocks": { + "format": "int32", + "type": "integer" + }, + "removeReason": { + "type": "string" + }, + "removeTime": { + "format": "google-datetime", + "type": "string" + }, + "resourceProfileId": { + "format": "int32", + "type": "integer" + }, + "resources": { + "additionalProperties": { + "$ref": "ResourceInformation" + }, + "type": "object" + }, + "totalCores": { + "format": "int32", + "type": "integer" + }, + "totalDurationMillis": { + "format": "int64", + "type": "string" + }, + "totalGcTimeMillis": { + "format": "int64", + "type": "string" + }, + "totalInputBytes": { + "format": "int64", + "type": "string" + }, + "totalShuffleRead": { + "format": "int64", + "type": "string" + }, + "totalShuffleWrite": { + "format": "int64", + "type": "string" + }, + "totalTasks": { + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "Expr": { + "description": "Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec.Example (Comparison): title: \"Summary size limit\" description: \"Determines if a summary is less than 100 chars\" expression: \"document.summary.size() \u003c 100\" Example (Equality): title: \"Requestor is owner\" description: \"Determines if requestor is the document owner\" expression: \"document.owner == request.auth.claims.email\" Example (Logic): title: \"Public documents\" description: \"Determine whether the document should be publicly visible\" expression: \"document.type != 'private' \u0026\u0026 document.type != 'internal'\" Example (Data Manipulation): title: \"Notification string\" description: \"Create a notification string with a timestamp.\" expression: \"'New message received at ' + string(document.create_time)\" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.", + "id": "Expr", + "properties": { + "description": { + "description": "Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.", + "type": "string" + }, + "expression": { + "description": "Textual representation of an expression in Common Expression Language syntax.", + "type": "string" + }, + "location": { + "description": "Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.", + "type": "string" + }, + "title": { + "description": "Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.", + "type": "string" + } + }, + "type": "object" + }, + "FlinkJob": { + "description": "A Dataproc job for running Apache Flink applications on YARN.", + "id": "FlinkJob", + "properties": { + "args": { + "description": "Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision might occur that causes an incorrect job submission.", + "items": { + "type": "string" + }, + "type": "array" + }, + "jarFileUris": { + "description": "Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Flink driver and tasks.", + "items": { + "type": "string" + }, + "type": "array" + }, + "loggingConfig": { + "$ref": "LoggingConfig", + "description": "Optional. The runtime log config for job execution." + }, + "mainClass": { + "description": "The name of the driver's main class. The jar file that contains the class must be in the default CLASSPATH or specified in jarFileUris.", + "type": "string" + }, + "mainJarFileUri": { + "description": "The HCFS URI of the jar file that contains the main class.", + "type": "string" + }, + "properties": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. A mapping of property names to values, used to configure Flink. Properties that conflict with values set by the Dataproc API might be overwritten. Can include properties set in /etc/flink/conf/flink-defaults.conf and classes in user code.", + "type": "object" + }, + "savepointUri": { + "description": "Optional. HCFS URI of the savepoint, which contains the last saved progress for starting the current job.", + "type": "string" + } + }, + "type": "object" + }, + "GceClusterConfig": { + "description": "Common config settings for resources of Compute Engine cluster instances, applicable to all instances in the cluster.", + "id": "GceClusterConfig", + "properties": { + "confidentialInstanceConfig": { + "$ref": "ConfidentialInstanceConfig", + "description": "Optional. Confidential Instance Config for clusters using Confidential VMs (https://cloud.google.com/compute/confidential-vm/docs)." + }, + "internalIpOnly": { + "description": "Optional. This setting applies to subnetwork-enabled networks. It is set to true by default in clusters created with image versions 2.2.x.When set to true: All cluster VMs have internal IP addresses. Google Private Access (https://cloud.google.com/vpc/docs/private-google-access) must be enabled to access Dataproc and other Google Cloud APIs. Off-cluster dependencies must be configured to be accessible without external IP addresses.When set to false: Cluster VMs are not restricted to internal IP addresses. Ephemeral external IP addresses are assigned to each cluster VM.", + "type": "boolean" + }, + "metadata": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. The Compute Engine metadata entries to add to all instances (see Project and instance metadata (https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).", + "type": "object" + }, + "networkUri": { + "description": "Optional. The Compute Engine network to be used for machine communications. Cannot be specified with subnetwork_uri. If neither network_uri nor subnetwork_uri is specified, the \"default\" network of the project is used, if it exists. Cannot be a \"Custom Subnet Network\" (see Using Subnetworks (https://cloud.google.com/compute/docs/subnetworks) for more information).A full URL, partial URI, or short name are valid. Examples: https://www.googleapis.com/compute/v1/projects/[project_id]/global/networks/default projects/[project_id]/global/networks/default default", + "type": "string" + }, + "nodeGroupAffinity": { + "$ref": "NodeGroupAffinity", + "description": "Optional. Node Group Affinity for sole-tenant clusters." + }, + "privateIpv6GoogleAccess": { + "description": "Optional. The type of IPv6 access for a cluster.", + "enum": [ + "PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED", + "INHERIT_FROM_SUBNETWORK", + "OUTBOUND", + "BIDIRECTIONAL" + ], + "enumDescriptions": [ + "If unspecified, Compute Engine default behavior will apply, which is the same as INHERIT_FROM_SUBNETWORK.", + "Private access to and from Google Services configuration inherited from the subnetwork configuration. This is the default Compute Engine behavior.", + "Enables outbound private IPv6 access to Google Services from the Dataproc cluster.", + "Enables bidirectional private IPv6 access between Google Services and the Dataproc cluster." + ], + "type": "string" + }, + "reservationAffinity": { + "$ref": "ReservationAffinity", + "description": "Optional. Reservation Affinity for consuming Zonal reservation." + }, + "serviceAccount": { + "description": "Optional. The Dataproc service account (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc) (also see VM Data Plane identity (https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-principals#vm_service_account_data_plane_identity)) used by Dataproc cluster VM instances to access Google Cloud Platform services.If not specified, the Compute Engine default service account (https://cloud.google.com/compute/docs/access/service-accounts#default_service_account) is used.", + "type": "string" + }, + "serviceAccountScopes": { + "description": "Optional. The URIs of service account scopes to be included in Compute Engine instances. The following base set of scopes is always included: https://www.googleapis.com/auth/cloud.useraccounts.readonly https://www.googleapis.com/auth/devstorage.read_write https://www.googleapis.com/auth/logging.writeIf no scopes are specified, the following defaults are also provided: https://www.googleapis.com/auth/bigquery https://www.googleapis.com/auth/bigtable.admin.table https://www.googleapis.com/auth/bigtable.data https://www.googleapis.com/auth/devstorage.full_control", + "items": { + "type": "string" + }, + "type": "array" + }, + "shieldedInstanceConfig": { + "$ref": "ShieldedInstanceConfig", + "description": "Optional. Shielded Instance Config for clusters using Compute Engine Shielded VMs (https://cloud.google.com/security/shielded-cloud/shielded-vm)." + }, + "subnetworkUri": { + "description": "Optional. The Compute Engine subnetwork to be used for machine communications. Cannot be specified with network_uri.A full URL, partial URI, or short name are valid. Examples: https://www.googleapis.com/compute/v1/projects/[project_id]/regions/[region]/subnetworks/sub0 projects/[project_id]/regions/[region]/subnetworks/sub0 sub0", + "type": "string" + }, + "tags": { + "description": "The Compute Engine network tags to add to all instances (see Tagging instances (https://cloud.google.com/vpc/docs/add-remove-network-tags)).", + "items": { + "type": "string" + }, + "type": "array" + }, + "zoneUri": { + "description": "Optional. The Compute Engine zone where the Dataproc cluster will be located. If omitted, the service will pick a zone in the cluster's Compute Engine region. On a get request, zone will always be present.A full URL, partial URI, or short name are valid. Examples: https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone] projects/[project_id]/zones/[zone] [zone]", + "type": "string" + } + }, + "type": "object" + }, + "GetIamPolicyRequest": { + "description": "Request message for GetIamPolicy method.", + "id": "GetIamPolicyRequest", + "properties": { + "options": { + "$ref": "GetPolicyOptions", + "description": "OPTIONAL: A GetPolicyOptions object for specifying options to GetIamPolicy." + } + }, + "type": "object" + }, + "GetPolicyOptions": { + "description": "Encapsulates settings provided to GetIamPolicy.", + "id": "GetPolicyOptions", + "properties": { + "requestedPolicyVersion": { + "description": "Optional. The maximum policy version that will be used to format the policy.Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected.Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset.The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GkeClusterConfig": { + "description": "The cluster's GKE config.", + "id": "GkeClusterConfig", + "properties": { + "gkeClusterTarget": { + "description": "Optional. A target GKE cluster to deploy to. It must be in the same project and region as the Dataproc cluster (the GKE cluster can be zonal or regional). Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}'", + "type": "string" + }, + "namespacedGkeDeploymentTarget": { + "$ref": "NamespacedGkeDeploymentTarget", + "deprecated": true, + "description": "Optional. Deprecated. Use gkeClusterTarget. Used only for the deprecated beta. A target for the deployment." + }, + "nodePoolTarget": { + "description": "Optional. GKE node pools where workloads will be scheduled. At least one node pool must be assigned the DEFAULT GkeNodePoolTarget.Role. If a GkeNodePoolTarget is not specified, Dataproc constructs a DEFAULT GkeNodePoolTarget. Each role can be given to only one GkeNodePoolTarget. All node pools must have the same location settings.", + "items": { + "$ref": "GkeNodePoolTarget" + }, + "type": "array" + } + }, + "type": "object" + }, + "GkeNodeConfig": { + "description": "Parameters that describe cluster nodes.", + "id": "GkeNodeConfig", + "properties": { + "accelerators": { + "description": "Optional. A list of hardware accelerators (https://cloud.google.com/compute/docs/gpus) to attach to each node.", + "items": { + "$ref": "GkeNodePoolAcceleratorConfig" + }, + "type": "array" + }, + "bootDiskKmsKey": { + "description": "Optional. The Customer Managed Encryption Key (CMEK) (https://cloud.google.com/kubernetes-engine/docs/how-to/using-cmek) used to encrypt the boot disk attached to each node in the node pool. Specify the key using the following format: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}", + "type": "string" + }, + "localSsdCount": { + "description": "Optional. The number of local SSD disks to attach to the node, which is limited by the maximum number of disks allowable per zone (see Adding Local SSDs (https://cloud.google.com/compute/docs/disks/local-ssd)).", + "format": "int32", + "type": "integer" + }, + "machineType": { + "description": "Optional. The name of a Compute Engine machine type (https://cloud.google.com/compute/docs/machine-types).", + "type": "string" + }, + "minCpuPlatform": { + "description": "Optional. Minimum CPU platform (https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) to be used by this instance. The instance may be scheduled on the specified or a newer CPU platform. Specify the friendly names of CPU platforms, such as \"Intel Haswell\"` or Intel Sandy Bridge\".", + "type": "string" + }, + "preemptible": { + "description": "Optional. Whether the nodes are created as legacy preemptible VM instances (https://cloud.google.com/compute/docs/instances/preemptible). Also see Spot VMs, preemptible VM instances without a maximum lifetime. Legacy and Spot preemptible nodes cannot be used in a node pool with the CONTROLLER role or in the DEFAULT node pool if the CONTROLLER role is not assigned (the DEFAULT node pool will assume the CONTROLLER role).", + "type": "boolean" + }, + "spot": { + "description": "Optional. Whether the nodes are created as Spot VM instances (https://cloud.google.com/compute/docs/instances/spot). Spot VMs are the latest update to legacy preemptible VMs. Spot VMs do not have a maximum lifetime. Legacy and Spot preemptible nodes cannot be used in a node pool with the CONTROLLER role or in the DEFAULT node pool if the CONTROLLER role is not assigned (the DEFAULT node pool will assume the CONTROLLER role).", + "type": "boolean" + } + }, + "type": "object" + }, + "GkeNodePoolAcceleratorConfig": { + "description": "A GkeNodeConfigAcceleratorConfig represents a Hardware Accelerator request for a node pool.", + "id": "GkeNodePoolAcceleratorConfig", + "properties": { + "acceleratorCount": { + "description": "The number of accelerator cards exposed to an instance.", + "format": "int64", + "type": "string" + }, + "acceleratorType": { + "description": "The accelerator type resource namename (see GPUs on Compute Engine).", + "type": "string" + }, + "gpuPartitionSize": { + "description": "Size of partitions to create on the GPU. Valid values are described in the NVIDIA mig user guide (https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).", + "type": "string" + } + }, + "type": "object" + }, + "GkeNodePoolAutoscalingConfig": { + "description": "GkeNodePoolAutoscaling contains information the cluster autoscaler needs to adjust the size of the node pool to the current cluster usage.", + "id": "GkeNodePoolAutoscalingConfig", + "properties": { + "maxNodeCount": { + "description": "The maximum number of nodes in the node pool. Must be \u003e= min_node_count, and must be \u003e 0. Note: Quota must be sufficient to scale up the cluster.", + "format": "int32", + "type": "integer" + }, + "minNodeCount": { + "description": "The minimum number of nodes in the node pool. Must be \u003e= 0 and \u003c= max_node_count.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GkeNodePoolConfig": { + "description": "The configuration of a GKE node pool used by a Dataproc-on-GKE cluster (https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).", + "id": "GkeNodePoolConfig", + "properties": { + "autoscaling": { + "$ref": "GkeNodePoolAutoscalingConfig", + "description": "Optional. The autoscaler configuration for this node pool. The autoscaler is enabled only when a valid configuration is present." + }, + "config": { + "$ref": "GkeNodeConfig", + "description": "Optional. The node pool configuration." + }, + "locations": { + "description": "Optional. The list of Compute Engine zones (https://cloud.google.com/compute/docs/zones#available) where node pool nodes associated with a Dataproc on GKE virtual cluster will be located.Note: All node pools associated with a virtual cluster must be located in the same region as the virtual cluster, and they must be located in the same zone within that region.If a location is not specified during node pool creation, Dataproc on GKE will choose the zone.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GkeNodePoolTarget": { + "description": "GKE node pools that Dataproc workloads run on.", + "id": "GkeNodePoolTarget", + "properties": { + "nodePool": { + "description": "Required. The target GKE node pool. Format: 'projects/{project}/locations/{location}/clusters/{cluster}/nodePools/{node_pool}'", + "type": "string" + }, + "nodePoolConfig": { + "$ref": "GkeNodePoolConfig", + "description": "Input only. The configuration for the GKE node pool.If specified, Dataproc attempts to create a node pool with the specified shape. If one with the same name already exists, it is verified against all specified fields. If a field differs, the virtual cluster creation will fail.If omitted, any node pool with the specified name is used. If a node pool with the specified name does not exist, Dataproc create a node pool with default values.This is an input only field. It will not be returned by the API." + }, + "roles": { + "description": "Required. The roles associated with the GKE node pool.", + "items": { + "enum": [ + "ROLE_UNSPECIFIED", + "DEFAULT", + "CONTROLLER", + "SPARK_DRIVER", + "SPARK_EXECUTOR" + ], + "enumDescriptions": [ + "Role is unspecified.", + "At least one node pool must have the DEFAULT role. Work assigned to a role that is not associated with a node pool is assigned to the node pool with the DEFAULT role. For example, work assigned to the CONTROLLER role will be assigned to the node pool with the DEFAULT role if no node pool has the CONTROLLER role.", + "Run work associated with the Dataproc control plane (for example, controllers and webhooks). Very low resource requirements.", + "Run work associated with a Spark driver of a job.", + "Run work associated with a Spark executor of a job." + ], + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDataprocV1WorkflowTemplateEncryptionConfig": { + "description": "Encryption settings for encrypting workflow template job arguments.", + "id": "GoogleCloudDataprocV1WorkflowTemplateEncryptionConfig", + "properties": { + "kmsKey": { + "description": "Optional. The Cloud KMS key name to use for encrypting workflow template job arguments.When this this key is provided, the following workflow template job arguments (https://cloud.google.com/dataproc/docs/concepts/workflows/use-workflows#adding_jobs_to_a_template), if present, are CMEK encrypted (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/customer-managed-encryption#use_cmek_with_workflow_template_data): FlinkJob args (https://cloud.google.com/dataproc/docs/reference/rest/v1/FlinkJob) HadoopJob args (https://cloud.google.com/dataproc/docs/reference/rest/v1/HadoopJob) SparkJob args (https://cloud.google.com/dataproc/docs/reference/rest/v1/SparkJob) SparkRJob args (https://cloud.google.com/dataproc/docs/reference/rest/v1/SparkRJob) PySparkJob args (https://cloud.google.com/dataproc/docs/reference/rest/v1/PySparkJob) SparkSqlJob (https://cloud.google.com/dataproc/docs/reference/rest/v1/SparkSqlJob) scriptVariables and queryList.queries HiveJob (https://cloud.google.com/dataproc/docs/reference/rest/v1/HiveJob) scriptVariables and queryList.queries PigJob (https://cloud.google.com/dataproc/docs/reference/rest/v1/PigJob) scriptVariables and queryList.queries PrestoJob (https://cloud.google.com/dataproc/docs/reference/rest/v1/PrestoJob) scriptVariables and queryList.queries", + "type": "string" + } + }, + "type": "object" + }, + "HadoopJob": { + "description": "A Dataproc job for running Apache Hadoop MapReduce (https://hadoop.apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core/MapReduceTutorial.html) jobs on Apache Hadoop YARN (https://hadoop.apache.org/docs/r2.7.1/hadoop-yarn/hadoop-yarn-site/YARN.html).", + "id": "HadoopJob", + "properties": { + "archiveUris": { + "description": "Optional. HCFS URIs of archives to be extracted in the working directory of Hadoop drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, or .zip.", + "items": { + "type": "string" + }, + "type": "array" + }, + "args": { + "description": "Optional. The arguments to pass to the driver. Do not include arguments, such as -libjars or -Dfoo=bar, that can be set as job properties, since a collision might occur that causes an incorrect job submission.", + "items": { + "type": "string" + }, + "type": "array" + }, + "fileUris": { + "description": "Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied to the working directory of Hadoop drivers and distributed tasks. Useful for naively parallel tasks.", + "items": { + "type": "string" + }, + "type": "array" + }, + "jarFileUris": { + "description": "Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks.", + "items": { + "type": "string" + }, + "type": "array" + }, + "loggingConfig": { + "$ref": "LoggingConfig", + "description": "Optional. The runtime log config for job execution." + }, + "mainClass": { + "description": "The name of the driver's main class. The jar file containing the class must be in the default CLASSPATH or specified in jar_file_uris.", + "type": "string" + }, + "mainJarFileUri": { + "description": "The HCFS URI of the jar file containing the main class. Examples: 'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar' 'hdfs:/tmp/test-samples/custom-wordcount.jar' 'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar'", + "type": "string" + }, + "properties": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. A mapping of property names to values, used to configure Hadoop. Properties that conflict with values set by the Dataproc API might be overwritten. Can include properties set in /etc/hadoop/conf/*-site and classes in user code.", + "type": "object" + } + }, + "type": "object" + }, + "HiveJob": { + "description": "A Dataproc job for running Apache Hive (https://hive.apache.org/) queries on YARN.", + "id": "HiveJob", + "properties": { + "continueOnFailure": { + "description": "Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries.", + "type": "boolean" + }, + "jarFileUris": { + "description": "Optional. HCFS URIs of jar files to add to the CLASSPATH of the Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes and UDFs.", + "items": { + "type": "string" + }, + "type": "array" + }, + "properties": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. A mapping of property names and values, used to configure Hive. Properties that conflict with values set by the Dataproc API might be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/hive/conf/hive-site.xml, and classes in user code.", + "type": "object" + }, + "queryFileUri": { + "description": "The HCFS URI of the script that contains Hive queries.", + "type": "string" + }, + "queryList": { + "$ref": "QueryList", + "description": "A list of queries." + }, + "scriptVariables": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Mapping of query variable names to values (equivalent to the Hive command: SET name=\"value\";).", + "type": "object" + } + }, + "type": "object" + }, + "IdentityConfig": { + "description": "Identity related configuration, including service account based secure multi-tenancy user mappings.", + "id": "IdentityConfig", + "properties": { + "userServiceAccountMapping": { + "additionalProperties": { + "type": "string" + }, + "description": "Required. Map of user to service account.", + "type": "object" + } + }, + "type": "object" + }, + "InjectCredentialsRequest": { + "description": "A request to inject credentials into a cluster.", + "id": "InjectCredentialsRequest", + "properties": { + "clusterUuid": { + "description": "Required. The cluster UUID.", + "type": "string" + }, + "credentialsCiphertext": { + "description": "Required. The encrypted credentials being injected in to the cluster.The client is responsible for encrypting the credentials in a way that is supported by the cluster.A wrapped value is used here so that the actual contents of the encrypted credentials are not written to audit logs.", + "type": "string" + } + }, + "type": "object" + }, + "InputMetrics": { + "description": "Metrics about the input data read by the task.", + "id": "InputMetrics", + "properties": { + "bytesRead": { + "format": "int64", + "type": "string" + }, + "recordsRead": { + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "InputQuantileMetrics": { + "id": "InputQuantileMetrics", + "properties": { + "bytesRead": { + "$ref": "Quantiles" + }, + "recordsRead": { + "$ref": "Quantiles" + } + }, + "type": "object" + }, + "InstanceFlexibilityPolicy": { + "description": "Instance flexibility Policy allowing a mixture of VM shapes and provisioning models.", + "id": "InstanceFlexibilityPolicy", + "properties": { + "instanceSelectionList": { + "description": "Optional. List of instance selection options that the group will use when creating new VMs.", + "items": { + "$ref": "InstanceSelection" + }, + "type": "array" + }, + "instanceSelectionResults": { + "description": "Output only. A list of instance selection results in the group.", + "items": { + "$ref": "InstanceSelectionResult" + }, + "readOnly": true, + "type": "array" + }, + "provisioningModelMix": { + "$ref": "ProvisioningModelMix", + "description": "Optional. Defines how the Group selects the provisioning model to ensure required reliability." + } + }, + "type": "object" + }, + "InstanceGroupAutoscalingPolicyConfig": { + "description": "Configuration for the size bounds of an instance group, including its proportional size to other groups.", + "id": "InstanceGroupAutoscalingPolicyConfig", + "properties": { + "maxInstances": { + "description": "Required. Maximum number of instances for this group. Required for primary workers. Note that by default, clusters will not use secondary workers. Required for secondary workers if the minimum secondary instances is set.Primary workers - Bounds: [min_instances, ). Secondary workers - Bounds: [min_instances, ). Default: 0.", + "format": "int32", + "type": "integer" + }, + "minInstances": { + "description": "Optional. Minimum number of instances for this group.Primary workers - Bounds: 2, max_instances. Default: 2. Secondary workers - Bounds: 0, max_instances. Default: 0.", + "format": "int32", + "type": "integer" + }, + "weight": { + "description": "Optional. Weight for the instance group, which is used to determine the fraction of total workers in the cluster from this instance group. For example, if primary workers have weight 2, and secondary workers have weight 1, the cluster will have approximately 2 primary workers for each secondary worker.The cluster may not reach the specified balance if constrained by min/max bounds or other autoscaling settings. For example, if max_instances for secondary workers is 0, then only primary workers will be added. The cluster can also be out of balance when created.If weight is not set on any instance group, the cluster will default to equal weight for all groups: the cluster will attempt to maintain an equal number of workers in each group within the configured size bounds for each group. If weight is set for one group only, the cluster will default to zero weight on the unset group. For example if weight is set only on primary workers, the cluster will use primary workers only and no secondary workers.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "InstanceGroupConfig": { + "description": "The config settings for Compute Engine resources in an instance group, such as a master or worker group.", + "id": "InstanceGroupConfig", + "properties": { + "accelerators": { + "description": "Optional. The Compute Engine accelerator configuration for these instances.", + "items": { + "$ref": "AcceleratorConfig" + }, + "type": "array" + }, + "diskConfig": { + "$ref": "DiskConfig", + "description": "Optional. Disk option config settings." + }, + "imageUri": { + "description": "Optional. The Compute Engine image resource used for cluster instances.The URI can represent an image or image family.Image examples: https://www.googleapis.com/compute/v1/projects/[project_id]/global/images/[image-id] projects/[project_id]/global/images/[image-id] image-idImage family examples. Dataproc will use the most recent image from the family: https://www.googleapis.com/compute/v1/projects/[project_id]/global/images/family/[custom-image-family-name] projects/[project_id]/global/images/family/[custom-image-family-name]If the URI is unspecified, it will be inferred from SoftwareConfig.image_version or the system default.", + "type": "string" + }, + "instanceFlexibilityPolicy": { + "$ref": "InstanceFlexibilityPolicy", + "description": "Optional. Instance flexibility Policy allowing a mixture of VM shapes and provisioning models." + }, + "instanceNames": { + "description": "Output only. The list of instance names. Dataproc derives the names from cluster_name, num_instances, and the instance group.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, + "instanceReferences": { + "description": "Output only. List of references to Compute Engine instances.", + "items": { + "$ref": "InstanceReference" + }, + "readOnly": true, + "type": "array" + }, + "isPreemptible": { + "description": "Output only. Specifies that this instance group contains preemptible instances.", + "readOnly": true, + "type": "boolean" + }, + "machineTypeUri": { + "description": "Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples: https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]/machineTypes/n1-standard-2 projects/[project_id]/zones/[zone]/machineTypes/n1-standard-2 n1-standard-2Auto Zone Exception: If you are using the Dataproc Auto Zone Placement (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the machine type resource, for example, n1-standard-2.", + "type": "string" + }, + "managedGroupConfig": { + "$ref": "ManagedGroupConfig", + "description": "Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.", + "readOnly": true + }, + "minCpuPlatform": { + "description": "Optional. Specifies the minimum cpu platform for the Instance Group. See Dataproc -\u003e Minimum CPU Platform (https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).", + "type": "string" + }, + "minNumInstances": { + "description": "Optional. The minimum number of primary worker instances to create. If min_num_instances is set, cluster creation will succeed if the number of primary workers created is at least equal to the min_num_instances number.Example: Cluster creation request with num_instances = 5 and min_num_instances = 3: If 4 VMs are created and 1 instance fails, the failed VM is deleted. The cluster is resized to 4 instances and placed in a RUNNING state. If 2 instances are created and 3 instances fail, the cluster in placed in an ERROR state. The failed VMs are not deleted.", + "format": "int32", + "type": "integer" + }, + "numInstances": { + "description": "Optional. The number of VM instances in the instance group. For HA cluster master_config groups, must be set to 3. For standard cluster master_config groups, must be set to 1.", + "format": "int32", + "type": "integer" + }, + "preemptibility": { + "description": "Optional. Specifies the preemptibility of the instance group.The default value for master and worker groups is NON_PREEMPTIBLE. This default cannot be changed.The default value for secondary instances is PREEMPTIBLE.", + "enum": [ + "PREEMPTIBILITY_UNSPECIFIED", + "NON_PREEMPTIBLE", + "PREEMPTIBLE", + "SPOT" + ], + "enumDescriptions": [ + "Preemptibility is unspecified, the system will choose the appropriate setting for each instance group.", + "Instances are non-preemptible.This option is allowed for all instance groups and is the only valid value for Master and Worker instance groups.", + "Instances are preemptible (https://cloud.google.com/compute/docs/instances/preemptible).This option is allowed only for secondary worker (https://cloud.google.com/dataproc/docs/concepts/compute/secondary-vms) groups.", + "Instances are Spot VMs (https://cloud.google.com/compute/docs/instances/spot).This option is allowed only for secondary worker (https://cloud.google.com/dataproc/docs/concepts/compute/secondary-vms) groups. Spot VMs are the latest version of preemptible VMs (https://cloud.google.com/compute/docs/instances/preemptible), and provide additional features." + ], + "type": "string" + }, + "startupConfig": { + "$ref": "StartupConfig", + "description": "Optional. Configuration to handle the startup of instances during cluster create and update process." + } + }, + "type": "object" + }, + "InstanceReference": { + "description": "A reference to a Compute Engine instance.", + "id": "InstanceReference", + "properties": { + "instanceId": { + "description": "The unique identifier of the Compute Engine instance.", + "type": "string" + }, + "instanceName": { + "description": "The user-friendly name of the Compute Engine instance.", + "type": "string" + }, + "publicEciesKey": { + "description": "The public ECIES key used for sharing data with this instance.", + "type": "string" + }, + "publicKey": { + "description": "The public RSA key used for sharing data with this instance.", + "type": "string" + } + }, + "type": "object" + }, + "InstanceSelection": { + "description": "Defines machines types and a rank to which the machines types belong.", + "id": "InstanceSelection", + "properties": { + "machineTypes": { + "description": "Optional. Full machine-type names, e.g. \"n1-standard-16\".", + "items": { + "type": "string" + }, + "type": "array" + }, + "rank": { + "description": "Optional. Preference of this instance selection. Lower number means higher preference. Dataproc will first try to create a VM based on the machine-type with priority rank and fallback to next rank based on availability. Machine types and instance selections with the same priority have the same preference.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "InstanceSelectionResult": { + "description": "Defines a mapping from machine types to the number of VMs that are created with each machine type.", + "id": "InstanceSelectionResult", + "properties": { + "machineType": { + "description": "Output only. Full machine-type names, e.g. \"n1-standard-16\".", + "readOnly": true, + "type": "string" + }, + "vmCount": { + "description": "Output only. Number of VM provisioned with the machine_type.", + "format": "int32", + "readOnly": true, + "type": "integer" + } + }, + "type": "object" + }, + "InstantiateWorkflowTemplateRequest": { + "description": "A request to instantiate a workflow template.", + "id": "InstantiateWorkflowTemplateRequest", + "properties": { + "parameters": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Map from parameter names to values that should be used for those parameters. Values may not exceed 1000 characters.", + "type": "object" + }, + "requestId": { + "description": "Optional. A tag that prevents multiple concurrent workflow instances with the same tag from running. This mitigates risk of concurrent instances started due to retries.It is recommended to always set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The tag must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", + "type": "string" + }, + "version": { + "description": "Optional. The version of workflow template to instantiate. If specified, the workflow will be instantiated only if the current version of the workflow template has the supplied version.This option cannot be used to instantiate a previous version of workflow template.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "Interval": { + "description": "Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time.", + "id": "Interval", + "properties": { + "endTime": { + "description": "Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.", + "format": "google-datetime", + "type": "string" + }, + "startTime": { + "description": "Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "Job": { + "description": "A Dataproc job resource.", + "id": "Job", + "properties": { + "done": { + "description": "Output only. Indicates whether the job is completed. If the value is false, the job is still in progress. If true, the job is completed, and status.state field will indicate if it was successful, failed, or cancelled.", + "readOnly": true, + "type": "boolean" + }, + "driverControlFilesUri": { + "description": "Output only. If present, the location of miscellaneous control files which can be used as part of job setup and handling. If not present, control files might be placed in the same location as driver_output_uri.", + "readOnly": true, + "type": "string" + }, + "driverOutputResourceUri": { + "description": "Output only. A URI pointing to the location of the stdout of the job's driver program.", + "readOnly": true, + "type": "string" + }, + "driverSchedulingConfig": { + "$ref": "DriverSchedulingConfig", + "description": "Optional. Driver scheduling configuration." + }, + "flinkJob": { + "$ref": "FlinkJob", + "description": "Optional. Job is a Flink job." + }, + "hadoopJob": { + "$ref": "HadoopJob", + "description": "Optional. Job is a Hadoop job." + }, + "hiveJob": { + "$ref": "HiveJob", + "description": "Optional. Job is a Hive job." + }, + "jobUuid": { + "description": "Output only. A UUID that uniquely identifies a job within the project over time. This is in contrast to a user-settable reference.job_id that might be reused over time.", + "readOnly": true, + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. The labels to associate with this job. Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values can be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a job.", + "type": "object" + }, + "pigJob": { + "$ref": "PigJob", + "description": "Optional. Job is a Pig job." + }, + "placement": { + "$ref": "JobPlacement", + "description": "Required. Job information, including how, when, and where to run the job." + }, + "prestoJob": { + "$ref": "PrestoJob", + "description": "Optional. Job is a Presto job." + }, + "pysparkJob": { + "$ref": "PySparkJob", + "description": "Optional. Job is a PySpark job." + }, + "reference": { + "$ref": "JobReference", + "description": "Optional. The fully qualified reference to the job, which can be used to obtain the equivalent REST path of the job resource. If this property is not specified when a job is created, the server generates a job_id." + }, + "scheduling": { + "$ref": "JobScheduling", + "description": "Optional. Job scheduling configuration." + }, + "sparkJob": { + "$ref": "SparkJob", + "description": "Optional. Job is a Spark job." + }, + "sparkRJob": { + "$ref": "SparkRJob", + "description": "Optional. Job is a SparkR job." + }, + "sparkSqlJob": { + "$ref": "SparkSqlJob", + "description": "Optional. Job is a SparkSql job." + }, + "status": { + "$ref": "JobStatus", + "description": "Output only. The job status. Additional application-specific status information might be contained in the type_job and yarn_applications fields.", + "readOnly": true + }, + "statusHistory": { + "description": "Output only. The previous job status.", + "items": { + "$ref": "JobStatus" + }, + "readOnly": true, + "type": "array" + }, + "trinoJob": { + "$ref": "TrinoJob", + "description": "Optional. Job is a Trino job." + }, + "yarnApplications": { + "description": "Output only. The collection of YARN applications spun up by this job.Beta Feature: This report is available for testing purposes only. It might be changed before final release.", + "items": { + "$ref": "YarnApplication" + }, + "readOnly": true, + "type": "array" + } + }, + "type": "object" + }, + "JobData": { + "description": "Data corresponding to a spark job.", + "id": "JobData", + "properties": { + "completionTime": { + "format": "google-datetime", + "type": "string" + }, + "description": { + "type": "string" + }, + "jobGroup": { + "type": "string" + }, + "jobId": { + "format": "int64", + "type": "string" + }, + "killTasksSummary": { + "additionalProperties": { + "format": "int32", + "type": "integer" + }, + "type": "object" + }, + "name": { + "type": "string" + }, + "numActiveStages": { + "format": "int32", + "type": "integer" + }, + "numActiveTasks": { + "format": "int32", + "type": "integer" + }, + "numCompletedIndices": { + "format": "int32", + "type": "integer" + }, + "numCompletedStages": { + "format": "int32", + "type": "integer" + }, + "numCompletedTasks": { + "format": "int32", + "type": "integer" + }, + "numFailedStages": { + "format": "int32", + "type": "integer" + }, + "numFailedTasks": { + "format": "int32", + "type": "integer" + }, + "numKilledTasks": { + "format": "int32", + "type": "integer" + }, + "numSkippedStages": { + "format": "int32", + "type": "integer" + }, + "numSkippedTasks": { + "format": "int32", + "type": "integer" + }, + "numTasks": { + "format": "int32", + "type": "integer" + }, + "skippedStages": { + "items": { + "format": "int32", + "type": "integer" + }, + "type": "array" + }, + "sqlExecutionId": { + "format": "int64", + "type": "string" + }, + "stageIds": { + "items": { + "format": "int64", + "type": "string" + }, + "type": "array" + }, + "status": { + "enum": [ + "JOB_EXECUTION_STATUS_UNSPECIFIED", + "JOB_EXECUTION_STATUS_RUNNING", + "JOB_EXECUTION_STATUS_SUCCEEDED", + "JOB_EXECUTION_STATUS_FAILED", + "JOB_EXECUTION_STATUS_UNKNOWN" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "" + ], + "type": "string" + }, + "submissionTime": { + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "JobMetadata": { + "description": "Job Operation metadata.", + "id": "JobMetadata", + "properties": { + "jobId": { + "description": "Output only. The job id.", + "readOnly": true, + "type": "string" + }, + "operationType": { + "description": "Output only. Operation type.", + "readOnly": true, + "type": "string" + }, + "startTime": { + "description": "Output only. Job submission time.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "status": { + "$ref": "JobStatus", + "description": "Output only. Most recent job status.", + "readOnly": true } - } - } - }, - "revision": "20240821", - "rootUrl": "https://dataproc.googleapis.com/", - "schemas": { - "AcceleratorConfig": { - "description": "Specifies the type and number of accelerator cards attached to the instances of an instance. See GPUs on Compute Engine (https://cloud.google.com/compute/docs/gpus/).", - "id": "AcceleratorConfig", + }, + "type": "object" + }, + "JobPlacement": { + "description": "Dataproc job config.", + "id": "JobPlacement", "properties": { - "acceleratorCount": { - "description": "The number of the accelerator cards of this type exposed to this instance.", - "format": "int32", - "type": "integer" + "clusterLabels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Cluster labels to identify a cluster where the job will be submitted.", + "type": "object" }, - "acceleratorTypeUri": { - "description": "Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypes (https://cloud.google.com/compute/docs/reference/v1/acceleratorTypes).Examples: https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]/acceleratorTypes/nvidia-tesla-t4 projects/[project_id]/zones/[zone]/acceleratorTypes/nvidia-tesla-t4 nvidia-tesla-t4Auto Zone Exception: If you are using the Dataproc Auto Zone Placement (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the accelerator type resource, for example, nvidia-tesla-t4.", + "clusterName": { + "description": "Required. The name of the cluster where the job will be submitted.", + "type": "string" + }, + "clusterUuid": { + "description": "Output only. A cluster UUID generated by the Dataproc service when the job is submitted.", + "readOnly": true, "type": "string" } }, "type": "object" }, - "AnalyzeBatchRequest": { - "description": "A request to analyze a batch workload.", - "id": "AnalyzeBatchRequest", + "JobReference": { + "description": "Encapsulates the full scoping used to reference a job.", + "id": "JobReference", "properties": { - "requestId": { - "description": "Optional. A unique ID used to identify the request. If the service receives two AnalyzeBatchRequest (http://cloud/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.AnalyzeBatchRequest)s with the same request_id, the second request is ignored and the Operation that corresponds to the first request created and stored in the backend is returned.Recommendation: Set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The value must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", + "jobId": { + "description": "Optional. The job ID, which must be unique within the project.The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), or hyphens (-). The maximum length is 100 characters.If not specified by the caller, the job ID will be provided by the server.", + "type": "string" + }, + "projectId": { + "description": "Optional. The ID of the Google Cloud Platform project that the job belongs to. If specified, must match the request project ID.", "type": "string" } }, "type": "object" }, - "AnalyzeOperationMetadata": { - "description": "Metadata describing the Analyze operation.", - "id": "AnalyzeOperationMetadata", + "JobScheduling": { + "description": "Job scheduling options.", + "id": "JobScheduling", "properties": { - "analyzedWorkloadName": { - "description": "Output only. name of the workload being analyzed.", + "maxFailuresPerHour": { + "description": "Optional. Maximum number of times per hour a driver can be restarted as a result of driver exiting with non-zero code before job is reported failed.A job might be reported as thrashing if the driver exits with a non-zero code four times within a 10-minute window.Maximum value is 10.Note: This restartable job option is not supported in Dataproc workflow templates (https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template).", + "format": "int32", + "type": "integer" + }, + "maxFailuresTotal": { + "description": "Optional. Maximum total number of times a driver can be restarted as a result of the driver exiting with a non-zero code. After the maximum number is reached, the job will be reported as failed.Maximum value is 240.Note: Currently, this restartable job option is not supported in Dataproc workflow templates (https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template).", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "JobStatus": { + "description": "Dataproc job status.", + "id": "JobStatus", + "properties": { + "details": { + "description": "Optional. Output only. Job state details, such as an error description if the state is ERROR.", "readOnly": true, "type": "string" }, - "analyzedWorkloadType": { - "description": "Output only. Type of the workload being analyzed.", + "state": { + "description": "Output only. A state message specifying the overall job state.", "enum": [ - "WORKLOAD_TYPE_UNSPECIFIED", - "BATCH" + "STATE_UNSPECIFIED", + "PENDING", + "SETUP_DONE", + "RUNNING", + "CANCEL_PENDING", + "CANCEL_STARTED", + "CANCELLED", + "DONE", + "ERROR", + "ATTEMPT_FAILURE" ], "enumDescriptions": [ - "Undefined option", - "Serverless batch job" + "The job state is unknown.", + "The job is pending; it has been submitted, but is not yet running.", + "Job has been received by the service and completed initial setup; it will soon be submitted to the cluster.", + "The job is running on the cluster.", + "A CancelJob request has been received, but is pending.", + "Transient in-flight resources have been canceled, and the request to cancel the running job has been issued to the cluster.", + "The job cancellation was successful.", + "The job has completed successfully.", + "The job has completed, but encountered an error.", + "Job attempt has failed. The detail field contains failure details for this attempt.Applies to restartable jobs only." ], "readOnly": true, "type": "string" }, - "analyzedWorkloadUuid": { - "description": "Output only. unique identifier of the workload typically generated by control plane. E.g. batch uuid.", - "readOnly": true, - "type": "string" - }, - "createTime": { - "description": "Output only. The time when the operation was created.", + "stateStartTime": { + "description": "Output only. The time when this state was entered.", "format": "google-datetime", "readOnly": true, "type": "string" }, - "description": { - "description": "Output only. Short description of the operation.", + "substate": { + "description": "Output only. Additional state information, which includes status reported by the agent.", + "enum": [ + "UNSPECIFIED", + "SUBMITTED", + "QUEUED", + "STALE_STATUS" + ], + "enumDescriptions": [ + "The job substate is unknown.", + "The Job is submitted to the agent.Applies to RUNNING state.", + "The Job has been received and is awaiting execution (it might be waiting for a condition to be met). See the \"details\" field for the reason for the delay.Applies to RUNNING state.", + "The agent-reported status is out of date, which can be caused by a loss of communication between the agent and Dataproc. If the agent does not send a timely update, the job will fail.Applies to RUNNING state." + ], "readOnly": true, "type": "string" + } + }, + "type": "object" + }, + "JobsSummary": { + "description": "Data related to Jobs page summary", + "id": "JobsSummary", + "properties": { + "activeJobs": { + "description": "Number of active jobs", + "format": "int32", + "type": "integer" }, - "doneTime": { - "description": "Output only. The time when the operation finished.", - "format": "google-datetime", - "readOnly": true, + "applicationId": { + "description": "Spark Application Id", "type": "string" }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Output only. Labels associated with the operation.", - "readOnly": true, - "type": "object" - }, - "warnings": { - "description": "Output only. Warnings encountered during operation execution.", + "attempts": { + "description": "Attempts info", "items": { - "type": "string" + "$ref": "ApplicationAttemptInfo" }, - "readOnly": true, "type": "array" + }, + "completedJobs": { + "description": "Number of completed jobs", + "format": "int32", + "type": "integer" + }, + "failedJobs": { + "description": "Number of failed jobs", + "format": "int32", + "type": "integer" + }, + "schedulingMode": { + "description": "Spark Scheduling mode", + "type": "string" + } + }, + "type": "object" + }, + "JupyterConfig": { + "description": "Jupyter configuration for an interactive session.", + "id": "JupyterConfig", + "properties": { + "displayName": { + "description": "Optional. Display name, shown in the Jupyter kernelspec card.", + "type": "string" + }, + "kernel": { + "description": "Optional. Kernel", + "enum": [ + "KERNEL_UNSPECIFIED", + "PYTHON", + "SCALA" + ], + "enumDescriptions": [ + "The kernel is unknown.", + "Python kernel.", + "Scala kernel." + ], + "type": "string" + } + }, + "type": "object" + }, + "KerberosConfig": { + "description": "Specifies Kerberos related configuration.", + "id": "KerberosConfig", + "properties": { + "crossRealmTrustAdminServer": { + "description": "Optional. The admin server (IP or hostname) for the remote trusted realm in a cross realm trust relationship.", + "type": "string" + }, + "crossRealmTrustKdc": { + "description": "Optional. The KDC (IP or hostname) for the remote trusted realm in a cross realm trust relationship.", + "type": "string" + }, + "crossRealmTrustRealm": { + "description": "Optional. The remote realm the Dataproc on-cluster KDC will trust, should the user enable cross realm trust.", + "type": "string" + }, + "crossRealmTrustSharedPasswordUri": { + "description": "Optional. The Cloud Storage URI of a KMS encrypted file containing the shared password between the on-cluster Kerberos realm and the remote trusted realm, in a cross realm trust relationship.", + "type": "string" + }, + "enableKerberos": { + "description": "Optional. Flag to indicate whether to Kerberize the cluster (default: false). Set this field to true to enable Kerberos on a cluster.", + "type": "boolean" + }, + "kdcDbKeyUri": { + "description": "Optional. The Cloud Storage URI of a KMS encrypted file containing the master key of the KDC database.", + "type": "string" + }, + "keyPasswordUri": { + "description": "Optional. The Cloud Storage URI of a KMS encrypted file containing the password to the user provided key. For the self-signed certificate, this password is generated by Dataproc.", + "type": "string" + }, + "keystorePasswordUri": { + "description": "Optional. The Cloud Storage URI of a KMS encrypted file containing the password to the user provided keystore. For the self-signed certificate, this password is generated by Dataproc.", + "type": "string" + }, + "keystoreUri": { + "description": "Optional. The Cloud Storage URI of the keystore file used for SSL encryption. If not provided, Dataproc will provide a self-signed certificate.", + "type": "string" + }, + "kmsKeyUri": { + "description": "Optional. The URI of the KMS key used to encrypt sensitive files.", + "type": "string" + }, + "realm": { + "description": "Optional. The name of the on-cluster Kerberos realm. If not specified, the uppercased domain of hostnames will be the realm.", + "type": "string" + }, + "rootPrincipalPasswordUri": { + "description": "Optional. The Cloud Storage URI of a KMS encrypted file containing the root principal password.", + "type": "string" + }, + "tgtLifetimeHours": { + "description": "Optional. The lifetime of the ticket granting ticket, in hours. If not specified, or user specifies 0, then default value 10 will be used.", + "format": "int32", + "type": "integer" + }, + "truststorePasswordUri": { + "description": "Optional. The Cloud Storage URI of a KMS encrypted file containing the password to the user provided truststore. For the self-signed certificate, this password is generated by Dataproc.", + "type": "string" + }, + "truststoreUri": { + "description": "Optional. The Cloud Storage URI of the truststore file used for SSL encryption. If not provided, Dataproc will provide a self-signed certificate.", + "type": "string" } }, "type": "object" }, - "AutoscalingConfig": { - "description": "Autoscaling Policy config associated with the cluster.", - "id": "AutoscalingConfig", + "KubernetesClusterConfig": { + "description": "The configuration for running the Dataproc cluster on Kubernetes.", + "id": "KubernetesClusterConfig", "properties": { - "policyUri": { - "description": "Optional. The autoscaling policy used by the cluster.Only resource names including projectid and location (region) are valid. Examples: https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id] projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]Note that the policy must be in the same project and Dataproc region.", + "gkeClusterConfig": { + "$ref": "GkeClusterConfig", + "description": "Required. The configuration for running the Dataproc cluster on GKE." + }, + "kubernetesNamespace": { + "description": "Optional. A namespace within the Kubernetes cluster to deploy into. If this namespace does not exist, it is created. If it exists, Dataproc verifies that another Dataproc VirtualCluster is not installed into it. If not specified, the name of the Dataproc Cluster is used.", "type": "string" + }, + "kubernetesSoftwareConfig": { + "$ref": "KubernetesSoftwareConfig", + "description": "Optional. The software configuration for this Dataproc cluster running on Kubernetes." } }, "type": "object" }, - "AutoscalingPolicy": { - "description": "Describes an autoscaling policy for Dataproc cluster autoscaler.", - "id": "AutoscalingPolicy", + "KubernetesSoftwareConfig": { + "description": "The software configuration for this Dataproc cluster running on Kubernetes.", + "id": "KubernetesSoftwareConfig", "properties": { - "basicAlgorithm": { - "$ref": "BasicAutoscalingAlgorithm" - }, - "id": { - "description": "Required. The policy id.The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of between 3 and 50 characters.", - "type": "string" - }, - "labels": { + "componentVersion": { "additionalProperties": { "type": "string" }, - "description": "Optional. The labels to associate with this autoscaling policy. Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with an autoscaling policy.", + "description": "The components that should be installed in this Dataproc cluster. The key must be a string from the KubernetesComponent enumeration. The value is the version of the software to be installed. At least one entry must be specified.", "type": "object" }, - "name": { - "description": "Output only. The \"resource name\" of the autoscaling policy, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.autoscalingPolicies, the resource name of the policy has the following format: projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id} For projects.locations.autoscalingPolicies, the resource name of the policy has the following format: projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}", - "readOnly": true, - "type": "string" - }, - "secondaryWorkerConfig": { - "$ref": "InstanceGroupAutoscalingPolicyConfig", - "description": "Optional. Describes how the autoscaler will operate for secondary workers." - }, - "workerConfig": { - "$ref": "InstanceGroupAutoscalingPolicyConfig", - "description": "Required. Describes how the autoscaler will operate for primary workers." - } - }, - "type": "object" - }, - "AutotuningConfig": { - "description": "Autotuning configuration of the workload.", - "id": "AutotuningConfig", - "properties": { - "scenarios": { - "description": "Optional. Scenarios for which tunings are applied.", - "items": { - "enum": [ - "SCENARIO_UNSPECIFIED", - "SCALING", - "BROADCAST_HASH_JOIN", - "MEMORY" - ], - "enumDescriptions": [ - "Default value.", - "Scaling recommendations such as initialExecutors.", - "Adding hints for potential relation broadcasts.", - "Memory management for workloads." - ], + "properties": { + "additionalProperties": { "type": "string" }, - "type": "array" + "description": "The properties to set on daemon config files.Property keys are specified in prefix:property format, for example spark:spark.kubernetes.container.image. The following are supported prefixes and their mappings: spark: spark-defaults.confFor more information, see Cluster properties (https://cloud.google.com/dataproc/docs/concepts/cluster-properties).", + "type": "object" } }, "type": "object" }, - "AuxiliaryNodeGroup": { - "description": "Node group identification and configuration information.", - "id": "AuxiliaryNodeGroup", + "LifecycleConfig": { + "description": "Specifies the cluster auto-delete schedule configuration.", + "id": "LifecycleConfig", "properties": { - "nodeGroup": { - "$ref": "NodeGroup", - "description": "Required. Node group configuration." - }, - "nodeGroupId": { - "description": "Optional. A node group ID. Generated if not specified.The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of from 3 to 33 characters.", + "autoDeleteTime": { + "description": "Optional. The time when cluster will be auto-deleted (see JSON representation of Timestamp (https://developers.google.com/protocol-buffers/docs/proto3#json)).", + "format": "google-datetime", "type": "string" - } - }, - "type": "object" - }, - "AuxiliaryServicesConfig": { - "description": "Auxiliary services configuration for a Cluster.", - "id": "AuxiliaryServicesConfig", - "properties": { - "metastoreConfig": { - "$ref": "MetastoreConfig", - "description": "Optional. The Hive Metastore configuration for this workload." }, - "sparkHistoryServerConfig": { - "$ref": "SparkHistoryServerConfig", - "description": "Optional. The Spark History Server configuration for the workload." - } - }, - "type": "object" - }, - "BasicAutoscalingAlgorithm": { - "description": "Basic algorithm for autoscaling.", - "id": "BasicAutoscalingAlgorithm", - "properties": { - "cooldownPeriod": { - "description": "Optional. Duration between scaling events. A scaling period starts after the update operation from the previous event has completed.Bounds: 2m, 1d. Default: 2m.", + "autoDeleteTtl": { + "description": "Optional. The lifetime duration of cluster. The cluster will be auto-deleted at the end of this period. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)).", "format": "google-duration", "type": "string" }, - "sparkStandaloneConfig": { - "$ref": "SparkStandaloneAutoscalingConfig", - "description": "Optional. Spark Standalone autoscaling configuration" - }, - "yarnConfig": { - "$ref": "BasicYarnAutoscalingConfig", - "description": "Optional. YARN autoscaling configuration." - } - }, - "type": "object" - }, - "BasicYarnAutoscalingConfig": { - "description": "Basic autoscaling configurations for YARN.", - "id": "BasicYarnAutoscalingConfig", - "properties": { - "gracefulDecommissionTimeout": { - "description": "Required. Timeout for YARN graceful decommissioning of Node Managers. Specifies the duration to wait for jobs to complete before forcefully removing workers (and potentially interrupting jobs). Only applicable to downscaling operations.Bounds: 0s, 1d.", + "idleDeleteTtl": { + "description": "Optional. The duration to keep the cluster alive while idling (when no jobs are running). Passing this threshold will cause the cluster to be deleted. Minimum value is 5 minutes; maximum value is 14 days (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)).", "format": "google-duration", "type": "string" }, - "scaleDownFactor": { - "description": "Required. Fraction of average YARN pending memory in the last cooldown period for which to remove workers. A scale-down factor of 1 will result in scaling down so that there is no available memory remaining after the update (more aggressive scaling). A scale-down factor of 0 disables removing workers, which can be beneficial for autoscaling a single job. See How autoscaling works (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/autoscaling#how_autoscaling_works) for more information.Bounds: 0.0, 1.0.", - "format": "double", - "type": "number" - }, - "scaleDownMinWorkerFraction": { - "description": "Optional. Minimum scale-down threshold as a fraction of total cluster size before scaling occurs. For example, in a 20-worker cluster, a threshold of 0.1 means the autoscaler must recommend at least a 2 worker scale-down for the cluster to scale. A threshold of 0 means the autoscaler will scale down on any recommended change.Bounds: 0.0, 1.0. Default: 0.0.", - "format": "double", - "type": "number" - }, - "scaleUpFactor": { - "description": "Required. Fraction of average YARN pending memory in the last cooldown period for which to add workers. A scale-up factor of 1.0 will result in scaling up so that there is no pending memory remaining after the update (more aggressive scaling). A scale-up factor closer to 0 will result in a smaller magnitude of scaling up (less aggressive scaling). See How autoscaling works (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/autoscaling#how_autoscaling_works) for more information.Bounds: 0.0, 1.0.", - "format": "double", - "type": "number" - }, - "scaleUpMinWorkerFraction": { - "description": "Optional. Minimum scale-up threshold as a fraction of total cluster size before scaling occurs. For example, in a 20-worker cluster, a threshold of 0.1 means the autoscaler must recommend at least a 2-worker scale-up for the cluster to scale. A threshold of 0 means the autoscaler will scale up on any recommended change.Bounds: 0.0, 1.0. Default: 0.0.", - "format": "double", - "type": "number" + "idleStartTime": { + "description": "Output only. The time when cluster became idle (most recent job finished) and became eligible for deletion due to idleness (see JSON representation of Timestamp (https://developers.google.com/protocol-buffers/docs/proto3#json)).", + "format": "google-datetime", + "readOnly": true, + "type": "string" } }, "type": "object" }, - "Batch": { - "description": "A representation of a batch workload in the service.", - "id": "Batch", + "ListAutoscalingPoliciesResponse": { + "description": "A response to a request to list autoscaling policies in a project.", + "id": "ListAutoscalingPoliciesResponse", "properties": { - "createTime": { - "description": "Output only. The time when the batch was created.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - }, - "creator": { - "description": "Output only. The email address of the user who created the batch.", + "nextPageToken": { + "description": "Output only. This token is included in the response if there are more results to fetch.", "readOnly": true, "type": "string" }, - "environmentConfig": { - "$ref": "EnvironmentConfig", - "description": "Optional. Environment configuration for the batch execution." - }, - "labels": { - "additionalProperties": { - "type": "string" + "policies": { + "description": "Output only. Autoscaling policies list.", + "items": { + "$ref": "AutoscalingPolicy" }, - "description": "Optional. The labels to associate with this batch. Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a batch.", - "type": "object" - }, - "name": { - "description": "Output only. The resource name of the batch.", - "readOnly": true, - "type": "string" - }, - "operation": { - "description": "Output only. The resource name of the operation associated with this batch.", - "readOnly": true, - "type": "string" - }, - "pysparkBatch": { - "$ref": "PySparkBatch", - "description": "Optional. PySpark batch config." - }, - "runtimeConfig": { - "$ref": "RuntimeConfig", - "description": "Optional. Runtime configuration for the batch execution." - }, - "runtimeInfo": { - "$ref": "RuntimeInfo", - "description": "Output only. Runtime information about batch execution.", - "readOnly": true - }, - "sparkBatch": { - "$ref": "SparkBatch", - "description": "Optional. Spark batch config." - }, - "sparkRBatch": { - "$ref": "SparkRBatch", - "description": "Optional. SparkR batch config." - }, - "sparkSqlBatch": { - "$ref": "SparkSqlBatch", - "description": "Optional. SparkSql batch config." - }, - "state": { - "description": "Output only. The state of the batch.", - "enum": [ - "STATE_UNSPECIFIED", - "PENDING", - "RUNNING", - "CANCELLING", - "CANCELLED", - "SUCCEEDED", - "FAILED" - ], - "enumDescriptions": [ - "The batch state is unknown.", - "The batch is created before running.", - "The batch is running.", - "The batch is cancelling.", - "The batch cancellation was successful.", - "The batch completed successfully.", - "The batch is no longer running due to an error." - ], "readOnly": true, - "type": "string" - }, - "stateHistory": { - "description": "Output only. Historical state information for the batch.", + "type": "array" + } + }, + "type": "object" + }, + "ListBatchesResponse": { + "description": "A list of batch workloads.", + "id": "ListBatchesResponse", + "properties": { + "batches": { + "description": "Output only. The batches from the specified collection.", "items": { - "$ref": "StateHistory" + "$ref": "Batch" }, "readOnly": true, "type": "array" }, - "stateMessage": { - "description": "Output only. Batch state details, such as a failure description if the state is FAILED.", - "readOnly": true, + "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" }, - "stateTime": { - "description": "Output only. The time when the batch entered a current state.", - "format": "google-datetime", + "unreachable": { + "description": "Output only. List of Batches that could not be included in the response. Attempting to get one of these resources may indicate why it was not included in the list response.", + "items": { + "type": "string" + }, "readOnly": true, - "type": "string" + "type": "array" + } + }, + "type": "object" + }, + "ListClustersResponse": { + "description": "The list of all clusters in a project.", + "id": "ListClustersResponse", + "properties": { + "clusters": { + "description": "Output only. The clusters in the project.", + "items": { + "$ref": "Cluster" + }, + "readOnly": true, + "type": "array" }, - "uuid": { - "description": "Output only. A batch UUID (Unique Universal Identifier). The service generates this value when it creates the batch.", + "nextPageToken": { + "description": "Output only. This token is included in the response if there are more results to fetch. To fetch additional results, provide this value as the page_token in a subsequent ListClustersRequest.", "readOnly": true, "type": "string" } }, "type": "object" }, - "BatchOperationMetadata": { - "description": "Metadata describing the Batch operation.", - "id": "BatchOperationMetadata", + "ListJobsResponse": { + "description": "A list of jobs in a project.", + "id": "ListJobsResponse", "properties": { - "batch": { - "description": "Name of the batch for the operation.", - "type": "string" - }, - "batchUuid": { - "description": "Batch UUID for the operation.", - "type": "string" + "jobs": { + "description": "Output only. Jobs list.", + "items": { + "$ref": "Job" + }, + "readOnly": true, + "type": "array" }, - "createTime": { - "description": "The time when the operation was created.", - "format": "google-datetime", + "nextPageToken": { + "description": "Optional. This token is included in the response if there are more results to fetch. To fetch additional results, provide this value as the page_token in a subsequent ListJobsRequest.", "type": "string" }, - "description": { - "description": "Short description of the operation.", + "unreachable": { + "description": "Output only. List of jobs with kms_key-encrypted parameters that could not be decrypted. A response to a jobs.get request may indicate the reason for the decryption failure for a specific job.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + } + }, + "type": "object" + }, + "ListOperationsResponse": { + "description": "The response message for Operations.ListOperations.", + "id": "ListOperationsResponse", + "properties": { + "nextPageToken": { + "description": "The standard List next-page token.", "type": "string" }, - "doneTime": { - "description": "The time when the operation finished.", - "format": "google-datetime", + "operations": { + "description": "A list of operations that matches the specified filter in the request.", + "items": { + "$ref": "Operation" + }, + "type": "array" + } + }, + "type": "object" + }, + "ListSessionTemplatesResponse": { + "description": "A list of session templates.", + "id": "ListSessionTemplatesResponse", + "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" }, - "labels": { - "additionalProperties": { - "type": "string" + "sessionTemplates": { + "description": "Output only. Session template list", + "items": { + "$ref": "SessionTemplate" }, - "description": "Labels associated with the operation.", - "type": "object" - }, - "operationType": { - "description": "The operation type.", - "enum": [ - "BATCH_OPERATION_TYPE_UNSPECIFIED", - "BATCH" - ], - "enumDescriptions": [ - "Batch operation type is unknown.", - "Batch operation type." - ], + "readOnly": true, + "type": "array" + } + }, + "type": "object" + }, + "ListSessionsResponse": { + "description": "A list of interactive sessions.", + "id": "ListSessionsResponse", + "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" }, - "warnings": { - "description": "Warnings encountered during operation execution.", + "sessions": { + "description": "Output only. The sessions from the specified collection.", "items": { - "type": "string" + "$ref": "Session" }, + "readOnly": true, "type": "array" } }, "type": "object" }, - "Binding": { - "description": "Associates members, or principals, with a role.", - "id": "Binding", + "ListWorkflowTemplatesResponse": { + "description": "A response to a request to list workflow templates in a project.", + "id": "ListWorkflowTemplatesResponse", "properties": { - "condition": { - "$ref": "Expr", - "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)." + "nextPageToken": { + "description": "Output only. This token is included in the response if there are more results to fetch. To fetch additional results, provide this value as the page_token in a subsequent ListWorkflowTemplatesRequest.", + "readOnly": true, + "type": "string" }, - "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. domain:{domain}: The G Suite domain (primary) that represents all the users of that domain. For example, google.com or example.com. principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}: A single identity in a workforce identity pool. principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}: All workforce identities in a group. principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}: All workforce identities with a specific attribute value. principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*: All identities in a workforce identity pool. principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}: A single identity in a workload identity pool. principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}: A workload identity pool group. principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}: All identities in a workload identity pool with a certain attribute. principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*: All identities in a workload identity pool. 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. deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}: Deleted single identity in a workforce identity pool. For example, deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value.", + "templates": { + "description": "Output only. WorkflowTemplates list.", "items": { - "type": "string" + "$ref": "WorkflowTemplate" }, + "readOnly": true, "type": "array" }, - "role": { - "description": "Role that is assigned to the list of members, or principals. For example, roles/viewer, roles/editor, or roles/owner.For an overview of the IAM roles and permissions, see the IAM documentation (https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see here (https://cloud.google.com/iam/docs/understanding-roles).", - "type": "string" + "unreachable": { + "description": "Output only. List of workflow templates that could not be included in the response. Attempting to get one of these resources may indicate why it was not included in the list response.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" } }, "type": "object" }, - "CancelJobRequest": { - "description": "A request to cancel a job.", - "id": "CancelJobRequest", - "properties": {}, + "LoggingConfig": { + "description": "The runtime logging config of the job.", + "id": "LoggingConfig", + "properties": { + "driverLogLevels": { + "additionalProperties": { + "enum": [ + "LEVEL_UNSPECIFIED", + "ALL", + "TRACE", + "DEBUG", + "INFO", + "WARN", + "ERROR", + "FATAL", + "OFF" + ], + "enumDescriptions": [ + "Level is unspecified. Use default level for log4j.", + "Use ALL level for log4j.", + "Use TRACE level for log4j.", + "Use DEBUG level for log4j.", + "Use INFO level for log4j.", + "Use WARN level for log4j.", + "Use ERROR level for log4j.", + "Use FATAL level for log4j.", + "Turn off log4j." + ], + "type": "string" + }, + "description": "The per-package log levels for the driver. This can include \"root\" package name to configure rootLogger. Examples: - 'com.google = FATAL' - 'root = INFO' - 'org.apache = DEBUG'", + "type": "object" + } + }, "type": "object" }, - "Cluster": { - "description": "Describes the identifying information, config, and status of a Dataproc cluster", - "id": "Cluster", + "ManagedCluster": { + "description": "Cluster that is managed by the workflow.", + "id": "ManagedCluster", "properties": { "clusterName": { - "description": "Required. The cluster name, which must be unique within a project. The name must start with a lowercase letter, and can contain up to 51 lowercase letters, numbers, and hyphens. It cannot end with a hyphen. The name of a deleted cluster can be reused.", - "type": "string" - }, - "clusterUuid": { - "description": "Output only. A cluster UUID (Unique Universal Identifier). Dataproc generates this value when it creates the cluster.", - "readOnly": true, + "description": "Required. The cluster name prefix. A unique cluster name will be formed by appending a random suffix.The name must contain only lower-case letters (a-z), numbers (0-9), and hyphens (-). Must begin with a letter. Cannot begin or end with hyphen. Must consist of between 2 and 35 characters.", "type": "string" }, "config": { "$ref": "ClusterConfig", - "description": "Optional. The cluster config for a cluster of Compute Engine Instances. Note that Dataproc may set default values, and values may change when clusters are updated.Exactly one of ClusterConfig or VirtualClusterConfig must be specified." + "description": "Required. The cluster configuration." }, "labels": { "additionalProperties": { "type": "string" }, - "description": "Optional. The labels to associate with this cluster. Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a cluster.", + "description": "Optional. The labels to associate with this cluster.Label keys must be between 1 and 63 characters long, and must conform to the following PCRE regular expression: \\p{Ll}\\p{Lo}{0,62}Label values must be between 1 and 63 characters long, and must conform to the following PCRE regular expression: \\p{Ll}\\p{Lo}\\p{N}_-{0,63}No more than 32 labels can be associated with a given cluster.", "type": "object" - }, - "metrics": { - "$ref": "ClusterMetrics", - "description": "Output only. Contains cluster daemon metrics such as HDFS and YARN stats.Beta Feature: This report is available for testing purposes only. It may be changed before final release.", - "readOnly": true - }, - "projectId": { - "description": "Required. The Google Cloud Platform project ID that the cluster belongs to.", - "type": "string" - }, - "status": { - "$ref": "ClusterStatus", - "description": "Output only. Cluster status.", - "readOnly": true - }, - "statusHistory": { - "description": "Output only. The previous cluster status.", - "items": { - "$ref": "ClusterStatus" - }, + } + }, + "type": "object" + }, + "ManagedGroupConfig": { + "description": "Specifies the resources used to actively manage an instance group.", + "id": "ManagedGroupConfig", + "properties": { + "instanceGroupManagerName": { + "description": "Output only. The name of the Instance Group Manager for this group.", "readOnly": true, - "type": "array" + "type": "string" }, - "virtualClusterConfig": { - "$ref": "VirtualClusterConfig", - "description": "Optional. The virtual cluster config is used when creating a Dataproc cluster that does not directly control the underlying compute resources, for example, when creating a Dataproc-on-GKE cluster (https://cloud.google.com/dataproc/docs/guides/dpgke/dataproc-gke-overview). Dataproc may set default values, and values may change when clusters are updated. Exactly one of config or virtual_cluster_config must be specified." + "instanceGroupManagerUri": { + "description": "Output only. The partial URI to the instance group manager for this group. E.g. projects/my-project/regions/us-central1/instanceGroupManagers/my-igm.", + "readOnly": true, + "type": "string" + }, + "instanceTemplateName": { + "description": "Output only. The name of the Instance Template used for the Managed Instance Group.", + "readOnly": true, + "type": "string" } }, "type": "object" }, - "ClusterConfig": { - "description": "The cluster config.", - "id": "ClusterConfig", + "MemoryMetrics": { + "id": "MemoryMetrics", "properties": { - "autoscalingConfig": { - "$ref": "AutoscalingConfig", - "description": "Optional. Autoscaling config for the policy associated with the cluster. Cluster does not autoscale if this field is unset." - }, - "auxiliaryNodeGroups": { - "description": "Optional. The node group settings.", - "items": { - "$ref": "AuxiliaryNodeGroup" - }, - "type": "array" - }, - "configBucket": { - "description": "Optional. A Cloud Storage bucket used to stage job dependencies, config files, and job driver console output. If you do not specify a staging bucket, Cloud Dataproc will determine a Cloud Storage location (US, ASIA, or EU) for your cluster's staging bucket according to the Compute Engine zone where your cluster is deployed, and then create and manage this project-level, per-location bucket (see Dataproc staging and temp buckets (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). This field requires a Cloud Storage bucket name, not a gs://... URI to a Cloud Storage bucket.", + "totalOffHeapStorageMemory": { + "format": "int64", "type": "string" }, - "dataprocMetricConfig": { - "$ref": "DataprocMetricConfig", - "description": "Optional. The config for Dataproc metrics." - }, - "encryptionConfig": { - "$ref": "EncryptionConfig", - "description": "Optional. Encryption settings for the cluster." - }, - "endpointConfig": { - "$ref": "EndpointConfig", - "description": "Optional. Port/endpoint configuration for this cluster" - }, - "gceClusterConfig": { - "$ref": "GceClusterConfig", - "description": "Optional. The shared Compute Engine config settings for all instances in a cluster." + "totalOnHeapStorageMemory": { + "format": "int64", + "type": "string" }, - "gkeClusterConfig": { - "$ref": "GkeClusterConfig", - "deprecated": true, - "description": "Optional. BETA. The Kubernetes Engine config for Dataproc clusters deployed to The Kubernetes Engine config for Dataproc clusters deployed to Kubernetes. These config settings are mutually exclusive with Compute Engine-based options, such as gce_cluster_config, master_config, worker_config, secondary_worker_config, and autoscaling_config." + "usedOffHeapStorageMemory": { + "format": "int64", + "type": "string" }, - "initializationActions": { - "description": "Optional. Commands to execute on each node after config is completed. By default, executables are run on master and all worker nodes. You can test a node's role metadata to run an executable on a master or worker node, as shown below using curl (you can also use wget): ROLE=$(curl -H Metadata-Flavor:Google http://metadata/computeMetadata/v1/instance/attributes/dataproc-role) if [[ \"${ROLE}\" == 'Master' ]]; then ... master specific actions ... else ... worker specific actions ... fi ", + "usedOnHeapStorageMemory": { + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "MetastoreConfig": { + "description": "Specifies a Metastore configuration.", + "id": "MetastoreConfig", + "properties": { + "dataprocMetastoreService": { + "description": "Required. Resource name of an existing Dataproc Metastore service.Example: projects/[project_id]/locations/[dataproc_region]/services/[service-name]", + "type": "string" + } + }, + "type": "object" + }, + "Metric": { + "description": "A Dataproc custom metric.", + "id": "Metric", + "properties": { + "metricOverrides": { + "description": "Optional. Specify one or more Custom metrics (https://cloud.google.com/dataproc/docs/guides/dataproc-metrics#custom_metrics) to collect for the metric course (for the SPARK metric source (any Spark metric (https://spark.apache.org/docs/latest/monitoring.html#metrics) can be specified).Provide metrics in the following format: METRIC_SOURCE: INSTANCE:GROUP:METRIC Use camelcase as appropriate.Examples: yarn:ResourceManager:QueueMetrics:AppsCompleted spark:driver:DAGScheduler:job.allJobs sparkHistoryServer:JVM:Memory:NonHeapMemoryUsage.committed hiveserver2:JVM:Memory:NonHeapMemoryUsage.used Notes: Only the specified overridden metrics are collected for the metric source. For example, if one or more spark:executive metrics are listed as metric overrides, other SPARK metrics are not collected. The collection of the metrics for other enabled custom metric sources is unaffected. For example, if both SPARK andd YARN metric sources are enabled, and overrides are provided for Spark metrics only, all YARN metrics are collected.", "items": { - "$ref": "NodeInitializationAction" + "type": "string" }, "type": "array" }, - "lifecycleConfig": { - "$ref": "LifecycleConfig", - "description": "Optional. Lifecycle setting for the cluster." - }, - "masterConfig": { - "$ref": "InstanceGroupConfig", - "description": "Optional. The Compute Engine config settings for the cluster's master instance." - }, - "metastoreConfig": { - "$ref": "MetastoreConfig", - "description": "Optional. Metastore configuration." - }, - "secondaryWorkerConfig": { - "$ref": "InstanceGroupConfig", - "description": "Optional. The Compute Engine config settings for a cluster's secondary worker instances" - }, - "securityConfig": { - "$ref": "SecurityConfig", - "description": "Optional. Security settings for the cluster." - }, - "softwareConfig": { - "$ref": "SoftwareConfig", - "description": "Optional. The config settings for cluster software." - }, - "tempBucket": { - "description": "Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs data, such as Spark and MapReduce history files. If you do not specify a temp bucket, Dataproc will determine a Cloud Storage location (US, ASIA, or EU) for your cluster's temp bucket according to the Compute Engine zone where your cluster is deployed, and then create and manage this project-level, per-location bucket. The default bucket has a TTL of 90 days, but you can use any TTL (or none) if you specify a bucket (see Dataproc staging and temp buckets (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). This field requires a Cloud Storage bucket name, not a gs://... URI to a Cloud Storage bucket.", + "metricSource": { + "description": "Required. A standard set of metrics is collected unless metricOverrides are specified for the metric source (see Custom metrics (https://cloud.google.com/dataproc/docs/guides/dataproc-metrics#custom_metrics) for more information).", + "enum": [ + "METRIC_SOURCE_UNSPECIFIED", + "MONITORING_AGENT_DEFAULTS", + "HDFS", + "SPARK", + "YARN", + "SPARK_HISTORY_SERVER", + "HIVESERVER2", + "HIVEMETASTORE", + "FLINK" + ], + "enumDescriptions": [ + "Required unspecified metric source.", + "Monitoring agent metrics. If this source is enabled, Dataproc enables the monitoring agent in Compute Engine, and collects monitoring agent metrics, which are published with an agent.googleapis.com prefix.", + "HDFS metric source.", + "Spark metric source.", + "YARN metric source.", + "Spark History Server metric source.", + "Hiveserver2 metric source.", + "hivemetastore metric source", + "flink metric source" + ], + "type": "string" + } + }, + "type": "object" + }, + "NamespacedGkeDeploymentTarget": { + "deprecated": true, + "description": "Deprecated. Used only for the deprecated beta. A full, namespace-isolated deployment target for an existing GKE cluster.", + "id": "NamespacedGkeDeploymentTarget", + "properties": { + "clusterNamespace": { + "description": "Optional. A namespace within the GKE cluster to deploy into.", "type": "string" }, - "workerConfig": { - "$ref": "InstanceGroupConfig", - "description": "Optional. The Compute Engine config settings for the cluster's worker instances." + "targetGkeCluster": { + "description": "Optional. The target GKE cluster to deploy to. Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}'", + "type": "string" } }, "type": "object" }, - "ClusterMetrics": { - "description": "Contains cluster daemon metrics, such as HDFS and YARN stats.Beta Feature: This report is available for testing purposes only. It may be changed before final release.", - "id": "ClusterMetrics", + "NodeGroup": { + "description": "Dataproc Node Group. The Dataproc NodeGroup resource is not related to the Dataproc NodeGroupAffinity resource.", + "id": "NodeGroup", "properties": { - "hdfsMetrics": { + "labels": { "additionalProperties": { - "format": "int64", "type": "string" }, - "description": "The HDFS metrics.", + "description": "Optional. Node group labels. Label keys must consist of from 1 to 63 characters and conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values can be empty. If specified, they must consist of from 1 to 63 characters and conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). The node group must have no more than 32 labels.", "type": "object" }, - "yarnMetrics": { - "additionalProperties": { - "format": "int64", + "name": { + "description": "The Node group resource name (https://aip.dev/122).", + "type": "string" + }, + "nodeGroupConfig": { + "$ref": "InstanceGroupConfig", + "description": "Optional. The node group instance group configuration." + }, + "roles": { + "description": "Required. Node group roles.", + "items": { + "enum": [ + "ROLE_UNSPECIFIED", + "DRIVER" + ], + "enumDescriptions": [ + "Required unspecified role.", + "Job drivers run on the node pool." + ], "type": "string" }, - "description": "YARN metrics.", - "type": "object" + "type": "array" } }, "type": "object" }, - "ClusterOperation": { - "description": "The cluster operation triggered by a workflow.", - "id": "ClusterOperation", + "NodeGroupAffinity": { + "description": "Node Group Affinity for clusters using sole-tenant node groups. The Dataproc NodeGroupAffinity resource is not related to the Dataproc NodeGroup resource.", + "id": "NodeGroupAffinity", "properties": { - "done": { - "description": "Output only. Indicates the operation is done.", - "readOnly": true, - "type": "boolean" - }, - "error": { - "description": "Output only. Error, if operation failed.", - "readOnly": true, - "type": "string" - }, - "operationId": { - "description": "Output only. The id of the cluster operation.", - "readOnly": true, + "nodeGroupUri": { + "description": "Required. The URI of a sole-tenant node group resource (https://cloud.google.com/compute/docs/reference/rest/v1/nodeGroups) that the cluster will be created on.A full URL, partial URI, or node group name are valid. Examples: https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]/nodeGroups/node-group-1 projects/[project_id]/zones/[zone]/nodeGroups/node-group-1 node-group-1", "type": "string" } }, "type": "object" }, - "ClusterOperationMetadata": { - "description": "Metadata describing the operation.", - "id": "ClusterOperationMetadata", + "NodeGroupOperationMetadata": { + "description": "Metadata describing the node group operation.", + "id": "NodeGroupOperationMetadata", "properties": { - "childOperationIds": { - "description": "Output only. Child operation ids", - "items": { - "type": "string" - }, - "readOnly": true, - "type": "array" - }, - "clusterName": { - "description": "Output only. Name of the cluster for the operation.", - "readOnly": true, - "type": "string" - }, "clusterUuid": { - "description": "Output only. Cluster UUID for the operation.", + "description": "Output only. Cluster UUID associated with the node group operation.", "readOnly": true, "type": "string" }, @@ -3728,15 +8531,41 @@ "additionalProperties": { "type": "string" }, - "description": "Output only. Labels associated with the operation", + "description": "Output only. Labels associated with the operation.", "readOnly": true, "type": "object" }, - "operationType": { - "description": "Output only. The operation type.", + "nodeGroupId": { + "description": "Output only. Node group ID for the operation.", "readOnly": true, "type": "string" }, + "operationType": { + "description": "The operation type.", + "enum": [ + "NODE_GROUP_OPERATION_TYPE_UNSPECIFIED", + "CREATE", + "UPDATE", + "DELETE", + "RESIZE", + "REPAIR", + "UPDATE_LABELS", + "START", + "STOP" + ], + "enumDescriptions": [ + "Node group operation type is unknown.", + "Create node group operation type.", + "Update node group operation type.", + "Delete node group operation type.", + "Resize node group operation type.", + "Repair node group operation type.", + "Update node group label operation type.", + "Start node group operation type.", + "Stop node group operation type." + ], + "type": "string" + }, "status": { "$ref": "ClusterOperationStatus", "description": "Output only. Current operation status.", @@ -3761,405 +8590,474 @@ }, "type": "object" }, - "ClusterOperationStatus": { - "description": "The status of the operation.", - "id": "ClusterOperationStatus", + "NodeInitializationAction": { + "description": "Specifies an executable to run on a fully configured node and a timeout period for executable completion.", + "id": "NodeInitializationAction", "properties": { - "details": { - "description": "Output only. A message containing any operation metadata details.", - "readOnly": true, - "type": "string" - }, - "innerState": { - "description": "Output only. A message containing the detailed operation state.", - "readOnly": true, - "type": "string" - }, - "state": { - "description": "Output only. A message containing the operation state.", - "enum": [ - "UNKNOWN", - "PENDING", - "RUNNING", - "DONE" - ], - "enumDescriptions": [ - "Unused.", - "The operation has been created.", - "The operation is running.", - "The operation is done; either cancelled or completed." - ], - "readOnly": true, - "type": "string" - }, - "stateStartTime": { - "description": "Output only. The time this state was entered.", - "format": "google-datetime", - "readOnly": true, + "executableFile": { + "description": "Required. Cloud Storage URI of executable file.", "type": "string" - } - }, - "type": "object" - }, - "ClusterSelector": { - "description": "A selector that chooses target cluster for jobs based on metadata.", - "id": "ClusterSelector", - "properties": { - "clusterLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "Required. The cluster labels. Cluster must have all labels to match.", - "type": "object" }, - "zone": { - "description": "Optional. The zone where workflow process executes. This parameter does not affect the selection of the cluster.If unspecified, the zone of the first cluster matching the selector is used.", + "executionTimeout": { + "description": "Optional. Amount of time executable has to complete. Default is 10 minutes (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)).Cluster creation fails with an explanatory error message (the name of the executable that caused the error and the exceeded timeout period) if the executable is not completed at end of the timeout period.", + "format": "google-duration", "type": "string" } }, "type": "object" }, - "ClusterStatus": { - "description": "The status of a cluster and its instances.", - "id": "ClusterStatus", + "NodePool": { + "description": "indicating a list of workers of same type", + "id": "NodePool", "properties": { - "detail": { - "description": "Optional. Output only. Details of cluster's state.", - "readOnly": true, - "type": "string" - }, - "state": { - "description": "Output only. The cluster's state.", - "enum": [ - "UNKNOWN", - "CREATING", - "RUNNING", - "ERROR", - "ERROR_DUE_TO_UPDATE", - "DELETING", - "UPDATING", - "STOPPING", - "STOPPED", - "STARTING", - "REPAIRING" - ], - "enumDescriptions": [ - "The cluster state is unknown.", - "The cluster is being created and set up. It is not ready for use.", - "The cluster is currently running and healthy. It is ready for use.Note: The cluster state changes from \"creating\" to \"running\" status after the master node(s), first two primary worker nodes (and the last primary worker node if primary workers \u003e 2) are running.", - "The cluster encountered an error. It is not ready for use.", - "The cluster has encountered an error while being updated. Jobs can be submitted to the cluster, but the cluster cannot be updated.", - "The cluster is being deleted. It cannot be used.", - "The cluster is being updated. It continues to accept and process jobs.", - "The cluster is being stopped. It cannot be used.", - "The cluster is currently stopped. It is not ready for use.", - "The cluster is being started. It is not ready for use.", - "The cluster is being repaired. It is not ready for use." - ], - "readOnly": true, + "id": { + "description": "Required. A unique id of the node pool. Primary and Secondary workers can be specified using special reserved ids PRIMARY_WORKER_POOL and SECONDARY_WORKER_POOL respectively. Aux node pools can be referenced using corresponding pool id.", "type": "string" }, - "stateStartTime": { - "description": "Output only. Time when this state was entered (see JSON representation of Timestamp (https://developers.google.com/protocol-buffers/docs/proto3#json)).", - "format": "google-datetime", - "readOnly": true, - "type": "string" + "instanceNames": { + "description": "Name of instances to be repaired. These instances must belong to specified node pool.", + "items": { + "type": "string" + }, + "type": "array" }, - "substate": { - "description": "Output only. Additional state information that includes status reported by the agent.", + "repairAction": { + "description": "Required. Repair action to take on specified resources of the node pool.", "enum": [ - "UNSPECIFIED", - "UNHEALTHY", - "STALE_STATUS" + "REPAIR_ACTION_UNSPECIFIED", + "DELETE" ], "enumDescriptions": [ - "The cluster substate is unknown.", - "The cluster is known to be in an unhealthy state (for example, critical daemons are not running or HDFS capacity is exhausted).Applies to RUNNING state.", - "The agent-reported status is out of date (may occur if Dataproc loses communication with Agent).Applies to RUNNING state." + "No action will be taken by default.", + "delete the specified list of nodes." ], - "readOnly": true, "type": "string" } }, "type": "object" }, - "ConfidentialInstanceConfig": { - "description": "Confidential Instance Config for clusters using Confidential VMs (https://cloud.google.com/compute/confidential-vm/docs)", - "id": "ConfidentialInstanceConfig", + "Operation": { + "description": "This resource represents a long-running operation that is the result of a network API call.", + "id": "Operation", "properties": { - "enableConfidentialCompute": { - "description": "Optional. Defines whether the instance should have confidential compute enabled.", + "done": { + "description": "If the value is false, it means the operation is still in progress. If true, the operation is completed, and either error or response is available.", "type": "boolean" - } - }, - "type": "object" - }, - "DataprocMetricConfig": { - "description": "Dataproc metric config.", - "id": "DataprocMetricConfig", - "properties": { - "metrics": { - "description": "Required. Metrics sources to enable.", - "items": { - "$ref": "Metric" + }, + "error": { + "$ref": "Status", + "description": "The error result of the operation in case of failure or cancellation." + }, + "metadata": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" }, - "type": "array" + "description": "Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.", + "type": "object" + }, + "name": { + "description": "The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the name should be a resource name ending with operations/{unique_id}.", + "type": "string" + }, + "response": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "description": "The normal, successful response of the operation. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.", + "type": "object" } }, "type": "object" }, - "DiagnoseClusterRequest": { - "description": "A request to collect cluster diagnostic information.", - "id": "DiagnoseClusterRequest", + "OrderedJob": { + "description": "A job executed by the workflow.", + "id": "OrderedJob", "properties": { - "diagnosisInterval": { - "$ref": "Interval", - "description": "Optional. Time interval in which diagnosis should be carried out on the cluster." + "flinkJob": { + "$ref": "FlinkJob", + "description": "Optional. Job is a Flink job." }, - "job": { - "deprecated": true, - "description": "Optional. DEPRECATED Specifies the job on which diagnosis is to be performed. Format: projects/{project}/regions/{region}/jobs/{job}", - "type": "string" + "hadoopJob": { + "$ref": "HadoopJob", + "description": "Optional. Job is a Hadoop job." }, - "jobs": { - "description": "Optional. Specifies a list of jobs on which diagnosis is to be performed. Format: projects/{project}/regions/{region}/jobs/{job}", + "hiveJob": { + "$ref": "HiveJob", + "description": "Optional. Job is a Hive job." + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. The labels to associate with this job.Label keys must be between 1 and 63 characters long, and must conform to the following regular expression: \\p{Ll}\\p{Lo}{0,62}Label values must be between 1 and 63 characters long, and must conform to the following regular expression: \\p{Ll}\\p{Lo}\\p{N}_-{0,63}No more than 32 labels can be associated with a given job.", + "type": "object" + }, + "pigJob": { + "$ref": "PigJob", + "description": "Optional. Job is a Pig job." + }, + "prerequisiteStepIds": { + "description": "Optional. The optional list of prerequisite job step_ids. If not specified, the job will start at the beginning of workflow.", "items": { "type": "string" }, "type": "array" }, - "tarballAccess": { - "description": "Optional. (Optional) The access type to the diagnostic tarball. If not specified, falls back to default access of the bucket", - "enum": [ - "TARBALL_ACCESS_UNSPECIFIED", - "GOOGLE_CLOUD_SUPPORT", - "GOOGLE_DATAPROC_DIAGNOSE" - ], - "enumDescriptions": [ - "Tarball Access unspecified. Falls back to default access of the bucket", - "Google Cloud Support group has read access to the diagnostic tarball", - "Google Cloud Dataproc Diagnose service account has read access to the diagnostic tarball" - ], + "prestoJob": { + "$ref": "PrestoJob", + "description": "Optional. Job is a Presto job." + }, + "pysparkJob": { + "$ref": "PySparkJob", + "description": "Optional. Job is a PySpark job." + }, + "scheduling": { + "$ref": "JobScheduling", + "description": "Optional. Job scheduling configuration." + }, + "sparkJob": { + "$ref": "SparkJob", + "description": "Optional. Job is a Spark job." + }, + "sparkRJob": { + "$ref": "SparkRJob", + "description": "Optional. Job is a SparkR job." + }, + "sparkSqlJob": { + "$ref": "SparkSqlJob", + "description": "Optional. Job is a SparkSql job." + }, + "stepId": { + "description": "Required. The step id. The id must be unique among all jobs within the template.The step id is used as prefix for job id, as job goog-dataproc-workflow-step-id label, and in prerequisiteStepIds field from other steps.The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of between 3 and 50 characters.", + "type": "string" + }, + "trinoJob": { + "$ref": "TrinoJob", + "description": "Optional. Job is a Trino job." + } + }, + "type": "object" + }, + "OutputMetrics": { + "description": "Metrics about the data written by the task.", + "id": "OutputMetrics", + "properties": { + "bytesWritten": { + "format": "int64", "type": "string" }, - "tarballGcsDir": { - "description": "Optional. (Optional) The output Cloud Storage directory for the diagnostic tarball. If not specified, a task-specific directory in the cluster's staging bucket will be used.", + "recordsWritten": { + "format": "int64", "type": "string" + } + }, + "type": "object" + }, + "OutputQuantileMetrics": { + "id": "OutputQuantileMetrics", + "properties": { + "bytesWritten": { + "$ref": "Quantiles" }, - "yarnApplicationId": { - "deprecated": true, - "description": "Optional. DEPRECATED Specifies the yarn application on which diagnosis is to be performed.", - "type": "string" + "recordsWritten": { + "$ref": "Quantiles" + } + }, + "type": "object" + }, + "ParameterValidation": { + "description": "Configuration for parameter validation.", + "id": "ParameterValidation", + "properties": { + "regex": { + "$ref": "RegexValidation", + "description": "Validation based on regular expressions." }, - "yarnApplicationIds": { - "description": "Optional. Specifies a list of yarn applications on which diagnosis is to be performed.", - "items": { - "type": "string" - }, - "type": "array" + "values": { + "$ref": "ValueValidation", + "description": "Validation based on a list of allowed values." } }, "type": "object" }, - "DiagnoseClusterResults": { - "description": "The location of diagnostic output.", - "id": "DiagnoseClusterResults", + "PeripheralsConfig": { + "description": "Auxiliary services configuration for a workload.", + "id": "PeripheralsConfig", "properties": { - "outputUri": { - "description": "Output only. The Cloud Storage URI of the diagnostic output. The output report is a plain text file with a summary of collected diagnostics.", - "readOnly": true, + "metastoreService": { + "description": "Optional. Resource name of an existing Dataproc Metastore service.Example: projects/[project_id]/locations/[region]/services/[service_id]", "type": "string" + }, + "sparkHistoryServerConfig": { + "$ref": "SparkHistoryServerConfig", + "description": "Optional. The Spark History Server configuration for the workload." } }, "type": "object" }, - "DiskConfig": { - "description": "Specifies the config of disk options for a group of VM instances.", - "id": "DiskConfig", + "PigJob": { + "description": "A Dataproc job for running Apache Pig (https://pig.apache.org/) queries on YARN.", + "id": "PigJob", "properties": { - "bootDiskProvisionedIops": { - "description": "Optional. Indicates how many IOPS to provision for the disk. This sets the number of I/O operations per second that the disk can handle. Note: This field is only supported if boot_disk_type is hyperdisk-balanced.", - "format": "int64", - "type": "string" + "continueOnFailure": { + "description": "Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries.", + "type": "boolean" }, - "bootDiskProvisionedThroughput": { - "description": "Optional. Indicates how much throughput to provision for the disk. This sets the number of throughput mb per second that the disk can handle. Values must be greater than or equal to 1. Note: This field is only supported if boot_disk_type is hyperdisk-balanced.", - "format": "int64", - "type": "string" + "jarFileUris": { + "description": "Optional. HCFS URIs of jar files to add to the CLASSPATH of the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.", + "items": { + "type": "string" + }, + "type": "array" }, - "bootDiskSizeGb": { - "description": "Optional. Size in GB of the boot disk (default is 500GB).", - "format": "int32", - "type": "integer" + "loggingConfig": { + "$ref": "LoggingConfig", + "description": "Optional. The runtime log config for job execution." }, - "bootDiskType": { - "description": "Optional. Type of the boot disk (default is \"pd-standard\"). Valid values: \"pd-balanced\" (Persistent Disk Balanced Solid State Drive), \"pd-ssd\" (Persistent Disk Solid State Drive), or \"pd-standard\" (Persistent Disk Hard Disk Drive). See Disk types (https://cloud.google.com/compute/docs/disks#disk-types).", - "type": "string" + "properties": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. A mapping of property names to values, used to configure Pig. Properties that conflict with values set by the Dataproc API might be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/pig/conf/pig.properties, and classes in user code.", + "type": "object" }, - "localSsdInterface": { - "description": "Optional. Interface type of local SSDs (default is \"scsi\"). Valid values: \"scsi\" (Small Computer System Interface), \"nvme\" (Non-Volatile Memory Express). See local SSD performance (https://cloud.google.com/compute/docs/disks/local-ssd#performance).", + "queryFileUri": { + "description": "The HCFS URI of the script that contains the Pig queries.", "type": "string" }, - "numLocalSsds": { - "description": "Optional. Number of attached SSDs, from 0 to 8 (default is 0). If SSDs are not attached, the boot disk is used to store runtime logs and HDFS (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic config and installed binaries.Note: Local SSD options may vary by machine type and number of vCPUs selected.", - "format": "int32", - "type": "integer" + "queryList": { + "$ref": "QueryList", + "description": "A list of queries." + }, + "scriptVariables": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Mapping of query variable names to values (equivalent to the Pig command: name=[value]).", + "type": "object" } }, "type": "object" }, - "DriverSchedulingConfig": { - "description": "Driver scheduling configuration.", - "id": "DriverSchedulingConfig", + "Policy": { + "description": "An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources.A Policy is a collection of bindings. A binding binds one or more members, or principals, to a single role. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A role is a named list of permissions; each role can be an IAM predefined role or a user-created custom role.For some types of Google Cloud resources, a binding can also specify a condition, which is a logical expression that allows access to a resource only if the expression evaluates to true. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).JSON example: { \"bindings\": [ { \"role\": \"roles/resourcemanager.organizationAdmin\", \"members\": [ \"user:mike@example.com\", \"group:admins@example.com\", \"domain:google.com\", \"serviceAccount:my-project-id@appspot.gserviceaccount.com\" ] }, { \"role\": \"roles/resourcemanager.organizationViewer\", \"members\": [ \"user:eve@example.com\" ], \"condition\": { \"title\": \"expirable access\", \"description\": \"Does not grant access after Sep 2020\", \"expression\": \"request.time \u003c timestamp('2020-10-01T00:00:00.000Z')\", } } ], \"etag\": \"BwWWja0YfJA=\", \"version\": 3 } YAML example: bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time \u003c timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the IAM documentation (https://cloud.google.com/iam/docs/).", + "id": "Policy", "properties": { - "memoryMb": { - "description": "Required. The amount of memory in MB the driver is requesting.", - "format": "int32", - "type": "integer" + "bindings": { + "description": "Associates a list of members, or principals, with a role. Optionally, may specify a condition that determines how and when the bindings are applied. Each of the bindings must contain at least one principal.The bindings in a Policy can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the bindings grant 50 different roles to user:alice@example.com, and not to any other principal, then you can add another 1,450 principals to the bindings in the Policy.", + "items": { + "$ref": "Binding" + }, + "type": "array" }, - "vcores": { - "description": "Required. The number of vCPUs the driver is requesting.", + "etag": { + "description": "etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the etag in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An etag is returned in the response to getIamPolicy, and systems are expected to put that etag in the request to setIamPolicy to ensure that their change will be applied to the same version of the policy.Important: If you use IAM Conditions, you must include the etag field whenever you call setIamPolicy. If you omit this field, then IAM allows you to overwrite a version 3 policy with a version 1 policy, and all of the conditions in the version 3 policy are lost.", + "format": "byte", + "type": "string" + }, + "version": { + "description": "Specifies the format of the policy.Valid values are 0, 1, and 3. Requests that specify an invalid value are rejected.Any operation that affects conditional role bindings must specify version 3. This requirement applies to the following operations: Getting a policy that includes a conditional role binding Adding a conditional role binding to a policy Changing a conditional role binding in a policy Removing any role binding, with or without a condition, from a policy that includes conditionsImportant: If you use IAM Conditions, you must include the etag field whenever you call setIamPolicy. If you omit this field, then IAM allows you to overwrite a version 3 policy with a version 1 policy, and all of the conditions in the version 3 policy are lost.If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).", "format": "int32", "type": "integer" } }, "type": "object" }, - "Empty": { - "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } ", - "id": "Empty", - "properties": {}, - "type": "object" - }, - "EncryptionConfig": { - "description": "Encryption settings for the cluster.", - "id": "EncryptionConfig", + "PoolData": { + "description": "Pool Data", + "id": "PoolData", "properties": { - "gcePdKmsKeyName": { - "description": "Optional. The Cloud KMS key resource name to use for persistent disk encryption for all instances in the cluster. See Use CMEK with cluster data (https://cloud.google.com//dataproc/docs/concepts/configuring-clusters/customer-managed-encryption#use_cmek_with_cluster_data) for more information.", + "name": { "type": "string" }, - "kmsKey": { - "description": "Optional. The Cloud KMS key resource name to use for cluster persistent disk and job argument encryption. See Use CMEK with cluster data (https://cloud.google.com//dataproc/docs/concepts/configuring-clusters/customer-managed-encryption#use_cmek_with_cluster_data) for more information.When this key resource name is provided, the following job arguments of the following job types submitted to the cluster are encrypted using CMEK: FlinkJob args (https://cloud.google.com/dataproc/docs/reference/rest/v1/FlinkJob) HadoopJob args (https://cloud.google.com/dataproc/docs/reference/rest/v1/HadoopJob) SparkJob args (https://cloud.google.com/dataproc/docs/reference/rest/v1/SparkJob) SparkRJob args (https://cloud.google.com/dataproc/docs/reference/rest/v1/SparkRJob) PySparkJob args (https://cloud.google.com/dataproc/docs/reference/rest/v1/PySparkJob) SparkSqlJob (https://cloud.google.com/dataproc/docs/reference/rest/v1/SparkSqlJob) scriptVariables and queryList.queries HiveJob (https://cloud.google.com/dataproc/docs/reference/rest/v1/HiveJob) scriptVariables and queryList.queries PigJob (https://cloud.google.com/dataproc/docs/reference/rest/v1/PigJob) scriptVariables and queryList.queries PrestoJob (https://cloud.google.com/dataproc/docs/reference/rest/v1/PrestoJob) scriptVariables and queryList.queries", - "type": "string" + "stageIds": { + "items": { + "format": "int64", + "type": "string" + }, + "type": "array" } }, "type": "object" }, - "EndpointConfig": { - "description": "Endpoint config for this cluster", - "id": "EndpointConfig", + "PrestoJob": { + "description": "A Dataproc job for running Presto (https://prestosql.io/) queries. IMPORTANT: The Dataproc Presto Optional Component (https://cloud.google.com/dataproc/docs/concepts/components/presto) must be enabled when the cluster is created to submit a Presto job to the cluster.", + "id": "PrestoJob", "properties": { - "enableHttpPortAccess": { - "description": "Optional. If true, enable http access to specific ports on the cluster from external sources. Defaults to false.", + "clientTags": { + "description": "Optional. Presto client tags to attach to this query", + "items": { + "type": "string" + }, + "type": "array" + }, + "continueOnFailure": { + "description": "Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries.", "type": "boolean" }, - "httpPorts": { + "loggingConfig": { + "$ref": "LoggingConfig", + "description": "Optional. The runtime log config for job execution." + }, + "outputFormat": { + "description": "Optional. The format in which query output will be displayed. See the Presto documentation for supported output formats", + "type": "string" + }, + "properties": { "additionalProperties": { "type": "string" }, - "description": "Output only. The map of port descriptions to URLs. Will only be populated if enable_http_port_access is true.", - "readOnly": true, + "description": "Optional. A mapping of property names to values. Used to set Presto session properties (https://prestodb.io/docs/current/sql/set-session.html) Equivalent to using the --session flag in the Presto CLI", "type": "object" - } - }, - "type": "object" - }, - "EnvironmentConfig": { - "description": "Environment configuration for a workload.", - "id": "EnvironmentConfig", - "properties": { - "executionConfig": { - "$ref": "ExecutionConfig", - "description": "Optional. Execution configuration for a workload." }, - "peripheralsConfig": { - "$ref": "PeripheralsConfig", - "description": "Optional. Peripherals configuration that workload has access to." + "queryFileUri": { + "description": "The HCFS URI of the script that contains SQL queries.", + "type": "string" + }, + "queryList": { + "$ref": "QueryList", + "description": "A list of queries." } }, "type": "object" }, - "ExecutionConfig": { - "description": "Execution configuration for a workload.", - "id": "ExecutionConfig", + "ProcessSummary": { + "description": "Process Summary", + "id": "ProcessSummary", "properties": { - "idleTtl": { - "description": "Optional. Applies to sessions only. The duration to keep the session alive while it's idling. Exceeding this threshold causes the session to terminate. This field cannot be set on a batch workload. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)). Defaults to 1 hour if not set. If both ttl and idle_ttl are specified for an interactive session, the conditions are treated as OR conditions: the workload will be terminated when it has been idle for idle_ttl or when ttl has been exceeded, whichever occurs first.", - "format": "google-duration", + "addTime": { + "format": "google-datetime", "type": "string" }, - "kmsKey": { - "description": "Optional. The Cloud KMS key to use for encryption.", + "hostPort": { "type": "string" }, - "networkTags": { - "description": "Optional. Tags used for network traffic control.", - "items": { - "type": "string" - }, - "type": "array" + "isActive": { + "type": "boolean" }, - "networkUri": { - "description": "Optional. Network URI to connect workload to.", + "processId": { "type": "string" }, - "serviceAccount": { - "description": "Optional. Service account that used to execute workload.", - "type": "string" + "processLogs": { + "additionalProperties": { + "type": "string" + }, + "type": "object" }, - "stagingBucket": { - "description": "Optional. A Cloud Storage bucket used to stage workload dependencies, config files, and store workload output and other ephemeral data, such as Spark history files. If you do not specify a staging bucket, Cloud Dataproc will determine a Cloud Storage location according to the region where your workload is running, and then create and manage project-level, per-location staging and temporary buckets. This field requires a Cloud Storage bucket name, not a gs://... URI to a Cloud Storage bucket.", + "removeTime": { + "format": "google-datetime", "type": "string" }, - "subnetworkUri": { - "description": "Optional. Subnetwork URI to connect workload to.", - "type": "string" + "totalCores": { + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "ProvisioningModelMix": { + "description": "Defines how Dataproc should create VMs with a mixture of provisioning models.", + "id": "ProvisioningModelMix", + "properties": { + "standardCapacityBase": { + "description": "Optional. The base capacity that will always use Standard VMs to avoid risk of more preemption than the minimum capacity you need. Dataproc will create only standard VMs until it reaches standard_capacity_base, then it will start using standard_capacity_percent_above_base to mix Spot with Standard VMs. eg. If 15 instances are requested and standard_capacity_base is 5, Dataproc will create 5 standard VMs and then start mixing spot and standard VMs for remaining 10 instances.", + "format": "int32", + "type": "integer" }, - "ttl": { - "description": "Optional. The duration after which the workload will be terminated, specified as the JSON representation for Duration (https://protobuf.dev/programming-guides/proto3/#json). When the workload exceeds this duration, it will be unconditionally terminated without waiting for ongoing work to finish. If ttl is not specified for a batch workload, the workload will be allowed to run until it exits naturally (or run forever without exiting). If ttl is not specified for an interactive session, it defaults to 24 hours. If ttl is not specified for a batch that uses 2.1+ runtime version, it defaults to 4 hours. Minimum value is 10 minutes; maximum value is 14 days. If both ttl and idle_ttl are specified (for an interactive session), the conditions are treated as OR conditions: the workload will be terminated when it has been idle for idle_ttl or when ttl has been exceeded, whichever occurs first.", - "format": "google-duration", + "standardCapacityPercentAboveBase": { + "description": "Optional. The percentage of target capacity that should use Standard VM. The remaining percentage will use Spot VMs. The percentage applies only to the capacity above standard_capacity_base. eg. If 15 instances are requested and standard_capacity_base is 5 and standard_capacity_percent_above_base is 30, Dataproc will create 5 standard VMs and then start mixing spot and standard VMs for remaining 10 instances. The mix will be 30% standard and 70% spot.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "PyPiRepositoryConfig": { + "description": "Configuration for PyPi repository", + "id": "PyPiRepositoryConfig", + "properties": { + "pypiRepository": { + "description": "Optional. PyPi repository address", "type": "string" } }, "type": "object" }, - "Expr": { - "description": "Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec.Example (Comparison): title: \"Summary size limit\" description: \"Determines if a summary is less than 100 chars\" expression: \"document.summary.size() \u003c 100\" Example (Equality): title: \"Requestor is owner\" description: \"Determines if requestor is the document owner\" expression: \"document.owner == request.auth.claims.email\" Example (Logic): title: \"Public documents\" description: \"Determine whether the document should be publicly visible\" expression: \"document.type != 'private' \u0026\u0026 document.type != 'internal'\" Example (Data Manipulation): title: \"Notification string\" description: \"Create a notification string with a timestamp.\" expression: \"'New message received at ' + string(document.create_time)\" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.", - "id": "Expr", + "PySparkBatch": { + "description": "A configuration for running an Apache PySpark (https://spark.apache.org/docs/latest/api/python/getting_started/quickstart.html) batch workload.", + "id": "PySparkBatch", "properties": { - "description": { - "description": "Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.", - "type": "string" + "archiveUris": { + "description": "Optional. HCFS URIs of archives to be extracted into the working directory of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.", + "items": { + "type": "string" + }, + "type": "array" }, - "expression": { - "description": "Textual representation of an expression in Common Expression Language syntax.", - "type": "string" + "args": { + "description": "Optional. The arguments to pass to the driver. Do not include arguments that can be set as batch properties, such as --conf, since a collision can occur that causes an incorrect batch submission.", + "items": { + "type": "string" + }, + "type": "array" }, - "location": { - "description": "Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.", - "type": "string" + "fileUris": { + "description": "Optional. HCFS URIs of files to be placed in the working directory of each executor.", + "items": { + "type": "string" + }, + "type": "array" }, - "title": { - "description": "Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.", + "jarFileUris": { + "description": "Optional. HCFS URIs of jar files to add to the classpath of the Spark driver and tasks.", + "items": { + "type": "string" + }, + "type": "array" + }, + "mainPythonFileUri": { + "description": "Required. The HCFS URI of the main Python file to use as the Spark driver. Must be a .py file.", "type": "string" + }, + "pythonFileUris": { + "description": "Optional. HCFS file URIs of Python files to pass to the PySpark framework. Supported file types: .py, .egg, and .zip.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" }, - "FlinkJob": { - "description": "A Dataproc job for running Apache Flink applications on YARN.", - "id": "FlinkJob", + "PySparkJob": { + "description": "A Dataproc job for running Apache PySpark (https://spark.apache.org/docs/0.9.0/python-programming-guide.html) applications on YARN.", + "id": "PySparkJob", "properties": { + "archiveUris": { + "description": "Optional. HCFS URIs of archives to be extracted into the working directory of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.", + "items": { + "type": "string" + }, + "type": "array" + }, "args": { - "description": "Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision might occur that causes an incorrect job submission.", + "description": "Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission.", + "items": { + "type": "string" + }, + "type": "array" + }, + "fileUris": { + "description": "Optional. HCFS URIs of files to be placed in the working directory of each executor. Useful for naively parallel tasks.", "items": { "type": "string" }, "type": "array" }, "jarFileUris": { - "description": "Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Flink driver and tasks.", + "description": "Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Python driver and tasks.", "items": { "type": "string" }, @@ -4169,244 +9067,302 @@ "$ref": "LoggingConfig", "description": "Optional. The runtime log config for job execution." }, - "mainClass": { - "description": "The name of the driver's main class. The jar file that contains the class must be in the default CLASSPATH or specified in jarFileUris.", - "type": "string" - }, - "mainJarFileUri": { - "description": "The HCFS URI of the jar file that contains the main class.", + "mainPythonFileUri": { + "description": "Required. The HCFS URI of the main Python file to use as the driver. Must be a .py file.", "type": "string" }, "properties": { "additionalProperties": { "type": "string" }, - "description": "Optional. A mapping of property names to values, used to configure Flink. Properties that conflict with values set by the Dataproc API might beoverwritten. Can include properties set in/etc/flink/conf/flink-defaults.conf and classes in user code.", + "description": "Optional. A mapping of property names to values, used to configure PySpark. Properties that conflict with values set by the Dataproc API might be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code.", "type": "object" }, - "savepointUri": { - "description": "Optional. HCFS URI of the savepoint, which contains the last saved progress for starting the current job.", - "type": "string" + "pythonFileUris": { + "description": "Optional. HCFS file URIs of Python files to pass to the PySpark framework. Supported file types: .py, .egg, and .zip.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" }, - "GceClusterConfig": { - "description": "Common config settings for resources of Compute Engine cluster instances, applicable to all instances in the cluster.", - "id": "GceClusterConfig", + "Quantiles": { + "description": "Quantile metrics data related to Tasks. Units can be seconds, bytes, milliseconds, etc depending on the message type.", + "id": "Quantiles", "properties": { - "confidentialInstanceConfig": { - "$ref": "ConfidentialInstanceConfig", - "description": "Optional. Confidential Instance Config for clusters using Confidential VMs (https://cloud.google.com/compute/confidential-vm/docs)." - }, - "internalIpOnly": { - "description": "Optional. This setting applies to subnetwork-enabled networks. It is set to true by default in clusters created with image versions 2.2.x.When set to true: All cluster VMs have internal IP addresses. Google Private Access (https://cloud.google.com/vpc/docs/private-google-access) must be enabled to access Dataproc and other Google Cloud APIs. Off-cluster dependencies must be configured to be accessible without external IP addresses.When set to false: Cluster VMs are not restricted to internal IP addresses. Ephemeral external IP addresses are assigned to each cluster VM.", - "type": "boolean" - }, - "metadata": { - "additionalProperties": { - "type": "string" - }, - "description": "Optional. The Compute Engine metadata entries to add to all instances (see Project and instance metadata (https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).", - "type": "object" + "count": { + "format": "int64", + "type": "string" }, - "networkUri": { - "description": "Optional. The Compute Engine network to be used for machine communications. Cannot be specified with subnetwork_uri. If neither network_uri nor subnetwork_uri is specified, the \"default\" network of the project is used, if it exists. Cannot be a \"Custom Subnet Network\" (see Using Subnetworks (https://cloud.google.com/compute/docs/subnetworks) for more information).A full URL, partial URI, or short name are valid. Examples: https://www.googleapis.com/compute/v1/projects/[project_id]/global/networks/default projects/[project_id]/global/networks/default default", + "maximum": { + "format": "int64", "type": "string" }, - "nodeGroupAffinity": { - "$ref": "NodeGroupAffinity", - "description": "Optional. Node Group Affinity for sole-tenant clusters." + "minimum": { + "format": "int64", + "type": "string" }, - "privateIpv6GoogleAccess": { - "description": "Optional. The type of IPv6 access for a cluster.", - "enum": [ - "PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED", - "INHERIT_FROM_SUBNETWORK", - "OUTBOUND", - "BIDIRECTIONAL" - ], - "enumDescriptions": [ - "If unspecified, Compute Engine default behavior will apply, which is the same as INHERIT_FROM_SUBNETWORK.", - "Private access to and from Google Services configuration inherited from the subnetwork configuration. This is the default Compute Engine behavior.", - "Enables outbound private IPv6 access to Google Services from the Dataproc cluster.", - "Enables bidirectional private IPv6 access between Google Services and the Dataproc cluster." - ], + "percentile25": { + "format": "int64", "type": "string" }, - "reservationAffinity": { - "$ref": "ReservationAffinity", - "description": "Optional. Reservation Affinity for consuming Zonal reservation." + "percentile50": { + "format": "int64", + "type": "string" }, - "serviceAccount": { - "description": "Optional. The Dataproc service account (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc) (also see VM Data Plane identity (https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-principals#vm_service_account_data_plane_identity)) used by Dataproc cluster VM instances to access Google Cloud Platform services.If not specified, the Compute Engine default service account (https://cloud.google.com/compute/docs/access/service-accounts#default_service_account) is used.", + "percentile75": { + "format": "int64", "type": "string" }, - "serviceAccountScopes": { - "description": "Optional. The URIs of service account scopes to be included in Compute Engine instances. The following base set of scopes is always included: https://www.googleapis.com/auth/cloud.useraccounts.readonly https://www.googleapis.com/auth/devstorage.read_write https://www.googleapis.com/auth/logging.writeIf no scopes are specified, the following defaults are also provided: https://www.googleapis.com/auth/bigquery https://www.googleapis.com/auth/bigtable.admin.table https://www.googleapis.com/auth/bigtable.data https://www.googleapis.com/auth/devstorage.full_control", + "sum": { + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "QueryList": { + "description": "A list of queries to run on a cluster.", + "id": "QueryList", + "properties": { + "queries": { + "description": "Required. The queries to execute. You do not need to end a query expression with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of a Dataproc API snippet that uses a QueryList to specify a HiveJob: \"hiveJob\": { \"queryList\": { \"queries\": [ \"query1\", \"query2\", \"query3;query4\", ] } } ", "items": { "type": "string" }, "type": "array" + } + }, + "type": "object" + }, + "RddDataDistribution": { + "description": "Details about RDD usage.", + "id": "RddDataDistribution", + "properties": { + "address": { + "type": "string" }, - "shieldedInstanceConfig": { - "$ref": "ShieldedInstanceConfig", - "description": "Optional. Shielded Instance Config for clusters using Compute Engine Shielded VMs (https://cloud.google.com/security/shielded-cloud/shielded-vm)." + "diskUsed": { + "format": "int64", + "type": "string" }, - "subnetworkUri": { - "description": "Optional. The Compute Engine subnetwork to be used for machine communications. Cannot be specified with network_uri.A full URL, partial URI, or short name are valid. Examples: https://www.googleapis.com/compute/v1/projects/[project_id]/regions/[region]/subnetworks/sub0 projects/[project_id]/regions/[region]/subnetworks/sub0 sub0", + "memoryRemaining": { + "format": "int64", "type": "string" }, - "tags": { - "description": "The Compute Engine network tags to add to all instances (see Tagging instances (https://cloud.google.com/vpc/docs/add-remove-network-tags)).", - "items": { - "type": "string" - }, - "type": "array" + "memoryUsed": { + "format": "int64", + "type": "string" }, - "zoneUri": { - "description": "Optional. The Compute Engine zone where the Dataproc cluster will be located. If omitted, the service will pick a zone in the cluster's Compute Engine region. On a get request, zone will always be present.A full URL, partial URI, or short name are valid. Examples: https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone] projects/[project_id]/zones/[zone] [zone]", + "offHeapMemoryRemaining": { + "format": "int64", + "type": "string" + }, + "offHeapMemoryUsed": { + "format": "int64", + "type": "string" + }, + "onHeapMemoryRemaining": { + "format": "int64", + "type": "string" + }, + "onHeapMemoryUsed": { + "format": "int64", "type": "string" } }, "type": "object" }, - "GetIamPolicyRequest": { - "description": "Request message for GetIamPolicy method.", - "id": "GetIamPolicyRequest", + "RddOperationCluster": { + "description": "A grouping of nodes representing higher level constructs (stage, job etc.).", + "id": "RddOperationCluster", "properties": { - "options": { - "$ref": "GetPolicyOptions", - "description": "OPTIONAL: A GetPolicyOptions object for specifying options to GetIamPolicy." + "childClusters": { + "items": { + "$ref": "RddOperationCluster" + }, + "type": "array" + }, + "childNodes": { + "items": { + "$ref": "RddOperationNode" + }, + "type": "array" + }, + "name": { + "type": "string" + }, + "rddClusterId": { + "type": "string" } }, "type": "object" }, - "GetPolicyOptions": { - "description": "Encapsulates settings provided to GetIamPolicy.", - "id": "GetPolicyOptions", + "RddOperationEdge": { + "description": "A directed edge representing dependency between two RDDs.", + "id": "RddOperationEdge", "properties": { - "requestedPolicyVersion": { - "description": "Optional. The maximum policy version that will be used to format the policy.Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected.Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset.The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).", + "fromId": { + "format": "int32", + "type": "integer" + }, + "toId": { "format": "int32", "type": "integer" } }, "type": "object" }, - "GkeClusterConfig": { - "description": "The cluster's GKE config.", - "id": "GkeClusterConfig", + "RddOperationGraph": { + "description": "Graph representing RDD dependencies. Consists of edges and a root cluster.", + "id": "RddOperationGraph", "properties": { - "gkeClusterTarget": { - "description": "Optional. A target GKE cluster to deploy to. It must be in the same project and region as the Dataproc cluster (the GKE cluster can be zonal or regional). Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}'", - "type": "string" - }, - "namespacedGkeDeploymentTarget": { - "$ref": "NamespacedGkeDeploymentTarget", - "deprecated": true, - "description": "Optional. Deprecated. Use gkeClusterTarget. Used only for the deprecated beta. A target for the deployment." + "edges": { + "items": { + "$ref": "RddOperationEdge" + }, + "type": "array" }, - "nodePoolTarget": { - "description": "Optional. GKE node pools where workloads will be scheduled. At least one node pool must be assigned the DEFAULT GkeNodePoolTarget.Role. If a GkeNodePoolTarget is not specified, Dataproc constructs a DEFAULT GkeNodePoolTarget. Each role can be given to only one GkeNodePoolTarget. All node pools must have the same location settings.", + "incomingEdges": { "items": { - "$ref": "GkeNodePoolTarget" + "$ref": "RddOperationEdge" }, "type": "array" - } - }, - "type": "object" - }, - "GkeNodeConfig": { - "description": "Parameters that describe cluster nodes.", - "id": "GkeNodeConfig", - "properties": { - "accelerators": { - "description": "Optional. A list of hardware accelerators (https://cloud.google.com/compute/docs/gpus) to attach to each node.", + }, + "outgoingEdges": { "items": { - "$ref": "GkeNodePoolAcceleratorConfig" + "$ref": "RddOperationEdge" }, "type": "array" }, - "bootDiskKmsKey": { - "description": "Optional. The Customer Managed Encryption Key (CMEK) (https://cloud.google.com/kubernetes-engine/docs/how-to/using-cmek) used to encrypt the boot disk attached to each node in the node pool. Specify the key using the following format: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}", + "rootCluster": { + "$ref": "RddOperationCluster" + }, + "stageId": { + "format": "int64", "type": "string" + } + }, + "type": "object" + }, + "RddOperationNode": { + "description": "A node in the RDD operation graph. Corresponds to a single RDD.", + "id": "RddOperationNode", + "properties": { + "barrier": { + "type": "boolean" }, - "localSsdCount": { - "description": "Optional. The number of local SSD disks to attach to the node, which is limited by the maximum number of disks allowable per zone (see Adding Local SSDs (https://cloud.google.com/compute/docs/disks/local-ssd)).", - "format": "int32", - "type": "integer" + "cached": { + "type": "boolean" }, - "machineType": { - "description": "Optional. The name of a Compute Engine machine type (https://cloud.google.com/compute/docs/machine-types).", + "callsite": { "type": "string" }, - "minCpuPlatform": { - "description": "Optional. Minimum CPU platform (https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) to be used by this instance. The instance may be scheduled on the specified or a newer CPU platform. Specify the friendly names of CPU platforms, such as \"Intel Haswell\"` or Intel Sandy Bridge\".", + "name": { "type": "string" }, - "preemptible": { - "description": "Optional. Whether the nodes are created as legacy preemptible VM instances (https://cloud.google.com/compute/docs/instances/preemptible). Also see Spot VMs, preemptible VM instances without a maximum lifetime. Legacy and Spot preemptible nodes cannot be used in a node pool with the CONTROLLER role or in the DEFAULT node pool if the CONTROLLER role is not assigned (the DEFAULT node pool will assume the CONTROLLER role).", - "type": "boolean" + "nodeId": { + "format": "int32", + "type": "integer" }, - "spot": { - "description": "Optional. Whether the nodes are created as Spot VM instances (https://cloud.google.com/compute/docs/instances/spot). Spot VMs are the latest update to legacy preemptible VMs. Spot VMs do not have a maximum lifetime. Legacy and Spot preemptible nodes cannot be used in a node pool with the CONTROLLER role or in the DEFAULT node pool if the CONTROLLER role is not assigned (the DEFAULT node pool will assume the CONTROLLER role).", - "type": "boolean" + "outputDeterministicLevel": { + "enum": [ + "DETERMINISTIC_LEVEL_UNSPECIFIED", + "DETERMINISTIC_LEVEL_DETERMINATE", + "DETERMINISTIC_LEVEL_UNORDERED", + "DETERMINISTIC_LEVEL_INDETERMINATE" + ], + "enumDescriptions": [ + "", + "", + "", + "" + ], + "type": "string" } }, "type": "object" }, - "GkeNodePoolAcceleratorConfig": { - "description": "A GkeNodeConfigAcceleratorConfig represents a Hardware Accelerator request for a node pool.", - "id": "GkeNodePoolAcceleratorConfig", + "RddPartitionInfo": { + "description": "Information about RDD partitions.", + "id": "RddPartitionInfo", "properties": { - "acceleratorCount": { - "description": "The number of accelerator cards exposed to an instance.", + "blockName": { + "type": "string" + }, + "diskUsed": { "format": "int64", "type": "string" }, - "acceleratorType": { - "description": "The accelerator type resource namename (see GPUs on Compute Engine).", + "executors": { + "items": { + "type": "string" + }, + "type": "array" + }, + "memoryUsed": { + "format": "int64", "type": "string" }, - "gpuPartitionSize": { - "description": "Size of partitions to create on the GPU. Valid values are described in the NVIDIA mig user guide (https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).", + "storageLevel": { "type": "string" } }, "type": "object" }, - "GkeNodePoolAutoscalingConfig": { - "description": "GkeNodePoolAutoscaling contains information the cluster autoscaler needs to adjust the size of the node pool to the current cluster usage.", - "id": "GkeNodePoolAutoscalingConfig", + "RddStorageInfo": { + "description": "Overall data about RDD storage.", + "id": "RddStorageInfo", "properties": { - "maxNodeCount": { - "description": "The maximum number of nodes in the node pool. Must be \u003e= min_node_count, and must be \u003e 0. Note: Quota must be sufficient to scale up the cluster.", + "dataDistribution": { + "items": { + "$ref": "RddDataDistribution" + }, + "type": "array" + }, + "diskUsed": { + "format": "int64", + "type": "string" + }, + "memoryUsed": { + "format": "int64", + "type": "string" + }, + "name": { + "type": "string" + }, + "numCachedPartitions": { "format": "int32", "type": "integer" }, - "minNodeCount": { - "description": "The minimum number of nodes in the node pool. Must be \u003e= 0 and \u003c= max_node_count.", + "numPartitions": { + "format": "int32", + "type": "integer" + }, + "partitions": { + "items": { + "$ref": "RddPartitionInfo" + }, + "type": "array" + }, + "rddStorageId": { "format": "int32", "type": "integer" + }, + "storageLevel": { + "type": "string" } }, "type": "object" }, - "GkeNodePoolConfig": { - "description": "The configuration of a GKE node pool used by a Dataproc-on-GKE cluster (https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).", - "id": "GkeNodePoolConfig", + "RegexValidation": { + "description": "Validation based on regular expressions.", + "id": "RegexValidation", "properties": { - "autoscaling": { - "$ref": "GkeNodePoolAutoscalingConfig", - "description": "Optional. The autoscaler configuration for this node pool. The autoscaler is enabled only when a valid configuration is present." - }, - "config": { - "$ref": "GkeNodeConfig", - "description": "Optional. The node pool configuration." - }, - "locations": { - "description": "Optional. The list of Compute Engine zones (https://cloud.google.com/compute/docs/zones#available) where node pool nodes associated with a Dataproc on GKE virtual cluster will be located.Note: All node pools associated with a virtual cluster must be located in the same region as the virtual cluster, and they must be located in the same zone within that region.If a location is not specified during node pool creation, Dataproc on GKE will choose the zone.", + "regexes": { + "description": "Required. RE2 regular expressions used to validate the parameter's value. The value must match the regex in its entirety (substring matches are not sufficient).", "items": { "type": "string" }, @@ -4415,191 +9371,314 @@ }, "type": "object" }, - "GkeNodePoolTarget": { - "description": "GKE node pools that Dataproc workloads run on.", - "id": "GkeNodePoolTarget", + "RepairClusterRequest": { + "description": "A request to repair a cluster.", + "id": "RepairClusterRequest", "properties": { - "nodePool": { - "description": "Required. The target GKE node pool. Format: 'projects/{project}/locations/{location}/clusters/{cluster}/nodePools/{node_pool}'", + "cluster": { + "$ref": "ClusterToRepair", + "description": "Optional. Cluster to be repaired" + }, + "clusterUuid": { + "description": "Optional. Specifying the cluster_uuid means the RPC will fail (with error NOT_FOUND) if a cluster with the specified UUID does not exist.", "type": "string" }, - "nodePoolConfig": { - "$ref": "GkeNodePoolConfig", - "description": "Input only. The configuration for the GKE node pool.If specified, Dataproc attempts to create a node pool with the specified shape. If one with the same name already exists, it is verified against all specified fields. If a field differs, the virtual cluster creation will fail.If omitted, any node pool with the specified name is used. If a node pool with the specified name does not exist, Dataproc create a node pool with default values.This is an input only field. It will not be returned by the API." + "gracefulDecommissionTimeout": { + "description": "Optional. Timeout for graceful YARN decommissioning. Graceful decommissioning facilitates the removal of cluster nodes without interrupting jobs in progress. The timeout specifies the amount of time to wait for jobs finish before forcefully removing nodes. The default timeout is 0 for forceful decommissioning, and the maximum timeout period is 1 day. (see JSON Mapping—Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)).graceful_decommission_timeout is supported in Dataproc image versions 1.2+.", + "format": "google-duration", + "type": "string" }, - "roles": { - "description": "Required. The roles associated with the GKE node pool.", + "nodePools": { + "description": "Optional. Node pools and corresponding repair action to be taken. All node pools should be unique in this request. i.e. Multiple entries for the same node pool id are not allowed.", "items": { - "enum": [ - "ROLE_UNSPECIFIED", - "DEFAULT", - "CONTROLLER", - "SPARK_DRIVER", - "SPARK_EXECUTOR" - ], - "enumDescriptions": [ - "Role is unspecified.", - "At least one node pool must have the DEFAULT role. Work assigned to a role that is not associated with a node pool is assigned to the node pool with the DEFAULT role. For example, work assigned to the CONTROLLER role will be assigned to the node pool with the DEFAULT role if no node pool has the CONTROLLER role.", - "Run work associated with the Dataproc control plane (for example, controllers and webhooks). Very low resource requirements.", - "Run work associated with a Spark driver of a job.", - "Run work associated with a Spark executor of a job." - ], - "type": "string" + "$ref": "NodePool" }, "type": "array" + }, + "parentOperationId": { + "description": "Optional. operation id of the parent operation sending the repair request", + "type": "string" + }, + "requestId": { + "description": "Optional. A unique ID used to identify the request. If the server receives two RepairClusterRequests with the same ID, the second request is ignored, and the first google.longrunning.Operation created and stored in the backend is returned.Recommendation: Set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", + "type": "string" } }, "type": "object" }, - "GoogleCloudDataprocV1WorkflowTemplateEncryptionConfig": { - "description": "Encryption settings for encrypting workflow template job arguments.", - "id": "GoogleCloudDataprocV1WorkflowTemplateEncryptionConfig", + "RepairNodeGroupRequest": { + "id": "RepairNodeGroupRequest", "properties": { - "kmsKey": { - "description": "Optional. The Cloud KMS key name to use for encrypting workflow template job arguments.When this this key is provided, the following workflow template job arguments (https://cloud.google.com/dataproc/docs/concepts/workflows/use-workflows#adding_jobs_to_a_template), if present, are CMEK encrypted (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/customer-managed-encryption#use_cmek_with_workflow_template_data): FlinkJob args (https://cloud.google.com/dataproc/docs/reference/rest/v1/FlinkJob) HadoopJob args (https://cloud.google.com/dataproc/docs/reference/rest/v1/HadoopJob) SparkJob args (https://cloud.google.com/dataproc/docs/reference/rest/v1/SparkJob) SparkRJob args (https://cloud.google.com/dataproc/docs/reference/rest/v1/SparkRJob) PySparkJob args (https://cloud.google.com/dataproc/docs/reference/rest/v1/PySparkJob) SparkSqlJob (https://cloud.google.com/dataproc/docs/reference/rest/v1/SparkSqlJob) scriptVariables and queryList.queries HiveJob (https://cloud.google.com/dataproc/docs/reference/rest/v1/HiveJob) scriptVariables and queryList.queries PigJob (https://cloud.google.com/dataproc/docs/reference/rest/v1/PigJob) scriptVariables and queryList.queries PrestoJob (https://cloud.google.com/dataproc/docs/reference/rest/v1/PrestoJob) scriptVariables and queryList.queries", + "instanceNames": { + "description": "Required. Name of instances to be repaired. These instances must belong to specified node pool.", + "items": { + "type": "string" + }, + "type": "array" + }, + "repairAction": { + "description": "Required. Repair action to take on specified resources of the node pool.", + "enum": [ + "REPAIR_ACTION_UNSPECIFIED", + "REPLACE" + ], + "enumDescriptions": [ + "No action will be taken by default.", + "replace the specified list of nodes." + ], + "type": "string" + }, + "requestId": { + "description": "Optional. A unique ID used to identify the request. If the server receives two RepairNodeGroupRequest with the same ID, the second request is ignored and the first google.longrunning.Operation created and stored in the backend is returned.Recommendation: Set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", "type": "string" } }, "type": "object" }, - "HadoopJob": { - "description": "A Dataproc job for running Apache Hadoop MapReduce (https://hadoop.apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core/MapReduceTutorial.html) jobs on Apache Hadoop YARN (https://hadoop.apache.org/docs/r2.7.1/hadoop-yarn/hadoop-yarn-site/YARN.html).", - "id": "HadoopJob", + "RepositoryConfig": { + "description": "Configuration for dependency repositories", + "id": "RepositoryConfig", "properties": { - "archiveUris": { - "description": "Optional. HCFS URIs of archives to be extracted in the working directory of Hadoop drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, or .zip.", - "items": { - "type": "string" - }, - "type": "array" + "pypiRepositoryConfig": { + "$ref": "PyPiRepositoryConfig", + "description": "Optional. Configuration for PyPi repository." + } + }, + "type": "object" + }, + "ReservationAffinity": { + "description": "Reservation Affinity for consuming Zonal reservation.", + "id": "ReservationAffinity", + "properties": { + "consumeReservationType": { + "description": "Optional. Type of reservation to consume", + "enum": [ + "TYPE_UNSPECIFIED", + "NO_RESERVATION", + "ANY_RESERVATION", + "SPECIFIC_RESERVATION" + ], + "enumDescriptions": [ + "", + "Do not consume from any allocated capacity.", + "Consume any reservation available.", + "Must consume from a specific reservation. Must specify key value fields for specifying the reservations." + ], + "type": "string" }, - "args": { - "description": "Optional. The arguments to pass to the driver. Do not include arguments, such as -libjars or -Dfoo=bar, that can be set as job properties, since a collision might occur that causes an incorrect job submission.", - "items": { - "type": "string" - }, - "type": "array" + "key": { + "description": "Optional. Corresponds to the label key of reservation resource.", + "type": "string" }, - "fileUris": { - "description": "Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied to the working directory of Hadoop drivers and distributed tasks. Useful for naively parallel tasks.", + "values": { + "description": "Optional. Corresponds to the label values of reservation resource.", "items": { "type": "string" }, "type": "array" + } + }, + "type": "object" + }, + "ResizeNodeGroupRequest": { + "description": "A request to resize a node group.", + "id": "ResizeNodeGroupRequest", + "properties": { + "gracefulDecommissionTimeout": { + "description": "Optional. Timeout for graceful YARN decommissioning. Graceful decommissioning (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/scaling-clusters#graceful_decommissioning) allows the removal of nodes from the Compute Engine node group without interrupting jobs in progress. This timeout specifies how long to wait for jobs in progress to finish before forcefully removing nodes (and potentially interrupting jobs). Default timeout is 0 (for forceful decommission), and the maximum allowed timeout is 1 day. (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)).Only supported on Dataproc image versions 1.2 and higher.", + "format": "google-duration", + "type": "string" }, - "jarFileUris": { - "description": "Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks.", + "parentOperationId": { + "description": "Optional. operation id of the parent operation sending the resize request", + "type": "string" + }, + "requestId": { + "description": "Optional. A unique ID used to identify the request. If the server receives two ResizeNodeGroupRequest (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.ResizeNodeGroupRequests) with the same ID, the second request is ignored and the first google.longrunning.Operation created and stored in the backend is returned.Recommendation: Set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", + "type": "string" + }, + "size": { + "description": "Required. The number of running instances for the node group to maintain. The group adds or removes instances to maintain the number of instances specified by this parameter.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "ResourceInformation": { + "id": "ResourceInformation", + "properties": { + "addresses": { "items": { "type": "string" - }, - "type": "array" - }, - "loggingConfig": { - "$ref": "LoggingConfig", - "description": "Optional. The runtime log config for job execution." + }, + "type": "array" }, - "mainClass": { - "description": "The name of the driver's main class. The jar file containing the class must be in the default CLASSPATH or specified in jar_file_uris.", + "name": { "type": "string" + } + }, + "type": "object" + }, + "ResourceProfileInfo": { + "description": "Resource profile that contains information about all the resources required by executors and tasks.", + "id": "ResourceProfileInfo", + "properties": { + "executorResources": { + "additionalProperties": { + "$ref": "ExecutorResourceRequest" + }, + "type": "object" }, - "mainJarFileUri": { - "description": "The HCFS URI of the jar file containing the main class. Examples: 'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar' 'hdfs:/tmp/test-samples/custom-wordcount.jar' 'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar'", - "type": "string" + "resourceProfileId": { + "format": "int32", + "type": "integer" }, - "properties": { + "taskResources": { "additionalProperties": { - "type": "string" + "$ref": "TaskResourceRequest" }, - "description": "Optional. A mapping of property names to values, used to configure Hadoop. Properties that conflict with values set by the Dataproc API might be overwritten. Can include properties set in /etc/hadoop/conf/*-site and classes in user code.", "type": "object" } }, "type": "object" }, - "HiveJob": { - "description": "A Dataproc job for running Apache Hive (https://hive.apache.org/) queries on YARN.", - "id": "HiveJob", + "RuntimeConfig": { + "description": "Runtime configuration for a workload.", + "id": "RuntimeConfig", "properties": { - "continueOnFailure": { - "description": "Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries.", - "type": "boolean" + "autotuningConfig": { + "$ref": "AutotuningConfig", + "description": "Optional. Autotuning configuration of the workload." }, - "jarFileUris": { - "description": "Optional. HCFS URIs of jar files to add to the CLASSPATH of the Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes and UDFs.", - "items": { - "type": "string" - }, - "type": "array" + "cohort": { + "description": "Optional. Cohort identifier. Identifies families of the workloads having the same shape, e.g. daily ETL jobs.", + "type": "string" + }, + "containerImage": { + "description": "Optional. Optional custom container image for the job runtime environment. If not specified, a default container image will be used.", + "type": "string" }, "properties": { "additionalProperties": { "type": "string" }, - "description": "Optional. A mapping of property names and values, used to configure Hive. Properties that conflict with values set by the Dataproc API might be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/hive/conf/hive-site.xml, and classes in user code.", + "description": "Optional. A mapping of property names to values, which are used to configure workload execution.", "type": "object" }, - "queryFileUri": { - "description": "The HCFS URI of the script that contains Hive queries.", + "repositoryConfig": { + "$ref": "RepositoryConfig", + "description": "Optional. Dependency repository configuration." + }, + "version": { + "description": "Optional. Version of the batch runtime.", "type": "string" + } + }, + "type": "object" + }, + "RuntimeInfo": { + "description": "Runtime information about workload execution.", + "id": "RuntimeInfo", + "properties": { + "approximateUsage": { + "$ref": "UsageMetrics", + "description": "Output only. Approximate workload resource usage, calculated when the workload completes (see Dataproc Serverless pricing (https://cloud.google.com/dataproc-serverless/pricing)).Note: This metric calculation may change in the future, for example, to capture cumulative workload resource consumption during workload execution (see the Dataproc Serverless release notes (https://cloud.google.com/dataproc-serverless/docs/release-notes) for announcements, changes, fixes and other Dataproc developments).", + "readOnly": true }, - "queryList": { - "$ref": "QueryList", - "description": "A list of queries." + "currentUsage": { + "$ref": "UsageSnapshot", + "description": "Output only. Snapshot of current workload resource usage.", + "readOnly": true }, - "scriptVariables": { + "diagnosticOutputUri": { + "description": "Output only. A URI pointing to the location of the diagnostics tarball.", + "readOnly": true, + "type": "string" + }, + "endpoints": { "additionalProperties": { "type": "string" }, - "description": "Optional. Mapping of query variable names to values (equivalent to the Hive command: SET name=\"value\";).", + "description": "Output only. Map of remote access endpoints (such as web interfaces and APIs) to their URIs.", + "readOnly": true, "type": "object" + }, + "outputUri": { + "description": "Output only. A URI pointing to the location of the stdout and stderr of the workload.", + "readOnly": true, + "type": "string" } }, "type": "object" }, - "IdentityConfig": { - "description": "Identity related configuration, including service account based secure multi-tenancy user mappings.", - "id": "IdentityConfig", + "SearchSessionSparkApplicationExecutorStageSummaryResponse": { + "description": "List of Executors associated with a Spark Application Stage.", + "id": "SearchSessionSparkApplicationExecutorStageSummaryResponse", "properties": { - "userServiceAccountMapping": { - "additionalProperties": { - "type": "string" + "nextPageToken": { + "description": "This token is included in the response if there are more results to fetch. To fetch additional results, provide this value as the page_token in a subsequent SearchSessionSparkApplicationExecutorStageSummaryRequest.", + "type": "string" + }, + "sparkApplicationStageExecutors": { + "description": "Details about executors used by the application stage.", + "items": { + "$ref": "ExecutorStageSummary" }, - "description": "Required. Map of user to service account.", - "type": "object" + "type": "array" } }, "type": "object" }, - "InjectCredentialsRequest": { - "description": "A request to inject credentials into a cluster.", - "id": "InjectCredentialsRequest", + "SearchSessionSparkApplicationExecutorsResponse": { + "description": "List of Executors associated with a Spark Application.", + "id": "SearchSessionSparkApplicationExecutorsResponse", "properties": { - "clusterUuid": { - "description": "Required. The cluster UUID.", + "nextPageToken": { + "description": "This token is included in the response if there are more results to fetch. To fetch additional results, provide this value as the page_token in a subsequent SearchSessionSparkApplicationExecutorsRequest.", "type": "string" }, - "credentialsCiphertext": { - "description": "Required. The encrypted credentials being injected in to the cluster.The client is responsible for encrypting the credentials in a way that is supported by the cluster.A wrapped value is used here so that the actual contents of the encrypted credentials are not written to audit logs.", - "type": "string" + "sparkApplicationExecutors": { + "description": "Details about executors used by the application.", + "items": { + "$ref": "ExecutorSummary" + }, + "type": "array" } }, "type": "object" }, - "InstanceFlexibilityPolicy": { - "description": "Instance flexibility Policy allowing a mixture of VM shapes and provisioning models.", - "id": "InstanceFlexibilityPolicy", + "SearchSessionSparkApplicationJobsResponse": { + "description": "A list of Jobs associated with a Spark Application.", + "id": "SearchSessionSparkApplicationJobsResponse", "properties": { - "instanceSelectionList": { - "description": "Optional. List of instance selection options that the group will use when creating new VMs.", + "nextPageToken": { + "description": "This token is included in the response if there are more results to fetch. To fetch additional results, provide this value as the page_token in a subsequent SearchSessionSparkApplicationJobsRequest.", + "type": "string" + }, + "sparkApplicationJobs": { + "description": "Output only. Data corresponding to a spark job.", "items": { - "$ref": "InstanceSelection" + "$ref": "JobData" }, + "readOnly": true, "type": "array" + } + }, + "type": "object" + }, + "SearchSessionSparkApplicationSqlQueriesResponse": { + "description": "List of all queries for a Spark Application.", + "id": "SearchSessionSparkApplicationSqlQueriesResponse", + "properties": { + "nextPageToken": { + "description": "This token is included in the response if there are more results to fetch. To fetch additional results, provide this value as the page_token in a subsequent SearchSessionSparkApplicationSqlQueriesRequest.", + "type": "string" }, - "instanceSelectionResults": { - "description": "Output only. A list of instance selection results in the group.", + "sparkApplicationSqlQueries": { + "description": "Output only. SQL Execution Data", "items": { - "$ref": "InstanceSelectionResult" + "$ref": "SqlExecutionUiData" }, "readOnly": true, "type": "array" @@ -4607,1277 +9686,1124 @@ }, "type": "object" }, - "InstanceGroupAutoscalingPolicyConfig": { - "description": "Configuration for the size bounds of an instance group, including its proportional size to other groups.", - "id": "InstanceGroupAutoscalingPolicyConfig", + "SearchSessionSparkApplicationStageAttemptTasksResponse": { + "description": "List of tasks for a stage of a Spark Application", + "id": "SearchSessionSparkApplicationStageAttemptTasksResponse", "properties": { - "maxInstances": { - "description": "Required. Maximum number of instances for this group. Required for primary workers. Note that by default, clusters will not use secondary workers. Required for secondary workers if the minimum secondary instances is set.Primary workers - Bounds: [min_instances, ). Secondary workers - Bounds: [min_instances, ). Default: 0.", - "format": "int32", - "type": "integer" - }, - "minInstances": { - "description": "Optional. Minimum number of instances for this group.Primary workers - Bounds: 2, max_instances. Default: 2. Secondary workers - Bounds: 0, max_instances. Default: 0.", - "format": "int32", - "type": "integer" + "nextPageToken": { + "description": "This token is included in the response if there are more results to fetch. To fetch additional results, provide this value as the page_token in a subsequent SearchSessionSparkApplicationStageAttemptTasksRequest.", + "type": "string" }, - "weight": { - "description": "Optional. Weight for the instance group, which is used to determine the fraction of total workers in the cluster from this instance group. For example, if primary workers have weight 2, and secondary workers have weight 1, the cluster will have approximately 2 primary workers for each secondary worker.The cluster may not reach the specified balance if constrained by min/max bounds or other autoscaling settings. For example, if max_instances for secondary workers is 0, then only primary workers will be added. The cluster can also be out of balance when created.If weight is not set on any instance group, the cluster will default to equal weight for all groups: the cluster will attempt to maintain an equal number of workers in each group within the configured size bounds for each group. If weight is set for one group only, the cluster will default to zero weight on the unset group. For example if weight is set only on primary workers, the cluster will use primary workers only and no secondary workers.", - "format": "int32", - "type": "integer" + "sparkApplicationStageAttemptTasks": { + "description": "Output only. Data corresponding to tasks created by spark.", + "items": { + "$ref": "TaskData" + }, + "readOnly": true, + "type": "array" } }, "type": "object" }, - "InstanceGroupConfig": { - "description": "The config settings for Compute Engine resources in an instance group, such as a master or worker group.", - "id": "InstanceGroupConfig", + "SearchSessionSparkApplicationStageAttemptsResponse": { + "description": "A list of Stage Attempts for a Stage of a Spark Application.", + "id": "SearchSessionSparkApplicationStageAttemptsResponse", "properties": { - "accelerators": { - "description": "Optional. The Compute Engine accelerator configuration for these instances.", + "nextPageToken": { + "description": "This token is included in the response if there are more results to fetch. To fetch additional results, provide this value as the page_token in a subsequent SearchSessionSparkApplicationStageAttemptsRequest.", + "type": "string" + }, + "sparkApplicationStageAttempts": { + "description": "Output only. Data corresponding to a stage attempts", "items": { - "$ref": "AcceleratorConfig" + "$ref": "StageData" }, + "readOnly": true, "type": "array" - }, - "diskConfig": { - "$ref": "DiskConfig", - "description": "Optional. Disk option config settings." - }, - "imageUri": { - "description": "Optional. The Compute Engine image resource used for cluster instances.The URI can represent an image or image family.Image examples: https://www.googleapis.com/compute/v1/projects/[project_id]/global/images/[image-id] projects/[project_id]/global/images/[image-id] image-idImage family examples. Dataproc will use the most recent image from the family: https://www.googleapis.com/compute/v1/projects/[project_id]/global/images/family/[custom-image-family-name] projects/[project_id]/global/images/family/[custom-image-family-name]If the URI is unspecified, it will be inferred from SoftwareConfig.image_version or the system default.", + } + }, + "type": "object" + }, + "SearchSessionSparkApplicationStagesResponse": { + "description": "A list of stages associated with a Spark Application.", + "id": "SearchSessionSparkApplicationStagesResponse", + "properties": { + "nextPageToken": { + "description": "This token is included in the response if there are more results to fetch. To fetch additional results, provide this value as the page_token in a subsequent SearchSessionSparkApplicationStages.", "type": "string" }, - "instanceFlexibilityPolicy": { - "$ref": "InstanceFlexibilityPolicy", - "description": "Optional. Instance flexibility Policy allowing a mixture of VM shapes and provisioning models." - }, - "instanceNames": { - "description": "Output only. The list of instance names. Dataproc derives the names from cluster_name, num_instances, and the instance group.", + "sparkApplicationStages": { + "description": "Output only. Data corresponding to a stage.", "items": { - "type": "string" + "$ref": "StageData" }, "readOnly": true, "type": "array" + } + }, + "type": "object" + }, + "SearchSessionSparkApplicationsResponse": { + "description": "A list of summary of Spark Applications", + "id": "SearchSessionSparkApplicationsResponse", + "properties": { + "nextPageToken": { + "description": "This token is included in the response if there are more results to fetch. To fetch additional results, provide this value as the page_token in a subsequent SearchSessionSparkApplicationsRequest.", + "type": "string" }, - "instanceReferences": { - "description": "Output only. List of references to Compute Engine instances.", + "sparkApplications": { + "description": "Output only. High level information corresponding to an application.", "items": { - "$ref": "InstanceReference" + "$ref": "SparkApplication" }, "readOnly": true, "type": "array" - }, - "isPreemptible": { - "description": "Output only. Specifies that this instance group contains preemptible instances.", - "readOnly": true, - "type": "boolean" - }, - "machineTypeUri": { - "description": "Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples: https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]/machineTypes/n1-standard-2 projects/[project_id]/zones/[zone]/machineTypes/n1-standard-2 n1-standard-2Auto Zone Exception: If you are using the Dataproc Auto Zone Placement (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the machine type resource, for example, n1-standard-2.", - "type": "string" - }, - "managedGroupConfig": { - "$ref": "ManagedGroupConfig", - "description": "Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.", - "readOnly": true - }, - "minCpuPlatform": { - "description": "Optional. Specifies the minimum cpu platform for the Instance Group. See Dataproc -\u003e Minimum CPU Platform (https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).", + } + }, + "type": "object" + }, + "SearchSparkApplicationExecutorStageSummaryResponse": { + "description": "List of Executors associated with a Spark Application Stage.", + "id": "SearchSparkApplicationExecutorStageSummaryResponse", + "properties": { + "nextPageToken": { + "description": "This token is included in the response if there are more results to fetch. To fetch additional results, provide this value as the page_token in a subsequent SearchSparkApplicationExecutorsListRequest.", "type": "string" }, - "minNumInstances": { - "description": "Optional. The minimum number of primary worker instances to create. If min_num_instances is set, cluster creation will succeed if the number of primary workers created is at least equal to the min_num_instances number.Example: Cluster creation request with num_instances = 5 and min_num_instances = 3: If 4 VMs are created and 1 instance fails, the failed VM is deleted. The cluster is resized to 4 instances and placed in a RUNNING state. If 2 instances are created and 3 instances fail, the cluster in placed in an ERROR state. The failed VMs are not deleted.", - "format": "int32", - "type": "integer" - }, - "numInstances": { - "description": "Optional. The number of VM instances in the instance group. For HA cluster master_config groups, must be set to 3. For standard cluster master_config groups, must be set to 1.", - "format": "int32", - "type": "integer" - }, - "preemptibility": { - "description": "Optional. Specifies the preemptibility of the instance group.The default value for master and worker groups is NON_PREEMPTIBLE. This default cannot be changed.The default value for secondary instances is PREEMPTIBLE.", - "enum": [ - "PREEMPTIBILITY_UNSPECIFIED", - "NON_PREEMPTIBLE", - "PREEMPTIBLE", - "SPOT" - ], - "enumDescriptions": [ - "Preemptibility is unspecified, the system will choose the appropriate setting for each instance group.", - "Instances are non-preemptible.This option is allowed for all instance groups and is the only valid value for Master and Worker instance groups.", - "Instances are preemptible (https://cloud.google.com/compute/docs/instances/preemptible).This option is allowed only for secondary worker (https://cloud.google.com/dataproc/docs/concepts/compute/secondary-vms) groups.", - "Instances are Spot VMs (https://cloud.google.com/compute/docs/instances/spot).This option is allowed only for secondary worker (https://cloud.google.com/dataproc/docs/concepts/compute/secondary-vms) groups. Spot VMs are the latest version of preemptible VMs (https://cloud.google.com/compute/docs/instances/preemptible), and provide additional features." - ], + "sparkApplicationStageExecutors": { + "description": "Details about executors used by the application stage.", + "items": { + "$ref": "ExecutorStageSummary" + }, + "type": "array" + } + }, + "type": "object" + }, + "SearchSparkApplicationExecutorsResponse": { + "description": "List of Executors associated with a Spark Application.", + "id": "SearchSparkApplicationExecutorsResponse", + "properties": { + "nextPageToken": { + "description": "This token is included in the response if there are more results to fetch. To fetch additional results, provide this value as the page_token in a subsequent SearchSparkApplicationExecutorsListRequest.", "type": "string" }, - "startupConfig": { - "$ref": "StartupConfig", - "description": "Optional. Configuration to handle the startup of instances during cluster create and update process." + "sparkApplicationExecutors": { + "description": "Details about executors used by the application.", + "items": { + "$ref": "ExecutorSummary" + }, + "type": "array" } }, "type": "object" }, - "InstanceReference": { - "description": "A reference to a Compute Engine instance.", - "id": "InstanceReference", + "SearchSparkApplicationJobsResponse": { + "description": "A list of Jobs associated with a Spark Application.", + "id": "SearchSparkApplicationJobsResponse", "properties": { - "instanceId": { - "description": "The unique identifier of the Compute Engine instance.", - "type": "string" - }, - "instanceName": { - "description": "The user-friendly name of the Compute Engine instance.", + "nextPageToken": { + "description": "This token is included in the response if there are more results to fetch. To fetch additional results, provide this value as the page_token in a subsequent SearchSparkApplicationJobsRequest.", "type": "string" }, - "publicEciesKey": { - "description": "The public ECIES key used for sharing data with this instance.", + "sparkApplicationJobs": { + "description": "Output only. Data corresponding to a spark job.", + "items": { + "$ref": "JobData" + }, + "readOnly": true, + "type": "array" + } + }, + "type": "object" + }, + "SearchSparkApplicationSqlQueriesResponse": { + "description": "List of all queries for a Spark Application.", + "id": "SearchSparkApplicationSqlQueriesResponse", + "properties": { + "nextPageToken": { + "description": "This token is included in the response if there are more results to fetch. To fetch additional results, provide this value as the page_token in a subsequent SearchSparkApplicationSqlQueriesRequest.", "type": "string" }, - "publicKey": { - "description": "The public RSA key used for sharing data with this instance.", - "type": "string" + "sparkApplicationSqlQueries": { + "description": "Output only. SQL Execution Data", + "items": { + "$ref": "SqlExecutionUiData" + }, + "readOnly": true, + "type": "array" } }, "type": "object" }, - "InstanceSelection": { - "description": "Defines machines types and a rank to which the machines types belong.", - "id": "InstanceSelection", + "SearchSparkApplicationStageAttemptTasksResponse": { + "description": "List of tasks for a stage of a Spark Application", + "id": "SearchSparkApplicationStageAttemptTasksResponse", "properties": { - "machineTypes": { - "description": "Optional. Full machine-type names, e.g. \"n1-standard-16\".", + "nextPageToken": { + "description": "This token is included in the response if there are more results to fetch. To fetch additional results, provide this value as the page_token in a subsequent ListSparkApplicationStageAttemptTasksRequest.", + "type": "string" + }, + "sparkApplicationStageAttemptTasks": { + "description": "Output only. Data corresponding to tasks created by spark.", "items": { - "type": "string" + "$ref": "TaskData" }, + "readOnly": true, "type": "array" - }, - "rank": { - "description": "Optional. Preference of this instance selection. Lower number means higher preference. Dataproc will first try to create a VM based on the machine-type with priority rank and fallback to next rank based on availability. Machine types and instance selections with the same priority have the same preference.", - "format": "int32", - "type": "integer" } }, "type": "object" }, - "InstanceSelectionResult": { - "description": "Defines a mapping from machine types to the number of VMs that are created with each machine type.", - "id": "InstanceSelectionResult", + "SearchSparkApplicationStageAttemptsResponse": { + "description": "A list of Stage Attempts for a Stage of a Spark Application.", + "id": "SearchSparkApplicationStageAttemptsResponse", "properties": { - "machineType": { - "description": "Output only. Full machine-type names, e.g. \"n1-standard-16\".", - "readOnly": true, + "nextPageToken": { + "description": "This token is included in the response if there are more results to fetch. To fetch additional results, provide this value as the page_token in a subsequent ListSparkApplicationStageAttemptsRequest.", "type": "string" }, - "vmCount": { - "description": "Output only. Number of VM provisioned with the machine_type.", - "format": "int32", + "sparkApplicationStageAttempts": { + "description": "Output only. Data corresponding to a stage attempts", + "items": { + "$ref": "StageData" + }, "readOnly": true, - "type": "integer" + "type": "array" } }, "type": "object" }, - "InstantiateWorkflowTemplateRequest": { - "description": "A request to instantiate a workflow template.", - "id": "InstantiateWorkflowTemplateRequest", + "SearchSparkApplicationStagesResponse": { + "description": "A list of stages associated with a Spark Application.", + "id": "SearchSparkApplicationStagesResponse", "properties": { - "parameters": { - "additionalProperties": { - "type": "string" - }, - "description": "Optional. Map from parameter names to values that should be used for those parameters. Values may not exceed 1000 characters.", - "type": "object" - }, - "requestId": { - "description": "Optional. A tag that prevents multiple concurrent workflow instances with the same tag from running. This mitigates risk of concurrent instances started due to retries.It is recommended to always set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The tag must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", + "nextPageToken": { + "description": "This token is included in the response if there are more results to fetch. To fetch additional results, provide this value as the page_token in a subsequent SearchSparkApplicationStages.", "type": "string" }, - "version": { - "description": "Optional. The version of workflow template to instantiate. If specified, the workflow will be instantiated only if the current version of the workflow template has the supplied version.This option cannot be used to instantiate a previous version of workflow template.", - "format": "int32", - "type": "integer" + "sparkApplicationStages": { + "description": "Output only. Data corresponding to a stage.", + "items": { + "$ref": "StageData" + }, + "readOnly": true, + "type": "array" } }, "type": "object" }, - "Interval": { - "description": "Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time.", - "id": "Interval", + "SearchSparkApplicationsResponse": { + "description": "A list of summary of Spark Applications", + "id": "SearchSparkApplicationsResponse", "properties": { - "endTime": { - "description": "Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.", - "format": "google-datetime", + "nextPageToken": { + "description": "This token is included in the response if there are more results to fetch. To fetch additional results, provide this value as the page_token in a subsequent SearchSparkApplicationsRequest.", "type": "string" }, - "startTime": { - "description": "Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.", - "format": "google-datetime", - "type": "string" + "sparkApplications": { + "description": "Output only. High level information corresponding to an application.", + "items": { + "$ref": "SparkApplication" + }, + "readOnly": true, + "type": "array" } }, "type": "object" }, - "Job": { - "description": "A Dataproc job resource.", - "id": "Job", + "SecurityConfig": { + "description": "Security related configuration, including encryption, Kerberos, etc.", + "id": "SecurityConfig", "properties": { - "done": { - "description": "Output only. Indicates whether the job is completed. If the value is false, the job is still in progress. If true, the job is completed, and status.state field will indicate if it was successful, failed, or cancelled.", - "readOnly": true, - "type": "boolean" + "identityConfig": { + "$ref": "IdentityConfig", + "description": "Optional. Identity related configuration, including service account based secure multi-tenancy user mappings." }, - "driverControlFilesUri": { - "description": "Output only. If present, the location of miscellaneous control files which can be used as part of job setup and handling. If not present, control files might be placed in the same location as driver_output_uri.", + "kerberosConfig": { + "$ref": "KerberosConfig", + "description": "Optional. Kerberos related configuration." + } + }, + "type": "object" + }, + "Session": { + "description": "A representation of a session.", + "id": "Session", + "properties": { + "createTime": { + "description": "Output only. The time when the session was created.", + "format": "google-datetime", "readOnly": true, "type": "string" }, - "driverOutputResourceUri": { - "description": "Output only. A URI pointing to the location of the stdout of the job's driver program.", + "creator": { + "description": "Output only. The email address of the user who created the session.", "readOnly": true, "type": "string" }, - "driverSchedulingConfig": { - "$ref": "DriverSchedulingConfig", - "description": "Optional. Driver scheduling configuration." - }, - "flinkJob": { - "$ref": "FlinkJob", - "description": "Optional. Job is a Flink job." - }, - "hadoopJob": { - "$ref": "HadoopJob", - "description": "Optional. Job is a Hadoop job." - }, - "hiveJob": { - "$ref": "HiveJob", - "description": "Optional. Job is a Hive job." + "environmentConfig": { + "$ref": "EnvironmentConfig", + "description": "Optional. Environment configuration for the session execution." }, - "jobUuid": { - "description": "Output only. A UUID that uniquely identifies a job within the project over time. This is in contrast to a user-settable reference.job_id that might be reused over time.", - "readOnly": true, - "type": "string" + "jupyterSession": { + "$ref": "JupyterConfig", + "description": "Optional. Jupyter session config." }, "labels": { "additionalProperties": { "type": "string" }, - "description": "Optional. The labels to associate with this job. Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values can be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a job.", + "description": "Optional. The labels to associate with the session. Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a session.", "type": "object" }, - "pigJob": { - "$ref": "PigJob", - "description": "Optional. Job is a Pig job." - }, - "placement": { - "$ref": "JobPlacement", - "description": "Required. Job information, including how, when, and where to run the job." - }, - "prestoJob": { - "$ref": "PrestoJob", - "description": "Optional. Job is a Presto job." - }, - "pysparkJob": { - "$ref": "PySparkJob", - "description": "Optional. Job is a PySpark job." - }, - "reference": { - "$ref": "JobReference", - "description": "Optional. The fully qualified reference to the job, which can be used to obtain the equivalent REST path of the job resource. If this property is not specified when a job is created, the server generates a job_id." - }, - "scheduling": { - "$ref": "JobScheduling", - "description": "Optional. Job scheduling configuration." + "name": { + "description": "Required. The resource name of the session.", + "type": "string" }, - "sparkJob": { - "$ref": "SparkJob", - "description": "Optional. Job is a Spark job." + "runtimeConfig": { + "$ref": "RuntimeConfig", + "description": "Optional. Runtime configuration for the session execution." }, - "sparkRJob": { - "$ref": "SparkRJob", - "description": "Optional. Job is a SparkR job." + "runtimeInfo": { + "$ref": "RuntimeInfo", + "description": "Output only. Runtime information about session execution.", + "readOnly": true }, - "sparkSqlJob": { - "$ref": "SparkSqlJob", - "description": "Optional. Job is a SparkSql job." + "sessionTemplate": { + "description": "Optional. The session template used by the session.Only resource names, including project ID and location, are valid.Example: * https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/sessionTemplates/[template_id] * projects/[project_id]/locations/[dataproc_region]/sessionTemplates/[template_id]The template must be in the same project and Dataproc region as the session.", + "type": "string" }, - "status": { - "$ref": "JobStatus", - "description": "Output only. The job status. Additional application-specific status information might be contained in the type_job and yarn_applications fields.", - "readOnly": true + "sparkConnectSession": { + "$ref": "SparkConnectConfig", + "description": "Optional. Spark connect session config." }, - "statusHistory": { - "description": "Output only. The previous job status.", - "items": { - "$ref": "JobStatus" - }, + "state": { + "description": "Output only. A state of the session.", + "enum": [ + "STATE_UNSPECIFIED", + "CREATING", + "ACTIVE", + "TERMINATING", + "TERMINATED", + "FAILED" + ], + "enumDescriptions": [ + "The session state is unknown.", + "The session is created prior to running.", + "The session is running.", + "The session is terminating.", + "The session is terminated successfully.", + "The session is no longer running due to an error." + ], "readOnly": true, - "type": "array" - }, - "trinoJob": { - "$ref": "TrinoJob", - "description": "Optional. Job is a Trino job." + "type": "string" }, - "yarnApplications": { - "description": "Output only. The collection of YARN applications spun up by this job.Beta Feature: This report is available for testing purposes only. It might be changed before final release.", + "stateHistory": { + "description": "Output only. Historical state information for the session.", "items": { - "$ref": "YarnApplication" + "$ref": "SessionStateHistory" }, "readOnly": true, - "type": "array" - } - }, - "type": "object" - }, - "JobMetadata": { - "description": "Job Operation metadata.", - "id": "JobMetadata", - "properties": { - "jobId": { - "description": "Output only. The job id.", - "readOnly": true, - "type": "string" + "type": "array" }, - "operationType": { - "description": "Output only. Operation type.", + "stateMessage": { + "description": "Output only. Session state details, such as the failure description if the state is FAILED.", "readOnly": true, "type": "string" }, - "startTime": { - "description": "Output only. Job submission time.", + "stateTime": { + "description": "Output only. The time when the session entered the current state.", "format": "google-datetime", "readOnly": true, "type": "string" }, - "status": { - "$ref": "JobStatus", - "description": "Output only. Most recent job status.", - "readOnly": true - } - }, - "type": "object" - }, - "JobPlacement": { - "description": "Dataproc job config.", - "id": "JobPlacement", - "properties": { - "clusterLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "Optional. Cluster labels to identify a cluster where the job will be submitted.", - "type": "object" - }, - "clusterName": { - "description": "Required. The name of the cluster where the job will be submitted.", + "user": { + "description": "Optional. The email address of the user who owns the session.", "type": "string" }, - "clusterUuid": { - "description": "Output only. A cluster UUID generated by the Dataproc service when the job is submitted.", + "uuid": { + "description": "Output only. A session UUID (Unique Universal Identifier). The service generates this value when it creates the session.", "readOnly": true, "type": "string" } }, "type": "object" }, - "JobReference": { - "description": "Encapsulates the full scoping used to reference a job.", - "id": "JobReference", + "SessionOperationMetadata": { + "description": "Metadata describing the Session operation.", + "id": "SessionOperationMetadata", "properties": { - "jobId": { - "description": "Optional. The job ID, which must be unique within the project.The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), or hyphens (-). The maximum length is 100 characters.If not specified by the caller, the job ID will be provided by the server.", + "createTime": { + "description": "The time when the operation was created.", + "format": "google-datetime", "type": "string" }, - "projectId": { - "description": "Optional. The ID of the Google Cloud Platform project that the job belongs to. If specified, must match the request project ID.", + "description": { + "description": "Short description of the operation.", "type": "string" - } - }, - "type": "object" - }, - "JobScheduling": { - "description": "Job scheduling options.", - "id": "JobScheduling", - "properties": { - "maxFailuresPerHour": { - "description": "Optional. Maximum number of times per hour a driver can be restarted as a result of driver exiting with non-zero code before job is reported failed.A job might be reported as thrashing if the driver exits with a non-zero code four times within a 10-minute window.Maximum value is 10.Note: This restartable job option is not supported in Dataproc workflow templates (https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template).", - "format": "int32", - "type": "integer" }, - "maxFailuresTotal": { - "description": "Optional. Maximum total number of times a driver can be restarted as a result of the driver exiting with a non-zero code. After the maximum number is reached, the job will be reported as failed.Maximum value is 240.Note: Currently, this restartable job option is not supported in Dataproc workflow templates (https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template).", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "JobStatus": { - "description": "Dataproc job status.", - "id": "JobStatus", - "properties": { - "details": { - "description": "Optional. Output only. Job state details, such as an error description if the state is ERROR.", - "readOnly": true, + "doneTime": { + "description": "The time when the operation was finished.", + "format": "google-datetime", "type": "string" }, - "state": { - "description": "Output only. A state message specifying the overall job state.", + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Labels associated with the operation.", + "type": "object" + }, + "operationType": { + "description": "The operation type.", "enum": [ - "STATE_UNSPECIFIED", - "PENDING", - "SETUP_DONE", - "RUNNING", - "CANCEL_PENDING", - "CANCEL_STARTED", - "CANCELLED", - "DONE", - "ERROR", - "ATTEMPT_FAILURE" + "SESSION_OPERATION_TYPE_UNSPECIFIED", + "CREATE", + "TERMINATE", + "DELETE" ], "enumDescriptions": [ - "The job state is unknown.", - "The job is pending; it has been submitted, but is not yet running.", - "Job has been received by the service and completed initial setup; it will soon be submitted to the cluster.", - "The job is running on the cluster.", - "A CancelJob request has been received, but is pending.", - "Transient in-flight resources have been canceled, and the request to cancel the running job has been issued to the cluster.", - "The job cancellation was successful.", - "The job has completed successfully.", - "The job has completed, but encountered an error.", - "Job attempt has failed. The detail field contains failure details for this attempt.Applies to restartable jobs only." + "Session operation type is unknown.", + "Create Session operation type.", + "Terminate Session operation type.", + "Delete Session operation type." ], - "readOnly": true, "type": "string" }, - "stateStartTime": { - "description": "Output only. The time when this state was entered.", - "format": "google-datetime", - "readOnly": true, + "session": { + "description": "Name of the session for the operation.", "type": "string" }, - "substate": { - "description": "Output only. Additional state information, which includes status reported by the agent.", - "enum": [ - "UNSPECIFIED", - "SUBMITTED", - "QUEUED", - "STALE_STATUS" - ], - "enumDescriptions": [ - "The job substate is unknown.", - "The Job is submitted to the agent.Applies to RUNNING state.", - "The Job has been received and is awaiting execution (it might be waiting for a condition to be met). See the \"details\" field for the reason for the delay.Applies to RUNNING state.", - "The agent-reported status is out of date, which can be caused by a loss of communication between the agent and Dataproc. If the agent does not send a timely update, the job will fail.Applies to RUNNING state." - ], - "readOnly": true, + "sessionUuid": { + "description": "Session UUID for the operation.", "type": "string" + }, + "warnings": { + "description": "Warnings encountered during operation execution.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" }, - "JupyterConfig": { - "description": "Jupyter configuration for an interactive session.", - "id": "JupyterConfig", + "SessionStateHistory": { + "description": "Historical state information.", + "id": "SessionStateHistory", "properties": { - "displayName": { - "description": "Optional. Display name, shown in the Jupyter kernelspec card.", - "type": "string" - }, - "kernel": { - "description": "Optional. Kernel", + "state": { + "description": "Output only. The state of the session at this point in the session history.", "enum": [ - "KERNEL_UNSPECIFIED", - "PYTHON", - "SCALA" + "STATE_UNSPECIFIED", + "CREATING", + "ACTIVE", + "TERMINATING", + "TERMINATED", + "FAILED" ], "enumDescriptions": [ - "The kernel is unknown.", - "Python kernel.", - "Scala kernel." + "The session state is unknown.", + "The session is created prior to running.", + "The session is running.", + "The session is terminating.", + "The session is terminated successfully.", + "The session is no longer running due to an error." ], - "type": "string" - } - }, - "type": "object" - }, - "KerberosConfig": { - "description": "Specifies Kerberos related configuration.", - "id": "KerberosConfig", - "properties": { - "crossRealmTrustAdminServer": { - "description": "Optional. The admin server (IP or hostname) for the remote trusted realm in a cross realm trust relationship.", - "type": "string" - }, - "crossRealmTrustKdc": { - "description": "Optional. The KDC (IP or hostname) for the remote trusted realm in a cross realm trust relationship.", - "type": "string" - }, - "crossRealmTrustRealm": { - "description": "Optional. The remote realm the Dataproc on-cluster KDC will trust, should the user enable cross realm trust.", - "type": "string" - }, - "crossRealmTrustSharedPasswordUri": { - "description": "Optional. The Cloud Storage URI of a KMS encrypted file containing the shared password between the on-cluster Kerberos realm and the remote trusted realm, in a cross realm trust relationship.", - "type": "string" - }, - "enableKerberos": { - "description": "Optional. Flag to indicate whether to Kerberize the cluster (default: false). Set this field to true to enable Kerberos on a cluster.", - "type": "boolean" - }, - "kdcDbKeyUri": { - "description": "Optional. The Cloud Storage URI of a KMS encrypted file containing the master key of the KDC database.", - "type": "string" - }, - "keyPasswordUri": { - "description": "Optional. The Cloud Storage URI of a KMS encrypted file containing the password to the user provided key. For the self-signed certificate, this password is generated by Dataproc.", - "type": "string" - }, - "keystorePasswordUri": { - "description": "Optional. The Cloud Storage URI of a KMS encrypted file containing the password to the user provided keystore. For the self-signed certificate, this password is generated by Dataproc.", - "type": "string" - }, - "keystoreUri": { - "description": "Optional. The Cloud Storage URI of the keystore file used for SSL encryption. If not provided, Dataproc will provide a self-signed certificate.", - "type": "string" - }, - "kmsKeyUri": { - "description": "Optional. The URI of the KMS key used to encrypt sensitive files.", - "type": "string" - }, - "realm": { - "description": "Optional. The name of the on-cluster Kerberos realm. If not specified, the uppercased domain of hostnames will be the realm.", - "type": "string" - }, - "rootPrincipalPasswordUri": { - "description": "Optional. The Cloud Storage URI of a KMS encrypted file containing the root principal password.", + "readOnly": true, "type": "string" }, - "tgtLifetimeHours": { - "description": "Optional. The lifetime of the ticket granting ticket, in hours. If not specified, or user specifies 0, then default value 10 will be used.", - "format": "int32", - "type": "integer" - }, - "truststorePasswordUri": { - "description": "Optional. The Cloud Storage URI of a KMS encrypted file containing the password to the user provided truststore. For the self-signed certificate, this password is generated by Dataproc.", + "stateMessage": { + "description": "Output only. Details about the state at this point in the session history.", + "readOnly": true, "type": "string" }, - "truststoreUri": { - "description": "Optional. The Cloud Storage URI of the truststore file used for SSL encryption. If not provided, Dataproc will provide a self-signed certificate.", + "stateStartTime": { + "description": "Output only. The time when the session entered the historical state.", + "format": "google-datetime", + "readOnly": true, "type": "string" } }, "type": "object" }, - "KubernetesClusterConfig": { - "description": "The configuration for running the Dataproc cluster on Kubernetes.", - "id": "KubernetesClusterConfig", + "SessionTemplate": { + "description": "A representation of a session template.", + "id": "SessionTemplate", "properties": { - "gkeClusterConfig": { - "$ref": "GkeClusterConfig", - "description": "Required. The configuration for running the Dataproc cluster on GKE." + "createTime": { + "description": "Output only. The time when the template was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" }, - "kubernetesNamespace": { - "description": "Optional. A namespace within the Kubernetes cluster to deploy into. If this namespace does not exist, it is created. If it exists, Dataproc verifies that another Dataproc VirtualCluster is not installed into it. If not specified, the name of the Dataproc Cluster is used.", + "creator": { + "description": "Output only. The email address of the user who created the template.", + "readOnly": true, "type": "string" }, - "kubernetesSoftwareConfig": { - "$ref": "KubernetesSoftwareConfig", - "description": "Optional. The software configuration for this Dataproc cluster running on Kubernetes." - } - }, - "type": "object" - }, - "KubernetesSoftwareConfig": { - "description": "The software configuration for this Dataproc cluster running on Kubernetes.", - "id": "KubernetesSoftwareConfig", - "properties": { - "componentVersion": { - "additionalProperties": { - "type": "string" - }, - "description": "The components that should be installed in this Dataproc cluster. The key must be a string from the KubernetesComponent enumeration. The value is the version of the software to be installed. At least one entry must be specified.", - "type": "object" + "description": { + "description": "Optional. Brief description of the template.", + "type": "string" }, - "properties": { + "environmentConfig": { + "$ref": "EnvironmentConfig", + "description": "Optional. Environment configuration for session execution." + }, + "jupyterSession": { + "$ref": "JupyterConfig", + "description": "Optional. Jupyter session config." + }, + "labels": { "additionalProperties": { "type": "string" }, - "description": "The properties to set on daemon config files.Property keys are specified in prefix:property format, for example spark:spark.kubernetes.container.image. The following are supported prefixes and their mappings: spark: spark-defaults.confFor more information, see Cluster properties (https://cloud.google.com/dataproc/docs/concepts/cluster-properties).", + "description": "Optional. Labels to associate with sessions created using this template. Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values can be empty, but, if present, must contain 1 to 63 characters and conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a session.", "type": "object" - } - }, - "type": "object" - }, - "LifecycleConfig": { - "description": "Specifies the cluster auto-delete schedule configuration.", - "id": "LifecycleConfig", - "properties": { - "autoDeleteTime": { - "description": "Optional. The time when cluster will be auto-deleted (see JSON representation of Timestamp (https://developers.google.com/protocol-buffers/docs/proto3#json)).", - "format": "google-datetime", - "type": "string" }, - "autoDeleteTtl": { - "description": "Optional. The lifetime duration of cluster. The cluster will be auto-deleted at the end of this period. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)).", - "format": "google-duration", + "name": { + "description": "Required. The resource name of the session template.", "type": "string" }, - "idleDeleteTtl": { - "description": "Optional. The duration to keep the cluster alive while idling (when no jobs are running). Passing this threshold will cause the cluster to be deleted. Minimum value is 5 minutes; maximum value is 14 days (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)).", - "format": "google-duration", - "type": "string" + "runtimeConfig": { + "$ref": "RuntimeConfig", + "description": "Optional. Runtime configuration for session execution." }, - "idleStartTime": { - "description": "Output only. The time when cluster became idle (most recent job finished) and became eligible for deletion due to idleness (see JSON representation of Timestamp (https://developers.google.com/protocol-buffers/docs/proto3#json)).", + "sparkConnectSession": { + "$ref": "SparkConnectConfig", + "description": "Optional. Spark connect session config." + }, + "updateTime": { + "description": "Output only. The time the template was last updated.", "format": "google-datetime", "readOnly": true, "type": "string" + }, + "uuid": { + "description": "Output only. A session template UUID (Unique Universal Identifier). The service generates this value when it creates the session template.", + "readOnly": true, + "type": "string" } }, "type": "object" }, - "ListAutoscalingPoliciesResponse": { - "description": "A response to a request to list autoscaling policies in a project.", - "id": "ListAutoscalingPoliciesResponse", + "SetIamPolicyRequest": { + "description": "Request message for SetIamPolicy method.", + "id": "SetIamPolicyRequest", "properties": { - "nextPageToken": { - "description": "Output only. This token is included in the response if there are more results to fetch.", - "readOnly": true, - "type": "string" - }, - "policies": { - "description": "Output only. Autoscaling policies list.", - "items": { - "$ref": "AutoscalingPolicy" - }, - "readOnly": true, - "type": "array" + "policy": { + "$ref": "Policy", + "description": "REQUIRED: The complete policy to be applied to the resource. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Google Cloud services (such as Projects) might reject them." } }, "type": "object" }, - "ListBatchesResponse": { - "description": "A list of batch workloads.", - "id": "ListBatchesResponse", + "ShieldedInstanceConfig": { + "description": "Shielded Instance Config for clusters using Compute Engine Shielded VMs (https://cloud.google.com/security/shielded-cloud/shielded-vm).", + "id": "ShieldedInstanceConfig", "properties": { - "batches": { - "description": "Output only. The batches from the specified collection.", - "items": { - "$ref": "Batch" - }, - "readOnly": true, - "type": "array" + "enableIntegrityMonitoring": { + "description": "Optional. Defines whether instances have integrity monitoring enabled.", + "type": "boolean" }, - "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" + "enableSecureBoot": { + "description": "Optional. Defines whether instances have Secure Boot enabled.", + "type": "boolean" }, - "unreachable": { - "description": "Output only. List of Batches that could not be included in the response. Attempting to get one of these resources may indicate why it was not included in the list response.", - "items": { - "type": "string" - }, - "readOnly": true, - "type": "array" + "enableVtpm": { + "description": "Optional. Defines whether instances have the vTPM enabled.", + "type": "boolean" } }, "type": "object" }, - "ListClustersResponse": { - "description": "The list of all clusters in a project.", - "id": "ListClustersResponse", + "ShufflePushReadMetrics": { + "id": "ShufflePushReadMetrics", "properties": { - "clusters": { - "description": "Output only. The clusters in the project.", - "items": { - "$ref": "Cluster" - }, - "readOnly": true, - "type": "array" + "corruptMergedBlockChunks": { + "format": "int64", + "type": "string" }, - "nextPageToken": { - "description": "Output only. This token is included in the response if there are more results to fetch. To fetch additional results, provide this value as the page_token in a subsequent ListClustersRequest.", - "readOnly": true, + "localMergedBlocksFetched": { + "format": "int64", + "type": "string" + }, + "localMergedBytesRead": { + "format": "int64", + "type": "string" + }, + "localMergedChunksFetched": { + "format": "int64", + "type": "string" + }, + "mergedFetchFallbackCount": { + "format": "int64", + "type": "string" + }, + "remoteMergedBlocksFetched": { + "format": "int64", + "type": "string" + }, + "remoteMergedBytesRead": { + "format": "int64", + "type": "string" + }, + "remoteMergedChunksFetched": { + "format": "int64", + "type": "string" + }, + "remoteMergedReqsDuration": { + "format": "int64", "type": "string" } }, "type": "object" }, - "ListJobsResponse": { - "description": "A list of jobs in a project.", - "id": "ListJobsResponse", + "ShufflePushReadQuantileMetrics": { + "id": "ShufflePushReadQuantileMetrics", "properties": { - "jobs": { - "description": "Output only. Jobs list.", - "items": { - "$ref": "Job" - }, - "readOnly": true, - "type": "array" + "corruptMergedBlockChunks": { + "$ref": "Quantiles" }, - "nextPageToken": { - "description": "Optional. This token is included in the response if there are more results to fetch. To fetch additional results, provide this value as the page_token in a subsequent ListJobsRequest.", - "type": "string" + "localMergedBlocksFetched": { + "$ref": "Quantiles" }, - "unreachable": { - "description": "Output only. List of jobs with kms_key-encrypted parameters that could not be decrypted. A response to a jobs.get request may indicate the reason for the decryption failure for a specific job.", - "items": { - "type": "string" - }, - "readOnly": true, - "type": "array" + "localMergedBytesRead": { + "$ref": "Quantiles" + }, + "localMergedChunksFetched": { + "$ref": "Quantiles" + }, + "mergedFetchFallbackCount": { + "$ref": "Quantiles" + }, + "remoteMergedBlocksFetched": { + "$ref": "Quantiles" + }, + "remoteMergedBytesRead": { + "$ref": "Quantiles" + }, + "remoteMergedChunksFetched": { + "$ref": "Quantiles" + }, + "remoteMergedReqsDuration": { + "$ref": "Quantiles" } }, "type": "object" }, - "ListOperationsResponse": { - "description": "The response message for Operations.ListOperations.", - "id": "ListOperationsResponse", + "ShuffleReadMetrics": { + "description": "Shuffle data read by the task.", + "id": "ShuffleReadMetrics", "properties": { - "nextPageToken": { - "description": "The standard List next-page token.", + "fetchWaitTimeMillis": { + "format": "int64", "type": "string" }, - "operations": { - "description": "A list of operations that matches the specified filter in the request.", - "items": { - "$ref": "Operation" - }, - "type": "array" + "localBlocksFetched": { + "format": "int64", + "type": "string" + }, + "localBytesRead": { + "format": "int64", + "type": "string" + }, + "recordsRead": { + "format": "int64", + "type": "string" + }, + "remoteBlocksFetched": { + "format": "int64", + "type": "string" + }, + "remoteBytesRead": { + "format": "int64", + "type": "string" + }, + "remoteBytesReadToDisk": { + "format": "int64", + "type": "string" + }, + "remoteReqsDuration": { + "format": "int64", + "type": "string" + }, + "shufflePushReadMetrics": { + "$ref": "ShufflePushReadMetrics" } }, "type": "object" }, - "ListSessionTemplatesResponse": { - "description": "A list of session templates.", - "id": "ListSessionTemplatesResponse", + "ShuffleReadQuantileMetrics": { + "id": "ShuffleReadQuantileMetrics", "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" + "fetchWaitTimeMillis": { + "$ref": "Quantiles" }, - "sessionTemplates": { - "description": "Output only. Session template list", - "items": { - "$ref": "SessionTemplate" - }, - "readOnly": true, - "type": "array" + "localBlocksFetched": { + "$ref": "Quantiles" + }, + "readBytes": { + "$ref": "Quantiles" + }, + "readRecords": { + "$ref": "Quantiles" + }, + "remoteBlocksFetched": { + "$ref": "Quantiles" + }, + "remoteBytesRead": { + "$ref": "Quantiles" + }, + "remoteBytesReadToDisk": { + "$ref": "Quantiles" + }, + "remoteReqsDuration": { + "$ref": "Quantiles" + }, + "shufflePushReadMetrics": { + "$ref": "ShufflePushReadQuantileMetrics" + }, + "totalBlocksFetched": { + "$ref": "Quantiles" } }, "type": "object" }, - "ListSessionsResponse": { - "description": "A list of interactive sessions.", - "id": "ListSessionsResponse", + "ShuffleWriteMetrics": { + "description": "Shuffle data written by task.", + "id": "ShuffleWriteMetrics", "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.", + "bytesWritten": { + "format": "int64", "type": "string" }, - "sessions": { - "description": "Output only. The sessions from the specified collection.", - "items": { - "$ref": "Session" - }, - "readOnly": true, - "type": "array" + "recordsWritten": { + "format": "int64", + "type": "string" + }, + "writeTimeNanos": { + "format": "int64", + "type": "string" } }, "type": "object" }, - "ListWorkflowTemplatesResponse": { - "description": "A response to a request to list workflow templates in a project.", - "id": "ListWorkflowTemplatesResponse", + "ShuffleWriteQuantileMetrics": { + "id": "ShuffleWriteQuantileMetrics", "properties": { - "nextPageToken": { - "description": "Output only. This token is included in the response if there are more results to fetch. To fetch additional results, provide this value as the page_token in a subsequent ListWorkflowTemplatesRequest.", - "readOnly": true, - "type": "string" + "writeBytes": { + "$ref": "Quantiles" }, - "templates": { - "description": "Output only. WorkflowTemplates list.", - "items": { - "$ref": "WorkflowTemplate" - }, - "readOnly": true, - "type": "array" + "writeRecords": { + "$ref": "Quantiles" }, - "unreachable": { - "description": "Output only. List of workflow templates that could not be included in the response. Attempting to get one of these resources may indicate why it was not included in the list response.", - "items": { - "type": "string" - }, - "readOnly": true, - "type": "array" + "writeTimeNanos": { + "$ref": "Quantiles" } }, "type": "object" }, - "LoggingConfig": { - "description": "The runtime logging config of the job.", - "id": "LoggingConfig", + "SinkProgress": { + "id": "SinkProgress", "properties": { - "driverLogLevels": { + "description": { + "type": "string" + }, + "metrics": { "additionalProperties": { - "enum": [ - "LEVEL_UNSPECIFIED", - "ALL", - "TRACE", - "DEBUG", - "INFO", - "WARN", - "ERROR", - "FATAL", - "OFF" - ], - "enumDescriptions": [ - "Level is unspecified. Use default level for log4j.", - "Use ALL level for log4j.", - "Use TRACE level for log4j.", - "Use DEBUG level for log4j.", - "Use INFO level for log4j.", - "Use WARN level for log4j.", - "Use ERROR level for log4j.", - "Use FATAL level for log4j.", - "Turn off log4j." - ], "type": "string" }, - "description": "The per-package log levels for the driver. This can include \"root\" package name to configure rootLogger. Examples: - 'com.google = FATAL' - 'root = INFO' - 'org.apache = DEBUG'", "type": "object" + }, + "numOutputRows": { + "format": "int64", + "type": "string" } }, "type": "object" }, - "ManagedCluster": { - "description": "Cluster that is managed by the workflow.", - "id": "ManagedCluster", + "SoftwareConfig": { + "description": "Specifies the selection and config of software inside the cluster.", + "id": "SoftwareConfig", "properties": { - "clusterName": { - "description": "Required. The cluster name prefix. A unique cluster name will be formed by appending a random suffix.The name must contain only lower-case letters (a-z), numbers (0-9), and hyphens (-). Must begin with a letter. Cannot begin or end with hyphen. Must consist of between 2 and 35 characters.", + "imageVersion": { + "description": "Optional. The version of software inside the cluster. It must be one of the supported Dataproc Versions (https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported-dataproc-image-versions), such as \"1.2\" (including a subminor version, such as \"1.2.29\"), or the \"preview\" version (https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions). If unspecified, it defaults to the latest Debian version.", "type": "string" }, - "config": { - "$ref": "ClusterConfig", - "description": "Required. The cluster configuration." + "optionalComponents": { + "description": "Optional. The set of components to activate on the cluster.", + "items": { + "enum": [ + "COMPONENT_UNSPECIFIED", + "ANACONDA", + "DOCKER", + "DRUID", + "FLINK", + "HBASE", + "HIVE_WEBHCAT", + "HUDI", + "JUPYTER", + "PRESTO", + "TRINO", + "RANGER", + "SOLR", + "ZEPPELIN", + "ZOOKEEPER" + ], + "enumDescriptions": [ + "Unspecified component. Specifying this will cause Cluster creation to fail.", + "The Anaconda component is no longer supported or applicable to supported Dataproc on Compute Engine image versions (https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-version-clusters#supported-dataproc-image-versions). It cannot be activated on clusters created with supported Dataproc on Compute Engine image versions.", + "Docker", + "The Druid query engine. (alpha)", + "Flink", + "HBase. (beta)", + "The Hive Web HCatalog (the REST service for accessing HCatalog).", + "Hudi.", + "The Jupyter Notebook.", + "The Presto query engine.", + "The Trino query engine.", + "The Ranger service.", + "The Solr service.", + "The Zeppelin notebook.", + "The Zookeeper service." + ], + "type": "string" + }, + "type": "array" }, - "labels": { + "properties": { "additionalProperties": { "type": "string" }, - "description": "Optional. The labels to associate with this cluster.Label keys must be between 1 and 63 characters long, and must conform to the following PCRE regular expression: \\p{Ll}\\p{Lo}{0,62}Label values must be between 1 and 63 characters long, and must conform to the following PCRE regular expression: \\p{Ll}\\p{Lo}\\p{N}_-{0,63}No more than 32 labels can be associated with a given cluster.", + "description": "Optional. The properties to set on daemon config files.Property keys are specified in prefix:property format, for example core:hadoop.tmp.dir. The following are supported prefixes and their mappings: capacity-scheduler: capacity-scheduler.xml core: core-site.xml distcp: distcp-default.xml hdfs: hdfs-site.xml hive: hive-site.xml mapred: mapred-site.xml pig: pig.properties spark: spark-defaults.conf yarn: yarn-site.xmlFor more information, see Cluster properties (https://cloud.google.com/dataproc/docs/concepts/cluster-properties).", "type": "object" } }, "type": "object" }, - "ManagedGroupConfig": { - "description": "Specifies the resources used to actively manage an instance group.", - "id": "ManagedGroupConfig", + "SourceProgress": { + "id": "SourceProgress", "properties": { - "instanceGroupManagerName": { - "description": "Output only. The name of the Instance Group Manager for this group.", - "readOnly": true, + "description": { "type": "string" }, - "instanceGroupManagerUri": { - "description": "Output only. The partial URI to the instance group manager for this group. E.g. projects/my-project/regions/us-central1/instanceGroupManagers/my-igm.", - "readOnly": true, + "endOffset": { "type": "string" }, - "instanceTemplateName": { - "description": "Output only. The name of the Instance Template used for the Managed Instance Group.", - "readOnly": true, - "type": "string" - } - }, - "type": "object" - }, - "MetastoreConfig": { - "description": "Specifies a Metastore configuration.", - "id": "MetastoreConfig", - "properties": { - "dataprocMetastoreService": { - "description": "Required. Resource name of an existing Dataproc Metastore service.Example: projects/[project_id]/locations/[dataproc_region]/services/[service-name]", + "inputRowsPerSecond": { + "format": "double", + "type": "number" + }, + "latestOffset": { "type": "string" - } - }, - "type": "object" - }, - "Metric": { - "description": "A Dataproc custom metric.", - "id": "Metric", - "properties": { - "metricOverrides": { - "description": "Optional. Specify one or more Custom metrics (https://cloud.google.com/dataproc/docs/guides/dataproc-metrics#custom_metrics) to collect for the metric course (for the SPARK metric source (any Spark metric (https://spark.apache.org/docs/latest/monitoring.html#metrics) can be specified).Provide metrics in the following format: METRIC_SOURCE: INSTANCE:GROUP:METRIC Use camelcase as appropriate.Examples: yarn:ResourceManager:QueueMetrics:AppsCompleted spark:driver:DAGScheduler:job.allJobs sparkHistoryServer:JVM:Memory:NonHeapMemoryUsage.committed hiveserver2:JVM:Memory:NonHeapMemoryUsage.used Notes: Only the specified overridden metrics are collected for the metric source. For example, if one or more spark:executive metrics are listed as metric overrides, other SPARK metrics are not collected. The collection of the metrics for other enabled custom metric sources is unaffected. For example, if both SPARK andd YARN metric sources are enabled, and overrides are provided for Spark metrics only, all YARN metrics are collected.", - "items": { + }, + "metrics": { + "additionalProperties": { "type": "string" }, - "type": "array" + "type": "object" }, - "metricSource": { - "description": "Required. A standard set of metrics is collected unless metricOverrides are specified for the metric source (see Custom metrics (https://cloud.google.com/dataproc/docs/guides/dataproc-metrics#custom_metrics) for more information).", - "enum": [ - "METRIC_SOURCE_UNSPECIFIED", - "MONITORING_AGENT_DEFAULTS", - "HDFS", - "SPARK", - "YARN", - "SPARK_HISTORY_SERVER", - "HIVESERVER2", - "HIVEMETASTORE", - "FLINK" - ], - "enumDescriptions": [ - "Required unspecified metric source.", - "Monitoring agent metrics. If this source is enabled, Dataproc enables the monitoring agent in Compute Engine, and collects monitoring agent metrics, which are published with an agent.googleapis.com prefix.", - "HDFS metric source.", - "Spark metric source.", - "YARN metric source.", - "Spark History Server metric source.", - "Hiveserver2 metric source.", - "hivemetastore metric source", - "flink metric source" - ], + "numInputRows": { + "format": "int64", + "type": "string" + }, + "processedRowsPerSecond": { + "format": "double", + "type": "number" + }, + "startOffset": { "type": "string" } }, "type": "object" }, - "NamespacedGkeDeploymentTarget": { - "deprecated": true, - "description": "Deprecated. Used only for the deprecated beta. A full, namespace-isolated deployment target for an existing GKE cluster.", - "id": "NamespacedGkeDeploymentTarget", + "SparkApplication": { + "description": "A summary of Spark Application", + "id": "SparkApplication", "properties": { - "clusterNamespace": { - "description": "Optional. A namespace within the GKE cluster to deploy into.", - "type": "string" + "application": { + "$ref": "ApplicationInfo", + "description": "Output only. High level information corresponding to an application.", + "readOnly": true }, - "targetGkeCluster": { - "description": "Optional. The target GKE cluster to deploy to. Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}'", + "name": { + "description": "Identifier. Name of the spark application", "type": "string" } }, "type": "object" }, - "NodeGroup": { - "description": "Dataproc Node Group. The Dataproc NodeGroup resource is not related to the Dataproc NodeGroupAffinity resource.", - "id": "NodeGroup", + "SparkBatch": { + "description": "A configuration for running an Apache Spark (https://spark.apache.org/) batch workload.", + "id": "SparkBatch", "properties": { - "labels": { - "additionalProperties": { + "archiveUris": { + "description": "Optional. HCFS URIs of archives to be extracted into the working directory of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.", + "items": { "type": "string" }, - "description": "Optional. Node group labels. Label keys must consist of from 1 to 63 characters and conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values can be empty. If specified, they must consist of from 1 to 63 characters and conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). The node group must have no more than 32 labelsn.", - "type": "object" - }, - "name": { - "description": "The Node group resource name (https://aip.dev/122).", - "type": "string" + "type": "array" }, - "nodeGroupConfig": { - "$ref": "InstanceGroupConfig", - "description": "Optional. The node group instance group configuration." + "args": { + "description": "Optional. The arguments to pass to the driver. Do not include arguments that can be set as batch properties, such as --conf, since a collision can occur that causes an incorrect batch submission.", + "items": { + "type": "string" + }, + "type": "array" }, - "roles": { - "description": "Required. Node group roles.", + "fileUris": { + "description": "Optional. HCFS URIs of files to be placed in the working directory of each executor.", + "items": { + "type": "string" + }, + "type": "array" + }, + "jarFileUris": { + "description": "Optional. HCFS URIs of jar files to add to the classpath of the Spark driver and tasks.", "items": { - "enum": [ - "ROLE_UNSPECIFIED", - "DRIVER" - ], - "enumDescriptions": [ - "Required unspecified role.", - "Job drivers run on the node pool." - ], "type": "string" }, "type": "array" + }, + "mainClass": { + "description": "Optional. The name of the driver main class. The jar file that contains the class must be in the classpath or specified in jar_file_uris.", + "type": "string" + }, + "mainJarFileUri": { + "description": "Optional. The HCFS URI of the jar file that contains the main class.", + "type": "string" } }, "type": "object" }, - "NodeGroupAffinity": { - "description": "Node Group Affinity for clusters using sole-tenant node groups. The Dataproc NodeGroupAffinity resource is not related to the Dataproc NodeGroup resource.", - "id": "NodeGroupAffinity", + "SparkConnectConfig": { + "description": "Spark connect configuration for an interactive session.", + "id": "SparkConnectConfig", + "properties": {}, + "type": "object" + }, + "SparkHistoryServerConfig": { + "description": "Spark History Server configuration for the workload.", + "id": "SparkHistoryServerConfig", "properties": { - "nodeGroupUri": { - "description": "Required. The URI of a sole-tenant node group resource (https://cloud.google.com/compute/docs/reference/rest/v1/nodeGroups) that the cluster will be created on.A full URL, partial URI, or node group name are valid. Examples: https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]/nodeGroups/node-group-1 projects/[project_id]/zones/[zone]/nodeGroups/node-group-1 node-group-1", + "dataprocCluster": { + "description": "Optional. Resource name of an existing Dataproc Cluster to act as a Spark History Server for the workload.Example: projects/[project_id]/regions/[region]/clusters/[cluster_name]", "type": "string" } }, "type": "object" }, - "NodeGroupOperationMetadata": { - "description": "Metadata describing the node group operation.", - "id": "NodeGroupOperationMetadata", + "SparkJob": { + "description": "A Dataproc job for running Apache Spark (https://spark.apache.org/) applications on YARN.", + "id": "SparkJob", "properties": { - "clusterUuid": { - "description": "Output only. Cluster UUID associated with the node group operation.", - "readOnly": true, - "type": "string" - }, - "description": { - "description": "Output only. Short description of operation.", - "readOnly": true, - "type": "string" - }, - "labels": { - "additionalProperties": { + "archiveUris": { + "description": "Optional. HCFS URIs of archives to be extracted into the working directory of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.", + "items": { "type": "string" }, - "description": "Output only. Labels associated with the operation.", - "readOnly": true, - "type": "object" - }, - "nodeGroupId": { - "description": "Output only. Node group ID for the operation.", - "readOnly": true, - "type": "string" - }, - "operationType": { - "description": "The operation type.", - "enum": [ - "NODE_GROUP_OPERATION_TYPE_UNSPECIFIED", - "CREATE", - "UPDATE", - "DELETE", - "RESIZE", - "REPAIR", - "UPDATE_LABELS", - "START", - "STOP" - ], - "enumDescriptions": [ - "Node group operation type is unknown.", - "Create node group operation type.", - "Update node group operation type.", - "Delete node group operation type.", - "Resize node group operation type.", - "Repair node group operation type.", - "Update node group label operation type.", - "Start node group operation type.", - "Stop node group operation type." - ], - "type": "string" + "type": "array" }, - "status": { - "$ref": "ClusterOperationStatus", - "description": "Output only. Current operation status.", - "readOnly": true + "args": { + "description": "Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission.", + "items": { + "type": "string" + }, + "type": "array" }, - "statusHistory": { - "description": "Output only. The previous operation status.", + "fileUris": { + "description": "Optional. HCFS URIs of files to be placed in the working directory of each executor. Useful for naively parallel tasks.", "items": { - "$ref": "ClusterOperationStatus" + "type": "string" }, - "readOnly": true, "type": "array" }, - "warnings": { - "description": "Output only. Errors encountered during operation execution.", + "jarFileUris": { + "description": "Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver and tasks.", "items": { "type": "string" }, - "readOnly": true, "type": "array" - } - }, - "type": "object" - }, - "NodeInitializationAction": { - "description": "Specifies an executable to run on a fully configured node and a timeout period for executable completion.", - "id": "NodeInitializationAction", - "properties": { - "executableFile": { - "description": "Required. Cloud Storage URI of executable file.", + }, + "loggingConfig": { + "$ref": "LoggingConfig", + "description": "Optional. The runtime log config for job execution." + }, + "mainClass": { + "description": "The name of the driver's main class. The jar file that contains the class must be in the default CLASSPATH or specified in SparkJob.jar_file_uris.", "type": "string" }, - "executionTimeout": { - "description": "Optional. Amount of time executable has to complete. Default is 10 minutes (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)).Cluster creation fails with an explanatory error message (the name of the executable that caused the error and the exceeded timeout period) if the executable is not completed at end of the timeout period.", - "format": "google-duration", + "mainJarFileUri": { + "description": "The HCFS URI of the jar file that contains the main class.", "type": "string" + }, + "properties": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. A mapping of property names to values, used to configure Spark. Properties that conflict with values set by the Dataproc API might be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code.", + "type": "object" } }, "type": "object" }, - "NodePool": { - "description": "indicating a list of workers of same type", - "id": "NodePool", + "SparkPlanGraph": { + "description": "A graph used for storing information of an executionPlan of DataFrame.", + "id": "SparkPlanGraph", "properties": { - "id": { - "description": "Required. A unique id of the node pool. Primary and Secondary workers can be specified using special reserved ids PRIMARY_WORKER_POOL and SECONDARY_WORKER_POOL respectively. Aux node pools can be referenced using corresponding pool id.", - "type": "string" - }, - "instanceNames": { - "description": "Name of instances to be repaired. These instances must belong to specified node pool.", + "edges": { "items": { - "type": "string" + "$ref": "SparkPlanGraphEdge" }, "type": "array" }, - "repairAction": { - "description": "Required. Repair action to take on specified resources of the node pool.", - "enum": [ - "REPAIR_ACTION_UNSPECIFIED", - "DELETE" - ], - "enumDescriptions": [ - "No action will be taken by default.", - "delete the specified list of nodes." - ], + "executionId": { + "format": "int64", "type": "string" + }, + "nodes": { + "items": { + "$ref": "SparkPlanGraphNodeWrapper" + }, + "type": "array" } }, "type": "object" }, - "Operation": { - "description": "This resource represents a long-running operation that is the result of a network API call.", - "id": "Operation", + "SparkPlanGraphCluster": { + "description": "Represents a tree of spark plan.", + "id": "SparkPlanGraphCluster", "properties": { - "done": { - "description": "If the value is false, it means the operation is still in progress. If true, the operation is completed, and either error or response is available.", - "type": "boolean" - }, - "error": { - "$ref": "Status", - "description": "The error result of the operation in case of failure or cancellation." + "desc": { + "type": "string" }, - "metadata": { - "additionalProperties": { - "description": "Properties of the object. Contains field @type with type URL.", - "type": "any" + "metrics": { + "items": { + "$ref": "SqlPlanMetric" }, - "description": "Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.", - "type": "object" + "type": "array" }, "name": { - "description": "The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the name should be a resource name ending with operations/{unique_id}.", "type": "string" }, - "response": { - "additionalProperties": { - "description": "Properties of the object. Contains field @type with type URL.", - "type": "any" + "nodes": { + "items": { + "$ref": "SparkPlanGraphNodeWrapper" }, - "description": "The normal, successful response of the operation. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.", - "type": "object" + "type": "array" + }, + "sparkPlanGraphClusterId": { + "format": "int64", + "type": "string" } }, "type": "object" }, - "OrderedJob": { - "description": "A job executed by the workflow.", - "id": "OrderedJob", + "SparkPlanGraphEdge": { + "description": "Represents a directed edge in the spark plan tree from child to parent.", + "id": "SparkPlanGraphEdge", "properties": { - "flinkJob": { - "$ref": "FlinkJob", - "description": "Optional. Job is a Flink job." - }, - "hadoopJob": { - "$ref": "HadoopJob", - "description": "Optional. Job is a Hadoop job." - }, - "hiveJob": { - "$ref": "HiveJob", - "description": "Optional. Job is a Hive job." - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Optional. The labels to associate with this job.Label keys must be between 1 and 63 characters long, and must conform to the following regular expression: \\p{Ll}\\p{Lo}{0,62}Label values must be between 1 and 63 characters long, and must conform to the following regular expression: \\p{Ll}\\p{Lo}\\p{N}_-{0,63}No more than 32 labels can be associated with a given job.", - "type": "object" - }, - "pigJob": { - "$ref": "PigJob", - "description": "Optional. Job is a Pig job." - }, - "prerequisiteStepIds": { - "description": "Optional. The optional list of prerequisite job step_ids. If not specified, the job will start at the beginning of workflow.", - "items": { - "type": "string" - }, - "type": "array" - }, - "prestoJob": { - "$ref": "PrestoJob", - "description": "Optional. Job is a Presto job." - }, - "pysparkJob": { - "$ref": "PySparkJob", - "description": "Optional. Job is a PySpark job." - }, - "scheduling": { - "$ref": "JobScheduling", - "description": "Optional. Job scheduling configuration." - }, - "sparkJob": { - "$ref": "SparkJob", - "description": "Optional. Job is a Spark job." + "fromId": { + "format": "int64", + "type": "string" }, - "sparkRJob": { - "$ref": "SparkRJob", - "description": "Optional. Job is a SparkR job." + "toId": { + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "SparkPlanGraphNode": { + "description": "Represents a node in the spark plan tree.", + "id": "SparkPlanGraphNode", + "properties": { + "desc": { + "type": "string" }, - "sparkSqlJob": { - "$ref": "SparkSqlJob", - "description": "Optional. Job is a SparkSql job." + "metrics": { + "items": { + "$ref": "SqlPlanMetric" + }, + "type": "array" }, - "stepId": { - "description": "Required. The step id. The id must be unique among all jobs within the template.The step id is used as prefix for job id, as job goog-dataproc-workflow-step-id label, and in prerequisiteStepIds field from other steps.The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of between 3 and 50 characters.", + "name": { "type": "string" }, - "trinoJob": { - "$ref": "TrinoJob", - "description": "Optional. Job is a Trino job." + "sparkPlanGraphNodeId": { + "format": "int64", + "type": "string" } }, "type": "object" }, - "ParameterValidation": { - "description": "Configuration for parameter validation.", - "id": "ParameterValidation", + "SparkPlanGraphNodeWrapper": { + "description": "Wrapper user to represent either a node or a cluster.", + "id": "SparkPlanGraphNodeWrapper", "properties": { - "regex": { - "$ref": "RegexValidation", - "description": "Validation based on regular expressions." + "cluster": { + "$ref": "SparkPlanGraphCluster" }, - "values": { - "$ref": "ValueValidation", - "description": "Validation based on a list of allowed values." + "node": { + "$ref": "SparkPlanGraphNode" } }, "type": "object" }, - "PeripheralsConfig": { - "description": "Auxiliary services configuration for a workload.", - "id": "PeripheralsConfig", + "SparkRBatch": { + "description": "A configuration for running an Apache SparkR (https://spark.apache.org/docs/latest/sparkr.html) batch workload.", + "id": "SparkRBatch", "properties": { - "metastoreService": { - "description": "Optional. Resource name of an existing Dataproc Metastore service.Example: projects/[project_id]/locations/[region]/services/[service_id]", - "type": "string" + "archiveUris": { + "description": "Optional. HCFS URIs of archives to be extracted into the working directory of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.", + "items": { + "type": "string" + }, + "type": "array" }, - "sparkHistoryServerConfig": { - "$ref": "SparkHistoryServerConfig", - "description": "Optional. The Spark History Server configuration for the workload." + "args": { + "description": "Optional. The arguments to pass to the Spark driver. Do not include arguments that can be set as batch properties, such as --conf, since a collision can occur that causes an incorrect batch submission.", + "items": { + "type": "string" + }, + "type": "array" + }, + "fileUris": { + "description": "Optional. HCFS URIs of files to be placed in the working directory of each executor.", + "items": { + "type": "string" + }, + "type": "array" + }, + "mainRFileUri": { + "description": "Required. The HCFS URI of the main R file to use as the driver. Must be a .R or .r file.", + "type": "string" } }, "type": "object" }, - "PigJob": { - "description": "A Dataproc job for running Apache Pig (https://pig.apache.org/) queries on YARN.", - "id": "PigJob", + "SparkRJob": { + "description": "A Dataproc job for running Apache SparkR (https://spark.apache.org/docs/latest/sparkr.html) applications on YARN.", + "id": "SparkRJob", "properties": { - "continueOnFailure": { - "description": "Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries.", - "type": "boolean" + "archiveUris": { + "description": "Optional. HCFS URIs of archives to be extracted into the working directory of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.", + "items": { + "type": "string" + }, + "type": "array" }, - "jarFileUris": { - "description": "Optional. HCFS URIs of jar files to add to the CLASSPATH of the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.", + "args": { + "description": "Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission.", + "items": { + "type": "string" + }, + "type": "array" + }, + "fileUris": { + "description": "Optional. HCFS URIs of files to be placed in the working directory of each executor. Useful for naively parallel tasks.", "items": { "type": "string" }, @@ -5887,83 +10813,80 @@ "$ref": "LoggingConfig", "description": "Optional. The runtime log config for job execution." }, + "mainRFileUri": { + "description": "Required. The HCFS URI of the main R file to use as the driver. Must be a .R file.", + "type": "string" + }, "properties": { "additionalProperties": { "type": "string" }, - "description": "Optional. A mapping of property names to values, used to configure Pig. Properties that conflict with values set by the Dataproc API might be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/pig/conf/pig.properties, and classes in user code.", + "description": "Optional. A mapping of property names to values, used to configure SparkR. Properties that conflict with values set by the Dataproc API might be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code.", "type": "object" - }, - "queryFileUri": { - "description": "The HCFS URI of the script that contains the Pig queries.", + } + }, + "type": "object" + }, + "SparkRuntimeInfo": { + "id": "SparkRuntimeInfo", + "properties": { + "javaHome": { "type": "string" }, - "queryList": { - "$ref": "QueryList", - "description": "A list of queries." + "javaVersion": { + "type": "string" }, - "scriptVariables": { - "additionalProperties": { - "type": "string" - }, - "description": "Optional. Mapping of query variable names to values (equivalent to the Pig command: name=[value]).", - "type": "object" + "scalaVersion": { + "type": "string" } }, "type": "object" }, - "Policy": { - "description": "An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources.A Policy is a collection of bindings. A binding binds one or more members, or principals, to a single role. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A role is a named list of permissions; each role can be an IAM predefined role or a user-created custom role.For some types of Google Cloud resources, a binding can also specify a condition, which is a logical expression that allows access to a resource only if the expression evaluates to true. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).JSON example: { \"bindings\": [ { \"role\": \"roles/resourcemanager.organizationAdmin\", \"members\": [ \"user:mike@example.com\", \"group:admins@example.com\", \"domain:google.com\", \"serviceAccount:my-project-id@appspot.gserviceaccount.com\" ] }, { \"role\": \"roles/resourcemanager.organizationViewer\", \"members\": [ \"user:eve@example.com\" ], \"condition\": { \"title\": \"expirable access\", \"description\": \"Does not grant access after Sep 2020\", \"expression\": \"request.time \u003c timestamp('2020-10-01T00:00:00.000Z')\", } } ], \"etag\": \"BwWWja0YfJA=\", \"version\": 3 } YAML example: bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time \u003c timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the IAM documentation (https://cloud.google.com/iam/docs/).", - "id": "Policy", + "SparkSqlBatch": { + "description": "A configuration for running Apache Spark SQL (https://spark.apache.org/sql/) queries as a batch workload.", + "id": "SparkSqlBatch", "properties": { - "bindings": { - "description": "Associates a list of members, or principals, with a role. Optionally, may specify a condition that determines how and when the bindings are applied. Each of the bindings must contain at least one principal.The bindings in a Policy can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the bindings grant 50 different roles to user:alice@example.com, and not to any other principal, then you can add another 1,450 principals to the bindings in the Policy.", + "jarFileUris": { + "description": "Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.", "items": { - "$ref": "Binding" + "type": "string" }, "type": "array" }, - "etag": { - "description": "etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the etag in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An etag is returned in the response to getIamPolicy, and systems are expected to put that etag in the request to setIamPolicy to ensure that their change will be applied to the same version of the policy.Important: If you use IAM Conditions, you must include the etag field whenever you call setIamPolicy. If you omit this field, then IAM allows you to overwrite a version 3 policy with a version 1 policy, and all of the conditions in the version 3 policy are lost.", - "format": "byte", + "queryFileUri": { + "description": "Required. The HCFS URI of the script that contains Spark SQL queries to execute.", "type": "string" }, - "version": { - "description": "Specifies the format of the policy.Valid values are 0, 1, and 3. Requests that specify an invalid value are rejected.Any operation that affects conditional role bindings must specify version 3. This requirement applies to the following operations: Getting a policy that includes a conditional role binding Adding a conditional role binding to a policy Changing a conditional role binding in a policy Removing any role binding, with or without a condition, from a policy that includes conditionsImportant: If you use IAM Conditions, you must include the etag field whenever you call setIamPolicy. If you omit this field, then IAM allows you to overwrite a version 3 policy with a version 1 policy, and all of the conditions in the version 3 policy are lost.If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).", - "format": "int32", - "type": "integer" + "queryVariables": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET name=\"value\";).", + "type": "object" } }, "type": "object" }, - "PrestoJob": { - "description": "A Dataproc job for running Presto (https://prestosql.io/) queries. IMPORTANT: The Dataproc Presto Optional Component (https://cloud.google.com/dataproc/docs/concepts/components/presto) must be enabled when the cluster is created to submit a Presto job to the cluster.", - "id": "PrestoJob", + "SparkSqlJob": { + "description": "A Dataproc job for running Apache Spark SQL (https://spark.apache.org/sql/) queries.", + "id": "SparkSqlJob", "properties": { - "clientTags": { - "description": "Optional. Presto client tags to attach to this query", + "jarFileUris": { + "description": "Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.", "items": { "type": "string" }, "type": "array" }, - "continueOnFailure": { - "description": "Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries.", - "type": "boolean" - }, "loggingConfig": { "$ref": "LoggingConfig", "description": "Optional. The runtime log config for job execution." }, - "outputFormat": { - "description": "Optional. The format in which query output will be displayed. See the Presto documentation for supported output formats", - "type": "string" - }, "properties": { "additionalProperties": { "type": "string" }, - "description": "Optional. A mapping of property names to values. Used to set Presto session properties (https://prestodb.io/docs/current/sql/set-session.html) Equivalent to using the --session flag in the Presto CLI", + "description": "Optional. A mapping of property names to values, used to configure Spark SQL's SparkConf. Properties that conflict with values set by the Dataproc API might be overwritten.", "type": "object" }, "queryFileUri": { @@ -5973,560 +10896,755 @@ "queryList": { "$ref": "QueryList", "description": "A list of queries." + }, + "scriptVariables": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET name=\"value\";).", + "type": "object" } }, "type": "object" }, - "PyPiRepositoryConfig": { - "description": "Configuration for PyPi repository", - "id": "PyPiRepositoryConfig", + "SparkStandaloneAutoscalingConfig": { + "description": "Basic autoscaling configurations for Spark Standalone.", + "id": "SparkStandaloneAutoscalingConfig", "properties": { - "pypiRepository": { - "description": "Optional. PyPi repository address", + "gracefulDecommissionTimeout": { + "description": "Required. Timeout for Spark graceful decommissioning of spark workers. Specifies the duration to wait for spark worker to complete spark decommissioning tasks before forcefully removing workers. Only applicable to downscaling operations.Bounds: 0s, 1d.", + "format": "google-duration", + "type": "string" + }, + "removeOnlyIdleWorkers": { + "description": "Optional. Remove only idle workers when scaling down cluster", + "type": "boolean" + }, + "scaleDownFactor": { + "description": "Required. Fraction of required executors to remove from Spark Serverless clusters. A scale-down factor of 1.0 will result in scaling down so that there are no more executors for the Spark Job.(more aggressive scaling). A scale-down factor closer to 0 will result in a smaller magnitude of scaling donw (less aggressive scaling).Bounds: 0.0, 1.0.", + "format": "double", + "type": "number" + }, + "scaleDownMinWorkerFraction": { + "description": "Optional. Minimum scale-down threshold as a fraction of total cluster size before scaling occurs. For example, in a 20-worker cluster, a threshold of 0.1 means the autoscaler must recommend at least a 2 worker scale-down for the cluster to scale. A threshold of 0 means the autoscaler will scale down on any recommended change.Bounds: 0.0, 1.0. Default: 0.0.", + "format": "double", + "type": "number" + }, + "scaleUpFactor": { + "description": "Required. Fraction of required workers to add to Spark Standalone clusters. A scale-up factor of 1.0 will result in scaling up so that there are no more required workers for the Spark Job (more aggressive scaling). A scale-up factor closer to 0 will result in a smaller magnitude of scaling up (less aggressive scaling).Bounds: 0.0, 1.0.", + "format": "double", + "type": "number" + }, + "scaleUpMinWorkerFraction": { + "description": "Optional. Minimum scale-up threshold as a fraction of total cluster size before scaling occurs. For example, in a 20-worker cluster, a threshold of 0.1 means the autoscaler must recommend at least a 2-worker scale-up for the cluster to scale. A threshold of 0 means the autoscaler will scale up on any recommended change.Bounds: 0.0, 1.0. Default: 0.0.", + "format": "double", + "type": "number" + } + }, + "type": "object" + }, + "SparkWrapperObject": { + "description": "Outer message that contains the data obtained from spark listener, packaged with information that is required to process it.", + "id": "SparkWrapperObject", + "properties": { + "appSummary": { + "$ref": "AppSummary" + }, + "applicationEnvironmentInfo": { + "$ref": "ApplicationEnvironmentInfo" + }, + "applicationId": { + "description": "Application Id created by Spark.", + "type": "string" + }, + "applicationInfo": { + "$ref": "ApplicationInfo" + }, + "eventTimestamp": { + "description": "VM Timestamp associated with the data object.", + "format": "google-datetime", "type": "string" + }, + "executorStageSummary": { + "$ref": "ExecutorStageSummary" + }, + "executorSummary": { + "$ref": "ExecutorSummary" + }, + "jobData": { + "$ref": "JobData" + }, + "poolData": { + "$ref": "PoolData" + }, + "processSummary": { + "$ref": "ProcessSummary" + }, + "rddOperationGraph": { + "$ref": "RddOperationGraph" + }, + "rddStorageInfo": { + "$ref": "RddStorageInfo" + }, + "resourceProfileInfo": { + "$ref": "ResourceProfileInfo" + }, + "sparkPlanGraph": { + "$ref": "SparkPlanGraph" + }, + "speculationStageSummary": { + "$ref": "SpeculationStageSummary" + }, + "sqlExecutionUiData": { + "$ref": "SqlExecutionUiData" + }, + "stageData": { + "$ref": "StageData" + }, + "streamBlockData": { + "$ref": "StreamBlockData" + }, + "streamingQueryData": { + "$ref": "StreamingQueryData" + }, + "streamingQueryProgress": { + "$ref": "StreamingQueryProgress" + }, + "taskData": { + "$ref": "TaskData" } }, "type": "object" }, - "PySparkBatch": { - "description": "A configuration for running an Apache PySpark (https://spark.apache.org/docs/latest/api/python/getting_started/quickstart.html) batch workload.", - "id": "PySparkBatch", + "SpeculationStageSummary": { + "description": "Details of the speculation task when speculative execution is enabled.", + "id": "SpeculationStageSummary", "properties": { - "archiveUris": { - "description": "Optional. HCFS URIs of archives to be extracted into the working directory of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.", - "items": { - "type": "string" - }, - "type": "array" + "numActiveTasks": { + "format": "int32", + "type": "integer" }, - "args": { - "description": "Optional. The arguments to pass to the driver. Do not include arguments that can be set as batch properties, such as --conf, since a collision can occur that causes an incorrect batch submission.", - "items": { - "type": "string" - }, - "type": "array" + "numCompletedTasks": { + "format": "int32", + "type": "integer" }, - "fileUris": { - "description": "Optional. HCFS URIs of files to be placed in the working directory of each executor.", - "items": { - "type": "string" - }, - "type": "array" + "numFailedTasks": { + "format": "int32", + "type": "integer" + }, + "numKilledTasks": { + "format": "int32", + "type": "integer" }, - "jarFileUris": { - "description": "Optional. HCFS URIs of jar files to add to the classpath of the Spark driver and tasks.", - "items": { - "type": "string" - }, - "type": "array" + "numTasks": { + "format": "int32", + "type": "integer" }, - "mainPythonFileUri": { - "description": "Required. The HCFS URI of the main Python file to use as the Spark driver. Must be a .py file.", - "type": "string" + "stageAttemptId": { + "format": "int32", + "type": "integer" }, - "pythonFileUris": { - "description": "Optional. HCFS file URIs of Python files to pass to the PySpark framework. Supported file types: .py, .egg, and .zip.", - "items": { - "type": "string" - }, - "type": "array" + "stageId": { + "format": "int64", + "type": "string" } }, "type": "object" }, - "PySparkJob": { - "description": "A Dataproc job for running Apache PySpark (https://spark.apache.org/docs/0.9.0/python-programming-guide.html) applications on YARN.", - "id": "PySparkJob", + "SqlExecutionUiData": { + "description": "SQL Execution Data", + "id": "SqlExecutionUiData", "properties": { - "archiveUris": { - "description": "Optional. HCFS URIs of archives to be extracted into the working directory of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.", - "items": { - "type": "string" - }, - "type": "array" + "completionTime": { + "format": "google-datetime", + "type": "string" }, - "args": { - "description": "Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission.", - "items": { + "description": { + "type": "string" + }, + "details": { + "type": "string" + }, + "errorMessage": { + "type": "string" + }, + "executionId": { + "format": "int64", + "type": "string" + }, + "jobs": { + "additionalProperties": { + "enum": [ + "JOB_EXECUTION_STATUS_UNSPECIFIED", + "JOB_EXECUTION_STATUS_RUNNING", + "JOB_EXECUTION_STATUS_SUCCEEDED", + "JOB_EXECUTION_STATUS_FAILED", + "JOB_EXECUTION_STATUS_UNKNOWN" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "" + ], "type": "string" }, - "type": "array" + "type": "object" }, - "fileUris": { - "description": "Optional. HCFS URIs of files to be placed in the working directory of each executor. Useful for naively parallel tasks.", - "items": { + "metricValues": { + "additionalProperties": { "type": "string" }, - "type": "array" + "type": "object" }, - "jarFileUris": { - "description": "Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Python driver and tasks.", + "metricValuesIsNull": { + "type": "boolean" + }, + "metrics": { "items": { - "type": "string" + "$ref": "SqlPlanMetric" }, "type": "array" }, - "loggingConfig": { - "$ref": "LoggingConfig", - "description": "Optional. The runtime log config for job execution." - }, - "mainPythonFileUri": { - "description": "Required. The HCFS URI of the main Python file to use as the driver. Must be a .py file.", - "type": "string" - }, - "properties": { + "modifiedConfigs": { "additionalProperties": { "type": "string" }, - "description": "Optional. A mapping of property names to values, used to configure PySpark. Properties that conflict with values set by the Dataproc API might be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code.", "type": "object" }, - "pythonFileUris": { - "description": "Optional. HCFS file URIs of Python files to pass to the PySpark framework. Supported file types: .py, .egg, and .zip.", + "physicalPlanDescription": { + "type": "string" + }, + "rootExecutionId": { + "format": "int64", + "type": "string" + }, + "stages": { "items": { + "format": "int64", "type": "string" }, "type": "array" + }, + "submissionTime": { + "format": "google-datetime", + "type": "string" } }, "type": "object" }, - "QueryList": { - "description": "A list of queries to run on a cluster.", - "id": "QueryList", + "SqlPlanMetric": { + "description": "Metrics related to SQL execution.", + "id": "SqlPlanMetric", "properties": { - "queries": { - "description": "Required. The queries to execute. You do not need to end a query expression with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of a Dataproc API snippet that uses a QueryList to specify a HiveJob: \"hiveJob\": { \"queryList\": { \"queries\": [ \"query1\", \"query2\", \"query3;query4\", ] } } ", - "items": { - "type": "string" - }, - "type": "array" + "accumulatorId": { + "format": "int64", + "type": "string" + }, + "metricType": { + "type": "string" + }, + "name": { + "type": "string" } }, "type": "object" }, - "RegexValidation": { - "description": "Validation based on regular expressions.", - "id": "RegexValidation", + "StageAttemptTasksSummary": { + "description": "Data related to tasks summary for a Spark Stage Attempt", + "id": "StageAttemptTasksSummary", "properties": { - "regexes": { - "description": "Required. RE2 regular expressions used to validate the parameter's value. The value must match the regex in its entirety (substring matches are not sufficient).", - "items": { - "type": "string" - }, - "type": "array" + "applicationId": { + "type": "string" + }, + "numFailedTasks": { + "format": "int32", + "type": "integer" + }, + "numKilledTasks": { + "format": "int32", + "type": "integer" + }, + "numPendingTasks": { + "format": "int32", + "type": "integer" + }, + "numRunningTasks": { + "format": "int32", + "type": "integer" + }, + "numSuccessTasks": { + "format": "int32", + "type": "integer" + }, + "numTasks": { + "format": "int32", + "type": "integer" + }, + "stageAttemptId": { + "format": "int32", + "type": "integer" + }, + "stageId": { + "format": "int64", + "type": "string" } }, "type": "object" }, - "RepairClusterRequest": { - "description": "A request to repair a cluster.", - "id": "RepairClusterRequest", + "StageData": { + "description": "Data corresponding to a stage.", + "id": "StageData", "properties": { - "clusterUuid": { - "description": "Optional. Specifying the cluster_uuid means the RPC will fail (with error NOT_FOUND) if a cluster with the specified UUID does not exist.", + "accumulatorUpdates": { + "items": { + "$ref": "AccumulableInfo" + }, + "type": "array" + }, + "completionTime": { + "format": "google-datetime", "type": "string" }, - "gracefulDecommissionTimeout": { - "description": "Optional. Timeout for graceful YARN decommissioning. Graceful decommissioning facilitates the removal of cluster nodes without interrupting jobs in progress. The timeout specifies the amount of time to wait for jobs finish before forcefully removing nodes. The default timeout is 0 for forceful decommissioning, and the maximum timeout period is 1 day. (see JSON Mapping—Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)).graceful_decommission_timeout is supported in Dataproc image versions 1.2+.", - "format": "google-duration", + "description": { "type": "string" }, - "nodePools": { - "description": "Optional. Node pools and corresponding repair action to be taken. All node pools should be unique in this request. i.e. Multiple entries for the same node pool id are not allowed.", - "items": { - "$ref": "NodePool" + "details": { + "type": "string" + }, + "executorMetricsDistributions": { + "$ref": "ExecutorMetricsDistributions" + }, + "executorSummary": { + "additionalProperties": { + "$ref": "ExecutorStageSummary" }, - "type": "array" + "type": "object" }, - "parentOperationId": { - "description": "Optional. operation id of the parent operation sending the repair request", + "failureReason": { "type": "string" }, - "requestId": { - "description": "Optional. A unique ID used to identify the request. If the server receives two RepairClusterRequests with the same ID, the second request is ignored, and the first google.longrunning.Operation created and stored in the backend is returned.Recommendation: Set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", + "firstTaskLaunchedTime": { + "format": "google-datetime", "type": "string" - } - }, - "type": "object" - }, - "RepairNodeGroupRequest": { - "id": "RepairNodeGroupRequest", - "properties": { - "instanceNames": { - "description": "Required. Name of instances to be repaired. These instances must belong to specified node pool.", + }, + "isShufflePushEnabled": { + "type": "boolean" + }, + "jobIds": { "items": { + "format": "int64", "type": "string" }, "type": "array" }, - "repairAction": { - "description": "Required. Repair action to take on specified resources of the node pool.", - "enum": [ - "REPAIR_ACTION_UNSPECIFIED", - "REPLACE" - ], - "enumDescriptions": [ - "No action will be taken by default.", - "replace the specified list of nodes." - ], - "type": "string" + "killedTasksSummary": { + "additionalProperties": { + "format": "int32", + "type": "integer" + }, + "type": "object" }, - "requestId": { - "description": "Optional. A unique ID used to identify the request. If the server receives two RepairNodeGroupRequest with the same ID, the second request is ignored and the first google.longrunning.Operation created and stored in the backend is returned.Recommendation: Set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", + "locality": { + "additionalProperties": { + "format": "int64", + "type": "string" + }, + "type": "object" + }, + "name": { "type": "string" - } - }, - "type": "object" - }, - "RepositoryConfig": { - "description": "Configuration for dependency repositories", - "id": "RepositoryConfig", - "properties": { - "pypiRepositoryConfig": { - "$ref": "PyPiRepositoryConfig", - "description": "Optional. Configuration for PyPi repository." - } - }, - "type": "object" - }, - "ReservationAffinity": { - "description": "Reservation Affinity for consuming Zonal reservation.", - "id": "ReservationAffinity", - "properties": { - "consumeReservationType": { - "description": "Optional. Type of reservation to consume", + }, + "numActiveTasks": { + "format": "int32", + "type": "integer" + }, + "numCompleteTasks": { + "format": "int32", + "type": "integer" + }, + "numCompletedIndices": { + "format": "int32", + "type": "integer" + }, + "numFailedTasks": { + "format": "int32", + "type": "integer" + }, + "numKilledTasks": { + "format": "int32", + "type": "integer" + }, + "numTasks": { + "format": "int32", + "type": "integer" + }, + "parentStageIds": { + "items": { + "format": "int64", + "type": "string" + }, + "type": "array" + }, + "peakExecutorMetrics": { + "$ref": "ExecutorMetrics" + }, + "rddIds": { + "items": { + "format": "int64", + "type": "string" + }, + "type": "array" + }, + "resourceProfileId": { + "format": "int32", + "type": "integer" + }, + "schedulingPool": { + "type": "string" + }, + "shuffleMergersCount": { + "format": "int32", + "type": "integer" + }, + "speculationSummary": { + "$ref": "SpeculationStageSummary" + }, + "stageAttemptId": { + "format": "int32", + "type": "integer" + }, + "stageId": { + "format": "int64", + "type": "string" + }, + "stageMetrics": { + "$ref": "StageMetrics" + }, + "status": { "enum": [ - "TYPE_UNSPECIFIED", - "NO_RESERVATION", - "ANY_RESERVATION", - "SPECIFIC_RESERVATION" + "STAGE_STATUS_UNSPECIFIED", + "STAGE_STATUS_ACTIVE", + "STAGE_STATUS_COMPLETE", + "STAGE_STATUS_FAILED", + "STAGE_STATUS_PENDING", + "STAGE_STATUS_SKIPPED" ], "enumDescriptions": [ "", - "Do not consume from any allocated capacity.", - "Consume any reservation available.", - "Must consume from a specific reservation. Must specify key value fields for specifying the reservations." + "", + "", + "", + "", + "" ], "type": "string" }, - "key": { - "description": "Optional. Corresponds to the label key of reservation resource.", + "submissionTime": { + "format": "google-datetime", "type": "string" }, - "values": { - "description": "Optional. Corresponds to the label values of reservation resource.", - "items": { - "type": "string" + "taskQuantileMetrics": { + "$ref": "TaskQuantileMetrics", + "description": "Summary metrics fields. These are included in response only if present in summary_metrics_mask field in request" + }, + "tasks": { + "additionalProperties": { + "$ref": "TaskData" }, - "type": "array" + "type": "object" } }, "type": "object" }, - "ResizeNodeGroupRequest": { - "description": "A request to resize a node group.", - "id": "ResizeNodeGroupRequest", + "StageInputMetrics": { + "description": "Metrics about the input read by the stage.", + "id": "StageInputMetrics", "properties": { - "gracefulDecommissionTimeout": { - "description": "Optional. Timeout for graceful YARN decommissioning. Graceful decommissioning (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/scaling-clusters#graceful_decommissioning) allows the removal of nodes from the Compute Engine node group without interrupting jobs in progress. This timeout specifies how long to wait for jobs in progress to finish before forcefully removing nodes (and potentially interrupting jobs). Default timeout is 0 (for forceful decommission), and the maximum allowed timeout is 1 day. (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)).Only supported on Dataproc image versions 1.2 and higher.", - "format": "google-duration", - "type": "string" - }, - "parentOperationId": { - "description": "Optional. operation id of the parent operation sending the resize request", + "bytesRead": { + "format": "int64", "type": "string" }, - "requestId": { - "description": "Optional. A unique ID used to identify the request. If the server receives two ResizeNodeGroupRequest (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.ResizeNodeGroupRequests) with the same ID, the second request is ignored and the first google.longrunning.Operation created and stored in the backend is returned.Recommendation: Set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", + "recordsRead": { + "format": "int64", "type": "string" - }, - "size": { - "description": "Required. The number of running instances for the node group to maintain. The group adds or removes instances to maintain the number of instances specified by this parameter.", - "format": "int32", - "type": "integer" } }, "type": "object" }, - "RuntimeConfig": { - "description": "Runtime configuration for a workload.", - "id": "RuntimeConfig", + "StageMetrics": { + "description": "Stage Level Aggregated Metrics", + "id": "StageMetrics", "properties": { - "autotuningConfig": { - "$ref": "AutotuningConfig", - "description": "Optional. Autotuning configuration of the workload." + "diskBytesSpilled": { + "format": "int64", + "type": "string" }, - "cohort": { - "description": "Optional. Cohort identifier. Identifies families of the workloads having the same shape, e.g. daily ETL jobs.", + "executorCpuTimeNanos": { + "format": "int64", "type": "string" }, - "containerImage": { - "description": "Optional. Optional custom container image for the job runtime environment. If not specified, a default container image will be used.", + "executorDeserializeCpuTimeNanos": { + "format": "int64", "type": "string" }, - "properties": { - "additionalProperties": { - "type": "string" - }, - "description": "Optional. A mapping of property names to values, which are used to configure workload execution.", - "type": "object" + "executorDeserializeTimeMillis": { + "format": "int64", + "type": "string" }, - "repositoryConfig": { - "$ref": "RepositoryConfig", - "description": "Optional. Dependency repository configuration." + "executorRunTimeMillis": { + "format": "int64", + "type": "string" }, - "version": { - "description": "Optional. Version of the batch runtime.", + "jvmGcTimeMillis": { + "format": "int64", "type": "string" - } - }, - "type": "object" - }, - "RuntimeInfo": { - "description": "Runtime information about workload execution.", - "id": "RuntimeInfo", - "properties": { - "approximateUsage": { - "$ref": "UsageMetrics", - "description": "Output only. Approximate workload resource usage, calculated when the workload completes (see Dataproc Serverless pricing (https://cloud.google.com/dataproc-serverless/pricing)).Note: This metric calculation may change in the future, for example, to capture cumulative workload resource consumption during workload execution (see the Dataproc Serverless release notes (https://cloud.google.com/dataproc-serverless/docs/release-notes) for announcements, changes, fixes and other Dataproc developments).", - "readOnly": true }, - "currentUsage": { - "$ref": "UsageSnapshot", - "description": "Output only. Snapshot of current workload resource usage.", - "readOnly": true + "memoryBytesSpilled": { + "format": "int64", + "type": "string" }, - "diagnosticOutputUri": { - "description": "Output only. A URI pointing to the location of the diagnostics tarball.", - "readOnly": true, + "peakExecutionMemoryBytes": { + "format": "int64", "type": "string" }, - "endpoints": { - "additionalProperties": { - "type": "string" - }, - "description": "Output only. Map of remote access endpoints (such as web interfaces and APIs) to their URIs.", - "readOnly": true, - "type": "object" + "resultSerializationTimeMillis": { + "format": "int64", + "type": "string" }, - "outputUri": { - "description": "Output only. A URI pointing to the location of the stdout and stderr of the workload.", - "readOnly": true, + "resultSize": { + "format": "int64", "type": "string" + }, + "stageInputMetrics": { + "$ref": "StageInputMetrics" + }, + "stageOutputMetrics": { + "$ref": "StageOutputMetrics" + }, + "stageShuffleReadMetrics": { + "$ref": "StageShuffleReadMetrics" + }, + "stageShuffleWriteMetrics": { + "$ref": "StageShuffleWriteMetrics" } }, "type": "object" }, - "SecurityConfig": { - "description": "Security related configuration, including encryption, Kerberos, etc.", - "id": "SecurityConfig", + "StageOutputMetrics": { + "description": "Metrics about the output written by the stage.", + "id": "StageOutputMetrics", "properties": { - "identityConfig": { - "$ref": "IdentityConfig", - "description": "Optional. Identity related configuration, including service account based secure multi-tenancy user mappings." + "bytesWritten": { + "format": "int64", + "type": "string" }, - "kerberosConfig": { - "$ref": "KerberosConfig", - "description": "Optional. Kerberos related configuration." + "recordsWritten": { + "format": "int64", + "type": "string" } }, "type": "object" }, - "Session": { - "description": "A representation of a session.", - "id": "Session", + "StageShufflePushReadMetrics": { + "id": "StageShufflePushReadMetrics", "properties": { - "createTime": { - "description": "Output only. The time when the session was created.", - "format": "google-datetime", - "readOnly": true, + "corruptMergedBlockChunks": { + "format": "int64", "type": "string" }, - "creator": { - "description": "Output only. The email address of the user who created the session.", - "readOnly": true, + "localMergedBlocksFetched": { + "format": "int64", "type": "string" }, - "environmentConfig": { - "$ref": "EnvironmentConfig", - "description": "Optional. Environment configuration for the session execution." + "localMergedBytesRead": { + "format": "int64", + "type": "string" }, - "jupyterSession": { - "$ref": "JupyterConfig", - "description": "Optional. Jupyter session config." + "localMergedChunksFetched": { + "format": "int64", + "type": "string" }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Optional. The labels to associate with the session. Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a session.", - "type": "object" + "mergedFetchFallbackCount": { + "format": "int64", + "type": "string" }, - "name": { - "description": "Required. The resource name of the session.", + "remoteMergedBlocksFetched": { + "format": "int64", "type": "string" }, - "runtimeConfig": { - "$ref": "RuntimeConfig", - "description": "Optional. Runtime configuration for the session execution." + "remoteMergedBytesRead": { + "format": "int64", + "type": "string" }, - "runtimeInfo": { - "$ref": "RuntimeInfo", - "description": "Output only. Runtime information about session execution.", - "readOnly": true + "remoteMergedChunksFetched": { + "format": "int64", + "type": "string" }, - "sessionTemplate": { - "description": "Optional. The session template used by the session.Only resource names, including project ID and location, are valid.Example: * https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/sessionTemplates/[template_id] * projects/[project_id]/locations/[dataproc_region]/sessionTemplates/[template_id]The template must be in the same project and Dataproc region as the session.", + "remoteMergedReqsDuration": { + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "StageShuffleReadMetrics": { + "description": "Shuffle data read for the stage.", + "id": "StageShuffleReadMetrics", + "properties": { + "bytesRead": { + "format": "int64", "type": "string" }, - "sparkConnectSession": { - "$ref": "SparkConnectConfig", - "description": "Optional. Spark connect session config." + "fetchWaitTimeMillis": { + "format": "int64", + "type": "string" }, - "state": { - "description": "Output only. A state of the session.", - "enum": [ - "STATE_UNSPECIFIED", - "CREATING", - "ACTIVE", - "TERMINATING", - "TERMINATED", - "FAILED" - ], - "enumDescriptions": [ - "The session state is unknown.", - "The session is created prior to running.", - "The session is running.", - "The session is terminating.", - "The session is terminated successfully.", - "The session is no longer running due to an error." - ], - "readOnly": true, + "localBlocksFetched": { + "format": "int64", "type": "string" }, - "stateHistory": { - "description": "Output only. Historical state information for the session.", - "items": { - "$ref": "SessionStateHistory" - }, - "readOnly": true, - "type": "array" + "localBytesRead": { + "format": "int64", + "type": "string" }, - "stateMessage": { - "description": "Output only. Session state details, such as the failure description if the state is FAILED.", - "readOnly": true, + "recordsRead": { + "format": "int64", "type": "string" }, - "stateTime": { - "description": "Output only. The time when the session entered the current state.", - "format": "google-datetime", - "readOnly": true, + "remoteBlocksFetched": { + "format": "int64", "type": "string" }, - "user": { - "description": "Optional. The email address of the user who owns the session.", + "remoteBytesRead": { + "format": "int64", + "type": "string" + }, + "remoteBytesReadToDisk": { + "format": "int64", + "type": "string" + }, + "remoteReqsDuration": { + "format": "int64", + "type": "string" + }, + "stageShufflePushReadMetrics": { + "$ref": "StageShufflePushReadMetrics" + } + }, + "type": "object" + }, + "StageShuffleWriteMetrics": { + "description": "Shuffle data written for the stage.", + "id": "StageShuffleWriteMetrics", + "properties": { + "bytesWritten": { + "format": "int64", + "type": "string" + }, + "recordsWritten": { + "format": "int64", "type": "string" }, - "uuid": { - "description": "Output only. A session UUID (Unique Universal Identifier). The service generates this value when it creates the session.", - "readOnly": true, + "writeTimeNanos": { + "format": "int64", "type": "string" } }, "type": "object" }, - "SessionOperationMetadata": { - "description": "Metadata describing the Session operation.", - "id": "SessionOperationMetadata", + "StagesSummary": { + "description": "Data related to Stages page summary", + "id": "StagesSummary", "properties": { - "createTime": { - "description": "The time when the operation was created.", - "format": "google-datetime", + "applicationId": { "type": "string" }, - "description": { - "description": "Short description of the operation.", - "type": "string" + "numActiveStages": { + "format": "int32", + "type": "integer" }, - "doneTime": { - "description": "The time when the operation was finished.", - "format": "google-datetime", - "type": "string" + "numCompletedStages": { + "format": "int32", + "type": "integer" }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Labels associated with the operation.", - "type": "object" + "numFailedStages": { + "format": "int32", + "type": "integer" }, - "operationType": { - "description": "The operation type.", - "enum": [ - "SESSION_OPERATION_TYPE_UNSPECIFIED", - "CREATE", - "TERMINATE", - "DELETE" - ], - "enumDescriptions": [ - "Session operation type is unknown.", - "Create Session operation type.", - "Terminate Session operation type.", - "Delete Session operation type." - ], - "type": "string" + "numPendingStages": { + "format": "int32", + "type": "integer" }, - "session": { - "description": "Name of the session for the operation.", + "numSkippedStages": { + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "StartClusterRequest": { + "description": "A request to start a cluster.", + "id": "StartClusterRequest", + "properties": { + "clusterUuid": { + "description": "Optional. Specifying the cluster_uuid means the RPC will fail (with error NOT_FOUND) if a cluster with the specified UUID does not exist.", "type": "string" }, - "sessionUuid": { - "description": "Session UUID for the operation.", + "requestId": { + "description": "Optional. A unique ID used to identify the request. If the server receives two StartClusterRequest (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StartClusterRequest)s with the same id, then the second request will be ignored and the first google.longrunning.Operation created and stored in the backend is returned.Recommendation: Set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", "type": "string" - }, - "warnings": { - "description": "Warnings encountered during operation execution.", - "items": { - "type": "string" - }, - "type": "array" } }, "type": "object" }, - "SessionStateHistory": { + "StartupConfig": { + "description": "Configuration to handle the startup of instances during cluster create and update process.", + "id": "StartupConfig", + "properties": { + "requiredRegistrationFraction": { + "description": "Optional. The config setting to enable cluster creation/ updation to be successful only after required_registration_fraction of instances are up and running. This configuration is applicable to only secondary workers for now. The cluster will fail if required_registration_fraction of instances are not available. This will include instance creation, agent registration, and service registration (if enabled).", + "format": "double", + "type": "number" + } + }, + "type": "object" + }, + "StateHistory": { "description": "Historical state information.", - "id": "SessionStateHistory", + "id": "StateHistory", "properties": { "state": { - "description": "Output only. The state of the session at this point in the session history.", + "description": "Output only. The state of the batch at this point in history.", "enum": [ "STATE_UNSPECIFIED", - "CREATING", - "ACTIVE", - "TERMINATING", - "TERMINATED", + "PENDING", + "RUNNING", + "CANCELLING", + "CANCELLED", + "SUCCEEDED", "FAILED" ], "enumDescriptions": [ - "The session state is unknown.", - "The session is created prior to running.", - "The session is running.", - "The session is terminating.", - "The session is terminated successfully.", - "The session is no longer running due to an error." + "The batch state is unknown.", + "The batch is created before running.", + "The batch is running.", + "The batch is cancelling.", + "The batch cancellation was successful.", + "The batch completed successfully.", + "The batch is no longer running due to an error." ], "readOnly": true, "type": "string" }, "stateMessage": { - "description": "Output only. Details about the state at this point in the session history.", + "description": "Output only. Details about the state at this point in history.", "readOnly": true, "type": "string" }, "stateStartTime": { - "description": "Output only. The time when the session entered the historical state.", + "description": "Output only. The time when the batch entered the historical state.", "format": "google-datetime", "readOnly": true, "type": "string" @@ -6534,565 +11652,569 @@ }, "type": "object" }, - "SessionTemplate": { - "description": "A representation of a session template.", - "id": "SessionTemplate", + "StateOperatorProgress": { + "id": "StateOperatorProgress", "properties": { - "createTime": { - "description": "Output only. The time when the template was created.", - "format": "google-datetime", - "readOnly": true, + "allRemovalsTimeMs": { + "format": "int64", "type": "string" }, - "creator": { - "description": "Output only. The email address of the user who created the template.", - "readOnly": true, + "allUpdatesTimeMs": { + "format": "int64", "type": "string" }, - "description": { - "description": "Optional. Brief description of the template.", + "commitTimeMs": { + "format": "int64", "type": "string" }, - "environmentConfig": { - "$ref": "EnvironmentConfig", - "description": "Optional. Environment configuration for session execution." - }, - "jupyterSession": { - "$ref": "JupyterConfig", - "description": "Optional. Jupyter session config." - }, - "labels": { + "customMetrics": { "additionalProperties": { + "format": "int64", "type": "string" }, - "description": "Optional. Labels to associate with sessions created using this template. Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values can be empty, but, if present, must contain 1 to 63 characters and conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a session.", "type": "object" }, - "name": { - "description": "Required. The resource name of the session template.", + "memoryUsedBytes": { + "format": "int64", "type": "string" }, - "runtimeConfig": { - "$ref": "RuntimeConfig", - "description": "Optional. Runtime configuration for session execution." + "numRowsDroppedByWatermark": { + "format": "int64", + "type": "string" }, - "sparkConnectSession": { - "$ref": "SparkConnectConfig", - "description": "Optional. Spark connect session config." + "numRowsRemoved": { + "format": "int64", + "type": "string" }, - "updateTime": { - "description": "Output only. The time the template was last updated.", - "format": "google-datetime", - "readOnly": true, + "numRowsTotal": { + "format": "int64", "type": "string" }, - "uuid": { - "description": "Output only. A session template UUID (Unique Universal Identifier). The service generates this value when it creates the session template.", - "readOnly": true, + "numRowsUpdated": { + "format": "int64", "type": "string" - } - }, - "type": "object" - }, - "SetIamPolicyRequest": { - "description": "Request message for SetIamPolicy method.", - "id": "SetIamPolicyRequest", - "properties": { - "policy": { - "$ref": "Policy", - "description": "REQUIRED: The complete policy to be applied to the resource. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Google Cloud services (such as Projects) might reject them." - } - }, - "type": "object" - }, - "ShieldedInstanceConfig": { - "description": "Shielded Instance Config for clusters using Compute Engine Shielded VMs (https://cloud.google.com/security/shielded-cloud/shielded-vm).", - "id": "ShieldedInstanceConfig", - "properties": { - "enableIntegrityMonitoring": { - "description": "Optional. Defines whether instances have integrity monitoring enabled.", - "type": "boolean" }, - "enableSecureBoot": { - "description": "Optional. Defines whether instances have Secure Boot enabled.", - "type": "boolean" + "numShufflePartitions": { + "format": "int64", + "type": "string" }, - "enableVtpm": { - "description": "Optional. Defines whether instances have the vTPM enabled.", - "type": "boolean" + "numStateStoreInstances": { + "format": "int64", + "type": "string" + }, + "operatorName": { + "type": "string" } }, "type": "object" }, - "SoftwareConfig": { - "description": "Specifies the selection and config of software inside the cluster.", - "id": "SoftwareConfig", + "Status": { + "description": "The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each Status message contains three pieces of data: error code, error message, and error details.You can find out more about this error model and how to work with it in the API Design Guide (https://cloud.google.com/apis/design/errors).", + "id": "Status", "properties": { - "imageVersion": { - "description": "Optional. The version of software inside the cluster. It must be one of the supported Dataproc Versions (https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported-dataproc-image-versions), such as \"1.2\" (including a subminor version, such as \"1.2.29\"), or the \"preview\" version (https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions). If unspecified, it defaults to the latest Debian version.", - "type": "string" + "code": { + "description": "The status code, which should be an enum value of google.rpc.Code.", + "format": "int32", + "type": "integer" }, - "optionalComponents": { - "description": "Optional. The set of components to activate on the cluster.", + "details": { + "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.", "items": { - "enum": [ - "COMPONENT_UNSPECIFIED", - "ANACONDA", - "DOCKER", - "DRUID", - "FLINK", - "HBASE", - "HIVE_WEBHCAT", - "HUDI", - "JUPYTER", - "PRESTO", - "TRINO", - "RANGER", - "SOLR", - "ZEPPELIN", - "ZOOKEEPER" - ], - "enumDescriptions": [ - "Unspecified component. Specifying this will cause Cluster creation to fail.", - "The Anaconda component is no longer supported or applicable to supported Dataproc on Compute Engine image versions (https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-version-clusters#supported-dataproc-image-versions). It cannot be activated on clusters created with supported Dataproc on Compute Engine image versions.", - "Docker", - "The Druid query engine. (alpha)", - "Flink", - "HBase. (beta)", - "The Hive Web HCatalog (the REST service for accessing HCatalog).", - "Hudi.", - "The Jupyter Notebook.", - "The Presto query engine.", - "The Trino query engine.", - "The Ranger service.", - "The Solr service.", - "The Zeppelin notebook.", - "The Zookeeper service." - ], - "type": "string" + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "type": "object" }, "type": "array" }, - "properties": { - "additionalProperties": { - "type": "string" - }, - "description": "Optional. The properties to set on daemon config files.Property keys are specified in prefix:property format, for example core:hadoop.tmp.dir. The following are supported prefixes and their mappings: capacity-scheduler: capacity-scheduler.xml core: core-site.xml distcp: distcp-default.xml hdfs: hdfs-site.xml hive: hive-site.xml mapred: mapred-site.xml pig: pig.properties spark: spark-defaults.conf yarn: yarn-site.xmlFor more information, see Cluster properties (https://cloud.google.com/dataproc/docs/concepts/cluster-properties).", - "type": "object" + "message": { + "description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.", + "type": "string" } }, "type": "object" }, - "SparkBatch": { - "description": "A configuration for running an Apache Spark (https://spark.apache.org/) batch workload.", - "id": "SparkBatch", + "StopClusterRequest": { + "description": "A request to stop a cluster.", + "id": "StopClusterRequest", "properties": { - "archiveUris": { - "description": "Optional. HCFS URIs of archives to be extracted into the working directory of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.", - "items": { - "type": "string" - }, - "type": "array" + "clusterUuid": { + "description": "Optional. Specifying the cluster_uuid means the RPC will fail (with error NOT_FOUND) if a cluster with the specified UUID does not exist.", + "type": "string" }, - "args": { - "description": "Optional. The arguments to pass to the driver. Do not include arguments that can be set as batch properties, such as --conf, since a collision can occur that causes an incorrect batch submission.", - "items": { - "type": "string" - }, - "type": "array" + "requestId": { + "description": "Optional. A unique ID used to identify the request. If the server receives two StopClusterRequest (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StopClusterRequest)s with the same id, then the second request will be ignored and the first google.longrunning.Operation created and stored in the backend is returned.Recommendation: Set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", + "type": "string" + } + }, + "type": "object" + }, + "StreamBlockData": { + "description": "Stream Block Data.", + "id": "StreamBlockData", + "properties": { + "deserialized": { + "type": "boolean" }, - "fileUris": { - "description": "Optional. HCFS URIs of files to be placed in the working directory of each executor.", - "items": { - "type": "string" - }, - "type": "array" + "diskSize": { + "format": "int64", + "type": "string" }, - "jarFileUris": { - "description": "Optional. HCFS URIs of jar files to add to the classpath of the Spark driver and tasks.", - "items": { - "type": "string" - }, - "type": "array" + "executorId": { + "type": "string" }, - "mainClass": { - "description": "Optional. The name of the driver main class. The jar file that contains the class must be in the classpath or specified in jar_file_uris.", + "hostPort": { "type": "string" }, - "mainJarFileUri": { - "description": "Optional. The HCFS URI of the jar file that contains the main class.", + "memSize": { + "format": "int64", + "type": "string" + }, + "name": { + "type": "string" + }, + "storageLevel": { "type": "string" + }, + "useDisk": { + "type": "boolean" + }, + "useMemory": { + "type": "boolean" } }, "type": "object" }, - "SparkConnectConfig": { - "description": "Spark connect configuration for an interactive session.", - "id": "SparkConnectConfig", - "properties": {}, - "type": "object" - }, - "SparkHistoryServerConfig": { - "description": "Spark History Server configuration for the workload.", - "id": "SparkHistoryServerConfig", + "StreamingQueryData": { + "description": "Streaming", + "id": "StreamingQueryData", "properties": { - "dataprocCluster": { - "description": "Optional. Resource name of an existing Dataproc Cluster to act as a Spark History Server for the workload.Example: projects/[project_id]/regions/[region]/clusters/[cluster_name]", + "endTimestamp": { + "format": "int64", + "type": "string" + }, + "exception": { + "type": "string" + }, + "isActive": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "runId": { + "type": "string" + }, + "startTimestamp": { + "format": "int64", + "type": "string" + }, + "streamingQueryId": { "type": "string" } }, "type": "object" }, - "SparkJob": { - "description": "A Dataproc job for running Apache Spark (https://spark.apache.org/) applications on YARN.", - "id": "SparkJob", + "StreamingQueryProgress": { + "id": "StreamingQueryProgress", "properties": { - "archiveUris": { - "description": "Optional. HCFS URIs of archives to be extracted into the working directory of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.", - "items": { - "type": "string" - }, - "type": "array" + "batchDuration": { + "format": "int64", + "type": "string" }, - "args": { - "description": "Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission.", - "items": { - "type": "string" - }, - "type": "array" + "batchId": { + "format": "int64", + "type": "string" }, - "fileUris": { - "description": "Optional. HCFS URIs of files to be placed in the working directory of each executor. Useful for naively parallel tasks.", - "items": { + "durationMillis": { + "additionalProperties": { + "format": "int64", "type": "string" }, - "type": "array" + "type": "object" }, - "jarFileUris": { - "description": "Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver and tasks.", - "items": { + "eventTime": { + "additionalProperties": { "type": "string" }, - "type": "array" - }, - "loggingConfig": { - "$ref": "LoggingConfig", - "description": "Optional. The runtime log config for job execution." - }, - "mainClass": { - "description": "The name of the driver's main class. The jar file that contains the class must be in the default CLASSPATH or specified in SparkJob.jar_file_uris.", - "type": "string" + "type": "object" }, - "mainJarFileUri": { - "description": "The HCFS URI of the jar file that contains the main class.", + "name": { "type": "string" }, - "properties": { + "observedMetrics": { "additionalProperties": { "type": "string" }, - "description": "Optional. A mapping of property names to values, used to configure Spark. Properties that conflict with values set by the Dataproc API might be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code.", "type": "object" - } - }, - "type": "object" - }, - "SparkRBatch": { - "description": "A configuration for running an Apache SparkR (https://spark.apache.org/docs/latest/sparkr.html) batch workload.", - "id": "SparkRBatch", - "properties": { - "archiveUris": { - "description": "Optional. HCFS URIs of archives to be extracted into the working directory of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.", - "items": { - "type": "string" - }, - "type": "array" }, - "args": { - "description": "Optional. The arguments to pass to the Spark driver. Do not include arguments that can be set as batch properties, such as --conf, since a collision can occur that causes an incorrect batch submission.", + "runId": { + "type": "string" + }, + "sink": { + "$ref": "SinkProgress" + }, + "sources": { "items": { - "type": "string" + "$ref": "SourceProgress" }, "type": "array" }, - "fileUris": { - "description": "Optional. HCFS URIs of files to be placed in the working directory of each executor.", + "stateOperators": { "items": { - "type": "string" + "$ref": "StateOperatorProgress" }, "type": "array" }, - "mainRFileUri": { - "description": "Required. The HCFS URI of the main R file to use as the driver. Must be a .R or .r file.", + "streamingQueryProgressId": { + "type": "string" + }, + "timestamp": { "type": "string" } }, "type": "object" }, - "SparkRJob": { - "description": "A Dataproc job for running Apache SparkR (https://spark.apache.org/docs/latest/sparkr.html) applications on YARN.", - "id": "SparkRJob", + "SubmitJobRequest": { + "description": "A request to submit a job.", + "id": "SubmitJobRequest", "properties": { - "archiveUris": { - "description": "Optional. HCFS URIs of archives to be extracted into the working directory of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.", - "items": { - "type": "string" - }, - "type": "array" - }, - "args": { - "description": "Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission.", - "items": { - "type": "string" - }, - "type": "array" - }, - "fileUris": { - "description": "Optional. HCFS URIs of files to be placed in the working directory of each executor. Useful for naively parallel tasks.", - "items": { - "type": "string" - }, - "type": "array" + "job": { + "$ref": "Job", + "description": "Required. The job resource." }, - "loggingConfig": { - "$ref": "LoggingConfig", - "description": "Optional. The runtime log config for job execution." + "requestId": { + "description": "Optional. A unique id used to identify the request. If the server receives two SubmitJobRequest (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.SubmitJobRequest)s with the same id, then the second request will be ignored and the first Job created and stored in the backend is returned.It is recommended to always set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", + "type": "string" + } + }, + "type": "object" + }, + "SummarizeSessionSparkApplicationExecutorsResponse": { + "description": "Consolidated summary of executors for a Spark Application.", + "id": "SummarizeSessionSparkApplicationExecutorsResponse", + "properties": { + "activeExecutorSummary": { + "$ref": "ConsolidatedExecutorSummary", + "description": "Consolidated summary for active executors." }, - "mainRFileUri": { - "description": "Required. The HCFS URI of the main R file to use as the driver. Must be a .R file.", + "applicationId": { + "description": "Spark Application Id", "type": "string" }, - "properties": { - "additionalProperties": { - "type": "string" - }, - "description": "Optional. A mapping of property names to values, used to configure SparkR. Properties that conflict with values set by the Dataproc API might be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code.", - "type": "object" + "deadExecutorSummary": { + "$ref": "ConsolidatedExecutorSummary", + "description": "Consolidated summary for dead executors." + }, + "totalExecutorSummary": { + "$ref": "ConsolidatedExecutorSummary", + "description": "Overall consolidated summary for all executors." } }, "type": "object" }, - "SparkSqlBatch": { - "description": "A configuration for running Apache Spark SQL (https://spark.apache.org/sql/) queries as a batch workload.", - "id": "SparkSqlBatch", + "SummarizeSessionSparkApplicationJobsResponse": { + "description": "Summary of a Spark Application jobs.", + "id": "SummarizeSessionSparkApplicationJobsResponse", "properties": { - "jarFileUris": { - "description": "Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.", - "items": { - "type": "string" - }, - "type": "array" + "jobsSummary": { + "$ref": "JobsSummary", + "description": "Summary of a Spark Application Jobs" + } + }, + "type": "object" + }, + "SummarizeSessionSparkApplicationStageAttemptTasksResponse": { + "description": "Summary of tasks for a Spark Application stage attempt.", + "id": "SummarizeSessionSparkApplicationStageAttemptTasksResponse", + "properties": { + "stageAttemptTasksSummary": { + "$ref": "StageAttemptTasksSummary", + "description": "Summary of tasks for a Spark Application Stage Attempt" + } + }, + "type": "object" + }, + "SummarizeSessionSparkApplicationStagesResponse": { + "description": "Summary of a Spark Application stages.", + "id": "SummarizeSessionSparkApplicationStagesResponse", + "properties": { + "stagesSummary": { + "$ref": "StagesSummary", + "description": "Summary of a Spark Application Stages" + } + }, + "type": "object" + }, + "SummarizeSparkApplicationExecutorsResponse": { + "description": "Consolidated summary of executors for a Spark Application.", + "id": "SummarizeSparkApplicationExecutorsResponse", + "properties": { + "activeExecutorSummary": { + "$ref": "ConsolidatedExecutorSummary", + "description": "Consolidated summary for active executors." }, - "queryFileUri": { - "description": "Required. The HCFS URI of the script that contains Spark SQL queries to execute.", + "applicationId": { + "description": "Spark Application Id", "type": "string" }, - "queryVariables": { - "additionalProperties": { - "type": "string" - }, - "description": "Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET name=\"value\";).", - "type": "object" + "deadExecutorSummary": { + "$ref": "ConsolidatedExecutorSummary", + "description": "Consolidated summary for dead executors." + }, + "totalExecutorSummary": { + "$ref": "ConsolidatedExecutorSummary", + "description": "Overall consolidated summary for all executors." + } + }, + "type": "object" + }, + "SummarizeSparkApplicationJobsResponse": { + "description": "Summary of a Spark Application jobs.", + "id": "SummarizeSparkApplicationJobsResponse", + "properties": { + "jobsSummary": { + "$ref": "JobsSummary", + "description": "Summary of a Spark Application Jobs" + } + }, + "type": "object" + }, + "SummarizeSparkApplicationStageAttemptTasksResponse": { + "description": "Summary of tasks for a Spark Application stage attempt.", + "id": "SummarizeSparkApplicationStageAttemptTasksResponse", + "properties": { + "stageAttemptTasksSummary": { + "$ref": "StageAttemptTasksSummary", + "description": "Summary of tasks for a Spark Application Stage Attempt" } }, "type": "object" }, - "SparkSqlJob": { - "description": "A Dataproc job for running Apache Spark SQL (https://spark.apache.org/sql/) queries.", - "id": "SparkSqlJob", + "SummarizeSparkApplicationStagesResponse": { + "description": "Summary of a Spark Application stages.", + "id": "SummarizeSparkApplicationStagesResponse", "properties": { - "jarFileUris": { - "description": "Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.", + "stagesSummary": { + "$ref": "StagesSummary", + "description": "Summary of a Spark Application Stages" + } + }, + "type": "object" + }, + "TaskData": { + "description": "Data corresponding to tasks created by spark.", + "id": "TaskData", + "properties": { + "accumulatorUpdates": { "items": { - "type": "string" + "$ref": "AccumulableInfo" }, "type": "array" }, - "loggingConfig": { - "$ref": "LoggingConfig", - "description": "Optional. The runtime log config for job execution." + "attempt": { + "format": "int32", + "type": "integer" }, - "properties": { - "additionalProperties": { - "type": "string" - }, - "description": "Optional. A mapping of property names to values, used to configure Spark SQL's SparkConf. Properties that conflict with values set by the Dataproc API might be overwritten.", - "type": "object" + "durationMillis": { + "format": "int64", + "type": "string" }, - "queryFileUri": { - "description": "The HCFS URI of the script that contains SQL queries.", + "errorMessage": { "type": "string" }, - "queryList": { - "$ref": "QueryList", - "description": "A list of queries." + "executorId": { + "type": "string" }, - "scriptVariables": { + "executorLogs": { "additionalProperties": { "type": "string" }, - "description": "Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET name=\"value\";).", "type": "object" - } - }, - "type": "object" - }, - "SparkStandaloneAutoscalingConfig": { - "description": "Basic autoscaling configurations for Spark Standalone.", - "id": "SparkStandaloneAutoscalingConfig", - "properties": { - "gracefulDecommissionTimeout": { - "description": "Required. Timeout for Spark graceful decommissioning of spark workers. Specifies the duration to wait for spark worker to complete spark decommissioning tasks before forcefully removing workers. Only applicable to downscaling operations.Bounds: 0s, 1d.", - "format": "google-duration", + }, + "gettingResultTimeMillis": { + "format": "int64", "type": "string" }, - "removeOnlyIdleWorkers": { - "description": "Optional. Remove only idle workers when scaling down cluster", + "hasMetrics": { "type": "boolean" }, - "scaleDownFactor": { - "description": "Required. Fraction of required executors to remove from Spark Serverless clusters. A scale-down factor of 1.0 will result in scaling down so that there are no more executors for the Spark Job.(more aggressive scaling). A scale-down factor closer to 0 will result in a smaller magnitude of scaling donw (less aggressive scaling).Bounds: 0.0, 1.0.", - "format": "double", - "type": "number" + "host": { + "type": "string" }, - "scaleDownMinWorkerFraction": { - "description": "Optional. Minimum scale-down threshold as a fraction of total cluster size before scaling occurs. For example, in a 20-worker cluster, a threshold of 0.1 means the autoscaler must recommend at least a 2 worker scale-down for the cluster to scale. A threshold of 0 means the autoscaler will scale down on any recommended change.Bounds: 0.0, 1.0. Default: 0.0.", - "format": "double", - "type": "number" + "index": { + "format": "int32", + "type": "integer" }, - "scaleUpFactor": { - "description": "Required. Fraction of required workers to add to Spark Standalone clusters. A scale-up factor of 1.0 will result in scaling up so that there are no more required workers for the Spark Job (more aggressive scaling). A scale-up factor closer to 0 will result in a smaller magnitude of scaling up (less aggressive scaling).Bounds: 0.0, 1.0.", - "format": "double", - "type": "number" + "launchTime": { + "format": "google-datetime", + "type": "string" }, - "scaleUpMinWorkerFraction": { - "description": "Optional. Minimum scale-up threshold as a fraction of total cluster size before scaling occurs. For example, in a 20-worker cluster, a threshold of 0.1 means the autoscaler must recommend at least a 2-worker scale-up for the cluster to scale. A threshold of 0 means the autoscaler will scale up on any recommended change.Bounds: 0.0, 1.0. Default: 0.0.", - "format": "double", - "type": "number" - } - }, - "type": "object" - }, - "StartClusterRequest": { - "description": "A request to start a cluster.", - "id": "StartClusterRequest", - "properties": { - "clusterUuid": { - "description": "Optional. Specifying the cluster_uuid means the RPC will fail (with error NOT_FOUND) if a cluster with the specified UUID does not exist.", + "partitionId": { + "format": "int32", + "type": "integer" + }, + "resultFetchStart": { + "format": "google-datetime", "type": "string" }, - "requestId": { - "description": "Optional. A unique ID used to identify the request. If the server receives two StartClusterRequest (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StartClusterRequest)s with the same id, then the second request will be ignored and the first google.longrunning.Operation created and stored in the backend is returned.Recommendation: Set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", + "schedulerDelayMillis": { + "format": "int64", "type": "string" - } - }, - "type": "object" - }, - "StartupConfig": { - "description": "Configuration to handle the startup of instances during cluster create and update process.", - "id": "StartupConfig", - "properties": { - "requiredRegistrationFraction": { - "description": "Optional. The config setting to enable cluster creation/ updation to be successful only after required_registration_fraction of instances are up and running. This configuration is applicable to only secondary workers for now. The cluster will fail if required_registration_fraction of instances are not available. This will include instance creation, agent registration, and service registration (if enabled).", - "format": "double", - "type": "number" - } - }, - "type": "object" - }, - "StateHistory": { - "description": "Historical state information.", - "id": "StateHistory", - "properties": { - "state": { - "description": "Output only. The state of the batch at this point in history.", - "enum": [ - "STATE_UNSPECIFIED", - "PENDING", - "RUNNING", - "CANCELLING", - "CANCELLED", - "SUCCEEDED", - "FAILED" - ], - "enumDescriptions": [ - "The batch state is unknown.", - "The batch is created before running.", - "The batch is running.", - "The batch is cancelling.", - "The batch cancellation was successful.", - "The batch completed successfully.", - "The batch is no longer running due to an error." - ], - "readOnly": true, + }, + "speculative": { + "type": "boolean" + }, + "stageAttemptId": { + "format": "int32", + "type": "integer" + }, + "stageId": { + "format": "int64", "type": "string" }, - "stateMessage": { - "description": "Output only. Details about the state at this point in history.", - "readOnly": true, + "status": { "type": "string" }, - "stateStartTime": { - "description": "Output only. The time when the batch entered the historical state.", - "format": "google-datetime", - "readOnly": true, + "taskId": { + "format": "int64", "type": "string" + }, + "taskLocality": { + "type": "string" + }, + "taskMetrics": { + "$ref": "TaskMetrics" } }, "type": "object" }, - "Status": { - "description": "The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each Status message contains three pieces of data: error code, error message, and error details.You can find out more about this error model and how to work with it in the API Design Guide (https://cloud.google.com/apis/design/errors).", - "id": "Status", + "TaskMetrics": { + "description": "Executor Task Metrics", + "id": "TaskMetrics", "properties": { - "code": { - "description": "The status code, which should be an enum value of google.rpc.Code.", - "format": "int32", - "type": "integer" + "diskBytesSpilled": { + "format": "int64", + "type": "string" }, - "details": { - "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.", - "items": { - "additionalProperties": { - "description": "Properties of the object. Contains field @type with type URL.", - "type": "any" - }, - "type": "object" - }, - "type": "array" + "executorCpuTimeNanos": { + "format": "int64", + "type": "string" }, - "message": { - "description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.", + "executorDeserializeCpuTimeNanos": { + "format": "int64", + "type": "string" + }, + "executorDeserializeTimeMillis": { + "format": "int64", + "type": "string" + }, + "executorRunTimeMillis": { + "format": "int64", + "type": "string" + }, + "inputMetrics": { + "$ref": "InputMetrics" + }, + "jvmGcTimeMillis": { + "format": "int64", + "type": "string" + }, + "memoryBytesSpilled": { + "format": "int64", + "type": "string" + }, + "outputMetrics": { + "$ref": "OutputMetrics" + }, + "peakExecutionMemoryBytes": { + "format": "int64", + "type": "string" + }, + "resultSerializationTimeMillis": { + "format": "int64", + "type": "string" + }, + "resultSize": { + "format": "int64", "type": "string" + }, + "shuffleReadMetrics": { + "$ref": "ShuffleReadMetrics" + }, + "shuffleWriteMetrics": { + "$ref": "ShuffleWriteMetrics" } }, "type": "object" }, - "StopClusterRequest": { - "description": "A request to stop a cluster.", - "id": "StopClusterRequest", + "TaskQuantileMetrics": { + "id": "TaskQuantileMetrics", "properties": { - "clusterUuid": { - "description": "Optional. Specifying the cluster_uuid means the RPC will fail (with error NOT_FOUND) if a cluster with the specified UUID does not exist.", - "type": "string" + "diskBytesSpilled": { + "$ref": "Quantiles" }, - "requestId": { - "description": "Optional. A unique ID used to identify the request. If the server receives two StopClusterRequest (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StopClusterRequest)s with the same id, then the second request will be ignored and the first google.longrunning.Operation created and stored in the backend is returned.Recommendation: Set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", - "type": "string" + "durationMillis": { + "$ref": "Quantiles" + }, + "executorCpuTimeNanos": { + "$ref": "Quantiles" + }, + "executorDeserializeCpuTimeNanos": { + "$ref": "Quantiles" + }, + "executorDeserializeTimeMillis": { + "$ref": "Quantiles" + }, + "executorRunTimeMillis": { + "$ref": "Quantiles" + }, + "gettingResultTimeMillis": { + "$ref": "Quantiles" + }, + "inputMetrics": { + "$ref": "InputQuantileMetrics" + }, + "jvmGcTimeMillis": { + "$ref": "Quantiles" + }, + "memoryBytesSpilled": { + "$ref": "Quantiles" + }, + "outputMetrics": { + "$ref": "OutputQuantileMetrics" + }, + "peakExecutionMemoryBytes": { + "$ref": "Quantiles" + }, + "resultSerializationTimeMillis": { + "$ref": "Quantiles" + }, + "resultSize": { + "$ref": "Quantiles" + }, + "schedulerDelayMillis": { + "$ref": "Quantiles" + }, + "shuffleReadMetrics": { + "$ref": "ShuffleReadQuantileMetrics" + }, + "shuffleWriteMetrics": { + "$ref": "ShuffleWriteQuantileMetrics" } }, "type": "object" }, - "SubmitJobRequest": { - "description": "A request to submit a job.", - "id": "SubmitJobRequest", + "TaskResourceRequest": { + "description": "Resources used per task created by the application.", + "id": "TaskResourceRequest", "properties": { - "job": { - "$ref": "Job", - "description": "Required. The job resource." + "amount": { + "format": "double", + "type": "number" }, - "requestId": { - "description": "Optional. A unique id used to identify the request. If the server receives two SubmitJobRequest (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.SubmitJobRequest)s with the same id, then the second request will be ignored and the first Job created and stored in the backend is returned.It is recommended to always set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", + "resourceName": { "type": "string" } }, @@ -7548,6 +12670,53 @@ }, "type": "object" }, + "WriteSessionSparkApplicationContextRequest": { + "description": "Write Spark Application data to internal storage systems", + "id": "WriteSessionSparkApplicationContextRequest", + "properties": { + "parent": { + "description": "Required. Parent (Batch) resource reference.", + "type": "string" + }, + "sparkWrapperObjects": { + "description": "Required. The batch of spark application context objects sent for ingestion.", + "items": { + "$ref": "SparkWrapperObject" + }, + "type": "array" + } + }, + "type": "object" + }, + "WriteSessionSparkApplicationContextResponse": { + "description": "Response returned as an acknowledgement of receipt of data.", + "id": "WriteSessionSparkApplicationContextResponse", + "properties": {}, + "type": "object" + }, + "WriteSparkApplicationContextRequest": { + "description": "Write Spark Application data to internal storage systems", + "id": "WriteSparkApplicationContextRequest", + "properties": { + "parent": { + "description": "Required. Parent (Batch) resource reference.", + "type": "string" + }, + "sparkWrapperObjects": { + "items": { + "$ref": "SparkWrapperObject" + }, + "type": "array" + } + }, + "type": "object" + }, + "WriteSparkApplicationContextResponse": { + "description": "Response returned as an acknowledgement of receipt of data.", + "id": "WriteSparkApplicationContextResponse", + "properties": {}, + "type": "object" + }, "YarnApplication": { "description": "A YARN application created by a job. Application information is a subset of org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto.Beta Feature: This report is available for testing purposes only. It may be changed before final release.", "id": "YarnApplication", diff --git a/dataproc/v1/dataproc-gen.go b/dataproc/v1/dataproc-gen.go index 37803d70653..4df61dc2b2e 100644 --- a/dataproc/v1/dataproc-gen.go +++ b/dataproc/v1/dataproc-gen.go @@ -209,11 +209,23 @@ type ProjectsLocationsAutoscalingPoliciesService struct { func NewProjectsLocationsBatchesService(s *Service) *ProjectsLocationsBatchesService { rs := &ProjectsLocationsBatchesService{s: s} + rs.SparkApplications = NewProjectsLocationsBatchesSparkApplicationsService(s) return rs } type ProjectsLocationsBatchesService struct { s *Service + + SparkApplications *ProjectsLocationsBatchesSparkApplicationsService +} + +func NewProjectsLocationsBatchesSparkApplicationsService(s *Service) *ProjectsLocationsBatchesSparkApplicationsService { + rs := &ProjectsLocationsBatchesSparkApplicationsService{s: s} + return rs +} + +type ProjectsLocationsBatchesSparkApplicationsService struct { + s *Service } func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService { @@ -236,11 +248,23 @@ type ProjectsLocationsSessionTemplatesService struct { func NewProjectsLocationsSessionsService(s *Service) *ProjectsLocationsSessionsService { rs := &ProjectsLocationsSessionsService{s: s} + rs.SparkApplications = NewProjectsLocationsSessionsSparkApplicationsService(s) return rs } type ProjectsLocationsSessionsService struct { s *Service + + SparkApplications *ProjectsLocationsSessionsSparkApplicationsService +} + +func NewProjectsLocationsSessionsSparkApplicationsService(s *Service) *ProjectsLocationsSessionsSparkApplicationsService { + rs := &ProjectsLocationsSessionsSparkApplicationsService{s: s} + return rs +} + +type ProjectsLocationsSessionsSparkApplicationsService struct { + s *Service } func NewProjectsLocationsWorkflowTemplatesService(s *Service) *ProjectsLocationsWorkflowTemplatesService { @@ -370,1781 +394,1705 @@ func (s AcceleratorConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AnalyzeBatchRequest: A request to analyze a batch workload. -type AnalyzeBatchRequest struct { - // RequestId: Optional. A unique ID used to identify the request. If the - // service receives two AnalyzeBatchRequest - // (http://cloud/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.AnalyzeBatchRequest)s - // with the same request_id, the second request is ignored and the Operation - // that corresponds to the first request created and stored in the backend is - // returned.Recommendation: Set this value to a UUID - // (https://en.wikipedia.org/wiki/Universally_unique_identifier).The value must - // contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens - // (-). The maximum length is 40 characters. - RequestId string `json:"requestId,omitempty"` - // ForceSendFields is a list of field names (e.g. "RequestId") to - // unconditionally include in API requests. By default, fields with empty or +// AccessSessionSparkApplicationEnvironmentInfoResponse: Environment details of +// a Saprk Application. +type AccessSessionSparkApplicationEnvironmentInfoResponse struct { + // ApplicationEnvironmentInfo: Details about the Environment that the + // application is running in. + ApplicationEnvironmentInfo *ApplicationEnvironmentInfo `json:"applicationEnvironmentInfo,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "ApplicationEnvironmentInfo") + // to unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "RequestId") to include in API + // NullFields is a list of field names (e.g. "ApplicationEnvironmentInfo") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s AccessSessionSparkApplicationEnvironmentInfoResponse) MarshalJSON() ([]byte, error) { + type NoMethod AccessSessionSparkApplicationEnvironmentInfoResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// AccessSessionSparkApplicationJobResponse: Details of a particular job +// associated with Spark Application +type AccessSessionSparkApplicationJobResponse struct { + // JobData: Output only. Data corresponding to a spark job. + JobData *JobData `json:"jobData,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "JobData") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "JobData") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s AnalyzeBatchRequest) MarshalJSON() ([]byte, error) { - type NoMethod AnalyzeBatchRequest +func (s AccessSessionSparkApplicationJobResponse) MarshalJSON() ([]byte, error) { + type NoMethod AccessSessionSparkApplicationJobResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AnalyzeOperationMetadata: Metadata describing the Analyze operation. -type AnalyzeOperationMetadata struct { - // AnalyzedWorkloadName: Output only. name of the workload being analyzed. - AnalyzedWorkloadName string `json:"analyzedWorkloadName,omitempty"` - // AnalyzedWorkloadType: Output only. Type of the workload being analyzed. - // - // Possible values: - // "WORKLOAD_TYPE_UNSPECIFIED" - Undefined option - // "BATCH" - Serverless batch job - AnalyzedWorkloadType string `json:"analyzedWorkloadType,omitempty"` - // AnalyzedWorkloadUuid: Output only. unique identifier of the workload - // typically generated by control plane. E.g. batch uuid. - AnalyzedWorkloadUuid string `json:"analyzedWorkloadUuid,omitempty"` - // CreateTime: Output only. The time when the operation was created. - CreateTime string `json:"createTime,omitempty"` - // Description: Output only. Short description of the operation. - Description string `json:"description,omitempty"` - // DoneTime: Output only. The time when the operation finished. - DoneTime string `json:"doneTime,omitempty"` - // Labels: Output only. Labels associated with the operation. - Labels map[string]string `json:"labels,omitempty"` - // Warnings: Output only. Warnings encountered during operation execution. - Warnings []string `json:"warnings,omitempty"` - // ForceSendFields is a list of field names (e.g. "AnalyzedWorkloadName") to +// AccessSessionSparkApplicationResponse: A summary of Spark Application +type AccessSessionSparkApplicationResponse struct { + // Application: Output only. High level information corresponding to an + // application. + Application *ApplicationInfo `json:"application,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Application") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AnalyzedWorkloadName") to include - // in API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. See + // NullFields is a list of field names (e.g. "Application") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s AnalyzeOperationMetadata) MarshalJSON() ([]byte, error) { - type NoMethod AnalyzeOperationMetadata +func (s AccessSessionSparkApplicationResponse) MarshalJSON() ([]byte, error) { + type NoMethod AccessSessionSparkApplicationResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AutoscalingConfig: Autoscaling Policy config associated with the cluster. -type AutoscalingConfig struct { - // PolicyUri: Optional. The autoscaling policy used by the cluster.Only - // resource names including projectid and location (region) are valid. - // Examples: - // https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id] - // projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy - // _id]Note that the policy must be in the same project and Dataproc region. - PolicyUri string `json:"policyUri,omitempty"` - // ForceSendFields is a list of field names (e.g. "PolicyUri") to +// AccessSessionSparkApplicationSqlQueryResponse: Details of a query for a +// Spark Application +type AccessSessionSparkApplicationSqlQueryResponse struct { + // ExecutionData: SQL Execution Data + ExecutionData *SqlExecutionUiData `json:"executionData,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "ExecutionData") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "PolicyUri") to include in API + // NullFields is a list of field names (e.g. "ExecutionData") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s AutoscalingConfig) MarshalJSON() ([]byte, error) { - type NoMethod AutoscalingConfig +func (s AccessSessionSparkApplicationSqlQueryResponse) MarshalJSON() ([]byte, error) { + type NoMethod AccessSessionSparkApplicationSqlQueryResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AutoscalingPolicy: Describes an autoscaling policy for Dataproc cluster -// autoscaler. -type AutoscalingPolicy struct { - BasicAlgorithm *BasicAutoscalingAlgorithm `json:"basicAlgorithm,omitempty"` - // Id: Required. The policy id.The id must contain only letters (a-z, A-Z), - // numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with - // underscore or hyphen. Must consist of between 3 and 50 characters. - Id string `json:"id,omitempty"` - // Labels: Optional. The labels to associate with this autoscaling policy. - // Label keys must contain 1 to 63 characters, and must conform to RFC 1035 - // (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if - // present, must contain 1 to 63 characters, and must conform to RFC 1035 - // (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be - // associated with an autoscaling policy. - Labels map[string]string `json:"labels,omitempty"` - // Name: Output only. The "resource name" of the autoscaling policy, as - // described in https://cloud.google.com/apis/design/resource_names. For - // projects.regions.autoscalingPolicies, the resource name of the policy has - // the following format: - // projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id} For - // projects.locations.autoscalingPolicies, the resource name of the policy has - // the following format: - // projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id} - Name string `json:"name,omitempty"` - // SecondaryWorkerConfig: Optional. Describes how the autoscaler will operate - // for secondary workers. - SecondaryWorkerConfig *InstanceGroupAutoscalingPolicyConfig `json:"secondaryWorkerConfig,omitempty"` - // WorkerConfig: Required. Describes how the autoscaler will operate for - // primary workers. - WorkerConfig *InstanceGroupAutoscalingPolicyConfig `json:"workerConfig,omitempty"` +// AccessSessionSparkApplicationSqlSparkPlanGraphResponse: SparkPlanGraph for a +// Spark Application execution limited to maximum 10000 clusters. +type AccessSessionSparkApplicationSqlSparkPlanGraphResponse struct { + // SparkPlanGraph: SparkPlanGraph for a Spark Application execution. + SparkPlanGraph *SparkPlanGraph `json:"sparkPlanGraph,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "BasicAlgorithm") to + // ForceSendFields is a list of field names (e.g. "SparkPlanGraph") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BasicAlgorithm") to include in + // NullFields is a list of field names (e.g. "SparkPlanGraph") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s AutoscalingPolicy) MarshalJSON() ([]byte, error) { - type NoMethod AutoscalingPolicy +func (s AccessSessionSparkApplicationSqlSparkPlanGraphResponse) MarshalJSON() ([]byte, error) { + type NoMethod AccessSessionSparkApplicationSqlSparkPlanGraphResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AutotuningConfig: Autotuning configuration of the workload. -type AutotuningConfig struct { - // Scenarios: Optional. Scenarios for which tunings are applied. - // - // Possible values: - // "SCENARIO_UNSPECIFIED" - Default value. - // "SCALING" - Scaling recommendations such as initialExecutors. - // "BROADCAST_HASH_JOIN" - Adding hints for potential relation broadcasts. - // "MEMORY" - Memory management for workloads. - Scenarios []string `json:"scenarios,omitempty"` - // ForceSendFields is a list of field names (e.g. "Scenarios") to +// AccessSessionSparkApplicationStageAttemptResponse: Stage Attempt for a Stage +// of a Spark Application +type AccessSessionSparkApplicationStageAttemptResponse struct { + // StageData: Output only. Data corresponding to a stage. + StageData *StageData `json:"stageData,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "StageData") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Scenarios") to include in API + // NullFields is a list of field names (e.g. "StageData") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s AutotuningConfig) MarshalJSON() ([]byte, error) { - type NoMethod AutotuningConfig +func (s AccessSessionSparkApplicationStageAttemptResponse) MarshalJSON() ([]byte, error) { + type NoMethod AccessSessionSparkApplicationStageAttemptResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AuxiliaryNodeGroup: Node group identification and configuration information. -type AuxiliaryNodeGroup struct { - // NodeGroup: Required. Node group configuration. - NodeGroup *NodeGroup `json:"nodeGroup,omitempty"` - // NodeGroupId: Optional. A node group ID. Generated if not specified.The ID - // must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and - // hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of - // from 3 to 33 characters. - NodeGroupId string `json:"nodeGroupId,omitempty"` - // ForceSendFields is a list of field names (e.g. "NodeGroup") to +// AccessSessionSparkApplicationStageRddOperationGraphResponse: RDD operation +// graph for a Spark Application Stage limited to maximum 10000 clusters. +type AccessSessionSparkApplicationStageRddOperationGraphResponse struct { + // RddOperationGraph: RDD operation graph for a Spark Application Stage. + RddOperationGraph *RddOperationGraph `json:"rddOperationGraph,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "RddOperationGraph") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "NodeGroup") to include in API + // NullFields is a list of field names (e.g. "RddOperationGraph") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s AccessSessionSparkApplicationStageRddOperationGraphResponse) MarshalJSON() ([]byte, error) { + type NoMethod AccessSessionSparkApplicationStageRddOperationGraphResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// AccessSparkApplicationEnvironmentInfoResponse: Environment details of a +// Saprk Application. +type AccessSparkApplicationEnvironmentInfoResponse struct { + // ApplicationEnvironmentInfo: Details about the Environment that the + // application is running in. + ApplicationEnvironmentInfo *ApplicationEnvironmentInfo `json:"applicationEnvironmentInfo,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "ApplicationEnvironmentInfo") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ApplicationEnvironmentInfo") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s AccessSparkApplicationEnvironmentInfoResponse) MarshalJSON() ([]byte, error) { + type NoMethod AccessSparkApplicationEnvironmentInfoResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// AccessSparkApplicationJobResponse: Details of a particular job associated +// with Spark Application +type AccessSparkApplicationJobResponse struct { + // JobData: Output only. Data corresponding to a spark job. + JobData *JobData `json:"jobData,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "JobData") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "JobData") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s AuxiliaryNodeGroup) MarshalJSON() ([]byte, error) { - type NoMethod AuxiliaryNodeGroup +func (s AccessSparkApplicationJobResponse) MarshalJSON() ([]byte, error) { + type NoMethod AccessSparkApplicationJobResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AuxiliaryServicesConfig: Auxiliary services configuration for a Cluster. -type AuxiliaryServicesConfig struct { - // MetastoreConfig: Optional. The Hive Metastore configuration for this - // workload. - MetastoreConfig *MetastoreConfig `json:"metastoreConfig,omitempty"` - // SparkHistoryServerConfig: Optional. The Spark History Server configuration - // for the workload. - SparkHistoryServerConfig *SparkHistoryServerConfig `json:"sparkHistoryServerConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. "MetastoreConfig") to +// AccessSparkApplicationResponse: A summary of Spark Application +type AccessSparkApplicationResponse struct { + // Application: Output only. High level information corresponding to an + // application. + Application *ApplicationInfo `json:"application,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Application") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "MetastoreConfig") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See + // NullFields is a list of field names (e.g. "Application") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s AuxiliaryServicesConfig) MarshalJSON() ([]byte, error) { - type NoMethod AuxiliaryServicesConfig +func (s AccessSparkApplicationResponse) MarshalJSON() ([]byte, error) { + type NoMethod AccessSparkApplicationResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BasicAutoscalingAlgorithm: Basic algorithm for autoscaling. -type BasicAutoscalingAlgorithm struct { - // CooldownPeriod: Optional. Duration between scaling events. A scaling period - // starts after the update operation from the previous event has - // completed.Bounds: 2m, 1d. Default: 2m. - CooldownPeriod string `json:"cooldownPeriod,omitempty"` - // SparkStandaloneConfig: Optional. Spark Standalone autoscaling configuration - SparkStandaloneConfig *SparkStandaloneAutoscalingConfig `json:"sparkStandaloneConfig,omitempty"` - // YarnConfig: Optional. YARN autoscaling configuration. - YarnConfig *BasicYarnAutoscalingConfig `json:"yarnConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. "CooldownPeriod") to +// AccessSparkApplicationSqlQueryResponse: Details of a query for a Spark +// Application +type AccessSparkApplicationSqlQueryResponse struct { + // ExecutionData: SQL Execution Data + ExecutionData *SqlExecutionUiData `json:"executionData,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "ExecutionData") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CooldownPeriod") to include in + // NullFields is a list of field names (e.g. "ExecutionData") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s AccessSparkApplicationSqlQueryResponse) MarshalJSON() ([]byte, error) { + type NoMethod AccessSparkApplicationSqlQueryResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// AccessSparkApplicationSqlSparkPlanGraphResponse: SparkPlanGraph for a Spark +// Application execution limited to maximum 10000 clusters. +type AccessSparkApplicationSqlSparkPlanGraphResponse struct { + // SparkPlanGraph: SparkPlanGraph for a Spark Application execution. + SparkPlanGraph *SparkPlanGraph `json:"sparkPlanGraph,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "SparkPlanGraph") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "SparkPlanGraph") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s BasicAutoscalingAlgorithm) MarshalJSON() ([]byte, error) { - type NoMethod BasicAutoscalingAlgorithm +func (s AccessSparkApplicationSqlSparkPlanGraphResponse) MarshalJSON() ([]byte, error) { + type NoMethod AccessSparkApplicationSqlSparkPlanGraphResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BasicYarnAutoscalingConfig: Basic autoscaling configurations for YARN. -type BasicYarnAutoscalingConfig struct { - // GracefulDecommissionTimeout: Required. Timeout for YARN graceful - // decommissioning of Node Managers. Specifies the duration to wait for jobs to - // complete before forcefully removing workers (and potentially interrupting - // jobs). Only applicable to downscaling operations.Bounds: 0s, 1d. - GracefulDecommissionTimeout string `json:"gracefulDecommissionTimeout,omitempty"` - // ScaleDownFactor: Required. Fraction of average YARN pending memory in the - // last cooldown period for which to remove workers. A scale-down factor of 1 - // will result in scaling down so that there is no available memory remaining - // after the update (more aggressive scaling). A scale-down factor of 0 - // disables removing workers, which can be beneficial for autoscaling a single - // job. See How autoscaling works - // (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/autoscaling#how_autoscaling_works) - // for more information.Bounds: 0.0, 1.0. - ScaleDownFactor float64 `json:"scaleDownFactor,omitempty"` - // ScaleDownMinWorkerFraction: Optional. Minimum scale-down threshold as a - // fraction of total cluster size before scaling occurs. For example, in a - // 20-worker cluster, a threshold of 0.1 means the autoscaler must recommend at - // least a 2 worker scale-down for the cluster to scale. A threshold of 0 means - // the autoscaler will scale down on any recommended change.Bounds: 0.0, 1.0. - // Default: 0.0. - ScaleDownMinWorkerFraction float64 `json:"scaleDownMinWorkerFraction,omitempty"` - // ScaleUpFactor: Required. Fraction of average YARN pending memory in the last - // cooldown period for which to add workers. A scale-up factor of 1.0 will - // result in scaling up so that there is no pending memory remaining after the - // update (more aggressive scaling). A scale-up factor closer to 0 will result - // in a smaller magnitude of scaling up (less aggressive scaling). See How - // autoscaling works - // (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/autoscaling#how_autoscaling_works) - // for more information.Bounds: 0.0, 1.0. - ScaleUpFactor float64 `json:"scaleUpFactor,omitempty"` - // ScaleUpMinWorkerFraction: Optional. Minimum scale-up threshold as a fraction - // of total cluster size before scaling occurs. For example, in a 20-worker - // cluster, a threshold of 0.1 means the autoscaler must recommend at least a - // 2-worker scale-up for the cluster to scale. A threshold of 0 means the - // autoscaler will scale up on any recommended change.Bounds: 0.0, 1.0. - // Default: 0.0. - ScaleUpMinWorkerFraction float64 `json:"scaleUpMinWorkerFraction,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "GracefulDecommissionTimeout") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields - // for more details. +// AccessSparkApplicationStageAttemptResponse: Stage Attempt for a Stage of a +// Spark Application +type AccessSparkApplicationStageAttemptResponse struct { + // StageData: Output only. Data corresponding to a stage. + StageData *StageData `json:"stageData,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "StageData") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "GracefulDecommissionTimeout") to - // include in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. See + // NullFields is a list of field names (e.g. "StageData") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s BasicYarnAutoscalingConfig) MarshalJSON() ([]byte, error) { - type NoMethod BasicYarnAutoscalingConfig +func (s AccessSparkApplicationStageAttemptResponse) MarshalJSON() ([]byte, error) { + type NoMethod AccessSparkApplicationStageAttemptResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -func (s *BasicYarnAutoscalingConfig) UnmarshalJSON(data []byte) error { - type NoMethod BasicYarnAutoscalingConfig - var s1 struct { - ScaleDownFactor gensupport.JSONFloat64 `json:"scaleDownFactor"` - ScaleDownMinWorkerFraction gensupport.JSONFloat64 `json:"scaleDownMinWorkerFraction"` - ScaleUpFactor gensupport.JSONFloat64 `json:"scaleUpFactor"` - ScaleUpMinWorkerFraction gensupport.JSONFloat64 `json:"scaleUpMinWorkerFraction"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.ScaleDownFactor = float64(s1.ScaleDownFactor) - s.ScaleDownMinWorkerFraction = float64(s1.ScaleDownMinWorkerFraction) - s.ScaleUpFactor = float64(s1.ScaleUpFactor) - s.ScaleUpMinWorkerFraction = float64(s1.ScaleUpMinWorkerFraction) - return nil -} - -// Batch: A representation of a batch workload in the service. -type Batch struct { - // CreateTime: Output only. The time when the batch was created. - CreateTime string `json:"createTime,omitempty"` - // Creator: Output only. The email address of the user who created the batch. - Creator string `json:"creator,omitempty"` - // EnvironmentConfig: Optional. Environment configuration for the batch - // execution. - EnvironmentConfig *EnvironmentConfig `json:"environmentConfig,omitempty"` - // Labels: Optional. The labels to associate with this batch. Label keys must - // contain 1 to 63 characters, and must conform to RFC 1035 - // (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if - // present, must contain 1 to 63 characters, and must conform to RFC 1035 - // (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be - // associated with a batch. - Labels map[string]string `json:"labels,omitempty"` - // Name: Output only. The resource name of the batch. - Name string `json:"name,omitempty"` - // Operation: Output only. The resource name of the operation associated with - // this batch. - Operation string `json:"operation,omitempty"` - // PysparkBatch: Optional. PySpark batch config. - PysparkBatch *PySparkBatch `json:"pysparkBatch,omitempty"` - // RuntimeConfig: Optional. Runtime configuration for the batch execution. - RuntimeConfig *RuntimeConfig `json:"runtimeConfig,omitempty"` - // RuntimeInfo: Output only. Runtime information about batch execution. - RuntimeInfo *RuntimeInfo `json:"runtimeInfo,omitempty"` - // SparkBatch: Optional. Spark batch config. - SparkBatch *SparkBatch `json:"sparkBatch,omitempty"` - // SparkRBatch: Optional. SparkR batch config. - SparkRBatch *SparkRBatch `json:"sparkRBatch,omitempty"` - // SparkSqlBatch: Optional. SparkSql batch config. - SparkSqlBatch *SparkSqlBatch `json:"sparkSqlBatch,omitempty"` - // State: Output only. The state of the batch. - // - // Possible values: - // "STATE_UNSPECIFIED" - The batch state is unknown. - // "PENDING" - The batch is created before running. - // "RUNNING" - The batch is running. - // "CANCELLING" - The batch is cancelling. - // "CANCELLED" - The batch cancellation was successful. - // "SUCCEEDED" - The batch completed successfully. - // "FAILED" - The batch is no longer running due to an error. - State string `json:"state,omitempty"` - // StateHistory: Output only. Historical state information for the batch. - StateHistory []*StateHistory `json:"stateHistory,omitempty"` - // StateMessage: Output only. Batch state details, such as a failure - // description if the state is FAILED. - StateMessage string `json:"stateMessage,omitempty"` - // StateTime: Output only. The time when the batch entered a current state. - StateTime string `json:"stateTime,omitempty"` - // Uuid: Output only. A batch UUID (Unique Universal Identifier). The service - // generates this value when it creates the batch. - Uuid string `json:"uuid,omitempty"` +// AccessSparkApplicationStageRddOperationGraphResponse: RDD operation graph +// for a Spark Application Stage limited to maximum 10000 clusters. +type AccessSparkApplicationStageRddOperationGraphResponse struct { + // RddOperationGraph: RDD operation graph for a Spark Application Stage. + RddOperationGraph *RddOperationGraph `json:"rddOperationGraph,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CreateTime") to + // ForceSendFields is a list of field names (e.g. "RddOperationGraph") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CreateTime") to include in API + // NullFields is a list of field names (e.g. "RddOperationGraph") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s AccessSparkApplicationStageRddOperationGraphResponse) MarshalJSON() ([]byte, error) { + type NoMethod AccessSparkApplicationStageRddOperationGraphResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +type AccumulableInfo struct { + AccumullableInfoId int64 `json:"accumullableInfoId,omitempty,string"` + Name string `json:"name,omitempty"` + Update string `json:"update,omitempty"` + Value string `json:"value,omitempty"` + // ForceSendFields is a list of field names (e.g. "AccumullableInfoId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AccumullableInfoId") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s AccumulableInfo) MarshalJSON() ([]byte, error) { + type NoMethod AccumulableInfo + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// AnalyzeBatchRequest: A request to analyze a batch workload. +type AnalyzeBatchRequest struct { + // RequestId: Optional. A unique ID used to identify the request. If the + // service receives two AnalyzeBatchRequest + // (http://cloud/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.AnalyzeBatchRequest)s + // with the same request_id, the second request is ignored and the Operation + // that corresponds to the first request created and stored in the backend is + // returned.Recommendation: Set this value to a UUID + // (https://en.wikipedia.org/wiki/Universally_unique_identifier).The value must + // contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens + // (-). The maximum length is 40 characters. + RequestId string `json:"requestId,omitempty"` + // ForceSendFields is a list of field names (e.g. "RequestId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "RequestId") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s Batch) MarshalJSON() ([]byte, error) { - type NoMethod Batch +func (s AnalyzeBatchRequest) MarshalJSON() ([]byte, error) { + type NoMethod AnalyzeBatchRequest return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BatchOperationMetadata: Metadata describing the Batch operation. -type BatchOperationMetadata struct { - // Batch: Name of the batch for the operation. - Batch string `json:"batch,omitempty"` - // BatchUuid: Batch UUID for the operation. - BatchUuid string `json:"batchUuid,omitempty"` - // CreateTime: The time when the operation was created. +// AnalyzeOperationMetadata: Metadata describing the Analyze operation. +type AnalyzeOperationMetadata struct { + // AnalyzedWorkloadName: Output only. name of the workload being analyzed. + AnalyzedWorkloadName string `json:"analyzedWorkloadName,omitempty"` + // AnalyzedWorkloadType: Output only. Type of the workload being analyzed. + // + // Possible values: + // "WORKLOAD_TYPE_UNSPECIFIED" - Undefined option + // "BATCH" - Serverless batch job + AnalyzedWorkloadType string `json:"analyzedWorkloadType,omitempty"` + // AnalyzedWorkloadUuid: Output only. unique identifier of the workload + // typically generated by control plane. E.g. batch uuid. + AnalyzedWorkloadUuid string `json:"analyzedWorkloadUuid,omitempty"` + // CreateTime: Output only. The time when the operation was created. CreateTime string `json:"createTime,omitempty"` - // Description: Short description of the operation. + // Description: Output only. Short description of the operation. Description string `json:"description,omitempty"` - // DoneTime: The time when the operation finished. + // DoneTime: Output only. The time when the operation finished. DoneTime string `json:"doneTime,omitempty"` - // Labels: Labels associated with the operation. + // Labels: Output only. Labels associated with the operation. Labels map[string]string `json:"labels,omitempty"` - // OperationType: The operation type. - // - // Possible values: - // "BATCH_OPERATION_TYPE_UNSPECIFIED" - Batch operation type is unknown. - // "BATCH" - Batch operation type. - OperationType string `json:"operationType,omitempty"` - // Warnings: Warnings encountered during operation execution. + // Warnings: Output only. Warnings encountered during operation execution. Warnings []string `json:"warnings,omitempty"` - // ForceSendFields is a list of field names (e.g. "Batch") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See + // ForceSendFields is a list of field names (e.g. "AnalyzedWorkloadName") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Batch") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "AnalyzedWorkloadName") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s BatchOperationMetadata) MarshalJSON() ([]byte, error) { - type NoMethod BatchOperationMetadata +func (s AnalyzeOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod AnalyzeOperationMetadata return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Binding: Associates members, or principals, with a role. -type Binding struct { - // Condition: The condition that is associated with this binding.If the - // condition evaluates to true, then this binding applies to the current - // request.If the condition evaluates to false, then this binding does not - // apply to the current request. However, a different role binding might grant - // the same role to one or more of the principals in this binding.To learn - // which resources support conditions in their IAM policies, see the IAM - // documentation - // (https://cloud.google.com/iam/help/conditions/resource-policies). - Condition *Expr `json:"condition,omitempty"` - // Members: Specifies the principals requesting access for a Google Cloud - // resource. members can have the following values: allUsers: A special - // identifier that represents anyone who is on the internet; with or without a - // Google account. allAuthenticatedUsers: A special identifier that represents - // anyone who is authenticated with a Google account or a service account. 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. - // principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subj - // ect/{subject_attribute_value}: A single identity in a workforce identity - // pool. - // principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/g - // roup/{group_id}: All workforce identities in a group. - // principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/a - // ttribute.{attribute_name}/{attribute_value}: All workforce identities with a - // specific attribute value. - // principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/* - // : All identities in a workforce identity pool. - // principal://iam.googleapis.com/projects/{project_number}/locations/global/wor - // kloadIdentityPools/{pool_id}/subject/{subject_attribute_value}: A single - // identity in a workload identity pool. - // principalSet://iam.googleapis.com/projects/{project_number}/locations/global/ - // workloadIdentityPools/{pool_id}/group/{group_id}: A workload identity pool - // group. - // principalSet://iam.googleapis.com/projects/{project_number}/locations/global/ - // workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}: - // All identities in a workload identity pool with a certain attribute. - // principalSet://iam.googleapis.com/projects/{project_number}/locations/global/ - // workloadIdentityPools/{pool_id}/*: All identities in a workload identity - // pool. 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. - // deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_ - // id}/subject/{subject_attribute_value}: Deleted single identity in a - // workforce identity pool. For example, - // deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-poo - // l-id/subject/my-subject-attribute-value. - Members []string `json:"members,omitempty"` - // Role: Role that is assigned to the list of members, or principals. For - // example, roles/viewer, roles/editor, or roles/owner.For an overview of the - // IAM roles and permissions, see the IAM documentation - // (https://cloud.google.com/iam/docs/roles-overview). For a list of the - // available pre-defined roles, see here - // (https://cloud.google.com/iam/docs/understanding-roles). - Role string `json:"role,omitempty"` - // ForceSendFields is a list of field names (e.g. "Condition") to +type AppSummary struct { + NumCompletedJobs int64 `json:"numCompletedJobs,omitempty"` + NumCompletedStages int64 `json:"numCompletedStages,omitempty"` + // ForceSendFields is a list of field names (e.g. "NumCompletedJobs") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Condition") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "NumCompletedJobs") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s Binding) MarshalJSON() ([]byte, error) { - type NoMethod Binding +func (s AppSummary) MarshalJSON() ([]byte, error) { + type NoMethod AppSummary return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CancelJobRequest: A request to cancel a job. -type CancelJobRequest struct { -} - -// Cluster: Describes the identifying information, config, and status of a -// Dataproc cluster -type Cluster struct { - // ClusterName: Required. The cluster name, which must be unique within a - // project. The name must start with a lowercase letter, and can contain up to - // 51 lowercase letters, numbers, and hyphens. It cannot end with a hyphen. The - // name of a deleted cluster can be reused. - ClusterName string `json:"clusterName,omitempty"` - // ClusterUuid: Output only. A cluster UUID (Unique Universal Identifier). - // Dataproc generates this value when it creates the cluster. - ClusterUuid string `json:"clusterUuid,omitempty"` - // Config: Optional. The cluster config for a cluster of Compute Engine - // Instances. Note that Dataproc may set default values, and values may change - // when clusters are updated.Exactly one of ClusterConfig or - // VirtualClusterConfig must be specified. - Config *ClusterConfig `json:"config,omitempty"` - // Labels: Optional. The labels to associate with this cluster. Label keys must - // contain 1 to 63 characters, and must conform to RFC 1035 - // (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if - // present, must contain 1 to 63 characters, and must conform to RFC 1035 - // (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be - // associated with a cluster. - Labels map[string]string `json:"labels,omitempty"` - // Metrics: Output only. Contains cluster daemon metrics such as HDFS and YARN - // stats.Beta Feature: This report is available for testing purposes only. It - // may be changed before final release. - Metrics *ClusterMetrics `json:"metrics,omitempty"` - // ProjectId: Required. The Google Cloud Platform project ID that the cluster - // belongs to. - ProjectId string `json:"projectId,omitempty"` - // Status: Output only. Cluster status. - Status *ClusterStatus `json:"status,omitempty"` - // StatusHistory: Output only. The previous cluster status. - StatusHistory []*ClusterStatus `json:"statusHistory,omitempty"` - // VirtualClusterConfig: Optional. The virtual cluster config is used when - // creating a Dataproc cluster that does not directly control the underlying - // compute resources, for example, when creating a Dataproc-on-GKE cluster - // (https://cloud.google.com/dataproc/docs/guides/dpgke/dataproc-gke-overview). - // Dataproc may set default values, and values may change when clusters are - // updated. Exactly one of config or virtual_cluster_config must be specified. - VirtualClusterConfig *VirtualClusterConfig `json:"virtualClusterConfig,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the server. - googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ClusterName") to +// ApplicationAttemptInfo: Specific attempt of an application. +type ApplicationAttemptInfo struct { + AppSparkVersion string `json:"appSparkVersion,omitempty"` + AttemptId string `json:"attemptId,omitempty"` + Completed bool `json:"completed,omitempty"` + DurationMillis int64 `json:"durationMillis,omitempty,string"` + EndTime string `json:"endTime,omitempty"` + LastUpdated string `json:"lastUpdated,omitempty"` + SparkUser string `json:"sparkUser,omitempty"` + StartTime string `json:"startTime,omitempty"` + // ForceSendFields is a list of field names (e.g. "AppSparkVersion") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ClusterName") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "AppSparkVersion") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s Cluster) MarshalJSON() ([]byte, error) { - type NoMethod Cluster +func (s ApplicationAttemptInfo) MarshalJSON() ([]byte, error) { + type NoMethod ApplicationAttemptInfo return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ClusterConfig: The cluster config. -type ClusterConfig struct { - // AutoscalingConfig: Optional. Autoscaling config for the policy associated - // with the cluster. Cluster does not autoscale if this field is unset. - AutoscalingConfig *AutoscalingConfig `json:"autoscalingConfig,omitempty"` - // AuxiliaryNodeGroups: Optional. The node group settings. - AuxiliaryNodeGroups []*AuxiliaryNodeGroup `json:"auxiliaryNodeGroups,omitempty"` - // ConfigBucket: Optional. A Cloud Storage bucket used to stage job - // dependencies, config files, and job driver console output. If you do not - // specify a staging bucket, Cloud Dataproc will determine a Cloud Storage - // location (US, ASIA, or EU) for your cluster's staging bucket according to - // the Compute Engine zone where your cluster is deployed, and then create and - // manage this project-level, per-location bucket (see Dataproc staging and - // temp buckets - // (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). - // This field requires a Cloud Storage bucket name, not a gs://... URI to a - // Cloud Storage bucket. - ConfigBucket string `json:"configBucket,omitempty"` - // DataprocMetricConfig: Optional. The config for Dataproc metrics. - DataprocMetricConfig *DataprocMetricConfig `json:"dataprocMetricConfig,omitempty"` - // EncryptionConfig: Optional. Encryption settings for the cluster. - EncryptionConfig *EncryptionConfig `json:"encryptionConfig,omitempty"` - // EndpointConfig: Optional. Port/endpoint configuration for this cluster - EndpointConfig *EndpointConfig `json:"endpointConfig,omitempty"` - // GceClusterConfig: Optional. The shared Compute Engine config settings for - // all instances in a cluster. - GceClusterConfig *GceClusterConfig `json:"gceClusterConfig,omitempty"` - // GkeClusterConfig: Optional. BETA. The Kubernetes Engine config for Dataproc - // clusters deployed to The Kubernetes Engine config for Dataproc clusters - // deployed to Kubernetes. These config settings are mutually exclusive with - // Compute Engine-based options, such as gce_cluster_config, master_config, - // worker_config, secondary_worker_config, and autoscaling_config. - GkeClusterConfig *GkeClusterConfig `json:"gkeClusterConfig,omitempty"` - // InitializationActions: Optional. Commands to execute on each node after - // config is completed. By default, executables are run on master and all - // worker nodes. You can test a node's role metadata to run an executable on a - // master or worker node, as shown below using curl (you can also use wget): - // ROLE=$(curl -H Metadata-Flavor:Google - // http://metadata/computeMetadata/v1/instance/attributes/dataproc-role) if [[ - // "${ROLE}" == 'Master' ]]; then ... master specific actions ... else ... - // worker specific actions ... fi - InitializationActions []*NodeInitializationAction `json:"initializationActions,omitempty"` - // LifecycleConfig: Optional. Lifecycle setting for the cluster. - LifecycleConfig *LifecycleConfig `json:"lifecycleConfig,omitempty"` - // MasterConfig: Optional. The Compute Engine config settings for the cluster's - // master instance. - MasterConfig *InstanceGroupConfig `json:"masterConfig,omitempty"` - // MetastoreConfig: Optional. Metastore configuration. - MetastoreConfig *MetastoreConfig `json:"metastoreConfig,omitempty"` - // SecondaryWorkerConfig: Optional. The Compute Engine config settings for a - // cluster's secondary worker instances - SecondaryWorkerConfig *InstanceGroupConfig `json:"secondaryWorkerConfig,omitempty"` - // SecurityConfig: Optional. Security settings for the cluster. - SecurityConfig *SecurityConfig `json:"securityConfig,omitempty"` - // SoftwareConfig: Optional. The config settings for cluster software. - SoftwareConfig *SoftwareConfig `json:"softwareConfig,omitempty"` - // TempBucket: Optional. A Cloud Storage bucket used to store ephemeral cluster - // and jobs data, such as Spark and MapReduce history files. If you do not - // specify a temp bucket, Dataproc will determine a Cloud Storage location (US, - // ASIA, or EU) for your cluster's temp bucket according to the Compute Engine - // zone where your cluster is deployed, and then create and manage this - // project-level, per-location bucket. The default bucket has a TTL of 90 days, - // but you can use any TTL (or none) if you specify a bucket (see Dataproc - // staging and temp buckets - // (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). - // This field requires a Cloud Storage bucket name, not a gs://... URI to a - // Cloud Storage bucket. - TempBucket string `json:"tempBucket,omitempty"` - // WorkerConfig: Optional. The Compute Engine config settings for the cluster's - // worker instances. - WorkerConfig *InstanceGroupConfig `json:"workerConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. "AutoscalingConfig") to +// ApplicationEnvironmentInfo: Details about the Environment that the +// application is running in. +type ApplicationEnvironmentInfo struct { + ClasspathEntries map[string]string `json:"classpathEntries,omitempty"` + HadoopProperties map[string]string `json:"hadoopProperties,omitempty"` + MetricsProperties map[string]string `json:"metricsProperties,omitempty"` + ResourceProfiles []*ResourceProfileInfo `json:"resourceProfiles,omitempty"` + Runtime *SparkRuntimeInfo `json:"runtime,omitempty"` + SparkProperties map[string]string `json:"sparkProperties,omitempty"` + SystemProperties map[string]string `json:"systemProperties,omitempty"` + // ForceSendFields is a list of field names (e.g. "ClasspathEntries") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AutoscalingConfig") to include in + // NullFields is a list of field names (e.g. "ClasspathEntries") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s ClusterConfig) MarshalJSON() ([]byte, error) { - type NoMethod ClusterConfig +func (s ApplicationEnvironmentInfo) MarshalJSON() ([]byte, error) { + type NoMethod ApplicationEnvironmentInfo return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ClusterMetrics: Contains cluster daemon metrics, such as HDFS and YARN -// stats.Beta Feature: This report is available for testing purposes only. It -// may be changed before final release. -type ClusterMetrics struct { - // HdfsMetrics: The HDFS metrics. - HdfsMetrics map[string]string `json:"hdfsMetrics,omitempty"` - // YarnMetrics: YARN metrics. - YarnMetrics map[string]string `json:"yarnMetrics,omitempty"` - // ForceSendFields is a list of field names (e.g. "HdfsMetrics") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See +// ApplicationInfo: High level information corresponding to an application. +type ApplicationInfo struct { + // Possible values: + // "APPLICATION_CONTEXT_INGESTION_STATUS_UNSPECIFIED" + // "APPLICATION_CONTEXT_INGESTION_STATUS_COMPLETED" + ApplicationContextIngestionStatus string `json:"applicationContextIngestionStatus,omitempty"` + ApplicationId string `json:"applicationId,omitempty"` + Attempts []*ApplicationAttemptInfo `json:"attempts,omitempty"` + CoresGranted int64 `json:"coresGranted,omitempty"` + CoresPerExecutor int64 `json:"coresPerExecutor,omitempty"` + MaxCores int64 `json:"maxCores,omitempty"` + MemoryPerExecutorMb int64 `json:"memoryPerExecutorMb,omitempty"` + Name string `json:"name,omitempty"` + // Possible values: + // "QUANTILE_DATA_STATUS_UNSPECIFIED" + // "QUANTILE_DATA_STATUS_COMPLETED" + // "QUANTILE_DATA_STATUS_FAILED" + QuantileDataStatus string `json:"quantileDataStatus,omitempty"` + // ForceSendFields is a list of field names (e.g. + // "ApplicationContextIngestionStatus") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted from + // API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "HdfsMetrics") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + // NullFields is a list of field names (e.g. + // "ApplicationContextIngestionStatus") to include in API requests with the + // JSON null value. By default, fields with empty values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-NullFields for + // more details. NullFields []string `json:"-"` } -func (s ClusterMetrics) MarshalJSON() ([]byte, error) { - type NoMethod ClusterMetrics +func (s ApplicationInfo) MarshalJSON() ([]byte, error) { + type NoMethod ApplicationInfo return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ClusterOperation: The cluster operation triggered by a workflow. -type ClusterOperation struct { - // Done: Output only. Indicates the operation is done. - Done bool `json:"done,omitempty"` - // Error: Output only. Error, if operation failed. - Error string `json:"error,omitempty"` - // OperationId: Output only. The id of the cluster operation. - OperationId string `json:"operationId,omitempty"` - // ForceSendFields is a list of field names (e.g. "Done") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See +// AutoscalingConfig: Autoscaling Policy config associated with the cluster. +type AutoscalingConfig struct { + // PolicyUri: Optional. The autoscaling policy used by the cluster.Only + // resource names including projectid and location (region) are valid. + // Examples: + // https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id] + // projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy + // _id]Note that the policy must be in the same project and Dataproc region. + PolicyUri string `json:"policyUri,omitempty"` + // ForceSendFields is a list of field names (e.g. "PolicyUri") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Done") to include in API requests - // with the JSON null value. By default, fields with empty values are omitted - // from API requests. See + // NullFields is a list of field names (e.g. "PolicyUri") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s ClusterOperation) MarshalJSON() ([]byte, error) { - type NoMethod ClusterOperation +func (s AutoscalingConfig) MarshalJSON() ([]byte, error) { + type NoMethod AutoscalingConfig return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ClusterOperationMetadata: Metadata describing the operation. -type ClusterOperationMetadata struct { - // ChildOperationIds: Output only. Child operation ids - ChildOperationIds []string `json:"childOperationIds,omitempty"` - // ClusterName: Output only. Name of the cluster for the operation. - ClusterName string `json:"clusterName,omitempty"` - // ClusterUuid: Output only. Cluster UUID for the operation. - ClusterUuid string `json:"clusterUuid,omitempty"` - // Description: Output only. Short description of operation. - Description string `json:"description,omitempty"` - // Labels: Output only. Labels associated with the operation +// AutoscalingPolicy: Describes an autoscaling policy for Dataproc cluster +// autoscaler. +type AutoscalingPolicy struct { + BasicAlgorithm *BasicAutoscalingAlgorithm `json:"basicAlgorithm,omitempty"` + // Id: Required. The policy id.The id must contain only letters (a-z, A-Z), + // numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with + // underscore or hyphen. Must consist of between 3 and 50 characters. + Id string `json:"id,omitempty"` + // Labels: Optional. The labels to associate with this autoscaling policy. + // Label keys must contain 1 to 63 characters, and must conform to RFC 1035 + // (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if + // present, must contain 1 to 63 characters, and must conform to RFC 1035 + // (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be + // associated with an autoscaling policy. Labels map[string]string `json:"labels,omitempty"` - // OperationType: Output only. The operation type. - OperationType string `json:"operationType,omitempty"` - // Status: Output only. Current operation status. - Status *ClusterOperationStatus `json:"status,omitempty"` - // StatusHistory: Output only. The previous operation status. - StatusHistory []*ClusterOperationStatus `json:"statusHistory,omitempty"` - // Warnings: Output only. Errors encountered during operation execution. - Warnings []string `json:"warnings,omitempty"` - // ForceSendFields is a list of field names (e.g. "ChildOperationIds") to + // Name: Output only. The "resource name" of the autoscaling policy, as + // described in https://cloud.google.com/apis/design/resource_names. For + // projects.regions.autoscalingPolicies, the resource name of the policy has + // the following format: + // projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id} For + // projects.locations.autoscalingPolicies, the resource name of the policy has + // the following format: + // projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id} + Name string `json:"name,omitempty"` + // SecondaryWorkerConfig: Optional. Describes how the autoscaler will operate + // for secondary workers. + SecondaryWorkerConfig *InstanceGroupAutoscalingPolicyConfig `json:"secondaryWorkerConfig,omitempty"` + // WorkerConfig: Required. Describes how the autoscaler will operate for + // primary workers. + WorkerConfig *InstanceGroupAutoscalingPolicyConfig `json:"workerConfig,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "BasicAlgorithm") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ChildOperationIds") to include in + // NullFields is a list of field names (e.g. "BasicAlgorithm") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s ClusterOperationMetadata) MarshalJSON() ([]byte, error) { - type NoMethod ClusterOperationMetadata +func (s AutoscalingPolicy) MarshalJSON() ([]byte, error) { + type NoMethod AutoscalingPolicy return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ClusterOperationStatus: The status of the operation. -type ClusterOperationStatus struct { - // Details: Output only. A message containing any operation metadata details. - Details string `json:"details,omitempty"` - // InnerState: Output only. A message containing the detailed operation state. - InnerState string `json:"innerState,omitempty"` - // State: Output only. A message containing the operation state. +// AutotuningConfig: Autotuning configuration of the workload. +type AutotuningConfig struct { + // Scenarios: Optional. Scenarios for which tunings are applied. // // Possible values: - // "UNKNOWN" - Unused. - // "PENDING" - The operation has been created. - // "RUNNING" - The operation is running. - // "DONE" - The operation is done; either cancelled or completed. - State string `json:"state,omitempty"` - // StateStartTime: Output only. The time this state was entered. - StateStartTime string `json:"stateStartTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "Details") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Details") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s ClusterOperationStatus) MarshalJSON() ([]byte, error) { - type NoMethod ClusterOperationStatus - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// ClusterSelector: A selector that chooses target cluster for jobs based on -// metadata. -type ClusterSelector struct { - // ClusterLabels: Required. The cluster labels. Cluster must have all labels to - // match. - ClusterLabels map[string]string `json:"clusterLabels,omitempty"` - // Zone: Optional. The zone where workflow process executes. This parameter - // does not affect the selection of the cluster.If unspecified, the zone of the - // first cluster matching the selector is used. - Zone string `json:"zone,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClusterLabels") to + // "SCENARIO_UNSPECIFIED" - Default value. + // "SCALING" - Scaling recommendations such as initialExecutors. + // "BROADCAST_HASH_JOIN" - Adding hints for potential relation broadcasts. + // "MEMORY" - Memory management for workloads. + Scenarios []string `json:"scenarios,omitempty"` + // ForceSendFields is a list of field names (e.g. "Scenarios") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ClusterLabels") to include in API + // NullFields is a list of field names (e.g. "Scenarios") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s ClusterSelector) MarshalJSON() ([]byte, error) { - type NoMethod ClusterSelector +func (s AutotuningConfig) MarshalJSON() ([]byte, error) { + type NoMethod AutotuningConfig return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ClusterStatus: The status of a cluster and its instances. -type ClusterStatus struct { - // Detail: Optional. Output only. Details of cluster's state. - Detail string `json:"detail,omitempty"` - // State: Output only. The cluster's state. - // - // Possible values: - // "UNKNOWN" - The cluster state is unknown. - // "CREATING" - The cluster is being created and set up. It is not ready for - // use. - // "RUNNING" - The cluster is currently running and healthy. It is ready for - // use.Note: The cluster state changes from "creating" to "running" status - // after the master node(s), first two primary worker nodes (and the last - // primary worker node if primary workers > 2) are running. - // "ERROR" - The cluster encountered an error. It is not ready for use. - // "ERROR_DUE_TO_UPDATE" - The cluster has encountered an error while being - // updated. Jobs can be submitted to the cluster, but the cluster cannot be - // updated. - // "DELETING" - The cluster is being deleted. It cannot be used. - // "UPDATING" - The cluster is being updated. It continues to accept and - // process jobs. - // "STOPPING" - The cluster is being stopped. It cannot be used. - // "STOPPED" - The cluster is currently stopped. It is not ready for use. - // "STARTING" - The cluster is being started. It is not ready for use. - // "REPAIRING" - The cluster is being repaired. It is not ready for use. - State string `json:"state,omitempty"` - // StateStartTime: Output only. Time when this state was entered (see JSON - // representation of Timestamp - // (https://developers.google.com/protocol-buffers/docs/proto3#json)). - StateStartTime string `json:"stateStartTime,omitempty"` - // Substate: Output only. Additional state information that includes status - // reported by the agent. - // - // Possible values: - // "UNSPECIFIED" - The cluster substate is unknown. - // "UNHEALTHY" - The cluster is known to be in an unhealthy state (for - // example, critical daemons are not running or HDFS capacity is - // exhausted).Applies to RUNNING state. - // "STALE_STATUS" - The agent-reported status is out of date (may occur if - // Dataproc loses communication with Agent).Applies to RUNNING state. - Substate string `json:"substate,omitempty"` - // ForceSendFields is a list of field names (e.g. "Detail") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See +// AuxiliaryNodeGroup: Node group identification and configuration information. +type AuxiliaryNodeGroup struct { + // NodeGroup: Required. Node group configuration. + NodeGroup *NodeGroup `json:"nodeGroup,omitempty"` + // NodeGroupId: Optional. A node group ID. Generated if not specified.The ID + // must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and + // hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of + // from 3 to 33 characters. + NodeGroupId string `json:"nodeGroupId,omitempty"` + // ForceSendFields is a list of field names (e.g. "NodeGroup") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Detail") to include in API + // NullFields is a list of field names (e.g. "NodeGroup") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s ClusterStatus) MarshalJSON() ([]byte, error) { - type NoMethod ClusterStatus +func (s AuxiliaryNodeGroup) MarshalJSON() ([]byte, error) { + type NoMethod AuxiliaryNodeGroup return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ConfidentialInstanceConfig: Confidential Instance Config for clusters using -// Confidential VMs (https://cloud.google.com/compute/confidential-vm/docs) -type ConfidentialInstanceConfig struct { - // EnableConfidentialCompute: Optional. Defines whether the instance should - // have confidential compute enabled. - EnableConfidentialCompute bool `json:"enableConfidentialCompute,omitempty"` - // ForceSendFields is a list of field names (e.g. "EnableConfidentialCompute") - // to unconditionally include in API requests. By default, fields with empty or +// AuxiliaryServicesConfig: Auxiliary services configuration for a Cluster. +type AuxiliaryServicesConfig struct { + // MetastoreConfig: Optional. The Hive Metastore configuration for this + // workload. + MetastoreConfig *MetastoreConfig `json:"metastoreConfig,omitempty"` + // SparkHistoryServerConfig: Optional. The Spark History Server configuration + // for the workload. + SparkHistoryServerConfig *SparkHistoryServerConfig `json:"sparkHistoryServerConfig,omitempty"` + // ForceSendFields is a list of field names (e.g. "MetastoreConfig") to + // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "EnableConfidentialCompute") to - // include in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. See + // NullFields is a list of field names (e.g. "MetastoreConfig") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s ConfidentialInstanceConfig) MarshalJSON() ([]byte, error) { - type NoMethod ConfidentialInstanceConfig +func (s AuxiliaryServicesConfig) MarshalJSON() ([]byte, error) { + type NoMethod AuxiliaryServicesConfig return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DataprocMetricConfig: Dataproc metric config. -type DataprocMetricConfig struct { - // Metrics: Required. Metrics sources to enable. - Metrics []*Metric `json:"metrics,omitempty"` - // ForceSendFields is a list of field names (e.g. "Metrics") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See +// BasicAutoscalingAlgorithm: Basic algorithm for autoscaling. +type BasicAutoscalingAlgorithm struct { + // CooldownPeriod: Optional. Duration between scaling events. A scaling period + // starts after the update operation from the previous event has + // completed.Bounds: 2m, 1d. Default: 2m. + CooldownPeriod string `json:"cooldownPeriod,omitempty"` + // SparkStandaloneConfig: Optional. Spark Standalone autoscaling configuration + SparkStandaloneConfig *SparkStandaloneAutoscalingConfig `json:"sparkStandaloneConfig,omitempty"` + // YarnConfig: Optional. YARN autoscaling configuration. + YarnConfig *BasicYarnAutoscalingConfig `json:"yarnConfig,omitempty"` + // ForceSendFields is a list of field names (e.g. "CooldownPeriod") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Metrics") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "CooldownPeriod") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s DataprocMetricConfig) MarshalJSON() ([]byte, error) { - type NoMethod DataprocMetricConfig +func (s BasicAutoscalingAlgorithm) MarshalJSON() ([]byte, error) { + type NoMethod BasicAutoscalingAlgorithm return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DiagnoseClusterRequest: A request to collect cluster diagnostic information. -type DiagnoseClusterRequest struct { - // DiagnosisInterval: Optional. Time interval in which diagnosis should be - // carried out on the cluster. - DiagnosisInterval *Interval `json:"diagnosisInterval,omitempty"` - // Job: Optional. DEPRECATED Specifies the job on which diagnosis is to be - // performed. Format: projects/{project}/regions/{region}/jobs/{job} - Job string `json:"job,omitempty"` - // Jobs: Optional. Specifies a list of jobs on which diagnosis is to be - // performed. Format: projects/{project}/regions/{region}/jobs/{job} - Jobs []string `json:"jobs,omitempty"` - // TarballAccess: Optional. (Optional) The access type to the diagnostic - // tarball. If not specified, falls back to default access of the bucket - // - // Possible values: - // "TARBALL_ACCESS_UNSPECIFIED" - Tarball Access unspecified. Falls back to - // default access of the bucket - // "GOOGLE_CLOUD_SUPPORT" - Google Cloud Support group has read access to the - // diagnostic tarball - // "GOOGLE_DATAPROC_DIAGNOSE" - Google Cloud Dataproc Diagnose service - // account has read access to the diagnostic tarball - TarballAccess string `json:"tarballAccess,omitempty"` - // TarballGcsDir: Optional. (Optional) The output Cloud Storage directory for - // the diagnostic tarball. If not specified, a task-specific directory in the - // cluster's staging bucket will be used. - TarballGcsDir string `json:"tarballGcsDir,omitempty"` - // YarnApplicationId: Optional. DEPRECATED Specifies the yarn application on - // which diagnosis is to be performed. - YarnApplicationId string `json:"yarnApplicationId,omitempty"` - // YarnApplicationIds: Optional. Specifies a list of yarn applications on which - // diagnosis is to be performed. - YarnApplicationIds []string `json:"yarnApplicationIds,omitempty"` - // ForceSendFields is a list of field names (e.g. "DiagnosisInterval") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. +// BasicYarnAutoscalingConfig: Basic autoscaling configurations for YARN. +type BasicYarnAutoscalingConfig struct { + // GracefulDecommissionTimeout: Required. Timeout for YARN graceful + // decommissioning of Node Managers. Specifies the duration to wait for jobs to + // complete before forcefully removing workers (and potentially interrupting + // jobs). Only applicable to downscaling operations.Bounds: 0s, 1d. + GracefulDecommissionTimeout string `json:"gracefulDecommissionTimeout,omitempty"` + // ScaleDownFactor: Required. Fraction of average YARN pending memory in the + // last cooldown period for which to remove workers. A scale-down factor of 1 + // will result in scaling down so that there is no available memory remaining + // after the update (more aggressive scaling). A scale-down factor of 0 + // disables removing workers, which can be beneficial for autoscaling a single + // job. See How autoscaling works + // (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/autoscaling#how_autoscaling_works) + // for more information.Bounds: 0.0, 1.0. + ScaleDownFactor float64 `json:"scaleDownFactor,omitempty"` + // ScaleDownMinWorkerFraction: Optional. Minimum scale-down threshold as a + // fraction of total cluster size before scaling occurs. For example, in a + // 20-worker cluster, a threshold of 0.1 means the autoscaler must recommend at + // least a 2 worker scale-down for the cluster to scale. A threshold of 0 means + // the autoscaler will scale down on any recommended change.Bounds: 0.0, 1.0. + // Default: 0.0. + ScaleDownMinWorkerFraction float64 `json:"scaleDownMinWorkerFraction,omitempty"` + // ScaleUpFactor: Required. Fraction of average YARN pending memory in the last + // cooldown period for which to add workers. A scale-up factor of 1.0 will + // result in scaling up so that there is no pending memory remaining after the + // update (more aggressive scaling). A scale-up factor closer to 0 will result + // in a smaller magnitude of scaling up (less aggressive scaling). See How + // autoscaling works + // (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/autoscaling#how_autoscaling_works) + // for more information.Bounds: 0.0, 1.0. + ScaleUpFactor float64 `json:"scaleUpFactor,omitempty"` + // ScaleUpMinWorkerFraction: Optional. Minimum scale-up threshold as a fraction + // of total cluster size before scaling occurs. For example, in a 20-worker + // cluster, a threshold of 0.1 means the autoscaler must recommend at least a + // 2-worker scale-up for the cluster to scale. A threshold of 0 means the + // autoscaler will scale up on any recommended change.Bounds: 0.0, 1.0. + // Default: 0.0. + ScaleUpMinWorkerFraction float64 `json:"scaleUpMinWorkerFraction,omitempty"` + // ForceSendFields is a list of field names (e.g. + // "GracefulDecommissionTimeout") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DiagnosisInterval") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See + // NullFields is a list of field names (e.g. "GracefulDecommissionTimeout") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s DiagnoseClusterRequest) MarshalJSON() ([]byte, error) { - type NoMethod DiagnoseClusterRequest +func (s BasicYarnAutoscalingConfig) MarshalJSON() ([]byte, error) { + type NoMethod BasicYarnAutoscalingConfig return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DiagnoseClusterResults: The location of diagnostic output. -type DiagnoseClusterResults struct { - // OutputUri: Output only. The Cloud Storage URI of the diagnostic output. The - // output report is a plain text file with a summary of collected diagnostics. - OutputUri string `json:"outputUri,omitempty"` - // ForceSendFields is a list of field names (e.g. "OutputUri") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "OutputUri") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` +func (s *BasicYarnAutoscalingConfig) UnmarshalJSON(data []byte) error { + type NoMethod BasicYarnAutoscalingConfig + var s1 struct { + ScaleDownFactor gensupport.JSONFloat64 `json:"scaleDownFactor"` + ScaleDownMinWorkerFraction gensupport.JSONFloat64 `json:"scaleDownMinWorkerFraction"` + ScaleUpFactor gensupport.JSONFloat64 `json:"scaleUpFactor"` + ScaleUpMinWorkerFraction gensupport.JSONFloat64 `json:"scaleUpMinWorkerFraction"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.ScaleDownFactor = float64(s1.ScaleDownFactor) + s.ScaleDownMinWorkerFraction = float64(s1.ScaleDownMinWorkerFraction) + s.ScaleUpFactor = float64(s1.ScaleUpFactor) + s.ScaleUpMinWorkerFraction = float64(s1.ScaleUpMinWorkerFraction) + return nil } -func (s DiagnoseClusterResults) MarshalJSON() ([]byte, error) { - type NoMethod DiagnoseClusterResults - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} +// Batch: A representation of a batch workload in the service. +type Batch struct { + // CreateTime: Output only. The time when the batch was created. + CreateTime string `json:"createTime,omitempty"` + // Creator: Output only. The email address of the user who created the batch. + Creator string `json:"creator,omitempty"` + // EnvironmentConfig: Optional. Environment configuration for the batch + // execution. + EnvironmentConfig *EnvironmentConfig `json:"environmentConfig,omitempty"` + // Labels: Optional. The labels to associate with this batch. Label keys must + // contain 1 to 63 characters, and must conform to RFC 1035 + // (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if + // present, must contain 1 to 63 characters, and must conform to RFC 1035 + // (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be + // associated with a batch. + Labels map[string]string `json:"labels,omitempty"` + // Name: Output only. The resource name of the batch. + Name string `json:"name,omitempty"` + // Operation: Output only. The resource name of the operation associated with + // this batch. + Operation string `json:"operation,omitempty"` + // PysparkBatch: Optional. PySpark batch config. + PysparkBatch *PySparkBatch `json:"pysparkBatch,omitempty"` + // RuntimeConfig: Optional. Runtime configuration for the batch execution. + RuntimeConfig *RuntimeConfig `json:"runtimeConfig,omitempty"` + // RuntimeInfo: Output only. Runtime information about batch execution. + RuntimeInfo *RuntimeInfo `json:"runtimeInfo,omitempty"` + // SparkBatch: Optional. Spark batch config. + SparkBatch *SparkBatch `json:"sparkBatch,omitempty"` + // SparkRBatch: Optional. SparkR batch config. + SparkRBatch *SparkRBatch `json:"sparkRBatch,omitempty"` + // SparkSqlBatch: Optional. SparkSql batch config. + SparkSqlBatch *SparkSqlBatch `json:"sparkSqlBatch,omitempty"` + // State: Output only. The state of the batch. + // + // Possible values: + // "STATE_UNSPECIFIED" - The batch state is unknown. + // "PENDING" - The batch is created before running. + // "RUNNING" - The batch is running. + // "CANCELLING" - The batch is cancelling. + // "CANCELLED" - The batch cancellation was successful. + // "SUCCEEDED" - The batch completed successfully. + // "FAILED" - The batch is no longer running due to an error. + State string `json:"state,omitempty"` + // StateHistory: Output only. Historical state information for the batch. + StateHistory []*StateHistory `json:"stateHistory,omitempty"` + // StateMessage: Output only. Batch state details, such as a failure + // description if the state is FAILED. + StateMessage string `json:"stateMessage,omitempty"` + // StateTime: Output only. The time when the batch entered a current state. + StateTime string `json:"stateTime,omitempty"` + // Uuid: Output only. A batch UUID (Unique Universal Identifier). The service + // generates this value when it creates the batch. + Uuid string `json:"uuid,omitempty"` -// DiskConfig: Specifies the config of disk options for a group of VM -// instances. -type DiskConfig struct { - // BootDiskProvisionedIops: Optional. Indicates how many IOPS to provision for - // the disk. This sets the number of I/O operations per second that the disk - // can handle. Note: This field is only supported if boot_disk_type is - // hyperdisk-balanced. - BootDiskProvisionedIops int64 `json:"bootDiskProvisionedIops,omitempty,string"` - // BootDiskProvisionedThroughput: Optional. Indicates how much throughput to - // provision for the disk. This sets the number of throughput mb per second - // that the disk can handle. Values must be greater than or equal to 1. Note: - // This field is only supported if boot_disk_type is hyperdisk-balanced. - BootDiskProvisionedThroughput int64 `json:"bootDiskProvisionedThroughput,omitempty,string"` - // BootDiskSizeGb: Optional. Size in GB of the boot disk (default is 500GB). - BootDiskSizeGb int64 `json:"bootDiskSizeGb,omitempty"` - // BootDiskType: Optional. Type of the boot disk (default is "pd-standard"). - // Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive), - // "pd-ssd" (Persistent Disk Solid State Drive), or "pd-standard" (Persistent - // Disk Hard Disk Drive). See Disk types - // (https://cloud.google.com/compute/docs/disks#disk-types). - BootDiskType string `json:"bootDiskType,omitempty"` - // LocalSsdInterface: Optional. Interface type of local SSDs (default is - // "scsi"). Valid values: "scsi" (Small Computer System Interface), "nvme" - // (Non-Volatile Memory Express). See local SSD performance - // (https://cloud.google.com/compute/docs/disks/local-ssd#performance). - LocalSsdInterface string `json:"localSsdInterface,omitempty"` - // NumLocalSsds: Optional. Number of attached SSDs, from 0 to 8 (default is 0). - // If SSDs are not attached, the boot disk is used to store runtime logs and - // HDFS (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If - // one or more SSDs are attached, this runtime bulk data is spread across them, - // and the boot disk contains only basic config and installed binaries.Note: - // Local SSD options may vary by machine type and number of vCPUs selected. - NumLocalSsds int64 `json:"numLocalSsds,omitempty"` - // ForceSendFields is a list of field names (e.g. "BootDiskProvisionedIops") to + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "CreateTime") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BootDiskProvisionedIops") to - // include in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. See + // NullFields is a list of field names (e.g. "CreateTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s DiskConfig) MarshalJSON() ([]byte, error) { - type NoMethod DiskConfig +func (s Batch) MarshalJSON() ([]byte, error) { + type NoMethod Batch return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DriverSchedulingConfig: Driver scheduling configuration. -type DriverSchedulingConfig struct { - // MemoryMb: Required. The amount of memory in MB the driver is requesting. - MemoryMb int64 `json:"memoryMb,omitempty"` - // Vcores: Required. The number of vCPUs the driver is requesting. - Vcores int64 `json:"vcores,omitempty"` - // ForceSendFields is a list of field names (e.g. "MemoryMb") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See +// BatchOperationMetadata: Metadata describing the Batch operation. +type BatchOperationMetadata struct { + // Batch: Name of the batch for the operation. + Batch string `json:"batch,omitempty"` + // BatchUuid: Batch UUID for the operation. + BatchUuid string `json:"batchUuid,omitempty"` + // CreateTime: The time when the operation was created. + CreateTime string `json:"createTime,omitempty"` + // Description: Short description of the operation. + Description string `json:"description,omitempty"` + // DoneTime: The time when the operation finished. + DoneTime string `json:"doneTime,omitempty"` + // Labels: Labels associated with the operation. + Labels map[string]string `json:"labels,omitempty"` + // OperationType: The operation type. + // + // Possible values: + // "BATCH_OPERATION_TYPE_UNSPECIFIED" - Batch operation type is unknown. + // "BATCH" - Batch operation type. + OperationType string `json:"operationType,omitempty"` + // Warnings: Warnings encountered during operation execution. + Warnings []string `json:"warnings,omitempty"` + // ForceSendFields is a list of field names (e.g. "Batch") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "MemoryMb") to include in API + // NullFields is a list of field names (e.g. "Batch") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s DriverSchedulingConfig) MarshalJSON() ([]byte, error) { - type NoMethod DriverSchedulingConfig +func (s BatchOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod BatchOperationMetadata return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Empty: A generic empty message that you can re-use to avoid defining -// duplicated empty messages in your APIs. A typical example is to use it as -// the request or the response type of an API method. For instance: service Foo -// { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } -type Empty struct { - // ServerResponse contains the HTTP response code and headers from the server. - googleapi.ServerResponse `json:"-"` -} - -// EncryptionConfig: Encryption settings for the cluster. -type EncryptionConfig struct { - // GcePdKmsKeyName: Optional. The Cloud KMS key resource name to use for - // persistent disk encryption for all instances in the cluster. See Use CMEK - // with cluster data - // (https://cloud.google.com//dataproc/docs/concepts/configuring-clusters/customer-managed-encryption#use_cmek_with_cluster_data) - // for more information. - GcePdKmsKeyName string `json:"gcePdKmsKeyName,omitempty"` - // KmsKey: Optional. The Cloud KMS key resource name to use for cluster - // persistent disk and job argument encryption. See Use CMEK with cluster data - // (https://cloud.google.com//dataproc/docs/concepts/configuring-clusters/customer-managed-encryption#use_cmek_with_cluster_data) - // for more information.When this key resource name is provided, the following - // job arguments of the following job types submitted to the cluster are - // encrypted using CMEK: FlinkJob args - // (https://cloud.google.com/dataproc/docs/reference/rest/v1/FlinkJob) - // HadoopJob args - // (https://cloud.google.com/dataproc/docs/reference/rest/v1/HadoopJob) - // SparkJob args - // (https://cloud.google.com/dataproc/docs/reference/rest/v1/SparkJob) - // SparkRJob args - // (https://cloud.google.com/dataproc/docs/reference/rest/v1/SparkRJob) - // PySparkJob args - // (https://cloud.google.com/dataproc/docs/reference/rest/v1/PySparkJob) - // SparkSqlJob - // (https://cloud.google.com/dataproc/docs/reference/rest/v1/SparkSqlJob) - // scriptVariables and queryList.queries HiveJob - // (https://cloud.google.com/dataproc/docs/reference/rest/v1/HiveJob) - // scriptVariables and queryList.queries PigJob - // (https://cloud.google.com/dataproc/docs/reference/rest/v1/PigJob) - // scriptVariables and queryList.queries PrestoJob - // (https://cloud.google.com/dataproc/docs/reference/rest/v1/PrestoJob) - // scriptVariables and queryList.queries - KmsKey string `json:"kmsKey,omitempty"` - // ForceSendFields is a list of field names (e.g. "GcePdKmsKeyName") to +// Binding: Associates members, or principals, with a role. +type Binding struct { + // Condition: The condition that is associated with this binding.If the + // condition evaluates to true, then this binding applies to the current + // request.If the condition evaluates to false, then this binding does not + // apply to the current request. However, a different role binding might grant + // the same role to one or more of the principals in this binding.To learn + // which resources support conditions in their IAM policies, see the IAM + // documentation + // (https://cloud.google.com/iam/help/conditions/resource-policies). + Condition *Expr `json:"condition,omitempty"` + // Members: Specifies the principals requesting access for a Google Cloud + // resource. members can have the following values: allUsers: A special + // identifier that represents anyone who is on the internet; with or without a + // Google account. allAuthenticatedUsers: A special identifier that represents + // anyone who is authenticated with a Google account or a service account. 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. + // principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subj + // ect/{subject_attribute_value}: A single identity in a workforce identity + // pool. + // principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/g + // roup/{group_id}: All workforce identities in a group. + // principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/a + // ttribute.{attribute_name}/{attribute_value}: All workforce identities with a + // specific attribute value. + // principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/* + // : All identities in a workforce identity pool. + // principal://iam.googleapis.com/projects/{project_number}/locations/global/wor + // kloadIdentityPools/{pool_id}/subject/{subject_attribute_value}: A single + // identity in a workload identity pool. + // principalSet://iam.googleapis.com/projects/{project_number}/locations/global/ + // workloadIdentityPools/{pool_id}/group/{group_id}: A workload identity pool + // group. + // principalSet://iam.googleapis.com/projects/{project_number}/locations/global/ + // workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}: + // All identities in a workload identity pool with a certain attribute. + // principalSet://iam.googleapis.com/projects/{project_number}/locations/global/ + // workloadIdentityPools/{pool_id}/*: All identities in a workload identity + // pool. 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. + // deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_ + // id}/subject/{subject_attribute_value}: Deleted single identity in a + // workforce identity pool. For example, + // deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-poo + // l-id/subject/my-subject-attribute-value. + Members []string `json:"members,omitempty"` + // Role: Role that is assigned to the list of members, or principals. For + // example, roles/viewer, roles/editor, or roles/owner.For an overview of the + // IAM roles and permissions, see the IAM documentation + // (https://cloud.google.com/iam/docs/roles-overview). For a list of the + // available pre-defined roles, see here + // (https://cloud.google.com/iam/docs/understanding-roles). + Role string `json:"role,omitempty"` + // ForceSendFields is a list of field names (e.g. "Condition") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "GcePdKmsKeyName") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See + // NullFields is a list of field names (e.g. "Condition") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s EncryptionConfig) MarshalJSON() ([]byte, error) { - type NoMethod EncryptionConfig +func (s Binding) MarshalJSON() ([]byte, error) { + type NoMethod Binding return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EndpointConfig: Endpoint config for this cluster -type EndpointConfig struct { - // EnableHttpPortAccess: Optional. If true, enable http access to specific - // ports on the cluster from external sources. Defaults to false. - EnableHttpPortAccess bool `json:"enableHttpPortAccess,omitempty"` - // HttpPorts: Output only. The map of port descriptions to URLs. Will only be - // populated if enable_http_port_access is true. - HttpPorts map[string]string `json:"httpPorts,omitempty"` - // ForceSendFields is a list of field names (e.g. "EnableHttpPortAccess") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "EnableHttpPortAccess") to include - // in API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` +// CancelJobRequest: A request to cancel a job. +type CancelJobRequest struct { } -func (s EndpointConfig) MarshalJSON() ([]byte, error) { - type NoMethod EndpointConfig - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} +// Cluster: Describes the identifying information, config, and status of a +// Dataproc cluster +type Cluster struct { + // ClusterName: Required. The cluster name, which must be unique within a + // project. The name must start with a lowercase letter, and can contain up to + // 51 lowercase letters, numbers, and hyphens. It cannot end with a hyphen. The + // name of a deleted cluster can be reused. + ClusterName string `json:"clusterName,omitempty"` + // ClusterUuid: Output only. A cluster UUID (Unique Universal Identifier). + // Dataproc generates this value when it creates the cluster. + ClusterUuid string `json:"clusterUuid,omitempty"` + // Config: Optional. The cluster config for a cluster of Compute Engine + // Instances. Note that Dataproc may set default values, and values may change + // when clusters are updated.Exactly one of ClusterConfig or + // VirtualClusterConfig must be specified. + Config *ClusterConfig `json:"config,omitempty"` + // Labels: Optional. The labels to associate with this cluster. Label keys must + // contain 1 to 63 characters, and must conform to RFC 1035 + // (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if + // present, must contain 1 to 63 characters, and must conform to RFC 1035 + // (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be + // associated with a cluster. + Labels map[string]string `json:"labels,omitempty"` + // Metrics: Output only. Contains cluster daemon metrics such as HDFS and YARN + // stats.Beta Feature: This report is available for testing purposes only. It + // may be changed before final release. + Metrics *ClusterMetrics `json:"metrics,omitempty"` + // ProjectId: Required. The Google Cloud Platform project ID that the cluster + // belongs to. + ProjectId string `json:"projectId,omitempty"` + // Status: Output only. Cluster status. + Status *ClusterStatus `json:"status,omitempty"` + // StatusHistory: Output only. The previous cluster status. + StatusHistory []*ClusterStatus `json:"statusHistory,omitempty"` + // VirtualClusterConfig: Optional. The virtual cluster config is used when + // creating a Dataproc cluster that does not directly control the underlying + // compute resources, for example, when creating a Dataproc-on-GKE cluster + // (https://cloud.google.com/dataproc/docs/guides/dpgke/dataproc-gke-overview). + // Dataproc may set default values, and values may change when clusters are + // updated. Exactly one of config or virtual_cluster_config must be specified. + VirtualClusterConfig *VirtualClusterConfig `json:"virtualClusterConfig,omitempty"` -// EnvironmentConfig: Environment configuration for a workload. -type EnvironmentConfig struct { - // ExecutionConfig: Optional. Execution configuration for a workload. - ExecutionConfig *ExecutionConfig `json:"executionConfig,omitempty"` - // PeripheralsConfig: Optional. Peripherals configuration that workload has - // access to. - PeripheralsConfig *PeripheralsConfig `json:"peripheralsConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExecutionConfig") to + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "ClusterName") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ExecutionConfig") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See + // NullFields is a list of field names (e.g. "ClusterName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s EnvironmentConfig) MarshalJSON() ([]byte, error) { - type NoMethod EnvironmentConfig +func (s Cluster) MarshalJSON() ([]byte, error) { + type NoMethod Cluster return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ExecutionConfig: Execution configuration for a workload. -type ExecutionConfig struct { - // IdleTtl: Optional. Applies to sessions only. The duration to keep the - // session alive while it's idling. Exceeding this threshold causes the session - // to terminate. This field cannot be set on a batch workload. Minimum value is - // 10 minutes; maximum value is 14 days (see JSON representation of Duration - // (https://developers.google.com/protocol-buffers/docs/proto3#json)). Defaults - // to 1 hour if not set. If both ttl and idle_ttl are specified for an - // interactive session, the conditions are treated as OR conditions: the - // workload will be terminated when it has been idle for idle_ttl or when ttl - // has been exceeded, whichever occurs first. - IdleTtl string `json:"idleTtl,omitempty"` - // KmsKey: Optional. The Cloud KMS key to use for encryption. - KmsKey string `json:"kmsKey,omitempty"` - // NetworkTags: Optional. Tags used for network traffic control. - NetworkTags []string `json:"networkTags,omitempty"` - // NetworkUri: Optional. Network URI to connect workload to. - NetworkUri string `json:"networkUri,omitempty"` - // ServiceAccount: Optional. Service account that used to execute workload. - ServiceAccount string `json:"serviceAccount,omitempty"` - // StagingBucket: Optional. A Cloud Storage bucket used to stage workload - // dependencies, config files, and store workload output and other ephemeral - // data, such as Spark history files. If you do not specify a staging bucket, - // Cloud Dataproc will determine a Cloud Storage location according to the - // region where your workload is running, and then create and manage - // project-level, per-location staging and temporary buckets. This field - // requires a Cloud Storage bucket name, not a gs://... URI to a Cloud Storage - // bucket. - StagingBucket string `json:"stagingBucket,omitempty"` - // SubnetworkUri: Optional. Subnetwork URI to connect workload to. - SubnetworkUri string `json:"subnetworkUri,omitempty"` - // Ttl: Optional. The duration after which the workload will be terminated, - // specified as the JSON representation for Duration - // (https://protobuf.dev/programming-guides/proto3/#json). When the workload - // exceeds this duration, it will be unconditionally terminated without waiting - // for ongoing work to finish. If ttl is not specified for a batch workload, - // the workload will be allowed to run until it exits naturally (or run forever - // without exiting). If ttl is not specified for an interactive session, it - // defaults to 24 hours. If ttl is not specified for a batch that uses 2.1+ - // runtime version, it defaults to 4 hours. Minimum value is 10 minutes; - // maximum value is 14 days. If both ttl and idle_ttl are specified (for an - // interactive session), the conditions are treated as OR conditions: the - // workload will be terminated when it has been idle for idle_ttl or when ttl - // has been exceeded, whichever occurs first. - Ttl string `json:"ttl,omitempty"` - // ForceSendFields is a list of field names (e.g. "IdleTtl") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "IdleTtl") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See +// ClusterConfig: The cluster config. +type ClusterConfig struct { + // AutoscalingConfig: Optional. Autoscaling config for the policy associated + // with the cluster. Cluster does not autoscale if this field is unset. + AutoscalingConfig *AutoscalingConfig `json:"autoscalingConfig,omitempty"` + // AuxiliaryNodeGroups: Optional. The node group settings. + AuxiliaryNodeGroups []*AuxiliaryNodeGroup `json:"auxiliaryNodeGroups,omitempty"` + // ConfigBucket: Optional. A Cloud Storage bucket used to stage job + // dependencies, config files, and job driver console output. If you do not + // specify a staging bucket, Cloud Dataproc will determine a Cloud Storage + // location (US, ASIA, or EU) for your cluster's staging bucket according to + // the Compute Engine zone where your cluster is deployed, and then create and + // manage this project-level, per-location bucket (see Dataproc staging and + // temp buckets + // (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). + // This field requires a Cloud Storage bucket name, not a gs://... URI to a + // Cloud Storage bucket. + ConfigBucket string `json:"configBucket,omitempty"` + // DataprocMetricConfig: Optional. The config for Dataproc metrics. + DataprocMetricConfig *DataprocMetricConfig `json:"dataprocMetricConfig,omitempty"` + // EncryptionConfig: Optional. Encryption settings for the cluster. + EncryptionConfig *EncryptionConfig `json:"encryptionConfig,omitempty"` + // EndpointConfig: Optional. Port/endpoint configuration for this cluster + EndpointConfig *EndpointConfig `json:"endpointConfig,omitempty"` + // GceClusterConfig: Optional. The shared Compute Engine config settings for + // all instances in a cluster. + GceClusterConfig *GceClusterConfig `json:"gceClusterConfig,omitempty"` + // GkeClusterConfig: Optional. BETA. The Kubernetes Engine config for Dataproc + // clusters deployed to The Kubernetes Engine config for Dataproc clusters + // deployed to Kubernetes. These config settings are mutually exclusive with + // Compute Engine-based options, such as gce_cluster_config, master_config, + // worker_config, secondary_worker_config, and autoscaling_config. + GkeClusterConfig *GkeClusterConfig `json:"gkeClusterConfig,omitempty"` + // InitializationActions: Optional. Commands to execute on each node after + // config is completed. By default, executables are run on master and all + // worker nodes. You can test a node's role metadata to run an executable on a + // master or worker node, as shown below using curl (you can also use wget): + // ROLE=$(curl -H Metadata-Flavor:Google + // http://metadata/computeMetadata/v1/instance/attributes/dataproc-role) if [[ + // "${ROLE}" == 'Master' ]]; then ... master specific actions ... else ... + // worker specific actions ... fi + InitializationActions []*NodeInitializationAction `json:"initializationActions,omitempty"` + // LifecycleConfig: Optional. Lifecycle setting for the cluster. + LifecycleConfig *LifecycleConfig `json:"lifecycleConfig,omitempty"` + // MasterConfig: Optional. The Compute Engine config settings for the cluster's + // master instance. + MasterConfig *InstanceGroupConfig `json:"masterConfig,omitempty"` + // MetastoreConfig: Optional. Metastore configuration. + MetastoreConfig *MetastoreConfig `json:"metastoreConfig,omitempty"` + // SecondaryWorkerConfig: Optional. The Compute Engine config settings for a + // cluster's secondary worker instances + SecondaryWorkerConfig *InstanceGroupConfig `json:"secondaryWorkerConfig,omitempty"` + // SecurityConfig: Optional. Security settings for the cluster. + SecurityConfig *SecurityConfig `json:"securityConfig,omitempty"` + // SoftwareConfig: Optional. The config settings for cluster software. + SoftwareConfig *SoftwareConfig `json:"softwareConfig,omitempty"` + // TempBucket: Optional. A Cloud Storage bucket used to store ephemeral cluster + // and jobs data, such as Spark and MapReduce history files. If you do not + // specify a temp bucket, Dataproc will determine a Cloud Storage location (US, + // ASIA, or EU) for your cluster's temp bucket according to the Compute Engine + // zone where your cluster is deployed, and then create and manage this + // project-level, per-location bucket. The default bucket has a TTL of 90 days, + // but you can use any TTL (or none) if you specify a bucket (see Dataproc + // staging and temp buckets + // (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). + // This field requires a Cloud Storage bucket name, not a gs://... URI to a + // Cloud Storage bucket. + TempBucket string `json:"tempBucket,omitempty"` + // WorkerConfig: Optional. The Compute Engine config settings for the cluster's + // worker instances. + WorkerConfig *InstanceGroupConfig `json:"workerConfig,omitempty"` + // ForceSendFields is a list of field names (e.g. "AutoscalingConfig") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AutoscalingConfig") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s ExecutionConfig) MarshalJSON() ([]byte, error) { - type NoMethod ExecutionConfig +func (s ClusterConfig) MarshalJSON() ([]byte, error) { + type NoMethod ClusterConfig return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Expr: Represents a textual expression in the Common Expression Language -// (CEL) syntax. CEL is a C-like expression language. The syntax and semantics -// of CEL are documented at https://github.com/google/cel-spec.Example -// (Comparison): title: "Summary size limit" description: "Determines if a -// summary is less than 100 chars" expression: "document.summary.size() < 100" -// Example (Equality): title: "Requestor is owner" description: "Determines if -// requestor is the document owner" expression: "document.owner == -// request.auth.claims.email" Example (Logic): title: "Public documents" -// description: "Determine whether the document should be publicly visible" -// expression: "document.type != 'private' && document.type != 'internal'" -// Example (Data Manipulation): title: "Notification string" description: -// "Create a notification string with a timestamp." expression: "'New message -// received at ' + string(document.create_time)" The exact variables and -// functions that may be referenced within an expression are determined by the -// service that evaluates it. See the service documentation for additional -// information. -type Expr struct { - // Description: Optional. Description of the expression. This is a longer text - // which describes the expression, e.g. when hovered over it in a UI. - Description string `json:"description,omitempty"` - // Expression: Textual representation of an expression in Common Expression - // Language syntax. - Expression string `json:"expression,omitempty"` - // Location: Optional. String indicating the location of the expression for - // error reporting, e.g. a file name and a position in the file. - Location string `json:"location,omitempty"` - // Title: Optional. Title for the expression, i.e. a short string describing - // its purpose. This can be used e.g. in UIs which allow to enter the - // expression. - Title string `json:"title,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to +// ClusterMetrics: Contains cluster daemon metrics, such as HDFS and YARN +// stats.Beta Feature: This report is available for testing purposes only. It +// may be changed before final release. +type ClusterMetrics struct { + // HdfsMetrics: The HDFS metrics. + HdfsMetrics map[string]string `json:"hdfsMetrics,omitempty"` + // YarnMetrics: YARN metrics. + YarnMetrics map[string]string `json:"yarnMetrics,omitempty"` + // ForceSendFields is a list of field names (e.g. "HdfsMetrics") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Description") to include in API + // NullFields is a list of field names (e.g. "HdfsMetrics") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s Expr) MarshalJSON() ([]byte, error) { - type NoMethod Expr +func (s ClusterMetrics) MarshalJSON() ([]byte, error) { + type NoMethod ClusterMetrics return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// FlinkJob: A Dataproc job for running Apache Flink applications on YARN. -type FlinkJob struct { - // Args: Optional. The arguments to pass to the driver. Do not include - // arguments, such as --conf, that can be set as job properties, since a - // collision might occur that causes an incorrect job submission. - Args []string `json:"args,omitempty"` - // JarFileUris: Optional. HCFS URIs of jar files to add to the CLASSPATHs of - // the Flink driver and tasks. - JarFileUris []string `json:"jarFileUris,omitempty"` - // LoggingConfig: Optional. The runtime log config for job execution. - LoggingConfig *LoggingConfig `json:"loggingConfig,omitempty"` - // MainClass: The name of the driver's main class. The jar file that contains - // the class must be in the default CLASSPATH or specified in jarFileUris. - MainClass string `json:"mainClass,omitempty"` - // MainJarFileUri: The HCFS URI of the jar file that contains the main class. - MainJarFileUri string `json:"mainJarFileUri,omitempty"` - // Properties: Optional. A mapping of property names to values, used to - // configure Flink. Properties that conflict with values set by the Dataproc - // API might beoverwritten. Can include properties set - // in/etc/flink/conf/flink-defaults.conf and classes in user code. - Properties map[string]string `json:"properties,omitempty"` - // SavepointUri: Optional. HCFS URI of the savepoint, which contains the last - // saved progress for starting the current job. - SavepointUri string `json:"savepointUri,omitempty"` - // ForceSendFields is a list of field names (e.g. "Args") to unconditionally +// ClusterOperation: The cluster operation triggered by a workflow. +type ClusterOperation struct { + // Done: Output only. Indicates the operation is done. + Done bool `json:"done,omitempty"` + // Error: Output only. Error, if operation failed. + Error string `json:"error,omitempty"` + // OperationId: Output only. The id of the cluster operation. + OperationId string `json:"operationId,omitempty"` + // ForceSendFields is a list of field names (e.g. "Done") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Args") to include in API requests + // NullFields is a list of field names (e.g. "Done") to include in API requests // with the JSON null value. By default, fields with empty values are omitted // from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s FlinkJob) MarshalJSON() ([]byte, error) { - type NoMethod FlinkJob +func (s ClusterOperation) MarshalJSON() ([]byte, error) { + type NoMethod ClusterOperation return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GceClusterConfig: Common config settings for resources of Compute Engine -// cluster instances, applicable to all instances in the cluster. -type GceClusterConfig struct { - // ConfidentialInstanceConfig: Optional. Confidential Instance Config for - // clusters using Confidential VMs - // (https://cloud.google.com/compute/confidential-vm/docs). - ConfidentialInstanceConfig *ConfidentialInstanceConfig `json:"confidentialInstanceConfig,omitempty"` - // InternalIpOnly: Optional. This setting applies to subnetwork-enabled - // networks. It is set to true by default in clusters created with image - // versions 2.2.x.When set to true: All cluster VMs have internal IP addresses. - // Google Private Access - // (https://cloud.google.com/vpc/docs/private-google-access) must be enabled to - // access Dataproc and other Google Cloud APIs. Off-cluster dependencies must - // be configured to be accessible without external IP addresses.When set to - // false: Cluster VMs are not restricted to internal IP addresses. Ephemeral - // external IP addresses are assigned to each cluster VM. - InternalIpOnly bool `json:"internalIpOnly,omitempty"` - // Metadata: Optional. The Compute Engine metadata entries to add to all - // instances (see Project and instance metadata - // (https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)). - Metadata map[string]string `json:"metadata,omitempty"` - // NetworkUri: Optional. The Compute Engine network to be used for machine - // communications. Cannot be specified with subnetwork_uri. If neither - // network_uri nor subnetwork_uri is specified, the "default" network of the - // project is used, if it exists. Cannot be a "Custom Subnet Network" (see - // Using Subnetworks (https://cloud.google.com/compute/docs/subnetworks) for - // more information).A full URL, partial URI, or short name are valid. - // Examples: - // https://www.googleapis.com/compute/v1/projects/[project_id]/global/networks/default - // projects/[project_id]/global/networks/default default - NetworkUri string `json:"networkUri,omitempty"` - // NodeGroupAffinity: Optional. Node Group Affinity for sole-tenant clusters. - NodeGroupAffinity *NodeGroupAffinity `json:"nodeGroupAffinity,omitempty"` - // PrivateIpv6GoogleAccess: Optional. The type of IPv6 access for a cluster. +// ClusterOperationMetadata: Metadata describing the operation. +type ClusterOperationMetadata struct { + // ChildOperationIds: Output only. Child operation ids + ChildOperationIds []string `json:"childOperationIds,omitempty"` + // ClusterName: Output only. Name of the cluster for the operation. + ClusterName string `json:"clusterName,omitempty"` + // ClusterUuid: Output only. Cluster UUID for the operation. + ClusterUuid string `json:"clusterUuid,omitempty"` + // Description: Output only. Short description of operation. + Description string `json:"description,omitempty"` + // Labels: Output only. Labels associated with the operation + Labels map[string]string `json:"labels,omitempty"` + // OperationType: Output only. The operation type. + OperationType string `json:"operationType,omitempty"` + // Status: Output only. Current operation status. + Status *ClusterOperationStatus `json:"status,omitempty"` + // StatusHistory: Output only. The previous operation status. + StatusHistory []*ClusterOperationStatus `json:"statusHistory,omitempty"` + // Warnings: Output only. Errors encountered during operation execution. + Warnings []string `json:"warnings,omitempty"` + // ForceSendFields is a list of field names (e.g. "ChildOperationIds") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ChildOperationIds") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ClusterOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod ClusterOperationMetadata + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// ClusterOperationStatus: The status of the operation. +type ClusterOperationStatus struct { + // Details: Output only. A message containing any operation metadata details. + Details string `json:"details,omitempty"` + // InnerState: Output only. A message containing the detailed operation state. + InnerState string `json:"innerState,omitempty"` + // State: Output only. A message containing the operation state. // // Possible values: - // "PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED" - If unspecified, Compute Engine - // default behavior will apply, which is the same as INHERIT_FROM_SUBNETWORK. - // "INHERIT_FROM_SUBNETWORK" - Private access to and from Google Services - // configuration inherited from the subnetwork configuration. This is the - // default Compute Engine behavior. - // "OUTBOUND" - Enables outbound private IPv6 access to Google Services from - // the Dataproc cluster. - // "BIDIRECTIONAL" - Enables bidirectional private IPv6 access between Google - // Services and the Dataproc cluster. - PrivateIpv6GoogleAccess string `json:"privateIpv6GoogleAccess,omitempty"` - // ReservationAffinity: Optional. Reservation Affinity for consuming Zonal - // reservation. - ReservationAffinity *ReservationAffinity `json:"reservationAffinity,omitempty"` - // ServiceAccount: Optional. The Dataproc service account - // (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc) - // (also see VM Data Plane identity - // (https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-principals#vm_service_account_data_plane_identity)) - // used by Dataproc cluster VM instances to access Google Cloud Platform - // services.If not specified, the Compute Engine default service account - // (https://cloud.google.com/compute/docs/access/service-accounts#default_service_account) - // is used. - ServiceAccount string `json:"serviceAccount,omitempty"` - // ServiceAccountScopes: Optional. The URIs of service account scopes to be - // included in Compute Engine instances. The following base set of scopes is - // always included: https://www.googleapis.com/auth/cloud.useraccounts.readonly - // https://www.googleapis.com/auth/devstorage.read_write - // https://www.googleapis.com/auth/logging.writeIf no scopes are specified, the - // following defaults are also provided: - // https://www.googleapis.com/auth/bigquery - // https://www.googleapis.com/auth/bigtable.admin.table - // https://www.googleapis.com/auth/bigtable.data - // https://www.googleapis.com/auth/devstorage.full_control - ServiceAccountScopes []string `json:"serviceAccountScopes,omitempty"` - // ShieldedInstanceConfig: Optional. Shielded Instance Config for clusters - // using Compute Engine Shielded VMs - // (https://cloud.google.com/security/shielded-cloud/shielded-vm). - ShieldedInstanceConfig *ShieldedInstanceConfig `json:"shieldedInstanceConfig,omitempty"` - // SubnetworkUri: Optional. The Compute Engine subnetwork to be used for - // machine communications. Cannot be specified with network_uri.A full URL, - // partial URI, or short name are valid. Examples: - // https://www.googleapis.com/compute/v1/projects/[project_id]/regions/[region]/subnetworks/sub0 - // projects/[project_id]/regions/[region]/subnetworks/sub0 sub0 - SubnetworkUri string `json:"subnetworkUri,omitempty"` - // Tags: The Compute Engine network tags to add to all instances (see Tagging - // instances (https://cloud.google.com/vpc/docs/add-remove-network-tags)). - Tags []string `json:"tags,omitempty"` - // ZoneUri: Optional. The Compute Engine zone where the Dataproc cluster will - // be located. If omitted, the service will pick a zone in the cluster's - // Compute Engine region. On a get request, zone will always be present.A full - // URL, partial URI, or short name are valid. Examples: - // https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone] - // projects/[project_id]/zones/[zone] [zone] - ZoneUri string `json:"zoneUri,omitempty"` - // ForceSendFields is a list of field names (e.g. "ConfidentialInstanceConfig") - // to unconditionally include in API requests. By default, fields with empty or + // "UNKNOWN" - Unused. + // "PENDING" - The operation has been created. + // "RUNNING" - The operation is running. + // "DONE" - The operation is done; either cancelled or completed. + State string `json:"state,omitempty"` + // StateStartTime: Output only. The time this state was entered. + StateStartTime string `json:"stateStartTime,omitempty"` + // ForceSendFields is a list of field names (e.g. "Details") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Details") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ClusterOperationStatus) MarshalJSON() ([]byte, error) { + type NoMethod ClusterOperationStatus + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// ClusterSelector: A selector that chooses target cluster for jobs based on +// metadata. +type ClusterSelector struct { + // ClusterLabels: Required. The cluster labels. Cluster must have all labels to + // match. + ClusterLabels map[string]string `json:"clusterLabels,omitempty"` + // Zone: Optional. The zone where workflow process executes. This parameter + // does not affect the selection of the cluster.If unspecified, the zone of the + // first cluster matching the selector is used. + Zone string `json:"zone,omitempty"` + // ForceSendFields is a list of field names (e.g. "ClusterLabels") to + // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ConfidentialInstanceConfig") to - // include in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. See + // NullFields is a list of field names (e.g. "ClusterLabels") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s GceClusterConfig) MarshalJSON() ([]byte, error) { - type NoMethod GceClusterConfig +func (s ClusterSelector) MarshalJSON() ([]byte, error) { + type NoMethod ClusterSelector return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GetIamPolicyRequest: Request message for GetIamPolicy method. -type GetIamPolicyRequest struct { - // Options: OPTIONAL: A GetPolicyOptions object for specifying options to - // GetIamPolicy. - Options *GetPolicyOptions `json:"options,omitempty"` - // ForceSendFields is a list of field names (e.g. "Options") to unconditionally +// ClusterStatus: The status of a cluster and its instances. +type ClusterStatus struct { + // Detail: Optional. Output only. Details of cluster's state. + Detail string `json:"detail,omitempty"` + // State: Output only. The cluster's state. + // + // Possible values: + // "UNKNOWN" - The cluster state is unknown. + // "CREATING" - The cluster is being created and set up. It is not ready for + // use. + // "RUNNING" - The cluster is currently running and healthy. It is ready for + // use.Note: The cluster state changes from "creating" to "running" status + // after the master node(s), first two primary worker nodes (and the last + // primary worker node if primary workers > 2) are running. + // "ERROR" - The cluster encountered an error. It is not ready for use. + // "ERROR_DUE_TO_UPDATE" - The cluster has encountered an error while being + // updated. Jobs can be submitted to the cluster, but the cluster cannot be + // updated. + // "DELETING" - The cluster is being deleted. It cannot be used. + // "UPDATING" - The cluster is being updated. It continues to accept and + // process jobs. + // "STOPPING" - The cluster is being stopped. It cannot be used. + // "STOPPED" - The cluster is currently stopped. It is not ready for use. + // "STARTING" - The cluster is being started. It is not ready for use. + // "REPAIRING" - The cluster is being repaired. It is not ready for use. + State string `json:"state,omitempty"` + // StateStartTime: Output only. Time when this state was entered (see JSON + // representation of Timestamp + // (https://developers.google.com/protocol-buffers/docs/proto3#json)). + StateStartTime string `json:"stateStartTime,omitempty"` + // Substate: Output only. Additional state information that includes status + // reported by the agent. + // + // Possible values: + // "UNSPECIFIED" - The cluster substate is unknown. + // "UNHEALTHY" - The cluster is known to be in an unhealthy state (for + // example, critical daemons are not running or HDFS capacity is + // exhausted).Applies to RUNNING state. + // "STALE_STATUS" - The agent-reported status is out of date (may occur if + // Dataproc loses communication with Agent).Applies to RUNNING state. + Substate string `json:"substate,omitempty"` + // ForceSendFields is a list of field names (e.g. "Detail") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Options") to include in API + // NullFields is a list of field names (e.g. "Detail") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s GetIamPolicyRequest) MarshalJSON() ([]byte, error) { - type NoMethod GetIamPolicyRequest +func (s ClusterStatus) MarshalJSON() ([]byte, error) { + type NoMethod ClusterStatus return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GetPolicyOptions: Encapsulates settings provided to GetIamPolicy. -type GetPolicyOptions struct { - // RequestedPolicyVersion: Optional. The maximum policy version that will be - // used to format the policy.Valid values are 0, 1, and 3. Requests specifying - // an invalid value will be rejected.Requests for policies with any conditional - // role bindings must specify version 3. Policies with no conditional role - // bindings may specify any valid value or leave the field unset.The policy in - // the response might use the policy version that you specified, or it might - // use a lower policy version. For example, if you specify version 3, but the - // policy has no conditional role bindings, the response uses version 1.To - // learn which resources support conditions in their IAM policies, see the IAM - // documentation - // (https://cloud.google.com/iam/help/conditions/resource-policies). - RequestedPolicyVersion int64 `json:"requestedPolicyVersion,omitempty"` - // ForceSendFields is a list of field names (e.g. "RequestedPolicyVersion") to +// ClusterToRepair: Cluster to be repaired +type ClusterToRepair struct { + // ClusterRepairAction: Required. Repair action to take on the cluster + // resource. + // + // Possible values: + // "CLUSTER_REPAIR_ACTION_UNSPECIFIED" - No action will be taken by default. + // "REPAIR_ERROR_DUE_TO_UPDATE_CLUSTER" - Repair cluster in + // ERROR_DUE_TO_UPDATE states. + ClusterRepairAction string `json:"clusterRepairAction,omitempty"` + // ForceSendFields is a list of field names (e.g. "ClusterRepairAction") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "RequestedPolicyVersion") to - // include in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. See + // NullFields is a list of field names (e.g. "ClusterRepairAction") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s GetPolicyOptions) MarshalJSON() ([]byte, error) { - type NoMethod GetPolicyOptions +func (s ClusterToRepair) MarshalJSON() ([]byte, error) { + type NoMethod ClusterToRepair return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GkeClusterConfig: The cluster's GKE config. -type GkeClusterConfig struct { - // GkeClusterTarget: Optional. A target GKE cluster to deploy to. It must be in - // the same project and region as the Dataproc cluster (the GKE cluster can be - // zonal or regional). Format: - // 'projects/{project}/locations/{location}/clusters/{cluster_id}' - GkeClusterTarget string `json:"gkeClusterTarget,omitempty"` - // NamespacedGkeDeploymentTarget: Optional. Deprecated. Use gkeClusterTarget. - // Used only for the deprecated beta. A target for the deployment. - NamespacedGkeDeploymentTarget *NamespacedGkeDeploymentTarget `json:"namespacedGkeDeploymentTarget,omitempty"` - // NodePoolTarget: Optional. GKE node pools where workloads will be scheduled. - // At least one node pool must be assigned the DEFAULT GkeNodePoolTarget.Role. - // If a GkeNodePoolTarget is not specified, Dataproc constructs a DEFAULT - // GkeNodePoolTarget. Each role can be given to only one GkeNodePoolTarget. All - // node pools must have the same location settings. - NodePoolTarget []*GkeNodePoolTarget `json:"nodePoolTarget,omitempty"` - // ForceSendFields is a list of field names (e.g. "GkeClusterTarget") to - // unconditionally include in API requests. By default, fields with empty or +// ConfidentialInstanceConfig: Confidential Instance Config for clusters using +// Confidential VMs (https://cloud.google.com/compute/confidential-vm/docs) +type ConfidentialInstanceConfig struct { + // EnableConfidentialCompute: Optional. Defines whether the instance should + // have confidential compute enabled. + EnableConfidentialCompute bool `json:"enableConfidentialCompute,omitempty"` + // ForceSendFields is a list of field names (e.g. "EnableConfidentialCompute") + // to unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "GkeClusterTarget") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See + // NullFields is a list of field names (e.g. "EnableConfidentialCompute") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s GkeClusterConfig) MarshalJSON() ([]byte, error) { - type NoMethod GkeClusterConfig +func (s ConfidentialInstanceConfig) MarshalJSON() ([]byte, error) { + type NoMethod ConfidentialInstanceConfig return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GkeNodeConfig: Parameters that describe cluster nodes. -type GkeNodeConfig struct { - // Accelerators: Optional. A list of hardware accelerators - // (https://cloud.google.com/compute/docs/gpus) to attach to each node. - Accelerators []*GkeNodePoolAcceleratorConfig `json:"accelerators,omitempty"` - // BootDiskKmsKey: Optional. The Customer Managed Encryption Key (CMEK) - // (https://cloud.google.com/kubernetes-engine/docs/how-to/using-cmek) used to - // encrypt the boot disk attached to each node in the node pool. Specify the - // key using the following format: - // projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypt - // o_key} - BootDiskKmsKey string `json:"bootDiskKmsKey,omitempty"` - // LocalSsdCount: Optional. The number of local SSD disks to attach to the - // node, which is limited by the maximum number of disks allowable per zone - // (see Adding Local SSDs - // (https://cloud.google.com/compute/docs/disks/local-ssd)). - LocalSsdCount int64 `json:"localSsdCount,omitempty"` - // MachineType: Optional. The name of a Compute Engine machine type - // (https://cloud.google.com/compute/docs/machine-types). - MachineType string `json:"machineType,omitempty"` - // MinCpuPlatform: Optional. Minimum CPU platform - // (https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) - // to be used by this instance. The instance may be scheduled on the specified - // or a newer CPU platform. Specify the friendly names of CPU platforms, such - // as "Intel Haswell" or Intel Sandy Bridge". - MinCpuPlatform string `json:"minCpuPlatform,omitempty"` - // Preemptible: Optional. Whether the nodes are created as legacy preemptible - // VM instances (https://cloud.google.com/compute/docs/instances/preemptible). - // Also see Spot VMs, preemptible VM instances without a maximum lifetime. - // Legacy and Spot preemptible nodes cannot be used in a node pool with the - // CONTROLLER role or in the DEFAULT node pool if the CONTROLLER role is not - // assigned (the DEFAULT node pool will assume the CONTROLLER role). - Preemptible bool `json:"preemptible,omitempty"` - // Spot: Optional. Whether the nodes are created as Spot VM instances - // (https://cloud.google.com/compute/docs/instances/spot). Spot VMs are the - // latest update to legacy preemptible VMs. Spot VMs do not have a maximum - // lifetime. Legacy and Spot preemptible nodes cannot be used in a node pool - // with the CONTROLLER role or in the DEFAULT node pool if the CONTROLLER role - // is not assigned (the DEFAULT node pool will assume the CONTROLLER role). - Spot bool `json:"spot,omitempty"` - // ForceSendFields is a list of field names (e.g. "Accelerators") to +// ConsolidatedExecutorSummary: Consolidated summary about executors used by +// the application. +type ConsolidatedExecutorSummary struct { + ActiveTasks int64 `json:"activeTasks,omitempty"` + CompletedTasks int64 `json:"completedTasks,omitempty"` + Count int64 `json:"count,omitempty"` + DiskUsed int64 `json:"diskUsed,omitempty,string"` + FailedTasks int64 `json:"failedTasks,omitempty"` + IsExcluded int64 `json:"isExcluded,omitempty"` + MaxMemory int64 `json:"maxMemory,omitempty,string"` + MemoryMetrics *MemoryMetrics `json:"memoryMetrics,omitempty"` + MemoryUsed int64 `json:"memoryUsed,omitempty,string"` + RddBlocks int64 `json:"rddBlocks,omitempty"` + TotalCores int64 `json:"totalCores,omitempty"` + TotalDurationMillis int64 `json:"totalDurationMillis,omitempty,string"` + TotalGcTimeMillis int64 `json:"totalGcTimeMillis,omitempty,string"` + TotalInputBytes int64 `json:"totalInputBytes,omitempty,string"` + TotalShuffleRead int64 `json:"totalShuffleRead,omitempty,string"` + TotalShuffleWrite int64 `json:"totalShuffleWrite,omitempty,string"` + TotalTasks int64 `json:"totalTasks,omitempty"` + // ForceSendFields is a list of field names (e.g. "ActiveTasks") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Accelerators") to include in API + // NullFields is a list of field names (e.g. "ActiveTasks") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s GkeNodeConfig) MarshalJSON() ([]byte, error) { - type NoMethod GkeNodeConfig +func (s ConsolidatedExecutorSummary) MarshalJSON() ([]byte, error) { + type NoMethod ConsolidatedExecutorSummary return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GkeNodePoolAcceleratorConfig: A GkeNodeConfigAcceleratorConfig represents a -// Hardware Accelerator request for a node pool. -type GkeNodePoolAcceleratorConfig struct { - // AcceleratorCount: The number of accelerator cards exposed to an instance. - AcceleratorCount int64 `json:"acceleratorCount,omitempty,string"` - // AcceleratorType: The accelerator type resource namename (see GPUs on Compute - // Engine). - AcceleratorType string `json:"acceleratorType,omitempty"` - // GpuPartitionSize: Size of partitions to create on the GPU. Valid values are - // described in the NVIDIA mig user guide - // (https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning). - GpuPartitionSize string `json:"gpuPartitionSize,omitempty"` - // ForceSendFields is a list of field names (e.g. "AcceleratorCount") to +// DataprocMetricConfig: Dataproc metric config. +type DataprocMetricConfig struct { + // Metrics: Required. Metrics sources to enable. + Metrics []*Metric `json:"metrics,omitempty"` + // ForceSendFields is a list of field names (e.g. "Metrics") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Metrics") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s DataprocMetricConfig) MarshalJSON() ([]byte, error) { + type NoMethod DataprocMetricConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// DiagnoseClusterRequest: A request to collect cluster diagnostic information. +type DiagnoseClusterRequest struct { + // DiagnosisInterval: Optional. Time interval in which diagnosis should be + // carried out on the cluster. + DiagnosisInterval *Interval `json:"diagnosisInterval,omitempty"` + // Job: Optional. DEPRECATED Specifies the job on which diagnosis is to be + // performed. Format: projects/{project}/regions/{region}/jobs/{job} + Job string `json:"job,omitempty"` + // Jobs: Optional. Specifies a list of jobs on which diagnosis is to be + // performed. Format: projects/{project}/regions/{region}/jobs/{job} + Jobs []string `json:"jobs,omitempty"` + // TarballAccess: Optional. (Optional) The access type to the diagnostic + // tarball. If not specified, falls back to default access of the bucket + // + // Possible values: + // "TARBALL_ACCESS_UNSPECIFIED" - Tarball Access unspecified. Falls back to + // default access of the bucket + // "GOOGLE_CLOUD_SUPPORT" - Google Cloud Support group has read access to the + // diagnostic tarball + // "GOOGLE_DATAPROC_DIAGNOSE" - Google Cloud Dataproc Diagnose service + // account has read access to the diagnostic tarball + TarballAccess string `json:"tarballAccess,omitempty"` + // TarballGcsDir: Optional. (Optional) The output Cloud Storage directory for + // the diagnostic tarball. If not specified, a task-specific directory in the + // cluster's staging bucket will be used. + TarballGcsDir string `json:"tarballGcsDir,omitempty"` + // YarnApplicationId: Optional. DEPRECATED Specifies the yarn application on + // which diagnosis is to be performed. + YarnApplicationId string `json:"yarnApplicationId,omitempty"` + // YarnApplicationIds: Optional. Specifies a list of yarn applications on which + // diagnosis is to be performed. + YarnApplicationIds []string `json:"yarnApplicationIds,omitempty"` + // ForceSendFields is a list of field names (e.g. "DiagnosisInterval") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AcceleratorCount") to include in + // NullFields is a list of field names (e.g. "DiagnosisInterval") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s GkeNodePoolAcceleratorConfig) MarshalJSON() ([]byte, error) { - type NoMethod GkeNodePoolAcceleratorConfig +func (s DiagnoseClusterRequest) MarshalJSON() ([]byte, error) { + type NoMethod DiagnoseClusterRequest return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GkeNodePoolAutoscalingConfig: GkeNodePoolAutoscaling contains information -// the cluster autoscaler needs to adjust the size of the node pool to the -// current cluster usage. -type GkeNodePoolAutoscalingConfig struct { - // MaxNodeCount: The maximum number of nodes in the node pool. Must be >= - // min_node_count, and must be > 0. Note: Quota must be sufficient to scale up - // the cluster. - MaxNodeCount int64 `json:"maxNodeCount,omitempty"` - // MinNodeCount: The minimum number of nodes in the node pool. Must be >= 0 and - // <= max_node_count. - MinNodeCount int64 `json:"minNodeCount,omitempty"` - // ForceSendFields is a list of field names (e.g. "MaxNodeCount") to +// DiagnoseClusterResults: The location of diagnostic output. +type DiagnoseClusterResults struct { + // OutputUri: Output only. The Cloud Storage URI of the diagnostic output. The + // output report is a plain text file with a summary of collected diagnostics. + OutputUri string `json:"outputUri,omitempty"` + // ForceSendFields is a list of field names (e.g. "OutputUri") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "MaxNodeCount") to include in API + // NullFields is a list of field names (e.g. "OutputUri") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s GkeNodePoolAutoscalingConfig) MarshalJSON() ([]byte, error) { - type NoMethod GkeNodePoolAutoscalingConfig +func (s DiagnoseClusterResults) MarshalJSON() ([]byte, error) { + type NoMethod DiagnoseClusterResults return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GkeNodePoolConfig: The configuration of a GKE node pool used by a -// Dataproc-on-GKE cluster -// (https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster). -type GkeNodePoolConfig struct { - // Autoscaling: Optional. The autoscaler configuration for this node pool. The - // autoscaler is enabled only when a valid configuration is present. - Autoscaling *GkeNodePoolAutoscalingConfig `json:"autoscaling,omitempty"` - // Config: Optional. The node pool configuration. - Config *GkeNodeConfig `json:"config,omitempty"` - // Locations: Optional. The list of Compute Engine zones - // (https://cloud.google.com/compute/docs/zones#available) where node pool - // nodes associated with a Dataproc on GKE virtual cluster will be - // located.Note: All node pools associated with a virtual cluster must be - // located in the same region as the virtual cluster, and they must be located - // in the same zone within that region.If a location is not specified during - // node pool creation, Dataproc on GKE will choose the zone. - Locations []string `json:"locations,omitempty"` - // ForceSendFields is a list of field names (e.g. "Autoscaling") to +// DiskConfig: Specifies the config of disk options for a group of VM +// instances. +type DiskConfig struct { + // BootDiskProvisionedIops: Optional. Indicates how many IOPS to provision for + // the disk. This sets the number of I/O operations per second that the disk + // can handle. Note: This field is only supported if boot_disk_type is + // hyperdisk-balanced. + BootDiskProvisionedIops int64 `json:"bootDiskProvisionedIops,omitempty,string"` + // BootDiskProvisionedThroughput: Optional. Indicates how much throughput to + // provision for the disk. This sets the number of throughput mb per second + // that the disk can handle. Values must be greater than or equal to 1. Note: + // This field is only supported if boot_disk_type is hyperdisk-balanced. + BootDiskProvisionedThroughput int64 `json:"bootDiskProvisionedThroughput,omitempty,string"` + // BootDiskSizeGb: Optional. Size in GB of the boot disk (default is 500GB). + BootDiskSizeGb int64 `json:"bootDiskSizeGb,omitempty"` + // BootDiskType: Optional. Type of the boot disk (default is "pd-standard"). + // Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive), + // "pd-ssd" (Persistent Disk Solid State Drive), or "pd-standard" (Persistent + // Disk Hard Disk Drive). See Disk types + // (https://cloud.google.com/compute/docs/disks#disk-types). + BootDiskType string `json:"bootDiskType,omitempty"` + // LocalSsdInterface: Optional. Interface type of local SSDs (default is + // "scsi"). Valid values: "scsi" (Small Computer System Interface), "nvme" + // (Non-Volatile Memory Express). See local SSD performance + // (https://cloud.google.com/compute/docs/disks/local-ssd#performance). + LocalSsdInterface string `json:"localSsdInterface,omitempty"` + // NumLocalSsds: Optional. Number of attached SSDs, from 0 to 8 (default is 0). + // If SSDs are not attached, the boot disk is used to store runtime logs and + // HDFS (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If + // one or more SSDs are attached, this runtime bulk data is spread across them, + // and the boot disk contains only basic config and installed binaries.Note: + // Local SSD options may vary by machine type and number of vCPUs selected. + NumLocalSsds int64 `json:"numLocalSsds,omitempty"` + // ForceSendFields is a list of field names (e.g. "BootDiskProvisionedIops") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Autoscaling") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "BootDiskProvisionedIops") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s GkeNodePoolConfig) MarshalJSON() ([]byte, error) { - type NoMethod GkeNodePoolConfig +func (s DiskConfig) MarshalJSON() ([]byte, error) { + type NoMethod DiskConfig return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GkeNodePoolTarget: GKE node pools that Dataproc workloads run on. -type GkeNodePoolTarget struct { - // NodePool: Required. The target GKE node pool. Format: - // 'projects/{project}/locations/{location}/clusters/{cluster}/nodePools/{node_p - // ool}' - NodePool string `json:"nodePool,omitempty"` - // NodePoolConfig: Input only. The configuration for the GKE node pool.If - // specified, Dataproc attempts to create a node pool with the specified shape. - // If one with the same name already exists, it is verified against all - // specified fields. If a field differs, the virtual cluster creation will - // fail.If omitted, any node pool with the specified name is used. If a node - // pool with the specified name does not exist, Dataproc create a node pool - // with default values.This is an input only field. It will not be returned by - // the API. - NodePoolConfig *GkeNodePoolConfig `json:"nodePoolConfig,omitempty"` - // Roles: Required. The roles associated with the GKE node pool. - // - // Possible values: - // "ROLE_UNSPECIFIED" - Role is unspecified. - // "DEFAULT" - At least one node pool must have the DEFAULT role. Work - // assigned to a role that is not associated with a node pool is assigned to - // the node pool with the DEFAULT role. For example, work assigned to the - // CONTROLLER role will be assigned to the node pool with the DEFAULT role if - // no node pool has the CONTROLLER role. - // "CONTROLLER" - Run work associated with the Dataproc control plane (for - // example, controllers and webhooks). Very low resource requirements. - // "SPARK_DRIVER" - Run work associated with a Spark driver of a job. - // "SPARK_EXECUTOR" - Run work associated with a Spark executor of a job. - Roles []string `json:"roles,omitempty"` - // ForceSendFields is a list of field names (e.g. "NodePool") to +// DriverSchedulingConfig: Driver scheduling configuration. +type DriverSchedulingConfig struct { + // MemoryMb: Required. The amount of memory in MB the driver is requesting. + MemoryMb int64 `json:"memoryMb,omitempty"` + // Vcores: Required. The number of vCPUs the driver is requesting. + Vcores int64 `json:"vcores,omitempty"` + // ForceSendFields is a list of field names (e.g. "MemoryMb") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "NodePool") to include in API + // NullFields is a list of field names (e.g. "MemoryMb") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s GkeNodePoolTarget) MarshalJSON() ([]byte, error) { - type NoMethod GkeNodePoolTarget +func (s DriverSchedulingConfig) MarshalJSON() ([]byte, error) { + type NoMethod DriverSchedulingConfig return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDataprocV1WorkflowTemplateEncryptionConfig: Encryption settings -// for encrypting workflow template job arguments. -type GoogleCloudDataprocV1WorkflowTemplateEncryptionConfig struct { - // KmsKey: Optional. The Cloud KMS key name to use for encrypting workflow - // template job arguments.When this this key is provided, the following - // workflow template job arguments - // (https://cloud.google.com/dataproc/docs/concepts/workflows/use-workflows#adding_jobs_to_a_template), - // if present, are CMEK encrypted - // (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/customer-managed-encryption#use_cmek_with_workflow_template_data): - // FlinkJob args +// Empty: A generic empty message that you can re-use to avoid defining +// duplicated empty messages in your APIs. A typical example is to use it as +// the request or the response type of an API method. For instance: service Foo +// { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } +type Empty struct { + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` +} + +// EncryptionConfig: Encryption settings for the cluster. +type EncryptionConfig struct { + // GcePdKmsKeyName: Optional. The Cloud KMS key resource name to use for + // persistent disk encryption for all instances in the cluster. See Use CMEK + // with cluster data + // (https://cloud.google.com//dataproc/docs/concepts/configuring-clusters/customer-managed-encryption#use_cmek_with_cluster_data) + // for more information. + GcePdKmsKeyName string `json:"gcePdKmsKeyName,omitempty"` + // KmsKey: Optional. The Cloud KMS key resource name to use for cluster + // persistent disk and job argument encryption. See Use CMEK with cluster data + // (https://cloud.google.com//dataproc/docs/concepts/configuring-clusters/customer-managed-encryption#use_cmek_with_cluster_data) + // for more information.When this key resource name is provided, the following + // job arguments of the following job types submitted to the cluster are + // encrypted using CMEK: FlinkJob args // (https://cloud.google.com/dataproc/docs/reference/rest/v1/FlinkJob) // HadoopJob args // (https://cloud.google.com/dataproc/docs/reference/rest/v1/HadoopJob) @@ -2164,3923 +2112,12417 @@ type GoogleCloudDataprocV1WorkflowTemplateEncryptionConfig struct { // (https://cloud.google.com/dataproc/docs/reference/rest/v1/PrestoJob) // scriptVariables and queryList.queries KmsKey string `json:"kmsKey,omitempty"` - // ForceSendFields is a list of field names (e.g. "KmsKey") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See + // ForceSendFields is a list of field names (e.g. "GcePdKmsKeyName") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "KmsKey") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "GcePdKmsKeyName") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s GoogleCloudDataprocV1WorkflowTemplateEncryptionConfig) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataprocV1WorkflowTemplateEncryptionConfig +func (s EncryptionConfig) MarshalJSON() ([]byte, error) { + type NoMethod EncryptionConfig return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// HadoopJob: A Dataproc job for running Apache Hadoop MapReduce -// (https://hadoop.apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core/MapReduceTutorial.html) -// jobs on Apache Hadoop YARN -// (https://hadoop.apache.org/docs/r2.7.1/hadoop-yarn/hadoop-yarn-site/YARN.html). -type HadoopJob struct { - // ArchiveUris: Optional. HCFS URIs of archives to be extracted in the working - // directory of Hadoop drivers and tasks. Supported file types: .jar, .tar, - // .tar.gz, .tgz, or .zip. - ArchiveUris []string `json:"archiveUris,omitempty"` - // Args: Optional. The arguments to pass to the driver. Do not include - // arguments, such as -libjars or -Dfoo=bar, that can be set as job properties, - // since a collision might occur that causes an incorrect job submission. - Args []string `json:"args,omitempty"` - // FileUris: Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be - // copied to the working directory of Hadoop drivers and distributed tasks. - // Useful for naively parallel tasks. - FileUris []string `json:"fileUris,omitempty"` - // JarFileUris: Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop - // driver and tasks. - JarFileUris []string `json:"jarFileUris,omitempty"` - // LoggingConfig: Optional. The runtime log config for job execution. - LoggingConfig *LoggingConfig `json:"loggingConfig,omitempty"` - // MainClass: The name of the driver's main class. The jar file containing the - // class must be in the default CLASSPATH or specified in jar_file_uris. - MainClass string `json:"mainClass,omitempty"` - // MainJarFileUri: The HCFS URI of the jar file containing the main class. - // Examples: 'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar' - // 'hdfs:/tmp/test-samples/custom-wordcount.jar' - // 'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar' - MainJarFileUri string `json:"mainJarFileUri,omitempty"` - // Properties: Optional. A mapping of property names to values, used to - // configure Hadoop. Properties that conflict with values set by the Dataproc - // API might be overwritten. Can include properties set in - // /etc/hadoop/conf/*-site and classes in user code. - Properties map[string]string `json:"properties,omitempty"` - // ForceSendFields is a list of field names (e.g. "ArchiveUris") to +// EndpointConfig: Endpoint config for this cluster +type EndpointConfig struct { + // EnableHttpPortAccess: Optional. If true, enable http access to specific + // ports on the cluster from external sources. Defaults to false. + EnableHttpPortAccess bool `json:"enableHttpPortAccess,omitempty"` + // HttpPorts: Output only. The map of port descriptions to URLs. Will only be + // populated if enable_http_port_access is true. + HttpPorts map[string]string `json:"httpPorts,omitempty"` + // ForceSendFields is a list of field names (e.g. "EnableHttpPortAccess") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ArchiveUris") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "EnableHttpPortAccess") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s HadoopJob) MarshalJSON() ([]byte, error) { - type NoMethod HadoopJob +func (s EndpointConfig) MarshalJSON() ([]byte, error) { + type NoMethod EndpointConfig return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// HiveJob: A Dataproc job for running Apache Hive (https://hive.apache.org/) -// queries on YARN. -type HiveJob struct { - // ContinueOnFailure: Optional. Whether to continue executing queries if a - // query fails. The default value is false. Setting to true can be useful when - // executing independent parallel queries. - ContinueOnFailure bool `json:"continueOnFailure,omitempty"` - // JarFileUris: Optional. HCFS URIs of jar files to add to the CLASSPATH of the - // Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes and - // UDFs. - JarFileUris []string `json:"jarFileUris,omitempty"` - // Properties: Optional. A mapping of property names and values, used to - // configure Hive. Properties that conflict with values set by the Dataproc API - // might be overwritten. Can include properties set in - // /etc/hadoop/conf/*-site.xml, /etc/hive/conf/hive-site.xml, and classes in - // user code. - Properties map[string]string `json:"properties,omitempty"` - // QueryFileUri: The HCFS URI of the script that contains Hive queries. - QueryFileUri string `json:"queryFileUri,omitempty"` - // QueryList: A list of queries. - QueryList *QueryList `json:"queryList,omitempty"` - // ScriptVariables: Optional. Mapping of query variable names to values - // (equivalent to the Hive command: SET name="value";). - ScriptVariables map[string]string `json:"scriptVariables,omitempty"` - // ForceSendFields is a list of field names (e.g. "ContinueOnFailure") to +// EnvironmentConfig: Environment configuration for a workload. +type EnvironmentConfig struct { + // ExecutionConfig: Optional. Execution configuration for a workload. + ExecutionConfig *ExecutionConfig `json:"executionConfig,omitempty"` + // PeripheralsConfig: Optional. Peripherals configuration that workload has + // access to. + PeripheralsConfig *PeripheralsConfig `json:"peripheralsConfig,omitempty"` + // ForceSendFields is a list of field names (e.g. "ExecutionConfig") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ContinueOnFailure") to include in + // NullFields is a list of field names (e.g. "ExecutionConfig") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s HiveJob) MarshalJSON() ([]byte, error) { - type NoMethod HiveJob +func (s EnvironmentConfig) MarshalJSON() ([]byte, error) { + type NoMethod EnvironmentConfig return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// IdentityConfig: Identity related configuration, including service account -// based secure multi-tenancy user mappings. -type IdentityConfig struct { - // UserServiceAccountMapping: Required. Map of user to service account. - UserServiceAccountMapping map[string]string `json:"userServiceAccountMapping,omitempty"` - // ForceSendFields is a list of field names (e.g. "UserServiceAccountMapping") - // to unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See +// ExecutionConfig: Execution configuration for a workload. +type ExecutionConfig struct { + // IdleTtl: Optional. Applies to sessions only. The duration to keep the + // session alive while it's idling. Exceeding this threshold causes the session + // to terminate. This field cannot be set on a batch workload. Minimum value is + // 10 minutes; maximum value is 14 days (see JSON representation of Duration + // (https://developers.google.com/protocol-buffers/docs/proto3#json)). Defaults + // to 1 hour if not set. If both ttl and idle_ttl are specified for an + // interactive session, the conditions are treated as OR conditions: the + // workload will be terminated when it has been idle for idle_ttl or when ttl + // has been exceeded, whichever occurs first. + IdleTtl string `json:"idleTtl,omitempty"` + // KmsKey: Optional. The Cloud KMS key to use for encryption. + KmsKey string `json:"kmsKey,omitempty"` + // NetworkTags: Optional. Tags used for network traffic control. + NetworkTags []string `json:"networkTags,omitempty"` + // NetworkUri: Optional. Network URI to connect workload to. + NetworkUri string `json:"networkUri,omitempty"` + // ServiceAccount: Optional. Service account that used to execute workload. + ServiceAccount string `json:"serviceAccount,omitempty"` + // StagingBucket: Optional. A Cloud Storage bucket used to stage workload + // dependencies, config files, and store workload output and other ephemeral + // data, such as Spark history files. If you do not specify a staging bucket, + // Cloud Dataproc will determine a Cloud Storage location according to the + // region where your workload is running, and then create and manage + // project-level, per-location staging and temporary buckets. This field + // requires a Cloud Storage bucket name, not a gs://... URI to a Cloud Storage + // bucket. + StagingBucket string `json:"stagingBucket,omitempty"` + // SubnetworkUri: Optional. Subnetwork URI to connect workload to. + SubnetworkUri string `json:"subnetworkUri,omitempty"` + // Ttl: Optional. The duration after which the workload will be terminated, + // specified as the JSON representation for Duration + // (https://protobuf.dev/programming-guides/proto3/#json). When the workload + // exceeds this duration, it will be unconditionally terminated without waiting + // for ongoing work to finish. If ttl is not specified for a batch workload, + // the workload will be allowed to run until it exits naturally (or run forever + // without exiting). If ttl is not specified for an interactive session, it + // defaults to 24 hours. If ttl is not specified for a batch that uses 2.1+ + // runtime version, it defaults to 4 hours. Minimum value is 10 minutes; + // maximum value is 14 days. If both ttl and idle_ttl are specified (for an + // interactive session), the conditions are treated as OR conditions: the + // workload will be terminated when it has been idle for idle_ttl or when ttl + // has been exceeded, whichever occurs first. + Ttl string `json:"ttl,omitempty"` + // ForceSendFields is a list of field names (e.g. "IdleTtl") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "UserServiceAccountMapping") to - // include in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. See + // NullFields is a list of field names (e.g. "IdleTtl") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s IdentityConfig) MarshalJSON() ([]byte, error) { - type NoMethod IdentityConfig +func (s ExecutionConfig) MarshalJSON() ([]byte, error) { + type NoMethod ExecutionConfig return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// InjectCredentialsRequest: A request to inject credentials into a cluster. -type InjectCredentialsRequest struct { - // ClusterUuid: Required. The cluster UUID. - ClusterUuid string `json:"clusterUuid,omitempty"` - // CredentialsCiphertext: Required. The encrypted credentials being injected in - // to the cluster.The client is responsible for encrypting the credentials in a - // way that is supported by the cluster.A wrapped value is used here so that - // the actual contents of the encrypted credentials are not written to audit - // logs. - CredentialsCiphertext string `json:"credentialsCiphertext,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClusterUuid") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See +type ExecutorMetrics struct { + Metrics map[string]string `json:"metrics,omitempty"` + // ForceSendFields is a list of field names (e.g. "Metrics") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ClusterUuid") to include in API + // NullFields is a list of field names (e.g. "Metrics") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s InjectCredentialsRequest) MarshalJSON() ([]byte, error) { - type NoMethod InjectCredentialsRequest +func (s ExecutorMetrics) MarshalJSON() ([]byte, error) { + type NoMethod ExecutorMetrics return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// InstanceFlexibilityPolicy: Instance flexibility Policy allowing a mixture of -// VM shapes and provisioning models. -type InstanceFlexibilityPolicy struct { - // InstanceSelectionList: Optional. List of instance selection options that the - // group will use when creating new VMs. - InstanceSelectionList []*InstanceSelection `json:"instanceSelectionList,omitempty"` - // InstanceSelectionResults: Output only. A list of instance selection results - // in the group. - InstanceSelectionResults []*InstanceSelectionResult `json:"instanceSelectionResults,omitempty"` - // ForceSendFields is a list of field names (e.g. "InstanceSelectionList") to +type ExecutorMetricsDistributions struct { + DiskBytesSpilled []float64 `json:"diskBytesSpilled,omitempty"` + FailedTasks []float64 `json:"failedTasks,omitempty"` + InputBytes []float64 `json:"inputBytes,omitempty"` + InputRecords []float64 `json:"inputRecords,omitempty"` + KilledTasks []float64 `json:"killedTasks,omitempty"` + MemoryBytesSpilled []float64 `json:"memoryBytesSpilled,omitempty"` + OutputBytes []float64 `json:"outputBytes,omitempty"` + OutputRecords []float64 `json:"outputRecords,omitempty"` + PeakMemoryMetrics *ExecutorPeakMetricsDistributions `json:"peakMemoryMetrics,omitempty"` + Quantiles []float64 `json:"quantiles,omitempty"` + ShuffleRead []float64 `json:"shuffleRead,omitempty"` + ShuffleReadRecords []float64 `json:"shuffleReadRecords,omitempty"` + ShuffleWrite []float64 `json:"shuffleWrite,omitempty"` + ShuffleWriteRecords []float64 `json:"shuffleWriteRecords,omitempty"` + SucceededTasks []float64 `json:"succeededTasks,omitempty"` + TaskTimeMillis []float64 `json:"taskTimeMillis,omitempty"` + // ForceSendFields is a list of field names (e.g. "DiskBytesSpilled") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "InstanceSelectionList") to - // include in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. See + // NullFields is a list of field names (e.g. "DiskBytesSpilled") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s InstanceFlexibilityPolicy) MarshalJSON() ([]byte, error) { - type NoMethod InstanceFlexibilityPolicy +func (s ExecutorMetricsDistributions) MarshalJSON() ([]byte, error) { + type NoMethod ExecutorMetricsDistributions return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// InstanceGroupAutoscalingPolicyConfig: Configuration for the size bounds of -// an instance group, including its proportional size to other groups. -type InstanceGroupAutoscalingPolicyConfig struct { - // MaxInstances: Required. Maximum number of instances for this group. Required - // for primary workers. Note that by default, clusters will not use secondary - // workers. Required for secondary workers if the minimum secondary instances - // is set.Primary workers - Bounds: [min_instances, ). Secondary workers - - // Bounds: [min_instances, ). Default: 0. - MaxInstances int64 `json:"maxInstances,omitempty"` - // MinInstances: Optional. Minimum number of instances for this group.Primary - // workers - Bounds: 2, max_instances. Default: 2. Secondary workers - Bounds: - // 0, max_instances. Default: 0. - MinInstances int64 `json:"minInstances,omitempty"` - // Weight: Optional. Weight for the instance group, which is used to determine - // the fraction of total workers in the cluster from this instance group. For - // example, if primary workers have weight 2, and secondary workers have weight - // 1, the cluster will have approximately 2 primary workers for each secondary - // worker.The cluster may not reach the specified balance if constrained by - // min/max bounds or other autoscaling settings. For example, if max_instances - // for secondary workers is 0, then only primary workers will be added. The - // cluster can also be out of balance when created.If weight is not set on any - // instance group, the cluster will default to equal weight for all groups: the - // cluster will attempt to maintain an equal number of workers in each group - // within the configured size bounds for each group. If weight is set for one - // group only, the cluster will default to zero weight on the unset group. For - // example if weight is set only on primary workers, the cluster will use - // primary workers only and no secondary workers. - Weight int64 `json:"weight,omitempty"` - // ForceSendFields is a list of field names (e.g. "MaxInstances") to +func (s *ExecutorMetricsDistributions) UnmarshalJSON(data []byte) error { + type NoMethod ExecutorMetricsDistributions + var s1 struct { + DiskBytesSpilled []gensupport.JSONFloat64 `json:"diskBytesSpilled"` + FailedTasks []gensupport.JSONFloat64 `json:"failedTasks"` + InputBytes []gensupport.JSONFloat64 `json:"inputBytes"` + InputRecords []gensupport.JSONFloat64 `json:"inputRecords"` + KilledTasks []gensupport.JSONFloat64 `json:"killedTasks"` + MemoryBytesSpilled []gensupport.JSONFloat64 `json:"memoryBytesSpilled"` + OutputBytes []gensupport.JSONFloat64 `json:"outputBytes"` + OutputRecords []gensupport.JSONFloat64 `json:"outputRecords"` + Quantiles []gensupport.JSONFloat64 `json:"quantiles"` + ShuffleRead []gensupport.JSONFloat64 `json:"shuffleRead"` + ShuffleReadRecords []gensupport.JSONFloat64 `json:"shuffleReadRecords"` + ShuffleWrite []gensupport.JSONFloat64 `json:"shuffleWrite"` + ShuffleWriteRecords []gensupport.JSONFloat64 `json:"shuffleWriteRecords"` + SucceededTasks []gensupport.JSONFloat64 `json:"succeededTasks"` + TaskTimeMillis []gensupport.JSONFloat64 `json:"taskTimeMillis"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.DiskBytesSpilled = make([]float64, len(s1.DiskBytesSpilled)) + for i := range s1.DiskBytesSpilled { + s.DiskBytesSpilled[i] = float64(s1.DiskBytesSpilled[i]) + } + s.FailedTasks = make([]float64, len(s1.FailedTasks)) + for i := range s1.FailedTasks { + s.FailedTasks[i] = float64(s1.FailedTasks[i]) + } + s.InputBytes = make([]float64, len(s1.InputBytes)) + for i := range s1.InputBytes { + s.InputBytes[i] = float64(s1.InputBytes[i]) + } + s.InputRecords = make([]float64, len(s1.InputRecords)) + for i := range s1.InputRecords { + s.InputRecords[i] = float64(s1.InputRecords[i]) + } + s.KilledTasks = make([]float64, len(s1.KilledTasks)) + for i := range s1.KilledTasks { + s.KilledTasks[i] = float64(s1.KilledTasks[i]) + } + s.MemoryBytesSpilled = make([]float64, len(s1.MemoryBytesSpilled)) + for i := range s1.MemoryBytesSpilled { + s.MemoryBytesSpilled[i] = float64(s1.MemoryBytesSpilled[i]) + } + s.OutputBytes = make([]float64, len(s1.OutputBytes)) + for i := range s1.OutputBytes { + s.OutputBytes[i] = float64(s1.OutputBytes[i]) + } + s.OutputRecords = make([]float64, len(s1.OutputRecords)) + for i := range s1.OutputRecords { + s.OutputRecords[i] = float64(s1.OutputRecords[i]) + } + s.Quantiles = make([]float64, len(s1.Quantiles)) + for i := range s1.Quantiles { + s.Quantiles[i] = float64(s1.Quantiles[i]) + } + s.ShuffleRead = make([]float64, len(s1.ShuffleRead)) + for i := range s1.ShuffleRead { + s.ShuffleRead[i] = float64(s1.ShuffleRead[i]) + } + s.ShuffleReadRecords = make([]float64, len(s1.ShuffleReadRecords)) + for i := range s1.ShuffleReadRecords { + s.ShuffleReadRecords[i] = float64(s1.ShuffleReadRecords[i]) + } + s.ShuffleWrite = make([]float64, len(s1.ShuffleWrite)) + for i := range s1.ShuffleWrite { + s.ShuffleWrite[i] = float64(s1.ShuffleWrite[i]) + } + s.ShuffleWriteRecords = make([]float64, len(s1.ShuffleWriteRecords)) + for i := range s1.ShuffleWriteRecords { + s.ShuffleWriteRecords[i] = float64(s1.ShuffleWriteRecords[i]) + } + s.SucceededTasks = make([]float64, len(s1.SucceededTasks)) + for i := range s1.SucceededTasks { + s.SucceededTasks[i] = float64(s1.SucceededTasks[i]) + } + s.TaskTimeMillis = make([]float64, len(s1.TaskTimeMillis)) + for i := range s1.TaskTimeMillis { + s.TaskTimeMillis[i] = float64(s1.TaskTimeMillis[i]) + } + return nil +} + +type ExecutorPeakMetricsDistributions struct { + ExecutorMetrics []*ExecutorMetrics `json:"executorMetrics,omitempty"` + Quantiles []float64 `json:"quantiles,omitempty"` + // ForceSendFields is a list of field names (e.g. "ExecutorMetrics") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "MaxInstances") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "ExecutorMetrics") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s InstanceGroupAutoscalingPolicyConfig) MarshalJSON() ([]byte, error) { - type NoMethod InstanceGroupAutoscalingPolicyConfig +func (s ExecutorPeakMetricsDistributions) MarshalJSON() ([]byte, error) { + type NoMethod ExecutorPeakMetricsDistributions return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// InstanceGroupConfig: The config settings for Compute Engine resources in an -// instance group, such as a master or worker group. -type InstanceGroupConfig struct { - // Accelerators: Optional. The Compute Engine accelerator configuration for - // these instances. - Accelerators []*AcceleratorConfig `json:"accelerators,omitempty"` - // DiskConfig: Optional. Disk option config settings. - DiskConfig *DiskConfig `json:"diskConfig,omitempty"` - // ImageUri: Optional. The Compute Engine image resource used for cluster - // instances.The URI can represent an image or image family.Image examples: - // https://www.googleapis.com/compute/v1/projects/[project_id]/global/images/[image-id] - // projects/[project_id]/global/images/[image-id] image-idImage family - // examples. Dataproc will use the most recent image from the family: - // https://www.googleapis.com/compute/v1/projects/[project_id]/global/images/family/[custom-image-family-name] - // projects/[project_id]/global/images/family/[custom-image-family-name]If the - // URI is unspecified, it will be inferred from SoftwareConfig.image_version or - // the system default. - ImageUri string `json:"imageUri,omitempty"` - // InstanceFlexibilityPolicy: Optional. Instance flexibility Policy allowing a - // mixture of VM shapes and provisioning models. - InstanceFlexibilityPolicy *InstanceFlexibilityPolicy `json:"instanceFlexibilityPolicy,omitempty"` - // InstanceNames: Output only. The list of instance names. Dataproc derives the - // names from cluster_name, num_instances, and the instance group. - InstanceNames []string `json:"instanceNames,omitempty"` - // InstanceReferences: Output only. List of references to Compute Engine - // instances. - InstanceReferences []*InstanceReference `json:"instanceReferences,omitempty"` - // IsPreemptible: Output only. Specifies that this instance group contains - // preemptible instances. - IsPreemptible bool `json:"isPreemptible,omitempty"` - // MachineTypeUri: Optional. The Compute Engine machine type used for cluster - // instances.A full URL, partial URI, or short name are valid. Examples: - // https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]/machineTypes/n1-standard-2 - // projects/[project_id]/zones/[zone]/machineTypes/n1-standard-2 - // n1-standard-2Auto Zone Exception: If you are using the Dataproc Auto Zone - // Placement - // (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) - // feature, you must use the short name of the machine type resource, for - // example, n1-standard-2. - MachineTypeUri string `json:"machineTypeUri,omitempty"` - // ManagedGroupConfig: Output only. The config for Compute Engine Instance - // Group Manager that manages this group. This is only used for preemptible - // instance groups. - ManagedGroupConfig *ManagedGroupConfig `json:"managedGroupConfig,omitempty"` - // MinCpuPlatform: Optional. Specifies the minimum cpu platform for the - // Instance Group. See Dataproc -> Minimum CPU Platform - // (https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu). - MinCpuPlatform string `json:"minCpuPlatform,omitempty"` - // MinNumInstances: Optional. The minimum number of primary worker instances to - // create. If min_num_instances is set, cluster creation will succeed if the - // number of primary workers created is at least equal to the min_num_instances - // number.Example: Cluster creation request with num_instances = 5 and - // min_num_instances = 3: If 4 VMs are created and 1 instance fails, the failed - // VM is deleted. The cluster is resized to 4 instances and placed in a RUNNING - // state. If 2 instances are created and 3 instances fail, the cluster in - // placed in an ERROR state. The failed VMs are not deleted. - MinNumInstances int64 `json:"minNumInstances,omitempty"` - // NumInstances: Optional. The number of VM instances in the instance group. - // For HA cluster master_config groups, must be set to 3. For standard cluster - // master_config groups, must be set to 1. - NumInstances int64 `json:"numInstances,omitempty"` - // Preemptibility: Optional. Specifies the preemptibility of the instance - // group.The default value for master and worker groups is NON_PREEMPTIBLE. - // This default cannot be changed.The default value for secondary instances is - // PREEMPTIBLE. - // - // Possible values: - // "PREEMPTIBILITY_UNSPECIFIED" - Preemptibility is unspecified, the system - // will choose the appropriate setting for each instance group. - // "NON_PREEMPTIBLE" - Instances are non-preemptible.This option is allowed - // for all instance groups and is the only valid value for Master and Worker - // instance groups. - // "PREEMPTIBLE" - Instances are preemptible - // (https://cloud.google.com/compute/docs/instances/preemptible).This option is - // allowed only for secondary worker - // (https://cloud.google.com/dataproc/docs/concepts/compute/secondary-vms) - // groups. - // "SPOT" - Instances are Spot VMs - // (https://cloud.google.com/compute/docs/instances/spot).This option is - // allowed only for secondary worker - // (https://cloud.google.com/dataproc/docs/concepts/compute/secondary-vms) - // groups. Spot VMs are the latest version of preemptible VMs - // (https://cloud.google.com/compute/docs/instances/preemptible), and provide - // additional features. - Preemptibility string `json:"preemptibility,omitempty"` - // StartupConfig: Optional. Configuration to handle the startup of instances - // during cluster create and update process. - StartupConfig *StartupConfig `json:"startupConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. "Accelerators") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Accelerators") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s InstanceGroupConfig) MarshalJSON() ([]byte, error) { - type NoMethod InstanceGroupConfig - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +func (s *ExecutorPeakMetricsDistributions) UnmarshalJSON(data []byte) error { + type NoMethod ExecutorPeakMetricsDistributions + var s1 struct { + Quantiles []gensupport.JSONFloat64 `json:"quantiles"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Quantiles = make([]float64, len(s1.Quantiles)) + for i := range s1.Quantiles { + s.Quantiles[i] = float64(s1.Quantiles[i]) + } + return nil } -// InstanceReference: A reference to a Compute Engine instance. -type InstanceReference struct { - // InstanceId: The unique identifier of the Compute Engine instance. - InstanceId string `json:"instanceId,omitempty"` - // InstanceName: The user-friendly name of the Compute Engine instance. - InstanceName string `json:"instanceName,omitempty"` - // PublicEciesKey: The public ECIES key used for sharing data with this - // instance. - PublicEciesKey string `json:"publicEciesKey,omitempty"` - // PublicKey: The public RSA key used for sharing data with this instance. - PublicKey string `json:"publicKey,omitempty"` - // ForceSendFields is a list of field names (e.g. "InstanceId") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See +// ExecutorResourceRequest: Resources used per executor used by the +// application. +type ExecutorResourceRequest struct { + Amount int64 `json:"amount,omitempty,string"` + DiscoveryScript string `json:"discoveryScript,omitempty"` + ResourceName string `json:"resourceName,omitempty"` + Vendor string `json:"vendor,omitempty"` + // ForceSendFields is a list of field names (e.g. "Amount") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "InstanceId") to include in API + // NullFields is a list of field names (e.g. "Amount") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s InstanceReference) MarshalJSON() ([]byte, error) { - type NoMethod InstanceReference +func (s ExecutorResourceRequest) MarshalJSON() ([]byte, error) { + type NoMethod ExecutorResourceRequest return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// InstanceSelection: Defines machines types and a rank to which the machines -// types belong. -type InstanceSelection struct { - // MachineTypes: Optional. Full machine-type names, e.g. "n1-standard-16". - MachineTypes []string `json:"machineTypes,omitempty"` - // Rank: Optional. Preference of this instance selection. Lower number means - // higher preference. Dataproc will first try to create a VM based on the - // machine-type with priority rank and fallback to next rank based on - // availability. Machine types and instance selections with the same priority - // have the same preference. - Rank int64 `json:"rank,omitempty"` - // ForceSendFields is a list of field names (e.g. "MachineTypes") to +// ExecutorStageSummary: Executor resources consumed by a stage. +type ExecutorStageSummary struct { + DiskBytesSpilled int64 `json:"diskBytesSpilled,omitempty,string"` + ExecutorId string `json:"executorId,omitempty"` + FailedTasks int64 `json:"failedTasks,omitempty"` + InputBytes int64 `json:"inputBytes,omitempty,string"` + InputRecords int64 `json:"inputRecords,omitempty,string"` + IsExcludedForStage bool `json:"isExcludedForStage,omitempty"` + KilledTasks int64 `json:"killedTasks,omitempty"` + MemoryBytesSpilled int64 `json:"memoryBytesSpilled,omitempty,string"` + OutputBytes int64 `json:"outputBytes,omitempty,string"` + OutputRecords int64 `json:"outputRecords,omitempty,string"` + PeakMemoryMetrics *ExecutorMetrics `json:"peakMemoryMetrics,omitempty"` + ShuffleRead int64 `json:"shuffleRead,omitempty,string"` + ShuffleReadRecords int64 `json:"shuffleReadRecords,omitempty,string"` + ShuffleWrite int64 `json:"shuffleWrite,omitempty,string"` + ShuffleWriteRecords int64 `json:"shuffleWriteRecords,omitempty,string"` + StageAttemptId int64 `json:"stageAttemptId,omitempty"` + StageId int64 `json:"stageId,omitempty,string"` + SucceededTasks int64 `json:"succeededTasks,omitempty"` + TaskTimeMillis int64 `json:"taskTimeMillis,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "DiskBytesSpilled") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "MachineTypes") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "DiskBytesSpilled") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s InstanceSelection) MarshalJSON() ([]byte, error) { - type NoMethod InstanceSelection +func (s ExecutorStageSummary) MarshalJSON() ([]byte, error) { + type NoMethod ExecutorStageSummary return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// InstanceSelectionResult: Defines a mapping from machine types to the number -// of VMs that are created with each machine type. -type InstanceSelectionResult struct { - // MachineType: Output only. Full machine-type names, e.g. "n1-standard-16". - MachineType string `json:"machineType,omitempty"` - // VmCount: Output only. Number of VM provisioned with the machine_type. - VmCount int64 `json:"vmCount,omitempty"` - // ForceSendFields is a list of field names (e.g. "MachineType") to +// ExecutorSummary: Details about executors used by the application. +type ExecutorSummary struct { + ActiveTasks int64 `json:"activeTasks,omitempty"` + AddTime string `json:"addTime,omitempty"` + Attributes map[string]string `json:"attributes,omitempty"` + CompletedTasks int64 `json:"completedTasks,omitempty"` + DiskUsed int64 `json:"diskUsed,omitempty,string"` + ExcludedInStages googleapi.Int64s `json:"excludedInStages,omitempty"` + ExecutorId string `json:"executorId,omitempty"` + ExecutorLogs map[string]string `json:"executorLogs,omitempty"` + FailedTasks int64 `json:"failedTasks,omitempty"` + HostPort string `json:"hostPort,omitempty"` + IsActive bool `json:"isActive,omitempty"` + IsExcluded bool `json:"isExcluded,omitempty"` + MaxMemory int64 `json:"maxMemory,omitempty,string"` + MaxTasks int64 `json:"maxTasks,omitempty"` + MemoryMetrics *MemoryMetrics `json:"memoryMetrics,omitempty"` + MemoryUsed int64 `json:"memoryUsed,omitempty,string"` + PeakMemoryMetrics *ExecutorMetrics `json:"peakMemoryMetrics,omitempty"` + RddBlocks int64 `json:"rddBlocks,omitempty"` + RemoveReason string `json:"removeReason,omitempty"` + RemoveTime string `json:"removeTime,omitempty"` + ResourceProfileId int64 `json:"resourceProfileId,omitempty"` + Resources map[string]ResourceInformation `json:"resources,omitempty"` + TotalCores int64 `json:"totalCores,omitempty"` + TotalDurationMillis int64 `json:"totalDurationMillis,omitempty,string"` + TotalGcTimeMillis int64 `json:"totalGcTimeMillis,omitempty,string"` + TotalInputBytes int64 `json:"totalInputBytes,omitempty,string"` + TotalShuffleRead int64 `json:"totalShuffleRead,omitempty,string"` + TotalShuffleWrite int64 `json:"totalShuffleWrite,omitempty,string"` + TotalTasks int64 `json:"totalTasks,omitempty"` + // ForceSendFields is a list of field names (e.g. "ActiveTasks") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "MachineType") to include in API + // NullFields is a list of field names (e.g. "ActiveTasks") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s InstanceSelectionResult) MarshalJSON() ([]byte, error) { - type NoMethod InstanceSelectionResult +func (s ExecutorSummary) MarshalJSON() ([]byte, error) { + type NoMethod ExecutorSummary return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// InstantiateWorkflowTemplateRequest: A request to instantiate a workflow -// template. -type InstantiateWorkflowTemplateRequest struct { - // Parameters: Optional. Map from parameter names to values that should be used - // for those parameters. Values may not exceed 1000 characters. - Parameters map[string]string `json:"parameters,omitempty"` - // RequestId: Optional. A tag that prevents multiple concurrent workflow - // instances with the same tag from running. This mitigates risk of concurrent - // instances started due to retries.It is recommended to always set this value - // to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The - // tag must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), - // and hyphens (-). The maximum length is 40 characters. - RequestId string `json:"requestId,omitempty"` - // Version: Optional. The version of workflow template to instantiate. If - // specified, the workflow will be instantiated only if the current version of - // the workflow template has the supplied version.This option cannot be used to - // instantiate a previous version of workflow template. - Version int64 `json:"version,omitempty"` - // ForceSendFields is a list of field names (e.g. "Parameters") to +// Expr: Represents a textual expression in the Common Expression Language +// (CEL) syntax. CEL is a C-like expression language. The syntax and semantics +// of CEL are documented at https://github.com/google/cel-spec.Example +// (Comparison): title: "Summary size limit" description: "Determines if a +// summary is less than 100 chars" expression: "document.summary.size() < 100" +// Example (Equality): title: "Requestor is owner" description: "Determines if +// requestor is the document owner" expression: "document.owner == +// request.auth.claims.email" Example (Logic): title: "Public documents" +// description: "Determine whether the document should be publicly visible" +// expression: "document.type != 'private' && document.type != 'internal'" +// Example (Data Manipulation): title: "Notification string" description: +// "Create a notification string with a timestamp." expression: "'New message +// received at ' + string(document.create_time)" The exact variables and +// functions that may be referenced within an expression are determined by the +// service that evaluates it. See the service documentation for additional +// information. +type Expr struct { + // Description: Optional. Description of the expression. This is a longer text + // which describes the expression, e.g. when hovered over it in a UI. + Description string `json:"description,omitempty"` + // Expression: Textual representation of an expression in Common Expression + // Language syntax. + Expression string `json:"expression,omitempty"` + // Location: Optional. String indicating the location of the expression for + // error reporting, e.g. a file name and a position in the file. + Location string `json:"location,omitempty"` + // Title: Optional. Title for the expression, i.e. a short string describing + // its purpose. This can be used e.g. in UIs which allow to enter the + // expression. + Title string `json:"title,omitempty"` + // ForceSendFields is a list of field names (e.g. "Description") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Parameters") to include in API + // NullFields is a list of field names (e.g. "Description") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s InstantiateWorkflowTemplateRequest) MarshalJSON() ([]byte, error) { - type NoMethod InstantiateWorkflowTemplateRequest +func (s Expr) MarshalJSON() ([]byte, error) { + type NoMethod Expr return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Interval: Represents a time interval, encoded as a Timestamp start -// (inclusive) and a Timestamp end (exclusive).The start must be less than or -// equal to the end. When the start equals the end, the interval is empty -// (matches no time). When both start and end are unspecified, the interval -// matches any time. -type Interval struct { - // EndTime: Optional. Exclusive end of the interval.If specified, a Timestamp - // matching this interval will have to be before the end. - EndTime string `json:"endTime,omitempty"` - // StartTime: Optional. Inclusive start of the interval.If specified, a - // Timestamp matching this interval will have to be the same or after the - // start. - StartTime string `json:"startTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "EndTime") to unconditionally +// FlinkJob: A Dataproc job for running Apache Flink applications on YARN. +type FlinkJob struct { + // Args: Optional. The arguments to pass to the driver. Do not include + // arguments, such as --conf, that can be set as job properties, since a + // collision might occur that causes an incorrect job submission. + Args []string `json:"args,omitempty"` + // JarFileUris: Optional. HCFS URIs of jar files to add to the CLASSPATHs of + // the Flink driver and tasks. + JarFileUris []string `json:"jarFileUris,omitempty"` + // LoggingConfig: Optional. The runtime log config for job execution. + LoggingConfig *LoggingConfig `json:"loggingConfig,omitempty"` + // MainClass: The name of the driver's main class. The jar file that contains + // the class must be in the default CLASSPATH or specified in jarFileUris. + MainClass string `json:"mainClass,omitempty"` + // MainJarFileUri: The HCFS URI of the jar file that contains the main class. + MainJarFileUri string `json:"mainJarFileUri,omitempty"` + // Properties: Optional. A mapping of property names to values, used to + // configure Flink. Properties that conflict with values set by the Dataproc + // API might be overwritten. Can include properties set in + // /etc/flink/conf/flink-defaults.conf and classes in user code. + Properties map[string]string `json:"properties,omitempty"` + // SavepointUri: Optional. HCFS URI of the savepoint, which contains the last + // saved progress for starting the current job. + SavepointUri string `json:"savepointUri,omitempty"` + // ForceSendFields is a list of field names (e.g. "Args") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "EndTime") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "Args") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s Interval) MarshalJSON() ([]byte, error) { - type NoMethod Interval +func (s FlinkJob) MarshalJSON() ([]byte, error) { + type NoMethod FlinkJob return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Job: A Dataproc job resource. -type Job struct { - // Done: Output only. Indicates whether the job is completed. If the value is - // false, the job is still in progress. If true, the job is completed, and - // status.state field will indicate if it was successful, failed, or cancelled. - Done bool `json:"done,omitempty"` - // DriverControlFilesUri: Output only. If present, the location of - // miscellaneous control files which can be used as part of job setup and - // handling. If not present, control files might be placed in the same location - // as driver_output_uri. - DriverControlFilesUri string `json:"driverControlFilesUri,omitempty"` - // DriverOutputResourceUri: Output only. A URI pointing to the location of the - // stdout of the job's driver program. - DriverOutputResourceUri string `json:"driverOutputResourceUri,omitempty"` - // DriverSchedulingConfig: Optional. Driver scheduling configuration. - DriverSchedulingConfig *DriverSchedulingConfig `json:"driverSchedulingConfig,omitempty"` - // FlinkJob: Optional. Job is a Flink job. - FlinkJob *FlinkJob `json:"flinkJob,omitempty"` - // HadoopJob: Optional. Job is a Hadoop job. - HadoopJob *HadoopJob `json:"hadoopJob,omitempty"` - // HiveJob: Optional. Job is a Hive job. - HiveJob *HiveJob `json:"hiveJob,omitempty"` - // JobUuid: Output only. A UUID that uniquely identifies a job within the - // project over time. This is in contrast to a user-settable reference.job_id - // that might be reused over time. - JobUuid string `json:"jobUuid,omitempty"` - // Labels: Optional. The labels to associate with this job. Label keys must - // contain 1 to 63 characters, and must conform to RFC 1035 - // (https://www.ietf.org/rfc/rfc1035.txt). Label values can be empty, but, if - // present, must contain 1 to 63 characters, and must conform to RFC 1035 - // (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be - // associated with a job. - Labels map[string]string `json:"labels,omitempty"` - // PigJob: Optional. Job is a Pig job. - PigJob *PigJob `json:"pigJob,omitempty"` - // Placement: Required. Job information, including how, when, and where to run - // the job. - Placement *JobPlacement `json:"placement,omitempty"` - // PrestoJob: Optional. Job is a Presto job. - PrestoJob *PrestoJob `json:"prestoJob,omitempty"` - // PysparkJob: Optional. Job is a PySpark job. - PysparkJob *PySparkJob `json:"pysparkJob,omitempty"` - // Reference: Optional. The fully qualified reference to the job, which can be - // used to obtain the equivalent REST path of the job resource. If this - // property is not specified when a job is created, the server generates a - // job_id. - Reference *JobReference `json:"reference,omitempty"` - // Scheduling: Optional. Job scheduling configuration. - Scheduling *JobScheduling `json:"scheduling,omitempty"` - // SparkJob: Optional. Job is a Spark job. - SparkJob *SparkJob `json:"sparkJob,omitempty"` - // SparkRJob: Optional. Job is a SparkR job. - SparkRJob *SparkRJob `json:"sparkRJob,omitempty"` - // SparkSqlJob: Optional. Job is a SparkSql job. - SparkSqlJob *SparkSqlJob `json:"sparkSqlJob,omitempty"` - // Status: Output only. The job status. Additional application-specific status - // information might be contained in the type_job and yarn_applications fields. - Status *JobStatus `json:"status,omitempty"` - // StatusHistory: Output only. The previous job status. - StatusHistory []*JobStatus `json:"statusHistory,omitempty"` - // TrinoJob: Optional. Job is a Trino job. - TrinoJob *TrinoJob `json:"trinoJob,omitempty"` - // YarnApplications: Output only. The collection of YARN applications spun up - // by this job.Beta Feature: This report is available for testing purposes - // only. It might be changed before final release. - YarnApplications []*YarnApplication `json:"yarnApplications,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the server. - googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Done") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See +// GceClusterConfig: Common config settings for resources of Compute Engine +// cluster instances, applicable to all instances in the cluster. +type GceClusterConfig struct { + // ConfidentialInstanceConfig: Optional. Confidential Instance Config for + // clusters using Confidential VMs + // (https://cloud.google.com/compute/confidential-vm/docs). + ConfidentialInstanceConfig *ConfidentialInstanceConfig `json:"confidentialInstanceConfig,omitempty"` + // InternalIpOnly: Optional. This setting applies to subnetwork-enabled + // networks. It is set to true by default in clusters created with image + // versions 2.2.x.When set to true: All cluster VMs have internal IP addresses. + // Google Private Access + // (https://cloud.google.com/vpc/docs/private-google-access) must be enabled to + // access Dataproc and other Google Cloud APIs. Off-cluster dependencies must + // be configured to be accessible without external IP addresses.When set to + // false: Cluster VMs are not restricted to internal IP addresses. Ephemeral + // external IP addresses are assigned to each cluster VM. + InternalIpOnly bool `json:"internalIpOnly,omitempty"` + // Metadata: Optional. The Compute Engine metadata entries to add to all + // instances (see Project and instance metadata + // (https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)). + Metadata map[string]string `json:"metadata,omitempty"` + // NetworkUri: Optional. The Compute Engine network to be used for machine + // communications. Cannot be specified with subnetwork_uri. If neither + // network_uri nor subnetwork_uri is specified, the "default" network of the + // project is used, if it exists. Cannot be a "Custom Subnet Network" (see + // Using Subnetworks (https://cloud.google.com/compute/docs/subnetworks) for + // more information).A full URL, partial URI, or short name are valid. + // Examples: + // https://www.googleapis.com/compute/v1/projects/[project_id]/global/networks/default + // projects/[project_id]/global/networks/default default + NetworkUri string `json:"networkUri,omitempty"` + // NodeGroupAffinity: Optional. Node Group Affinity for sole-tenant clusters. + NodeGroupAffinity *NodeGroupAffinity `json:"nodeGroupAffinity,omitempty"` + // PrivateIpv6GoogleAccess: Optional. The type of IPv6 access for a cluster. + // + // Possible values: + // "PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED" - If unspecified, Compute Engine + // default behavior will apply, which is the same as INHERIT_FROM_SUBNETWORK. + // "INHERIT_FROM_SUBNETWORK" - Private access to and from Google Services + // configuration inherited from the subnetwork configuration. This is the + // default Compute Engine behavior. + // "OUTBOUND" - Enables outbound private IPv6 access to Google Services from + // the Dataproc cluster. + // "BIDIRECTIONAL" - Enables bidirectional private IPv6 access between Google + // Services and the Dataproc cluster. + PrivateIpv6GoogleAccess string `json:"privateIpv6GoogleAccess,omitempty"` + // ReservationAffinity: Optional. Reservation Affinity for consuming Zonal + // reservation. + ReservationAffinity *ReservationAffinity `json:"reservationAffinity,omitempty"` + // ServiceAccount: Optional. The Dataproc service account + // (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc) + // (also see VM Data Plane identity + // (https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-principals#vm_service_account_data_plane_identity)) + // used by Dataproc cluster VM instances to access Google Cloud Platform + // services.If not specified, the Compute Engine default service account + // (https://cloud.google.com/compute/docs/access/service-accounts#default_service_account) + // is used. + ServiceAccount string `json:"serviceAccount,omitempty"` + // ServiceAccountScopes: Optional. The URIs of service account scopes to be + // included in Compute Engine instances. The following base set of scopes is + // always included: https://www.googleapis.com/auth/cloud.useraccounts.readonly + // https://www.googleapis.com/auth/devstorage.read_write + // https://www.googleapis.com/auth/logging.writeIf no scopes are specified, the + // following defaults are also provided: + // https://www.googleapis.com/auth/bigquery + // https://www.googleapis.com/auth/bigtable.admin.table + // https://www.googleapis.com/auth/bigtable.data + // https://www.googleapis.com/auth/devstorage.full_control + ServiceAccountScopes []string `json:"serviceAccountScopes,omitempty"` + // ShieldedInstanceConfig: Optional. Shielded Instance Config for clusters + // using Compute Engine Shielded VMs + // (https://cloud.google.com/security/shielded-cloud/shielded-vm). + ShieldedInstanceConfig *ShieldedInstanceConfig `json:"shieldedInstanceConfig,omitempty"` + // SubnetworkUri: Optional. The Compute Engine subnetwork to be used for + // machine communications. Cannot be specified with network_uri.A full URL, + // partial URI, or short name are valid. Examples: + // https://www.googleapis.com/compute/v1/projects/[project_id]/regions/[region]/subnetworks/sub0 + // projects/[project_id]/regions/[region]/subnetworks/sub0 sub0 + SubnetworkUri string `json:"subnetworkUri,omitempty"` + // Tags: The Compute Engine network tags to add to all instances (see Tagging + // instances (https://cloud.google.com/vpc/docs/add-remove-network-tags)). + Tags []string `json:"tags,omitempty"` + // ZoneUri: Optional. The Compute Engine zone where the Dataproc cluster will + // be located. If omitted, the service will pick a zone in the cluster's + // Compute Engine region. On a get request, zone will always be present.A full + // URL, partial URI, or short name are valid. Examples: + // https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone] + // projects/[project_id]/zones/[zone] [zone] + ZoneUri string `json:"zoneUri,omitempty"` + // ForceSendFields is a list of field names (e.g. "ConfidentialInstanceConfig") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Done") to include in API requests - // with the JSON null value. By default, fields with empty values are omitted - // from API requests. See + // NullFields is a list of field names (e.g. "ConfidentialInstanceConfig") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s Job) MarshalJSON() ([]byte, error) { - type NoMethod Job +func (s GceClusterConfig) MarshalJSON() ([]byte, error) { + type NoMethod GceClusterConfig return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// JobMetadata: Job Operation metadata. -type JobMetadata struct { - // JobId: Output only. The job id. - JobId string `json:"jobId,omitempty"` - // OperationType: Output only. Operation type. - OperationType string `json:"operationType,omitempty"` - // StartTime: Output only. Job submission time. - StartTime string `json:"startTime,omitempty"` - // Status: Output only. Most recent job status. - Status *JobStatus `json:"status,omitempty"` - // ForceSendFields is a list of field names (e.g. "JobId") to unconditionally +// GetIamPolicyRequest: Request message for GetIamPolicy method. +type GetIamPolicyRequest struct { + // Options: OPTIONAL: A GetPolicyOptions object for specifying options to + // GetIamPolicy. + Options *GetPolicyOptions `json:"options,omitempty"` + // ForceSendFields is a list of field names (e.g. "Options") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "JobId") to include in API + // NullFields is a list of field names (e.g. "Options") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s JobMetadata) MarshalJSON() ([]byte, error) { - type NoMethod JobMetadata +func (s GetIamPolicyRequest) MarshalJSON() ([]byte, error) { + type NoMethod GetIamPolicyRequest return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// JobPlacement: Dataproc job config. -type JobPlacement struct { - // ClusterLabels: Optional. Cluster labels to identify a cluster where the job - // will be submitted. - ClusterLabels map[string]string `json:"clusterLabels,omitempty"` - // ClusterName: Required. The name of the cluster where the job will be - // submitted. - ClusterName string `json:"clusterName,omitempty"` - // ClusterUuid: Output only. A cluster UUID generated by the Dataproc service - // when the job is submitted. - ClusterUuid string `json:"clusterUuid,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClusterLabels") to +// GetPolicyOptions: Encapsulates settings provided to GetIamPolicy. +type GetPolicyOptions struct { + // RequestedPolicyVersion: Optional. The maximum policy version that will be + // used to format the policy.Valid values are 0, 1, and 3. Requests specifying + // an invalid value will be rejected.Requests for policies with any conditional + // role bindings must specify version 3. Policies with no conditional role + // bindings may specify any valid value or leave the field unset.The policy in + // the response might use the policy version that you specified, or it might + // use a lower policy version. For example, if you specify version 3, but the + // policy has no conditional role bindings, the response uses version 1.To + // learn which resources support conditions in their IAM policies, see the IAM + // documentation + // (https://cloud.google.com/iam/help/conditions/resource-policies). + RequestedPolicyVersion int64 `json:"requestedPolicyVersion,omitempty"` + // ForceSendFields is a list of field names (e.g. "RequestedPolicyVersion") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ClusterLabels") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "RequestedPolicyVersion") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s JobPlacement) MarshalJSON() ([]byte, error) { - type NoMethod JobPlacement +func (s GetPolicyOptions) MarshalJSON() ([]byte, error) { + type NoMethod GetPolicyOptions return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// JobReference: Encapsulates the full scoping used to reference a job. -type JobReference struct { - // JobId: Optional. The job ID, which must be unique within the project.The ID - // must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), or - // hyphens (-). The maximum length is 100 characters.If not specified by the - // caller, the job ID will be provided by the server. - JobId string `json:"jobId,omitempty"` - // ProjectId: Optional. The ID of the Google Cloud Platform project that the - // job belongs to. If specified, must match the request project ID. - ProjectId string `json:"projectId,omitempty"` - // ForceSendFields is a list of field names (e.g. "JobId") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "JobId") to include in API - // requests with the JSON null value. By default, fields with empty values are +// GkeClusterConfig: The cluster's GKE config. +type GkeClusterConfig struct { + // GkeClusterTarget: Optional. A target GKE cluster to deploy to. It must be in + // the same project and region as the Dataproc cluster (the GKE cluster can be + // zonal or regional). Format: + // 'projects/{project}/locations/{location}/clusters/{cluster_id}' + GkeClusterTarget string `json:"gkeClusterTarget,omitempty"` + // NamespacedGkeDeploymentTarget: Optional. Deprecated. Use gkeClusterTarget. + // Used only for the deprecated beta. A target for the deployment. + NamespacedGkeDeploymentTarget *NamespacedGkeDeploymentTarget `json:"namespacedGkeDeploymentTarget,omitempty"` + // NodePoolTarget: Optional. GKE node pools where workloads will be scheduled. + // At least one node pool must be assigned the DEFAULT GkeNodePoolTarget.Role. + // If a GkeNodePoolTarget is not specified, Dataproc constructs a DEFAULT + // GkeNodePoolTarget. Each role can be given to only one GkeNodePoolTarget. All + // node pools must have the same location settings. + NodePoolTarget []*GkeNodePoolTarget `json:"nodePoolTarget,omitempty"` + // ForceSendFields is a list of field names (e.g. "GkeClusterTarget") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "GkeClusterTarget") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GkeClusterConfig) MarshalJSON() ([]byte, error) { + type NoMethod GkeClusterConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GkeNodeConfig: Parameters that describe cluster nodes. +type GkeNodeConfig struct { + // Accelerators: Optional. A list of hardware accelerators + // (https://cloud.google.com/compute/docs/gpus) to attach to each node. + Accelerators []*GkeNodePoolAcceleratorConfig `json:"accelerators,omitempty"` + // BootDiskKmsKey: Optional. The Customer Managed Encryption Key (CMEK) + // (https://cloud.google.com/kubernetes-engine/docs/how-to/using-cmek) used to + // encrypt the boot disk attached to each node in the node pool. Specify the + // key using the following format: + // projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypt + // o_key} + BootDiskKmsKey string `json:"bootDiskKmsKey,omitempty"` + // LocalSsdCount: Optional. The number of local SSD disks to attach to the + // node, which is limited by the maximum number of disks allowable per zone + // (see Adding Local SSDs + // (https://cloud.google.com/compute/docs/disks/local-ssd)). + LocalSsdCount int64 `json:"localSsdCount,omitempty"` + // MachineType: Optional. The name of a Compute Engine machine type + // (https://cloud.google.com/compute/docs/machine-types). + MachineType string `json:"machineType,omitempty"` + // MinCpuPlatform: Optional. Minimum CPU platform + // (https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) + // to be used by this instance. The instance may be scheduled on the specified + // or a newer CPU platform. Specify the friendly names of CPU platforms, such + // as "Intel Haswell" or Intel Sandy Bridge". + MinCpuPlatform string `json:"minCpuPlatform,omitempty"` + // Preemptible: Optional. Whether the nodes are created as legacy preemptible + // VM instances (https://cloud.google.com/compute/docs/instances/preemptible). + // Also see Spot VMs, preemptible VM instances without a maximum lifetime. + // Legacy and Spot preemptible nodes cannot be used in a node pool with the + // CONTROLLER role or in the DEFAULT node pool if the CONTROLLER role is not + // assigned (the DEFAULT node pool will assume the CONTROLLER role). + Preemptible bool `json:"preemptible,omitempty"` + // Spot: Optional. Whether the nodes are created as Spot VM instances + // (https://cloud.google.com/compute/docs/instances/spot). Spot VMs are the + // latest update to legacy preemptible VMs. Spot VMs do not have a maximum + // lifetime. Legacy and Spot preemptible nodes cannot be used in a node pool + // with the CONTROLLER role or in the DEFAULT node pool if the CONTROLLER role + // is not assigned (the DEFAULT node pool will assume the CONTROLLER role). + Spot bool `json:"spot,omitempty"` + // ForceSendFields is a list of field names (e.g. "Accelerators") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Accelerators") to include in API + // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s JobReference) MarshalJSON() ([]byte, error) { - type NoMethod JobReference +func (s GkeNodeConfig) MarshalJSON() ([]byte, error) { + type NoMethod GkeNodeConfig return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// JobScheduling: Job scheduling options. -type JobScheduling struct { - // MaxFailuresPerHour: Optional. Maximum number of times per hour a driver can - // be restarted as a result of driver exiting with non-zero code before job is - // reported failed.A job might be reported as thrashing if the driver exits - // with a non-zero code four times within a 10-minute window.Maximum value is - // 10.Note: This restartable job option is not supported in Dataproc workflow - // templates - // (https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template). - MaxFailuresPerHour int64 `json:"maxFailuresPerHour,omitempty"` - // MaxFailuresTotal: Optional. Maximum total number of times a driver can be - // restarted as a result of the driver exiting with a non-zero code. After the - // maximum number is reached, the job will be reported as failed.Maximum value - // is 240.Note: Currently, this restartable job option is not supported in - // Dataproc workflow templates - // (https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template). - MaxFailuresTotal int64 `json:"maxFailuresTotal,omitempty"` - // ForceSendFields is a list of field names (e.g. "MaxFailuresPerHour") to +// GkeNodePoolAcceleratorConfig: A GkeNodeConfigAcceleratorConfig represents a +// Hardware Accelerator request for a node pool. +type GkeNodePoolAcceleratorConfig struct { + // AcceleratorCount: The number of accelerator cards exposed to an instance. + AcceleratorCount int64 `json:"acceleratorCount,omitempty,string"` + // AcceleratorType: The accelerator type resource namename (see GPUs on Compute + // Engine). + AcceleratorType string `json:"acceleratorType,omitempty"` + // GpuPartitionSize: Size of partitions to create on the GPU. Valid values are + // described in the NVIDIA mig user guide + // (https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning). + GpuPartitionSize string `json:"gpuPartitionSize,omitempty"` + // ForceSendFields is a list of field names (e.g. "AcceleratorCount") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "MaxFailuresPerHour") to include - // in API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. See + // NullFields is a list of field names (e.g. "AcceleratorCount") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s JobScheduling) MarshalJSON() ([]byte, error) { - type NoMethod JobScheduling +func (s GkeNodePoolAcceleratorConfig) MarshalJSON() ([]byte, error) { + type NoMethod GkeNodePoolAcceleratorConfig return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// JobStatus: Dataproc job status. -type JobStatus struct { - // Details: Optional. Output only. Job state details, such as an error - // description if the state is ERROR. - Details string `json:"details,omitempty"` - // State: Output only. A state message specifying the overall job state. - // - // Possible values: - // "STATE_UNSPECIFIED" - The job state is unknown. - // "PENDING" - The job is pending; it has been submitted, but is not yet - // running. - // "SETUP_DONE" - Job has been received by the service and completed initial - // setup; it will soon be submitted to the cluster. - // "RUNNING" - The job is running on the cluster. - // "CANCEL_PENDING" - A CancelJob request has been received, but is pending. - // "CANCEL_STARTED" - Transient in-flight resources have been canceled, and - // the request to cancel the running job has been issued to the cluster. - // "CANCELLED" - The job cancellation was successful. - // "DONE" - The job has completed successfully. - // "ERROR" - The job has completed, but encountered an error. - // "ATTEMPT_FAILURE" - Job attempt has failed. The detail field contains - // failure details for this attempt.Applies to restartable jobs only. - State string `json:"state,omitempty"` - // StateStartTime: Output only. The time when this state was entered. - StateStartTime string `json:"stateStartTime,omitempty"` - // Substate: Output only. Additional state information, which includes status - // reported by the agent. - // - // Possible values: - // "UNSPECIFIED" - The job substate is unknown. - // "SUBMITTED" - The Job is submitted to the agent.Applies to RUNNING state. - // "QUEUED" - The Job has been received and is awaiting execution (it might - // be waiting for a condition to be met). See the "details" field for the - // reason for the delay.Applies to RUNNING state. - // "STALE_STATUS" - The agent-reported status is out of date, which can be - // caused by a loss of communication between the agent and Dataproc. If the - // agent does not send a timely update, the job will fail.Applies to RUNNING - // state. - Substate string `json:"substate,omitempty"` - // ForceSendFields is a list of field names (e.g. "Details") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See +// GkeNodePoolAutoscalingConfig: GkeNodePoolAutoscaling contains information +// the cluster autoscaler needs to adjust the size of the node pool to the +// current cluster usage. +type GkeNodePoolAutoscalingConfig struct { + // MaxNodeCount: The maximum number of nodes in the node pool. Must be >= + // min_node_count, and must be > 0. Note: Quota must be sufficient to scale up + // the cluster. + MaxNodeCount int64 `json:"maxNodeCount,omitempty"` + // MinNodeCount: The minimum number of nodes in the node pool. Must be >= 0 and + // <= max_node_count. + MinNodeCount int64 `json:"minNodeCount,omitempty"` + // ForceSendFields is a list of field names (e.g. "MaxNodeCount") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Details") to include in API + // NullFields is a list of field names (e.g. "MaxNodeCount") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s JobStatus) MarshalJSON() ([]byte, error) { - type NoMethod JobStatus +func (s GkeNodePoolAutoscalingConfig) MarshalJSON() ([]byte, error) { + type NoMethod GkeNodePoolAutoscalingConfig return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// JupyterConfig: Jupyter configuration for an interactive session. -type JupyterConfig struct { - // DisplayName: Optional. Display name, shown in the Jupyter kernelspec card. - DisplayName string `json:"displayName,omitempty"` - // Kernel: Optional. Kernel - // - // Possible values: - // "KERNEL_UNSPECIFIED" - The kernel is unknown. - // "PYTHON" - Python kernel. - // "SCALA" - Scala kernel. - Kernel string `json:"kernel,omitempty"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to +// GkeNodePoolConfig: The configuration of a GKE node pool used by a +// Dataproc-on-GKE cluster +// (https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster). +type GkeNodePoolConfig struct { + // Autoscaling: Optional. The autoscaler configuration for this node pool. The + // autoscaler is enabled only when a valid configuration is present. + Autoscaling *GkeNodePoolAutoscalingConfig `json:"autoscaling,omitempty"` + // Config: Optional. The node pool configuration. + Config *GkeNodeConfig `json:"config,omitempty"` + // Locations: Optional. The list of Compute Engine zones + // (https://cloud.google.com/compute/docs/zones#available) where node pool + // nodes associated with a Dataproc on GKE virtual cluster will be + // located.Note: All node pools associated with a virtual cluster must be + // located in the same region as the virtual cluster, and they must be located + // in the same zone within that region.If a location is not specified during + // node pool creation, Dataproc on GKE will choose the zone. + Locations []string `json:"locations,omitempty"` + // ForceSendFields is a list of field names (e.g. "Autoscaling") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DisplayName") to include in API + // NullFields is a list of field names (e.g. "Autoscaling") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s JupyterConfig) MarshalJSON() ([]byte, error) { - type NoMethod JupyterConfig +func (s GkeNodePoolConfig) MarshalJSON() ([]byte, error) { + type NoMethod GkeNodePoolConfig return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// KerberosConfig: Specifies Kerberos related configuration. -type KerberosConfig struct { - // CrossRealmTrustAdminServer: Optional. The admin server (IP or hostname) for - // the remote trusted realm in a cross realm trust relationship. - CrossRealmTrustAdminServer string `json:"crossRealmTrustAdminServer,omitempty"` - // CrossRealmTrustKdc: Optional. The KDC (IP or hostname) for the remote - // trusted realm in a cross realm trust relationship. - CrossRealmTrustKdc string `json:"crossRealmTrustKdc,omitempty"` - // CrossRealmTrustRealm: Optional. The remote realm the Dataproc on-cluster KDC - // will trust, should the user enable cross realm trust. - CrossRealmTrustRealm string `json:"crossRealmTrustRealm,omitempty"` - // CrossRealmTrustSharedPasswordUri: Optional. The Cloud Storage URI of a KMS - // encrypted file containing the shared password between the on-cluster - // Kerberos realm and the remote trusted realm, in a cross realm trust - // relationship. - CrossRealmTrustSharedPasswordUri string `json:"crossRealmTrustSharedPasswordUri,omitempty"` - // EnableKerberos: Optional. Flag to indicate whether to Kerberize the cluster - // (default: false). Set this field to true to enable Kerberos on a cluster. - EnableKerberos bool `json:"enableKerberos,omitempty"` - // KdcDbKeyUri: Optional. The Cloud Storage URI of a KMS encrypted file - // containing the master key of the KDC database. - KdcDbKeyUri string `json:"kdcDbKeyUri,omitempty"` - // KeyPasswordUri: Optional. The Cloud Storage URI of a KMS encrypted file - // containing the password to the user provided key. For the self-signed - // certificate, this password is generated by Dataproc. - KeyPasswordUri string `json:"keyPasswordUri,omitempty"` - // KeystorePasswordUri: Optional. The Cloud Storage URI of a KMS encrypted file - // containing the password to the user provided keystore. For the self-signed - // certificate, this password is generated by Dataproc. - KeystorePasswordUri string `json:"keystorePasswordUri,omitempty"` - // KeystoreUri: Optional. The Cloud Storage URI of the keystore file used for - // SSL encryption. If not provided, Dataproc will provide a self-signed - // certificate. - KeystoreUri string `json:"keystoreUri,omitempty"` - // KmsKeyUri: Optional. The URI of the KMS key used to encrypt sensitive files. - KmsKeyUri string `json:"kmsKeyUri,omitempty"` - // Realm: Optional. The name of the on-cluster Kerberos realm. If not - // specified, the uppercased domain of hostnames will be the realm. - Realm string `json:"realm,omitempty"` - // RootPrincipalPasswordUri: Optional. The Cloud Storage URI of a KMS encrypted - // file containing the root principal password. - RootPrincipalPasswordUri string `json:"rootPrincipalPasswordUri,omitempty"` - // TgtLifetimeHours: Optional. The lifetime of the ticket granting ticket, in - // hours. If not specified, or user specifies 0, then default value 10 will be - // used. - TgtLifetimeHours int64 `json:"tgtLifetimeHours,omitempty"` - // TruststorePasswordUri: Optional. The Cloud Storage URI of a KMS encrypted - // file containing the password to the user provided truststore. For the - // self-signed certificate, this password is generated by Dataproc. - TruststorePasswordUri string `json:"truststorePasswordUri,omitempty"` - // TruststoreUri: Optional. The Cloud Storage URI of the truststore file used - // for SSL encryption. If not provided, Dataproc will provide a self-signed - // certificate. - TruststoreUri string `json:"truststoreUri,omitempty"` - // ForceSendFields is a list of field names (e.g. "CrossRealmTrustAdminServer") - // to unconditionally include in API requests. By default, fields with empty or +// GkeNodePoolTarget: GKE node pools that Dataproc workloads run on. +type GkeNodePoolTarget struct { + // NodePool: Required. The target GKE node pool. Format: + // 'projects/{project}/locations/{location}/clusters/{cluster}/nodePools/{node_p + // ool}' + NodePool string `json:"nodePool,omitempty"` + // NodePoolConfig: Input only. The configuration for the GKE node pool.If + // specified, Dataproc attempts to create a node pool with the specified shape. + // If one with the same name already exists, it is verified against all + // specified fields. If a field differs, the virtual cluster creation will + // fail.If omitted, any node pool with the specified name is used. If a node + // pool with the specified name does not exist, Dataproc create a node pool + // with default values.This is an input only field. It will not be returned by + // the API. + NodePoolConfig *GkeNodePoolConfig `json:"nodePoolConfig,omitempty"` + // Roles: Required. The roles associated with the GKE node pool. + // + // Possible values: + // "ROLE_UNSPECIFIED" - Role is unspecified. + // "DEFAULT" - At least one node pool must have the DEFAULT role. Work + // assigned to a role that is not associated with a node pool is assigned to + // the node pool with the DEFAULT role. For example, work assigned to the + // CONTROLLER role will be assigned to the node pool with the DEFAULT role if + // no node pool has the CONTROLLER role. + // "CONTROLLER" - Run work associated with the Dataproc control plane (for + // example, controllers and webhooks). Very low resource requirements. + // "SPARK_DRIVER" - Run work associated with a Spark driver of a job. + // "SPARK_EXECUTOR" - Run work associated with a Spark executor of a job. + Roles []string `json:"roles,omitempty"` + // ForceSendFields is a list of field names (e.g. "NodePool") to + // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CrossRealmTrustAdminServer") to - // include in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. See + // NullFields is a list of field names (e.g. "NodePool") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s KerberosConfig) MarshalJSON() ([]byte, error) { - type NoMethod KerberosConfig +func (s GkeNodePoolTarget) MarshalJSON() ([]byte, error) { + type NoMethod GkeNodePoolTarget return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// KubernetesClusterConfig: The configuration for running the Dataproc cluster -// on Kubernetes. -type KubernetesClusterConfig struct { - // GkeClusterConfig: Required. The configuration for running the Dataproc - // cluster on GKE. - GkeClusterConfig *GkeClusterConfig `json:"gkeClusterConfig,omitempty"` - // KubernetesNamespace: Optional. A namespace within the Kubernetes cluster to - // deploy into. If this namespace does not exist, it is created. If it exists, - // Dataproc verifies that another Dataproc VirtualCluster is not installed into - // it. If not specified, the name of the Dataproc Cluster is used. - KubernetesNamespace string `json:"kubernetesNamespace,omitempty"` - // KubernetesSoftwareConfig: Optional. The software configuration for this - // Dataproc cluster running on Kubernetes. - KubernetesSoftwareConfig *KubernetesSoftwareConfig `json:"kubernetesSoftwareConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. "GkeClusterConfig") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See +// GoogleCloudDataprocV1WorkflowTemplateEncryptionConfig: Encryption settings +// for encrypting workflow template job arguments. +type GoogleCloudDataprocV1WorkflowTemplateEncryptionConfig struct { + // KmsKey: Optional. The Cloud KMS key name to use for encrypting workflow + // template job arguments.When this this key is provided, the following + // workflow template job arguments + // (https://cloud.google.com/dataproc/docs/concepts/workflows/use-workflows#adding_jobs_to_a_template), + // if present, are CMEK encrypted + // (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/customer-managed-encryption#use_cmek_with_workflow_template_data): + // FlinkJob args + // (https://cloud.google.com/dataproc/docs/reference/rest/v1/FlinkJob) + // HadoopJob args + // (https://cloud.google.com/dataproc/docs/reference/rest/v1/HadoopJob) + // SparkJob args + // (https://cloud.google.com/dataproc/docs/reference/rest/v1/SparkJob) + // SparkRJob args + // (https://cloud.google.com/dataproc/docs/reference/rest/v1/SparkRJob) + // PySparkJob args + // (https://cloud.google.com/dataproc/docs/reference/rest/v1/PySparkJob) + // SparkSqlJob + // (https://cloud.google.com/dataproc/docs/reference/rest/v1/SparkSqlJob) + // scriptVariables and queryList.queries HiveJob + // (https://cloud.google.com/dataproc/docs/reference/rest/v1/HiveJob) + // scriptVariables and queryList.queries PigJob + // (https://cloud.google.com/dataproc/docs/reference/rest/v1/PigJob) + // scriptVariables and queryList.queries PrestoJob + // (https://cloud.google.com/dataproc/docs/reference/rest/v1/PrestoJob) + // scriptVariables and queryList.queries + KmsKey string `json:"kmsKey,omitempty"` + // ForceSendFields is a list of field names (e.g. "KmsKey") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "GkeClusterConfig") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See + // NullFields is a list of field names (e.g. "KmsKey") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s KubernetesClusterConfig) MarshalJSON() ([]byte, error) { - type NoMethod KubernetesClusterConfig +func (s GoogleCloudDataprocV1WorkflowTemplateEncryptionConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataprocV1WorkflowTemplateEncryptionConfig return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// KubernetesSoftwareConfig: The software configuration for this Dataproc -// cluster running on Kubernetes. -type KubernetesSoftwareConfig struct { - // ComponentVersion: The components that should be installed in this Dataproc - // cluster. The key must be a string from the KubernetesComponent enumeration. - // The value is the version of the software to be installed. At least one entry - // must be specified. - ComponentVersion map[string]string `json:"componentVersion,omitempty"` - // Properties: The properties to set on daemon config files.Property keys are - // specified in prefix:property format, for example - // spark:spark.kubernetes.container.image. The following are supported prefixes - // and their mappings: spark: spark-defaults.confFor more information, see - // Cluster properties - // (https://cloud.google.com/dataproc/docs/concepts/cluster-properties). +// HadoopJob: A Dataproc job for running Apache Hadoop MapReduce +// (https://hadoop.apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core/MapReduceTutorial.html) +// jobs on Apache Hadoop YARN +// (https://hadoop.apache.org/docs/r2.7.1/hadoop-yarn/hadoop-yarn-site/YARN.html). +type HadoopJob struct { + // ArchiveUris: Optional. HCFS URIs of archives to be extracted in the working + // directory of Hadoop drivers and tasks. Supported file types: .jar, .tar, + // .tar.gz, .tgz, or .zip. + ArchiveUris []string `json:"archiveUris,omitempty"` + // Args: Optional. The arguments to pass to the driver. Do not include + // arguments, such as -libjars or -Dfoo=bar, that can be set as job properties, + // since a collision might occur that causes an incorrect job submission. + Args []string `json:"args,omitempty"` + // FileUris: Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be + // copied to the working directory of Hadoop drivers and distributed tasks. + // Useful for naively parallel tasks. + FileUris []string `json:"fileUris,omitempty"` + // JarFileUris: Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop + // driver and tasks. + JarFileUris []string `json:"jarFileUris,omitempty"` + // LoggingConfig: Optional. The runtime log config for job execution. + LoggingConfig *LoggingConfig `json:"loggingConfig,omitempty"` + // MainClass: The name of the driver's main class. The jar file containing the + // class must be in the default CLASSPATH or specified in jar_file_uris. + MainClass string `json:"mainClass,omitempty"` + // MainJarFileUri: The HCFS URI of the jar file containing the main class. + // Examples: 'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar' + // 'hdfs:/tmp/test-samples/custom-wordcount.jar' + // 'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar' + MainJarFileUri string `json:"mainJarFileUri,omitempty"` + // Properties: Optional. A mapping of property names to values, used to + // configure Hadoop. Properties that conflict with values set by the Dataproc + // API might be overwritten. Can include properties set in + // /etc/hadoop/conf/*-site and classes in user code. Properties map[string]string `json:"properties,omitempty"` - // ForceSendFields is a list of field names (e.g. "ComponentVersion") to + // ForceSendFields is a list of field names (e.g. "ArchiveUris") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ComponentVersion") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See + // NullFields is a list of field names (e.g. "ArchiveUris") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s KubernetesSoftwareConfig) MarshalJSON() ([]byte, error) { - type NoMethod KubernetesSoftwareConfig +func (s HadoopJob) MarshalJSON() ([]byte, error) { + type NoMethod HadoopJob return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// LifecycleConfig: Specifies the cluster auto-delete schedule configuration. -type LifecycleConfig struct { - // AutoDeleteTime: Optional. The time when cluster will be auto-deleted (see - // JSON representation of Timestamp - // (https://developers.google.com/protocol-buffers/docs/proto3#json)). - AutoDeleteTime string `json:"autoDeleteTime,omitempty"` - // AutoDeleteTtl: Optional. The lifetime duration of cluster. The cluster will - // be auto-deleted at the end of this period. Minimum value is 10 minutes; - // maximum value is 14 days (see JSON representation of Duration - // (https://developers.google.com/protocol-buffers/docs/proto3#json)). - AutoDeleteTtl string `json:"autoDeleteTtl,omitempty"` - // IdleDeleteTtl: Optional. The duration to keep the cluster alive while idling - // (when no jobs are running). Passing this threshold will cause the cluster to - // be deleted. Minimum value is 5 minutes; maximum value is 14 days (see JSON - // representation of Duration - // (https://developers.google.com/protocol-buffers/docs/proto3#json)). - IdleDeleteTtl string `json:"idleDeleteTtl,omitempty"` - // IdleStartTime: Output only. The time when cluster became idle (most recent - // job finished) and became eligible for deletion due to idleness (see JSON - // representation of Timestamp - // (https://developers.google.com/protocol-buffers/docs/proto3#json)). - IdleStartTime string `json:"idleStartTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "AutoDeleteTime") to +// HiveJob: A Dataproc job for running Apache Hive (https://hive.apache.org/) +// queries on YARN. +type HiveJob struct { + // ContinueOnFailure: Optional. Whether to continue executing queries if a + // query fails. The default value is false. Setting to true can be useful when + // executing independent parallel queries. + ContinueOnFailure bool `json:"continueOnFailure,omitempty"` + // JarFileUris: Optional. HCFS URIs of jar files to add to the CLASSPATH of the + // Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes and + // UDFs. + JarFileUris []string `json:"jarFileUris,omitempty"` + // Properties: Optional. A mapping of property names and values, used to + // configure Hive. Properties that conflict with values set by the Dataproc API + // might be overwritten. Can include properties set in + // /etc/hadoop/conf/*-site.xml, /etc/hive/conf/hive-site.xml, and classes in + // user code. + Properties map[string]string `json:"properties,omitempty"` + // QueryFileUri: The HCFS URI of the script that contains Hive queries. + QueryFileUri string `json:"queryFileUri,omitempty"` + // QueryList: A list of queries. + QueryList *QueryList `json:"queryList,omitempty"` + // ScriptVariables: Optional. Mapping of query variable names to values + // (equivalent to the Hive command: SET name="value";). + ScriptVariables map[string]string `json:"scriptVariables,omitempty"` + // ForceSendFields is a list of field names (e.g. "ContinueOnFailure") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AutoDeleteTime") to include in + // NullFields is a list of field names (e.g. "ContinueOnFailure") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s LifecycleConfig) MarshalJSON() ([]byte, error) { - type NoMethod LifecycleConfig +func (s HiveJob) MarshalJSON() ([]byte, error) { + type NoMethod HiveJob return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListAutoscalingPoliciesResponse: A response to a request to list autoscaling -// policies in a project. -type ListAutoscalingPoliciesResponse struct { - // NextPageToken: Output only. This token is included in the response if there - // are more results to fetch. - NextPageToken string `json:"nextPageToken,omitempty"` - // Policies: Output only. Autoscaling policies list. - Policies []*AutoscalingPolicy `json:"policies,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. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - 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. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s ListAutoscalingPoliciesResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListAutoscalingPoliciesResponse - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// ListBatchesResponse: A list of batch workloads. -type ListBatchesResponse struct { - // Batches: Output only. The batches from the specified collection. - Batches []*Batch `json:"batches,omitempty"` - // NextPageToken: A token, which can be sent as page_token to retrieve the next - // page. If this field is omitted, there are no subsequent pages. - NextPageToken string `json:"nextPageToken,omitempty"` - // Unreachable: Output only. List of Batches that could not be included in the - // response. Attempting to get one of these resources may indicate why it was - // not included in the list response. - Unreachable []string `json:"unreachable,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the server. - googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Batches") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See +// IdentityConfig: Identity related configuration, including service account +// based secure multi-tenancy user mappings. +type IdentityConfig struct { + // UserServiceAccountMapping: Required. Map of user to service account. + UserServiceAccountMapping map[string]string `json:"userServiceAccountMapping,omitempty"` + // ForceSendFields is a list of field names (e.g. "UserServiceAccountMapping") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Batches") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "UserServiceAccountMapping") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s ListBatchesResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListBatchesResponse +func (s IdentityConfig) MarshalJSON() ([]byte, error) { + type NoMethod IdentityConfig return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListClustersResponse: The list of all clusters in a project. -type ListClustersResponse struct { - // Clusters: Output only. The clusters in the project. - Clusters []*Cluster `json:"clusters,omitempty"` - // NextPageToken: Output only. This token is included in the response if there - // are more results to fetch. To fetch additional results, provide this value - // as the page_token in a subsequent ListClustersRequest. - 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. "Clusters") to +// InjectCredentialsRequest: A request to inject credentials into a cluster. +type InjectCredentialsRequest struct { + // ClusterUuid: Required. The cluster UUID. + ClusterUuid string `json:"clusterUuid,omitempty"` + // CredentialsCiphertext: Required. The encrypted credentials being injected in + // to the cluster.The client is responsible for encrypting the credentials in a + // way that is supported by the cluster.A wrapped value is used here so that + // the actual contents of the encrypted credentials are not written to audit + // logs. + CredentialsCiphertext string `json:"credentialsCiphertext,omitempty"` + // ForceSendFields is a list of field names (e.g. "ClusterUuid") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Clusters") to include in API + // NullFields is a list of field names (e.g. "ClusterUuid") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s ListClustersResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListClustersResponse - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// ListJobsResponse: A list of jobs in a project. -type ListJobsResponse struct { - // Jobs: Output only. Jobs list. - Jobs []*Job `json:"jobs,omitempty"` - // NextPageToken: Optional. This token is included in the response if there are - // more results to fetch. To fetch additional results, provide this value as - // the page_token in a subsequent ListJobsRequest. - NextPageToken string `json:"nextPageToken,omitempty"` - // Unreachable: Output only. List of jobs with kms_key-encrypted parameters - // that could not be decrypted. A response to a jobs.get request may indicate - // the reason for the decryption failure for a specific job. - Unreachable []string `json:"unreachable,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the server. - googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Jobs") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Jobs") to include in API requests - // with the JSON null value. By default, fields with empty values are omitted - // from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s ListJobsResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListJobsResponse +func (s InjectCredentialsRequest) MarshalJSON() ([]byte, error) { + type NoMethod InjectCredentialsRequest return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListOperationsResponse: The response message for Operations.ListOperations. -type ListOperationsResponse struct { - // NextPageToken: The standard List next-page token. - NextPageToken string `json:"nextPageToken,omitempty"` - // Operations: A list of operations that matches the specified filter in the - // request. - Operations []*Operation `json:"operations,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the server. - googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to +// InputMetrics: Metrics about the input data read by the task. +type InputMetrics struct { + BytesRead int64 `json:"bytesRead,omitempty,string"` + RecordsRead int64 `json:"recordsRead,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "BytesRead") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // NullFields is a list of field names (e.g. "BytesRead") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s ListOperationsResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListOperationsResponse +func (s InputMetrics) MarshalJSON() ([]byte, error) { + type NoMethod InputMetrics return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListSessionTemplatesResponse: A list of session templates. -type ListSessionTemplatesResponse 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"` - // SessionTemplates: Output only. Session template list - SessionTemplates []*SessionTemplate `json:"sessionTemplates,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 +type InputQuantileMetrics struct { + BytesRead *Quantiles `json:"bytesRead,omitempty"` + RecordsRead *Quantiles `json:"recordsRead,omitempty"` + // ForceSendFields is a list of field names (e.g. "BytesRead") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // NullFields is a list of field names (e.g. "BytesRead") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s ListSessionTemplatesResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListSessionTemplatesResponse +func (s InputQuantileMetrics) MarshalJSON() ([]byte, error) { + type NoMethod InputQuantileMetrics return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListSessionsResponse: A list of interactive sessions. -type ListSessionsResponse 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"` - // Sessions: Output only. The sessions from the specified collection. - Sessions []*Session `json:"sessions,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 +// InstanceFlexibilityPolicy: Instance flexibility Policy allowing a mixture of +// VM shapes and provisioning models. +type InstanceFlexibilityPolicy struct { + // InstanceSelectionList: Optional. List of instance selection options that the + // group will use when creating new VMs. + InstanceSelectionList []*InstanceSelection `json:"instanceSelectionList,omitempty"` + // InstanceSelectionResults: Output only. A list of instance selection results + // in the group. + InstanceSelectionResults []*InstanceSelectionResult `json:"instanceSelectionResults,omitempty"` + // ProvisioningModelMix: Optional. Defines how the Group selects the + // provisioning model to ensure required reliability. + ProvisioningModelMix *ProvisioningModelMix `json:"provisioningModelMix,omitempty"` + // ForceSendFields is a list of field names (e.g. "InstanceSelectionList") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. 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. See + // NullFields is a list of field names (e.g. "InstanceSelectionList") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s ListSessionsResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListSessionsResponse +func (s InstanceFlexibilityPolicy) MarshalJSON() ([]byte, error) { + type NoMethod InstanceFlexibilityPolicy return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListWorkflowTemplatesResponse: A response to a request to list workflow -// templates in a project. -type ListWorkflowTemplatesResponse struct { - // NextPageToken: Output only. This token is included in the response if there - // are more results to fetch. To fetch additional results, provide this value - // as the page_token in a subsequent ListWorkflowTemplatesRequest. - NextPageToken string `json:"nextPageToken,omitempty"` - // Templates: Output only. WorkflowTemplates list. - Templates []*WorkflowTemplate `json:"templates,omitempty"` - // Unreachable: Output only. List of workflow templates that could not be - // included in the response. Attempting to get one of these resources may - // indicate why it was not included in the list response. - Unreachable []string `json:"unreachable,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the server. - googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to +// InstanceGroupAutoscalingPolicyConfig: Configuration for the size bounds of +// an instance group, including its proportional size to other groups. +type InstanceGroupAutoscalingPolicyConfig struct { + // MaxInstances: Required. Maximum number of instances for this group. Required + // for primary workers. Note that by default, clusters will not use secondary + // workers. Required for secondary workers if the minimum secondary instances + // is set.Primary workers - Bounds: [min_instances, ). Secondary workers - + // Bounds: [min_instances, ). Default: 0. + MaxInstances int64 `json:"maxInstances,omitempty"` + // MinInstances: Optional. Minimum number of instances for this group.Primary + // workers - Bounds: 2, max_instances. Default: 2. Secondary workers - Bounds: + // 0, max_instances. Default: 0. + MinInstances int64 `json:"minInstances,omitempty"` + // Weight: Optional. Weight for the instance group, which is used to determine + // the fraction of total workers in the cluster from this instance group. For + // example, if primary workers have weight 2, and secondary workers have weight + // 1, the cluster will have approximately 2 primary workers for each secondary + // worker.The cluster may not reach the specified balance if constrained by + // min/max bounds or other autoscaling settings. For example, if max_instances + // for secondary workers is 0, then only primary workers will be added. The + // cluster can also be out of balance when created.If weight is not set on any + // instance group, the cluster will default to equal weight for all groups: the + // cluster will attempt to maintain an equal number of workers in each group + // within the configured size bounds for each group. If weight is set for one + // group only, the cluster will default to zero weight on the unset group. For + // example if weight is set only on primary workers, the cluster will use + // primary workers only and no secondary workers. + Weight int64 `json:"weight,omitempty"` + // ForceSendFields is a list of field names (e.g. "MaxInstances") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // NullFields is a list of field names (e.g. "MaxInstances") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s ListWorkflowTemplatesResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListWorkflowTemplatesResponse - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// LoggingConfig: The runtime logging config of the job. -type LoggingConfig struct { - // DriverLogLevels: The per-package log levels for the driver. This can include - // "root" package name to configure rootLogger. Examples: - 'com.google = - // FATAL' - 'root = INFO' - 'org.apache = DEBUG' - DriverLogLevels map[string]string `json:"driverLogLevels,omitempty"` - // ForceSendFields is a list of field names (e.g. "DriverLogLevels") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DriverLogLevels") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s LoggingConfig) MarshalJSON() ([]byte, error) { - type NoMethod LoggingConfig +func (s InstanceGroupAutoscalingPolicyConfig) MarshalJSON() ([]byte, error) { + type NoMethod InstanceGroupAutoscalingPolicyConfig return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ManagedCluster: Cluster that is managed by the workflow. -type ManagedCluster struct { - // ClusterName: Required. The cluster name prefix. A unique cluster name will - // be formed by appending a random suffix.The name must contain only lower-case - // letters (a-z), numbers (0-9), and hyphens (-). Must begin with a letter. - // Cannot begin or end with hyphen. Must consist of between 2 and 35 - // characters. - ClusterName string `json:"clusterName,omitempty"` - // Config: Required. The cluster configuration. - Config *ClusterConfig `json:"config,omitempty"` - // Labels: Optional. The labels to associate with this cluster.Label keys must - // be between 1 and 63 characters long, and must conform to the following PCRE - // regular expression: \p{Ll}\p{Lo}{0,62}Label values must be between 1 and 63 - // characters long, and must conform to the following PCRE regular expression: - // \p{Ll}\p{Lo}\p{N}_-{0,63}No more than 32 labels can be associated with a - // given cluster. - Labels map[string]string `json:"labels,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClusterName") to +// InstanceGroupConfig: The config settings for Compute Engine resources in an +// instance group, such as a master or worker group. +type InstanceGroupConfig struct { + // Accelerators: Optional. The Compute Engine accelerator configuration for + // these instances. + Accelerators []*AcceleratorConfig `json:"accelerators,omitempty"` + // DiskConfig: Optional. Disk option config settings. + DiskConfig *DiskConfig `json:"diskConfig,omitempty"` + // ImageUri: Optional. The Compute Engine image resource used for cluster + // instances.The URI can represent an image or image family.Image examples: + // https://www.googleapis.com/compute/v1/projects/[project_id]/global/images/[image-id] + // projects/[project_id]/global/images/[image-id] image-idImage family + // examples. Dataproc will use the most recent image from the family: + // https://www.googleapis.com/compute/v1/projects/[project_id]/global/images/family/[custom-image-family-name] + // projects/[project_id]/global/images/family/[custom-image-family-name]If the + // URI is unspecified, it will be inferred from SoftwareConfig.image_version or + // the system default. + ImageUri string `json:"imageUri,omitempty"` + // InstanceFlexibilityPolicy: Optional. Instance flexibility Policy allowing a + // mixture of VM shapes and provisioning models. + InstanceFlexibilityPolicy *InstanceFlexibilityPolicy `json:"instanceFlexibilityPolicy,omitempty"` + // InstanceNames: Output only. The list of instance names. Dataproc derives the + // names from cluster_name, num_instances, and the instance group. + InstanceNames []string `json:"instanceNames,omitempty"` + // InstanceReferences: Output only. List of references to Compute Engine + // instances. + InstanceReferences []*InstanceReference `json:"instanceReferences,omitempty"` + // IsPreemptible: Output only. Specifies that this instance group contains + // preemptible instances. + IsPreemptible bool `json:"isPreemptible,omitempty"` + // MachineTypeUri: Optional. The Compute Engine machine type used for cluster + // instances.A full URL, partial URI, or short name are valid. Examples: + // https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]/machineTypes/n1-standard-2 + // projects/[project_id]/zones/[zone]/machineTypes/n1-standard-2 + // n1-standard-2Auto Zone Exception: If you are using the Dataproc Auto Zone + // Placement + // (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) + // feature, you must use the short name of the machine type resource, for + // example, n1-standard-2. + MachineTypeUri string `json:"machineTypeUri,omitempty"` + // ManagedGroupConfig: Output only. The config for Compute Engine Instance + // Group Manager that manages this group. This is only used for preemptible + // instance groups. + ManagedGroupConfig *ManagedGroupConfig `json:"managedGroupConfig,omitempty"` + // MinCpuPlatform: Optional. Specifies the minimum cpu platform for the + // Instance Group. See Dataproc -> Minimum CPU Platform + // (https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu). + MinCpuPlatform string `json:"minCpuPlatform,omitempty"` + // MinNumInstances: Optional. The minimum number of primary worker instances to + // create. If min_num_instances is set, cluster creation will succeed if the + // number of primary workers created is at least equal to the min_num_instances + // number.Example: Cluster creation request with num_instances = 5 and + // min_num_instances = 3: If 4 VMs are created and 1 instance fails, the failed + // VM is deleted. The cluster is resized to 4 instances and placed in a RUNNING + // state. If 2 instances are created and 3 instances fail, the cluster in + // placed in an ERROR state. The failed VMs are not deleted. + MinNumInstances int64 `json:"minNumInstances,omitempty"` + // NumInstances: Optional. The number of VM instances in the instance group. + // For HA cluster master_config groups, must be set to 3. For standard cluster + // master_config groups, must be set to 1. + NumInstances int64 `json:"numInstances,omitempty"` + // Preemptibility: Optional. Specifies the preemptibility of the instance + // group.The default value for master and worker groups is NON_PREEMPTIBLE. + // This default cannot be changed.The default value for secondary instances is + // PREEMPTIBLE. + // + // Possible values: + // "PREEMPTIBILITY_UNSPECIFIED" - Preemptibility is unspecified, the system + // will choose the appropriate setting for each instance group. + // "NON_PREEMPTIBLE" - Instances are non-preemptible.This option is allowed + // for all instance groups and is the only valid value for Master and Worker + // instance groups. + // "PREEMPTIBLE" - Instances are preemptible + // (https://cloud.google.com/compute/docs/instances/preemptible).This option is + // allowed only for secondary worker + // (https://cloud.google.com/dataproc/docs/concepts/compute/secondary-vms) + // groups. + // "SPOT" - Instances are Spot VMs + // (https://cloud.google.com/compute/docs/instances/spot).This option is + // allowed only for secondary worker + // (https://cloud.google.com/dataproc/docs/concepts/compute/secondary-vms) + // groups. Spot VMs are the latest version of preemptible VMs + // (https://cloud.google.com/compute/docs/instances/preemptible), and provide + // additional features. + Preemptibility string `json:"preemptibility,omitempty"` + // StartupConfig: Optional. Configuration to handle the startup of instances + // during cluster create and update process. + StartupConfig *StartupConfig `json:"startupConfig,omitempty"` + // ForceSendFields is a list of field names (e.g. "Accelerators") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ClusterName") to include in API + // NullFields is a list of field names (e.g. "Accelerators") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s ManagedCluster) MarshalJSON() ([]byte, error) { - type NoMethod ManagedCluster - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// ManagedGroupConfig: Specifies the resources used to actively manage an -// instance group. -type ManagedGroupConfig struct { - // InstanceGroupManagerName: Output only. The name of the Instance Group - // Manager for this group. - InstanceGroupManagerName string `json:"instanceGroupManagerName,omitempty"` - // InstanceGroupManagerUri: Output only. The partial URI to the instance group - // manager for this group. E.g. - // projects/my-project/regions/us-central1/instanceGroupManagers/my-igm. - InstanceGroupManagerUri string `json:"instanceGroupManagerUri,omitempty"` - // InstanceTemplateName: Output only. The name of the Instance Template used - // for the Managed Instance Group. - InstanceTemplateName string `json:"instanceTemplateName,omitempty"` - // ForceSendFields is a list of field names (e.g. "InstanceGroupManagerName") - // to unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "InstanceGroupManagerName") to - // include in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s ManagedGroupConfig) MarshalJSON() ([]byte, error) { - type NoMethod ManagedGroupConfig +func (s InstanceGroupConfig) MarshalJSON() ([]byte, error) { + type NoMethod InstanceGroupConfig return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// MetastoreConfig: Specifies a Metastore configuration. -type MetastoreConfig struct { - // DataprocMetastoreService: Required. Resource name of an existing Dataproc - // Metastore service.Example: - // projects/[project_id]/locations/[dataproc_region]/services/[service-name] - DataprocMetastoreService string `json:"dataprocMetastoreService,omitempty"` - // ForceSendFields is a list of field names (e.g. "DataprocMetastoreService") - // to unconditionally include in API requests. By default, fields with empty or +// InstanceReference: A reference to a Compute Engine instance. +type InstanceReference struct { + // InstanceId: The unique identifier of the Compute Engine instance. + InstanceId string `json:"instanceId,omitempty"` + // InstanceName: The user-friendly name of the Compute Engine instance. + InstanceName string `json:"instanceName,omitempty"` + // PublicEciesKey: The public ECIES key used for sharing data with this + // instance. + PublicEciesKey string `json:"publicEciesKey,omitempty"` + // PublicKey: The public RSA key used for sharing data with this instance. + PublicKey string `json:"publicKey,omitempty"` + // ForceSendFields is a list of field names (e.g. "InstanceId") to + // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DataprocMetastoreService") to - // include in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. See + // NullFields is a list of field names (e.g. "InstanceId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s MetastoreConfig) MarshalJSON() ([]byte, error) { - type NoMethod MetastoreConfig +func (s InstanceReference) MarshalJSON() ([]byte, error) { + type NoMethod InstanceReference return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Metric: A Dataproc custom metric. -type Metric struct { - // MetricOverrides: Optional. Specify one or more Custom metrics - // (https://cloud.google.com/dataproc/docs/guides/dataproc-metrics#custom_metrics) - // to collect for the metric course (for the SPARK metric source (any Spark - // metric (https://spark.apache.org/docs/latest/monitoring.html#metrics) can be - // specified).Provide metrics in the following format: METRIC_SOURCE: - // INSTANCE:GROUP:METRIC Use camelcase as appropriate.Examples: - // yarn:ResourceManager:QueueMetrics:AppsCompleted - // spark:driver:DAGScheduler:job.allJobs - // sparkHistoryServer:JVM:Memory:NonHeapMemoryUsage.committed - // hiveserver2:JVM:Memory:NonHeapMemoryUsage.used Notes: Only the specified - // overridden metrics are collected for the metric source. For example, if one - // or more spark:executive metrics are listed as metric overrides, other SPARK - // metrics are not collected. The collection of the metrics for other enabled - // custom metric sources is unaffected. For example, if both SPARK andd YARN - // metric sources are enabled, and overrides are provided for Spark metrics - // only, all YARN metrics are collected. - MetricOverrides []string `json:"metricOverrides,omitempty"` - // MetricSource: Required. A standard set of metrics is collected unless - // metricOverrides are specified for the metric source (see Custom metrics - // (https://cloud.google.com/dataproc/docs/guides/dataproc-metrics#custom_metrics) - // for more information). - // - // Possible values: - // "METRIC_SOURCE_UNSPECIFIED" - Required unspecified metric source. - // "MONITORING_AGENT_DEFAULTS" - Monitoring agent metrics. If this source is - // enabled, Dataproc enables the monitoring agent in Compute Engine, and - // collects monitoring agent metrics, which are published with an - // agent.googleapis.com prefix. - // "HDFS" - HDFS metric source. - // "SPARK" - Spark metric source. - // "YARN" - YARN metric source. - // "SPARK_HISTORY_SERVER" - Spark History Server metric source. - // "HIVESERVER2" - Hiveserver2 metric source. - // "HIVEMETASTORE" - hivemetastore metric source - // "FLINK" - flink metric source - MetricSource string `json:"metricSource,omitempty"` - // ForceSendFields is a list of field names (e.g. "MetricOverrides") to +// InstanceSelection: Defines machines types and a rank to which the machines +// types belong. +type InstanceSelection struct { + // MachineTypes: Optional. Full machine-type names, e.g. "n1-standard-16". + MachineTypes []string `json:"machineTypes,omitempty"` + // Rank: Optional. Preference of this instance selection. Lower number means + // higher preference. Dataproc will first try to create a VM based on the + // machine-type with priority rank and fallback to next rank based on + // availability. Machine types and instance selections with the same priority + // have the same preference. + Rank int64 `json:"rank,omitempty"` + // ForceSendFields is a list of field names (e.g. "MachineTypes") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "MetricOverrides") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See + // NullFields is a list of field names (e.g. "MachineTypes") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s Metric) MarshalJSON() ([]byte, error) { - type NoMethod Metric +func (s InstanceSelection) MarshalJSON() ([]byte, error) { + type NoMethod InstanceSelection return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// NamespacedGkeDeploymentTarget: Deprecated. Used only for the deprecated -// beta. A full, namespace-isolated deployment target for an existing GKE -// cluster. -type NamespacedGkeDeploymentTarget struct { - // ClusterNamespace: Optional. A namespace within the GKE cluster to deploy - // into. - ClusterNamespace string `json:"clusterNamespace,omitempty"` - // TargetGkeCluster: Optional. The target GKE cluster to deploy to. Format: - // 'projects/{project}/locations/{location}/clusters/{cluster_id}' - TargetGkeCluster string `json:"targetGkeCluster,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClusterNamespace") to +// InstanceSelectionResult: Defines a mapping from machine types to the number +// of VMs that are created with each machine type. +type InstanceSelectionResult struct { + // MachineType: Output only. Full machine-type names, e.g. "n1-standard-16". + MachineType string `json:"machineType,omitempty"` + // VmCount: Output only. Number of VM provisioned with the machine_type. + VmCount int64 `json:"vmCount,omitempty"` + // ForceSendFields is a list of field names (e.g. "MachineType") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ClusterNamespace") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See + // NullFields is a list of field names (e.g. "MachineType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s NamespacedGkeDeploymentTarget) MarshalJSON() ([]byte, error) { - type NoMethod NamespacedGkeDeploymentTarget +func (s InstanceSelectionResult) MarshalJSON() ([]byte, error) { + type NoMethod InstanceSelectionResult return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// NodeGroup: Dataproc Node Group. The Dataproc NodeGroup resource is not -// related to the Dataproc NodeGroupAffinity resource. -type NodeGroup struct { - // Labels: Optional. Node group labels. Label keys must consist of from 1 to 63 - // characters and conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). - // Label values can be empty. If specified, they must consist of from 1 to 63 - // characters and conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). - // The node group must have no more than 32 labelsn. - Labels map[string]string `json:"labels,omitempty"` - // Name: The Node group resource name (https://aip.dev/122). - Name string `json:"name,omitempty"` - // NodeGroupConfig: Optional. The node group instance group configuration. - NodeGroupConfig *InstanceGroupConfig `json:"nodeGroupConfig,omitempty"` - // Roles: Required. Node group roles. - // - // Possible values: - // "ROLE_UNSPECIFIED" - Required unspecified role. - // "DRIVER" - Job drivers run on the node pool. - Roles []string `json:"roles,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the server. - googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Labels") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See +// InstantiateWorkflowTemplateRequest: A request to instantiate a workflow +// template. +type InstantiateWorkflowTemplateRequest struct { + // Parameters: Optional. Map from parameter names to values that should be used + // for those parameters. Values may not exceed 1000 characters. + Parameters map[string]string `json:"parameters,omitempty"` + // RequestId: Optional. A tag that prevents multiple concurrent workflow + // instances with the same tag from running. This mitigates risk of concurrent + // instances started due to retries.It is recommended to always set this value + // to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The + // tag must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), + // and hyphens (-). The maximum length is 40 characters. + RequestId string `json:"requestId,omitempty"` + // Version: Optional. The version of workflow template to instantiate. If + // specified, the workflow will be instantiated only if the current version of + // the workflow template has the supplied version.This option cannot be used to + // instantiate a previous version of workflow template. + Version int64 `json:"version,omitempty"` + // ForceSendFields is a list of field names (e.g. "Parameters") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Labels") to include in API + // NullFields is a list of field names (e.g. "Parameters") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s NodeGroup) MarshalJSON() ([]byte, error) { - type NoMethod NodeGroup +func (s InstantiateWorkflowTemplateRequest) MarshalJSON() ([]byte, error) { + type NoMethod InstantiateWorkflowTemplateRequest return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// NodeGroupAffinity: Node Group Affinity for clusters using sole-tenant node -// groups. The Dataproc NodeGroupAffinity resource is not related to the -// Dataproc NodeGroup resource. -type NodeGroupAffinity struct { - // NodeGroupUri: Required. The URI of a sole-tenant node group resource - // (https://cloud.google.com/compute/docs/reference/rest/v1/nodeGroups) that - // the cluster will be created on.A full URL, partial URI, or node group name - // are valid. Examples: - // https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]/nodeGroups/node-group-1 - // projects/[project_id]/zones/[zone]/nodeGroups/node-group-1 node-group-1 - NodeGroupUri string `json:"nodeGroupUri,omitempty"` - // ForceSendFields is a list of field names (e.g. "NodeGroupUri") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See +// Interval: Represents a time interval, encoded as a Timestamp start +// (inclusive) and a Timestamp end (exclusive).The start must be less than or +// equal to the end. When the start equals the end, the interval is empty +// (matches no time). When both start and end are unspecified, the interval +// matches any time. +type Interval struct { + // EndTime: Optional. Exclusive end of the interval.If specified, a Timestamp + // matching this interval will have to be before the end. + EndTime string `json:"endTime,omitempty"` + // StartTime: Optional. Inclusive start of the interval.If specified, a + // Timestamp matching this interval will have to be the same or after the + // start. + StartTime string `json:"startTime,omitempty"` + // ForceSendFields is a list of field names (e.g. "EndTime") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "NodeGroupUri") to include in API + // NullFields is a list of field names (e.g. "EndTime") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s NodeGroupAffinity) MarshalJSON() ([]byte, error) { - type NoMethod NodeGroupAffinity +func (s Interval) MarshalJSON() ([]byte, error) { + type NoMethod Interval return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// NodeGroupOperationMetadata: Metadata describing the node group operation. -type NodeGroupOperationMetadata struct { - // ClusterUuid: Output only. Cluster UUID associated with the node group - // operation. - ClusterUuid string `json:"clusterUuid,omitempty"` - // Description: Output only. Short description of operation. - Description string `json:"description,omitempty"` - // Labels: Output only. Labels associated with the operation. +// Job: A Dataproc job resource. +type Job struct { + // Done: Output only. Indicates whether the job is completed. If the value is + // false, the job is still in progress. If true, the job is completed, and + // status.state field will indicate if it was successful, failed, or cancelled. + Done bool `json:"done,omitempty"` + // DriverControlFilesUri: Output only. If present, the location of + // miscellaneous control files which can be used as part of job setup and + // handling. If not present, control files might be placed in the same location + // as driver_output_uri. + DriverControlFilesUri string `json:"driverControlFilesUri,omitempty"` + // DriverOutputResourceUri: Output only. A URI pointing to the location of the + // stdout of the job's driver program. + DriverOutputResourceUri string `json:"driverOutputResourceUri,omitempty"` + // DriverSchedulingConfig: Optional. Driver scheduling configuration. + DriverSchedulingConfig *DriverSchedulingConfig `json:"driverSchedulingConfig,omitempty"` + // FlinkJob: Optional. Job is a Flink job. + FlinkJob *FlinkJob `json:"flinkJob,omitempty"` + // HadoopJob: Optional. Job is a Hadoop job. + HadoopJob *HadoopJob `json:"hadoopJob,omitempty"` + // HiveJob: Optional. Job is a Hive job. + HiveJob *HiveJob `json:"hiveJob,omitempty"` + // JobUuid: Output only. A UUID that uniquely identifies a job within the + // project over time. This is in contrast to a user-settable reference.job_id + // that might be reused over time. + JobUuid string `json:"jobUuid,omitempty"` + // Labels: Optional. The labels to associate with this job. Label keys must + // contain 1 to 63 characters, and must conform to RFC 1035 + // (https://www.ietf.org/rfc/rfc1035.txt). Label values can be empty, but, if + // present, must contain 1 to 63 characters, and must conform to RFC 1035 + // (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be + // associated with a job. Labels map[string]string `json:"labels,omitempty"` - // NodeGroupId: Output only. Node group ID for the operation. - NodeGroupId string `json:"nodeGroupId,omitempty"` - // OperationType: The operation type. - // - // Possible values: - // "NODE_GROUP_OPERATION_TYPE_UNSPECIFIED" - Node group operation type is - // unknown. - // "CREATE" - Create node group operation type. - // "UPDATE" - Update node group operation type. - // "DELETE" - Delete node group operation type. - // "RESIZE" - Resize node group operation type. - // "REPAIR" - Repair node group operation type. - // "UPDATE_LABELS" - Update node group label operation type. - // "START" - Start node group operation type. - // "STOP" - Stop node group operation type. - OperationType string `json:"operationType,omitempty"` - // Status: Output only. Current operation status. - Status *ClusterOperationStatus `json:"status,omitempty"` - // StatusHistory: Output only. The previous operation status. - StatusHistory []*ClusterOperationStatus `json:"statusHistory,omitempty"` - // Warnings: Output only. Errors encountered during operation execution. - Warnings []string `json:"warnings,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClusterUuid") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See + // PigJob: Optional. Job is a Pig job. + PigJob *PigJob `json:"pigJob,omitempty"` + // Placement: Required. Job information, including how, when, and where to run + // the job. + Placement *JobPlacement `json:"placement,omitempty"` + // PrestoJob: Optional. Job is a Presto job. + PrestoJob *PrestoJob `json:"prestoJob,omitempty"` + // PysparkJob: Optional. Job is a PySpark job. + PysparkJob *PySparkJob `json:"pysparkJob,omitempty"` + // Reference: Optional. The fully qualified reference to the job, which can be + // used to obtain the equivalent REST path of the job resource. If this + // property is not specified when a job is created, the server generates a + // job_id. + Reference *JobReference `json:"reference,omitempty"` + // Scheduling: Optional. Job scheduling configuration. + Scheduling *JobScheduling `json:"scheduling,omitempty"` + // SparkJob: Optional. Job is a Spark job. + SparkJob *SparkJob `json:"sparkJob,omitempty"` + // SparkRJob: Optional. Job is a SparkR job. + SparkRJob *SparkRJob `json:"sparkRJob,omitempty"` + // SparkSqlJob: Optional. Job is a SparkSql job. + SparkSqlJob *SparkSqlJob `json:"sparkSqlJob,omitempty"` + // Status: Output only. The job status. Additional application-specific status + // information might be contained in the type_job and yarn_applications fields. + Status *JobStatus `json:"status,omitempty"` + // StatusHistory: Output only. The previous job status. + StatusHistory []*JobStatus `json:"statusHistory,omitempty"` + // TrinoJob: Optional. Job is a Trino job. + TrinoJob *TrinoJob `json:"trinoJob,omitempty"` + // YarnApplications: Output only. The collection of YARN applications spun up + // by this job.Beta Feature: This report is available for testing purposes + // only. It might be changed before final release. + YarnApplications []*YarnApplication `json:"yarnApplications,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Done") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ClusterUuid") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "Done") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s NodeGroupOperationMetadata) MarshalJSON() ([]byte, error) { - type NoMethod NodeGroupOperationMetadata +func (s Job) MarshalJSON() ([]byte, error) { + type NoMethod Job return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// NodeInitializationAction: Specifies an executable to run on a fully -// configured node and a timeout period for executable completion. -type NodeInitializationAction struct { - // ExecutableFile: Required. Cloud Storage URI of executable file. - ExecutableFile string `json:"executableFile,omitempty"` - // ExecutionTimeout: Optional. Amount of time executable has to complete. - // Default is 10 minutes (see JSON representation of Duration - // (https://developers.google.com/protocol-buffers/docs/proto3#json)).Cluster - // creation fails with an explanatory error message (the name of the executable - // that caused the error and the exceeded timeout period) if the executable is - // not completed at end of the timeout period. - ExecutionTimeout string `json:"executionTimeout,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExecutableFile") to +// JobData: Data corresponding to a spark job. +type JobData struct { + CompletionTime string `json:"completionTime,omitempty"` + Description string `json:"description,omitempty"` + JobGroup string `json:"jobGroup,omitempty"` + JobId int64 `json:"jobId,omitempty,string"` + KillTasksSummary map[string]int64 `json:"killTasksSummary,omitempty"` + Name string `json:"name,omitempty"` + NumActiveStages int64 `json:"numActiveStages,omitempty"` + NumActiveTasks int64 `json:"numActiveTasks,omitempty"` + NumCompletedIndices int64 `json:"numCompletedIndices,omitempty"` + NumCompletedStages int64 `json:"numCompletedStages,omitempty"` + NumCompletedTasks int64 `json:"numCompletedTasks,omitempty"` + NumFailedStages int64 `json:"numFailedStages,omitempty"` + NumFailedTasks int64 `json:"numFailedTasks,omitempty"` + NumKilledTasks int64 `json:"numKilledTasks,omitempty"` + NumSkippedStages int64 `json:"numSkippedStages,omitempty"` + NumSkippedTasks int64 `json:"numSkippedTasks,omitempty"` + NumTasks int64 `json:"numTasks,omitempty"` + SkippedStages []int64 `json:"skippedStages,omitempty"` + SqlExecutionId int64 `json:"sqlExecutionId,omitempty,string"` + StageIds googleapi.Int64s `json:"stageIds,omitempty"` + // Possible values: + // "JOB_EXECUTION_STATUS_UNSPECIFIED" + // "JOB_EXECUTION_STATUS_RUNNING" + // "JOB_EXECUTION_STATUS_SUCCEEDED" + // "JOB_EXECUTION_STATUS_FAILED" + // "JOB_EXECUTION_STATUS_UNKNOWN" + Status string `json:"status,omitempty"` + SubmissionTime string `json:"submissionTime,omitempty"` + // ForceSendFields is a list of field names (e.g. "CompletionTime") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ExecutableFile") to include in + // NullFields is a list of field names (e.g. "CompletionTime") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s NodeInitializationAction) MarshalJSON() ([]byte, error) { - type NoMethod NodeInitializationAction +func (s JobData) MarshalJSON() ([]byte, error) { + type NoMethod JobData return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// NodePool: indicating a list of workers of same type -type NodePool struct { - // Id: Required. A unique id of the node pool. Primary and Secondary workers - // can be specified using special reserved ids PRIMARY_WORKER_POOL and - // SECONDARY_WORKER_POOL respectively. Aux node pools can be referenced using - // corresponding pool id. - Id string `json:"id,omitempty"` - // InstanceNames: Name of instances to be repaired. These instances must belong - // to specified node pool. - InstanceNames []string `json:"instanceNames,omitempty"` - // RepairAction: Required. Repair action to take on specified resources of the - // node pool. - // - // Possible values: - // "REPAIR_ACTION_UNSPECIFIED" - No action will be taken by default. - // "DELETE" - delete the specified list of nodes. - RepairAction string `json:"repairAction,omitempty"` - // ForceSendFields is a list of field names (e.g. "Id") to unconditionally +// JobMetadata: Job Operation metadata. +type JobMetadata struct { + // JobId: Output only. The job id. + JobId string `json:"jobId,omitempty"` + // OperationType: Output only. Operation type. + OperationType string `json:"operationType,omitempty"` + // StartTime: Output only. Job submission time. + StartTime string `json:"startTime,omitempty"` + // Status: Output only. Most recent job status. + Status *JobStatus `json:"status,omitempty"` + // ForceSendFields is a list of field names (e.g. "JobId") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Id") to include in API requests - // with the JSON null value. By default, fields with empty values are omitted - // from API requests. See + // NullFields is a list of field names (e.g. "JobId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s NodePool) MarshalJSON() ([]byte, error) { - type NoMethod NodePool +func (s JobMetadata) MarshalJSON() ([]byte, error) { + type NoMethod JobMetadata return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Operation: This resource represents a long-running operation that is the -// result of a network API call. -type Operation struct { - // Done: If the value is false, it means the operation is still in progress. If - // true, the operation is completed, and either error or response is available. - Done bool `json:"done,omitempty"` - // Error: The error result of the operation in case of failure or cancellation. - Error *Status `json:"error,omitempty"` - // Metadata: Service-specific metadata associated with the operation. It - // typically contains progress information and common metadata such as create - // time. Some services might not provide such metadata. Any method that returns - // a long-running operation should document the metadata type, if any. - Metadata googleapi.RawMessage `json:"metadata,omitempty"` - // Name: The server-assigned name, which is only unique within the same service - // that originally returns it. If you use the default HTTP mapping, the name - // should be a resource name ending with operations/{unique_id}. - Name string `json:"name,omitempty"` - // Response: The normal, successful response of the operation. If the original - // method returns no data on success, such as Delete, the response is - // google.protobuf.Empty. If the original method is standard Get/Create/Update, - // the response should be the resource. For other methods, the response should - // have the type XxxResponse, where Xxx is the original method name. For - // example, if the original method name is TakeSnapshot(), the inferred - // response type is TakeSnapshotResponse. - Response googleapi.RawMessage `json:"response,omitempty"` +// JobPlacement: Dataproc job config. +type JobPlacement struct { + // ClusterLabels: Optional. Cluster labels to identify a cluster where the job + // will be submitted. + ClusterLabels map[string]string `json:"clusterLabels,omitempty"` + // ClusterName: Required. The name of the cluster where the job will be + // submitted. + ClusterName string `json:"clusterName,omitempty"` + // ClusterUuid: Output only. A cluster UUID generated by the Dataproc service + // when the job is submitted. + ClusterUuid string `json:"clusterUuid,omitempty"` + // ForceSendFields is a list of field names (e.g. "ClusterLabels") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ClusterLabels") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} - // ServerResponse contains the HTTP response code and headers from the server. - googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Done") to unconditionally +func (s JobPlacement) MarshalJSON() ([]byte, error) { + type NoMethod JobPlacement + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// JobReference: Encapsulates the full scoping used to reference a job. +type JobReference struct { + // JobId: Optional. The job ID, which must be unique within the project.The ID + // must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), or + // hyphens (-). The maximum length is 100 characters.If not specified by the + // caller, the job ID will be provided by the server. + JobId string `json:"jobId,omitempty"` + // ProjectId: Optional. The ID of the Google Cloud Platform project that the + // job belongs to. If specified, must match the request project ID. + ProjectId string `json:"projectId,omitempty"` + // ForceSendFields is a list of field names (e.g. "JobId") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Done") to include in API requests - // with the JSON null value. By default, fields with empty values are omitted - // from API requests. See + // NullFields is a list of field names (e.g. "JobId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s Operation) MarshalJSON() ([]byte, error) { - type NoMethod Operation +func (s JobReference) MarshalJSON() ([]byte, error) { + type NoMethod JobReference return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// OrderedJob: A job executed by the workflow. -type OrderedJob struct { - // FlinkJob: Optional. Job is a Flink job. - FlinkJob *FlinkJob `json:"flinkJob,omitempty"` - // HadoopJob: Optional. Job is a Hadoop job. - HadoopJob *HadoopJob `json:"hadoopJob,omitempty"` - // HiveJob: Optional. Job is a Hive job. - HiveJob *HiveJob `json:"hiveJob,omitempty"` - // Labels: Optional. The labels to associate with this job.Label keys must be - // between 1 and 63 characters long, and must conform to the following regular - // expression: \p{Ll}\p{Lo}{0,62}Label values must be between 1 and 63 - // characters long, and must conform to the following regular expression: - // \p{Ll}\p{Lo}\p{N}_-{0,63}No more than 32 labels can be associated with a - // given job. - Labels map[string]string `json:"labels,omitempty"` - // PigJob: Optional. Job is a Pig job. - PigJob *PigJob `json:"pigJob,omitempty"` - // PrerequisiteStepIds: Optional. The optional list of prerequisite job - // step_ids. If not specified, the job will start at the beginning of workflow. - PrerequisiteStepIds []string `json:"prerequisiteStepIds,omitempty"` - // PrestoJob: Optional. Job is a Presto job. - PrestoJob *PrestoJob `json:"prestoJob,omitempty"` - // PysparkJob: Optional. Job is a PySpark job. - PysparkJob *PySparkJob `json:"pysparkJob,omitempty"` - // Scheduling: Optional. Job scheduling configuration. - Scheduling *JobScheduling `json:"scheduling,omitempty"` - // SparkJob: Optional. Job is a Spark job. - SparkJob *SparkJob `json:"sparkJob,omitempty"` - // SparkRJob: Optional. Job is a SparkR job. - SparkRJob *SparkRJob `json:"sparkRJob,omitempty"` - // SparkSqlJob: Optional. Job is a SparkSql job. - SparkSqlJob *SparkSqlJob `json:"sparkSqlJob,omitempty"` - // StepId: Required. The step id. The id must be unique among all jobs within - // the template.The step id is used as prefix for job id, as job - // goog-dataproc-workflow-step-id label, and in prerequisiteStepIds field from - // other steps.The id must contain only letters (a-z, A-Z), numbers (0-9), - // underscores (_), and hyphens (-). Cannot begin or end with underscore or - // hyphen. Must consist of between 3 and 50 characters. - StepId string `json:"stepId,omitempty"` - // TrinoJob: Optional. Job is a Trino job. - TrinoJob *TrinoJob `json:"trinoJob,omitempty"` - // ForceSendFields is a list of field names (e.g. "FlinkJob") to +// JobScheduling: Job scheduling options. +type JobScheduling struct { + // MaxFailuresPerHour: Optional. Maximum number of times per hour a driver can + // be restarted as a result of driver exiting with non-zero code before job is + // reported failed.A job might be reported as thrashing if the driver exits + // with a non-zero code four times within a 10-minute window.Maximum value is + // 10.Note: This restartable job option is not supported in Dataproc workflow + // templates + // (https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template). + MaxFailuresPerHour int64 `json:"maxFailuresPerHour,omitempty"` + // MaxFailuresTotal: Optional. Maximum total number of times a driver can be + // restarted as a result of the driver exiting with a non-zero code. After the + // maximum number is reached, the job will be reported as failed.Maximum value + // is 240.Note: Currently, this restartable job option is not supported in + // Dataproc workflow templates + // (https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template). + MaxFailuresTotal int64 `json:"maxFailuresTotal,omitempty"` + // ForceSendFields is a list of field names (e.g. "MaxFailuresPerHour") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "FlinkJob") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "MaxFailuresPerHour") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s OrderedJob) MarshalJSON() ([]byte, error) { - type NoMethod OrderedJob +func (s JobScheduling) MarshalJSON() ([]byte, error) { + type NoMethod JobScheduling return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ParameterValidation: Configuration for parameter validation. -type ParameterValidation struct { - // Regex: Validation based on regular expressions. - Regex *RegexValidation `json:"regex,omitempty"` - // Values: Validation based on a list of allowed values. - Values *ValueValidation `json:"values,omitempty"` - // ForceSendFields is a list of field names (e.g. "Regex") to unconditionally +// JobStatus: Dataproc job status. +type JobStatus struct { + // Details: Optional. Output only. Job state details, such as an error + // description if the state is ERROR. + Details string `json:"details,omitempty"` + // State: Output only. A state message specifying the overall job state. + // + // Possible values: + // "STATE_UNSPECIFIED" - The job state is unknown. + // "PENDING" - The job is pending; it has been submitted, but is not yet + // running. + // "SETUP_DONE" - Job has been received by the service and completed initial + // setup; it will soon be submitted to the cluster. + // "RUNNING" - The job is running on the cluster. + // "CANCEL_PENDING" - A CancelJob request has been received, but is pending. + // "CANCEL_STARTED" - Transient in-flight resources have been canceled, and + // the request to cancel the running job has been issued to the cluster. + // "CANCELLED" - The job cancellation was successful. + // "DONE" - The job has completed successfully. + // "ERROR" - The job has completed, but encountered an error. + // "ATTEMPT_FAILURE" - Job attempt has failed. The detail field contains + // failure details for this attempt.Applies to restartable jobs only. + State string `json:"state,omitempty"` + // StateStartTime: Output only. The time when this state was entered. + StateStartTime string `json:"stateStartTime,omitempty"` + // Substate: Output only. Additional state information, which includes status + // reported by the agent. + // + // Possible values: + // "UNSPECIFIED" - The job substate is unknown. + // "SUBMITTED" - The Job is submitted to the agent.Applies to RUNNING state. + // "QUEUED" - The Job has been received and is awaiting execution (it might + // be waiting for a condition to be met). See the "details" field for the + // reason for the delay.Applies to RUNNING state. + // "STALE_STATUS" - The agent-reported status is out of date, which can be + // caused by a loss of communication between the agent and Dataproc. If the + // agent does not send a timely update, the job will fail.Applies to RUNNING + // state. + Substate string `json:"substate,omitempty"` + // ForceSendFields is a list of field names (e.g. "Details") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Regex") to include in API + // NullFields is a list of field names (e.g. "Details") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s ParameterValidation) MarshalJSON() ([]byte, error) { - type NoMethod ParameterValidation +func (s JobStatus) MarshalJSON() ([]byte, error) { + type NoMethod JobStatus return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PeripheralsConfig: Auxiliary services configuration for a workload. -type PeripheralsConfig struct { - // MetastoreService: Optional. Resource name of an existing Dataproc Metastore - // service.Example: - // projects/[project_id]/locations/[region]/services/[service_id] - MetastoreService string `json:"metastoreService,omitempty"` - // SparkHistoryServerConfig: Optional. The Spark History Server configuration - // for the workload. - SparkHistoryServerConfig *SparkHistoryServerConfig `json:"sparkHistoryServerConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. "MetastoreService") to +// JobsSummary: Data related to Jobs page summary +type JobsSummary struct { + // ActiveJobs: Number of active jobs + ActiveJobs int64 `json:"activeJobs,omitempty"` + // ApplicationId: Spark Application Id + ApplicationId string `json:"applicationId,omitempty"` + // Attempts: Attempts info + Attempts []*ApplicationAttemptInfo `json:"attempts,omitempty"` + // CompletedJobs: Number of completed jobs + CompletedJobs int64 `json:"completedJobs,omitempty"` + // FailedJobs: Number of failed jobs + FailedJobs int64 `json:"failedJobs,omitempty"` + // SchedulingMode: Spark Scheduling mode + SchedulingMode string `json:"schedulingMode,omitempty"` + // ForceSendFields is a list of field names (e.g. "ActiveJobs") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "MetastoreService") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See + // NullFields is a list of field names (e.g. "ActiveJobs") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s PeripheralsConfig) MarshalJSON() ([]byte, error) { - type NoMethod PeripheralsConfig +func (s JobsSummary) MarshalJSON() ([]byte, error) { + type NoMethod JobsSummary return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PigJob: A Dataproc job for running Apache Pig (https://pig.apache.org/) -// queries on YARN. -type PigJob struct { - // ContinueOnFailure: Optional. Whether to continue executing queries if a - // query fails. The default value is false. Setting to true can be useful when - // executing independent parallel queries. - ContinueOnFailure bool `json:"continueOnFailure,omitempty"` - // JarFileUris: Optional. HCFS URIs of jar files to add to the CLASSPATH of the - // Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs. - JarFileUris []string `json:"jarFileUris,omitempty"` - // LoggingConfig: Optional. The runtime log config for job execution. - LoggingConfig *LoggingConfig `json:"loggingConfig,omitempty"` - // Properties: Optional. A mapping of property names to values, used to - // configure Pig. Properties that conflict with values set by the Dataproc API - // might be overwritten. Can include properties set in - // /etc/hadoop/conf/*-site.xml, /etc/pig/conf/pig.properties, and classes in - // user code. - Properties map[string]string `json:"properties,omitempty"` - // QueryFileUri: The HCFS URI of the script that contains the Pig queries. - QueryFileUri string `json:"queryFileUri,omitempty"` - // QueryList: A list of queries. - QueryList *QueryList `json:"queryList,omitempty"` - // ScriptVariables: Optional. Mapping of query variable names to values - // (equivalent to the Pig command: name=[value]). - ScriptVariables map[string]string `json:"scriptVariables,omitempty"` - // ForceSendFields is a list of field names (e.g. "ContinueOnFailure") to +// JupyterConfig: Jupyter configuration for an interactive session. +type JupyterConfig struct { + // DisplayName: Optional. Display name, shown in the Jupyter kernelspec card. + DisplayName string `json:"displayName,omitempty"` + // Kernel: Optional. Kernel + // + // Possible values: + // "KERNEL_UNSPECIFIED" - The kernel is unknown. + // "PYTHON" - Python kernel. + // "SCALA" - Scala kernel. + Kernel string `json:"kernel,omitempty"` + // ForceSendFields is a list of field names (e.g. "DisplayName") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ContinueOnFailure") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See + // NullFields is a list of field names (e.g. "DisplayName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s PigJob) MarshalJSON() ([]byte, error) { - type NoMethod PigJob +func (s JupyterConfig) MarshalJSON() ([]byte, error) { + type NoMethod JupyterConfig return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Policy: An Identity and Access Management (IAM) policy, which specifies -// access controls for Google Cloud resources.A Policy is a collection of -// bindings. A binding binds one or more members, or principals, to a single -// role. Principals can be user accounts, service accounts, Google groups, and -// domains (such as G Suite). A role is a named list of permissions; each role -// can be an IAM predefined role or a user-created custom role.For some types -// of Google Cloud resources, a binding can also specify a condition, which is -// a logical expression that allows access to a resource only if the expression -// evaluates to true. A condition can add constraints based on attributes of -// the request, the resource, or both. To learn which resources support -// conditions in their IAM policies, see the IAM documentation -// (https://cloud.google.com/iam/help/conditions/resource-policies).JSON -// example: { "bindings": [ { "role": -// "roles/resourcemanager.organizationAdmin", "members": [ -// "user:mike@example.com", "group:admins@example.com", "domain:google.com", -// "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": -// "roles/resourcemanager.organizationViewer", "members": [ -// "user:eve@example.com" ], "condition": { "title": "expirable access", -// "description": "Does not grant access after Sep 2020", "expression": -// "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": -// "BwWWja0YfJA=", "version": 3 } YAML example: bindings: - members: - -// user:mike@example.com - group:admins@example.com - domain:google.com - -// serviceAccount:my-project-id@appspot.gserviceaccount.com role: -// roles/resourcemanager.organizationAdmin - members: - user:eve@example.com -// role: roles/resourcemanager.organizationViewer condition: title: expirable -// access description: Does not grant access after Sep 2020 expression: -// request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= -// version: 3 For a description of IAM and its features, see the IAM -// documentation (https://cloud.google.com/iam/docs/). -type Policy struct { - // Bindings: Associates a list of members, or principals, with a role. - // Optionally, may specify a condition that determines how and when the - // bindings are applied. Each of the bindings must contain at least one - // principal.The bindings in a Policy can refer to up to 1,500 principals; up - // to 250 of these principals can be Google groups. Each occurrence of a - // principal counts towards these limits. For example, if the bindings grant 50 - // different roles to user:alice@example.com, and not to any other principal, - // then you can add another 1,450 principals to the bindings in the Policy. - Bindings []*Binding `json:"bindings,omitempty"` - // Etag: etag is used for optimistic concurrency control as a way to help - // prevent simultaneous updates of a policy from overwriting each other. It is - // strongly suggested that systems make use of the etag in the - // read-modify-write cycle to perform policy updates in order to avoid race - // conditions: An etag is returned in the response to getIamPolicy, and systems - // are expected to put that etag in the request to setIamPolicy to ensure that - // their change will be applied to the same version of the policy.Important: If - // you use IAM Conditions, you must include the etag field whenever you call - // setIamPolicy. If you omit this field, then IAM allows you to overwrite a - // version 3 policy with a version 1 policy, and all of the conditions in the - // version 3 policy are lost. - Etag string `json:"etag,omitempty"` - // Version: Specifies the format of the policy.Valid values are 0, 1, and 3. - // Requests that specify an invalid value are rejected.Any operation that - // affects conditional role bindings must specify version 3. This requirement - // applies to the following operations: Getting a policy that includes a - // conditional role binding Adding a conditional role binding to a policy - // Changing a conditional role binding in a policy Removing any role binding, - // with or without a condition, from a policy that includes - // conditionsImportant: If you use IAM Conditions, you must include the etag - // field whenever you call setIamPolicy. If you omit this field, then IAM - // allows you to overwrite a version 3 policy with a version 1 policy, and all - // of the conditions in the version 3 policy are lost.If a policy does not - // include any conditions, operations on that policy may specify any valid - // version or leave the field unset.To learn which resources support conditions - // in their IAM policies, see the IAM documentation - // (https://cloud.google.com/iam/help/conditions/resource-policies). - Version int64 `json:"version,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the server. - googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Bindings") to - // unconditionally include in API requests. By default, fields with empty or +// KerberosConfig: Specifies Kerberos related configuration. +type KerberosConfig struct { + // CrossRealmTrustAdminServer: Optional. The admin server (IP or hostname) for + // the remote trusted realm in a cross realm trust relationship. + CrossRealmTrustAdminServer string `json:"crossRealmTrustAdminServer,omitempty"` + // CrossRealmTrustKdc: Optional. The KDC (IP or hostname) for the remote + // trusted realm in a cross realm trust relationship. + CrossRealmTrustKdc string `json:"crossRealmTrustKdc,omitempty"` + // CrossRealmTrustRealm: Optional. The remote realm the Dataproc on-cluster KDC + // will trust, should the user enable cross realm trust. + CrossRealmTrustRealm string `json:"crossRealmTrustRealm,omitempty"` + // CrossRealmTrustSharedPasswordUri: Optional. The Cloud Storage URI of a KMS + // encrypted file containing the shared password between the on-cluster + // Kerberos realm and the remote trusted realm, in a cross realm trust + // relationship. + CrossRealmTrustSharedPasswordUri string `json:"crossRealmTrustSharedPasswordUri,omitempty"` + // EnableKerberos: Optional. Flag to indicate whether to Kerberize the cluster + // (default: false). Set this field to true to enable Kerberos on a cluster. + EnableKerberos bool `json:"enableKerberos,omitempty"` + // KdcDbKeyUri: Optional. The Cloud Storage URI of a KMS encrypted file + // containing the master key of the KDC database. + KdcDbKeyUri string `json:"kdcDbKeyUri,omitempty"` + // KeyPasswordUri: Optional. The Cloud Storage URI of a KMS encrypted file + // containing the password to the user provided key. For the self-signed + // certificate, this password is generated by Dataproc. + KeyPasswordUri string `json:"keyPasswordUri,omitempty"` + // KeystorePasswordUri: Optional. The Cloud Storage URI of a KMS encrypted file + // containing the password to the user provided keystore. For the self-signed + // certificate, this password is generated by Dataproc. + KeystorePasswordUri string `json:"keystorePasswordUri,omitempty"` + // KeystoreUri: Optional. The Cloud Storage URI of the keystore file used for + // SSL encryption. If not provided, Dataproc will provide a self-signed + // certificate. + KeystoreUri string `json:"keystoreUri,omitempty"` + // KmsKeyUri: Optional. The URI of the KMS key used to encrypt sensitive files. + KmsKeyUri string `json:"kmsKeyUri,omitempty"` + // Realm: Optional. The name of the on-cluster Kerberos realm. If not + // specified, the uppercased domain of hostnames will be the realm. + Realm string `json:"realm,omitempty"` + // RootPrincipalPasswordUri: Optional. The Cloud Storage URI of a KMS encrypted + // file containing the root principal password. + RootPrincipalPasswordUri string `json:"rootPrincipalPasswordUri,omitempty"` + // TgtLifetimeHours: Optional. The lifetime of the ticket granting ticket, in + // hours. If not specified, or user specifies 0, then default value 10 will be + // used. + TgtLifetimeHours int64 `json:"tgtLifetimeHours,omitempty"` + // TruststorePasswordUri: Optional. The Cloud Storage URI of a KMS encrypted + // file containing the password to the user provided truststore. For the + // self-signed certificate, this password is generated by Dataproc. + TruststorePasswordUri string `json:"truststorePasswordUri,omitempty"` + // TruststoreUri: Optional. The Cloud Storage URI of the truststore file used + // for SSL encryption. If not provided, Dataproc will provide a self-signed + // certificate. + TruststoreUri string `json:"truststoreUri,omitempty"` + // ForceSendFields is a list of field names (e.g. "CrossRealmTrustAdminServer") + // to unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Bindings") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "CrossRealmTrustAdminServer") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s Policy) MarshalJSON() ([]byte, error) { - type NoMethod Policy +func (s KerberosConfig) MarshalJSON() ([]byte, error) { + type NoMethod KerberosConfig return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PrestoJob: A Dataproc job for running Presto (https://prestosql.io/) -// queries. IMPORTANT: The Dataproc Presto Optional Component -// (https://cloud.google.com/dataproc/docs/concepts/components/presto) must be -// enabled when the cluster is created to submit a Presto job to the cluster. -type PrestoJob struct { - // ClientTags: Optional. Presto client tags to attach to this query - ClientTags []string `json:"clientTags,omitempty"` - // ContinueOnFailure: Optional. Whether to continue executing queries if a - // query fails. The default value is false. Setting to true can be useful when - // executing independent parallel queries. - ContinueOnFailure bool `json:"continueOnFailure,omitempty"` - // LoggingConfig: Optional. The runtime log config for job execution. - LoggingConfig *LoggingConfig `json:"loggingConfig,omitempty"` - // OutputFormat: Optional. The format in which query output will be displayed. - // See the Presto documentation for supported output formats - OutputFormat string `json:"outputFormat,omitempty"` - // Properties: Optional. A mapping of property names to values. Used to set - // Presto session properties - // (https://prestodb.io/docs/current/sql/set-session.html) Equivalent to using - // the --session flag in the Presto CLI - Properties map[string]string `json:"properties,omitempty"` - // QueryFileUri: The HCFS URI of the script that contains SQL queries. - QueryFileUri string `json:"queryFileUri,omitempty"` - // QueryList: A list of queries. - QueryList *QueryList `json:"queryList,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClientTags") to +// KubernetesClusterConfig: The configuration for running the Dataproc cluster +// on Kubernetes. +type KubernetesClusterConfig struct { + // GkeClusterConfig: Required. The configuration for running the Dataproc + // cluster on GKE. + GkeClusterConfig *GkeClusterConfig `json:"gkeClusterConfig,omitempty"` + // KubernetesNamespace: Optional. A namespace within the Kubernetes cluster to + // deploy into. If this namespace does not exist, it is created. If it exists, + // Dataproc verifies that another Dataproc VirtualCluster is not installed into + // it. If not specified, the name of the Dataproc Cluster is used. + KubernetesNamespace string `json:"kubernetesNamespace,omitempty"` + // KubernetesSoftwareConfig: Optional. The software configuration for this + // Dataproc cluster running on Kubernetes. + KubernetesSoftwareConfig *KubernetesSoftwareConfig `json:"kubernetesSoftwareConfig,omitempty"` + // ForceSendFields is a list of field names (e.g. "GkeClusterConfig") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ClientTags") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "GkeClusterConfig") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s PrestoJob) MarshalJSON() ([]byte, error) { - type NoMethod PrestoJob +func (s KubernetesClusterConfig) MarshalJSON() ([]byte, error) { + type NoMethod KubernetesClusterConfig return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PyPiRepositoryConfig: Configuration for PyPi repository -type PyPiRepositoryConfig struct { - // PypiRepository: Optional. PyPi repository address - PypiRepository string `json:"pypiRepository,omitempty"` - // ForceSendFields is a list of field names (e.g. "PypiRepository") to +// KubernetesSoftwareConfig: The software configuration for this Dataproc +// cluster running on Kubernetes. +type KubernetesSoftwareConfig struct { + // ComponentVersion: The components that should be installed in this Dataproc + // cluster. The key must be a string from the KubernetesComponent enumeration. + // The value is the version of the software to be installed. At least one entry + // must be specified. + ComponentVersion map[string]string `json:"componentVersion,omitempty"` + // Properties: The properties to set on daemon config files.Property keys are + // specified in prefix:property format, for example + // spark:spark.kubernetes.container.image. The following are supported prefixes + // and their mappings: spark: spark-defaults.confFor more information, see + // Cluster properties + // (https://cloud.google.com/dataproc/docs/concepts/cluster-properties). + Properties map[string]string `json:"properties,omitempty"` + // ForceSendFields is a list of field names (e.g. "ComponentVersion") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "PypiRepository") to include in + // NullFields is a list of field names (e.g. "ComponentVersion") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s PyPiRepositoryConfig) MarshalJSON() ([]byte, error) { - type NoMethod PyPiRepositoryConfig +func (s KubernetesSoftwareConfig) MarshalJSON() ([]byte, error) { + type NoMethod KubernetesSoftwareConfig return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PySparkBatch: A configuration for running an Apache PySpark -// (https://spark.apache.org/docs/latest/api/python/getting_started/quickstart.html) -// batch workload. -type PySparkBatch struct { - // ArchiveUris: Optional. HCFS URIs of archives to be extracted into the - // working directory of each executor. Supported file types: .jar, .tar, - // .tar.gz, .tgz, and .zip. - ArchiveUris []string `json:"archiveUris,omitempty"` - // Args: Optional. The arguments to pass to the driver. Do not include - // arguments that can be set as batch properties, such as --conf, since a - // collision can occur that causes an incorrect batch submission. - Args []string `json:"args,omitempty"` - // FileUris: Optional. HCFS URIs of files to be placed in the working directory - // of each executor. - FileUris []string `json:"fileUris,omitempty"` - // JarFileUris: Optional. HCFS URIs of jar files to add to the classpath of the - // Spark driver and tasks. - JarFileUris []string `json:"jarFileUris,omitempty"` - // MainPythonFileUri: Required. The HCFS URI of the main Python file to use as - // the Spark driver. Must be a .py file. - MainPythonFileUri string `json:"mainPythonFileUri,omitempty"` - // PythonFileUris: Optional. HCFS file URIs of Python files to pass to the - // PySpark framework. Supported file types: .py, .egg, and .zip. - PythonFileUris []string `json:"pythonFileUris,omitempty"` - // ForceSendFields is a list of field names (e.g. "ArchiveUris") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ArchiveUris") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s PySparkBatch) MarshalJSON() ([]byte, error) { - type NoMethod PySparkBatch - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// PySparkJob: A Dataproc job for running Apache PySpark -// (https://spark.apache.org/docs/0.9.0/python-programming-guide.html) -// applications on YARN. -type PySparkJob struct { - // ArchiveUris: Optional. HCFS URIs of archives to be extracted into the - // working directory of each executor. Supported file types: .jar, .tar, - // .tar.gz, .tgz, and .zip. - ArchiveUris []string `json:"archiveUris,omitempty"` - // Args: Optional. The arguments to pass to the driver. Do not include - // arguments, such as --conf, that can be set as job properties, since a - // collision may occur that causes an incorrect job submission. - Args []string `json:"args,omitempty"` - // FileUris: Optional. HCFS URIs of files to be placed in the working directory - // of each executor. Useful for naively parallel tasks. - FileUris []string `json:"fileUris,omitempty"` - // JarFileUris: Optional. HCFS URIs of jar files to add to the CLASSPATHs of - // the Python driver and tasks. - JarFileUris []string `json:"jarFileUris,omitempty"` - // LoggingConfig: Optional. The runtime log config for job execution. - LoggingConfig *LoggingConfig `json:"loggingConfig,omitempty"` - // MainPythonFileUri: Required. The HCFS URI of the main Python file to use as - // the driver. Must be a .py file. - MainPythonFileUri string `json:"mainPythonFileUri,omitempty"` - // Properties: Optional. A mapping of property names to values, used to - // configure PySpark. Properties that conflict with values set by the Dataproc - // API might be overwritten. Can include properties set in - // /etc/spark/conf/spark-defaults.conf and classes in user code. - Properties map[string]string `json:"properties,omitempty"` - // PythonFileUris: Optional. HCFS file URIs of Python files to pass to the - // PySpark framework. Supported file types: .py, .egg, and .zip. - PythonFileUris []string `json:"pythonFileUris,omitempty"` - // ForceSendFields is a list of field names (e.g. "ArchiveUris") to +// LifecycleConfig: Specifies the cluster auto-delete schedule configuration. +type LifecycleConfig struct { + // AutoDeleteTime: Optional. The time when cluster will be auto-deleted (see + // JSON representation of Timestamp + // (https://developers.google.com/protocol-buffers/docs/proto3#json)). + AutoDeleteTime string `json:"autoDeleteTime,omitempty"` + // AutoDeleteTtl: Optional. The lifetime duration of cluster. The cluster will + // be auto-deleted at the end of this period. Minimum value is 10 minutes; + // maximum value is 14 days (see JSON representation of Duration + // (https://developers.google.com/protocol-buffers/docs/proto3#json)). + AutoDeleteTtl string `json:"autoDeleteTtl,omitempty"` + // IdleDeleteTtl: Optional. The duration to keep the cluster alive while idling + // (when no jobs are running). Passing this threshold will cause the cluster to + // be deleted. Minimum value is 5 minutes; maximum value is 14 days (see JSON + // representation of Duration + // (https://developers.google.com/protocol-buffers/docs/proto3#json)). + IdleDeleteTtl string `json:"idleDeleteTtl,omitempty"` + // IdleStartTime: Output only. The time when cluster became idle (most recent + // job finished) and became eligible for deletion due to idleness (see JSON + // representation of Timestamp + // (https://developers.google.com/protocol-buffers/docs/proto3#json)). + IdleStartTime string `json:"idleStartTime,omitempty"` + // ForceSendFields is a list of field names (e.g. "AutoDeleteTime") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ArchiveUris") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "AutoDeleteTime") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s PySparkJob) MarshalJSON() ([]byte, error) { - type NoMethod PySparkJob +func (s LifecycleConfig) MarshalJSON() ([]byte, error) { + type NoMethod LifecycleConfig return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// QueryList: A list of queries to run on a cluster. -type QueryList struct { - // Queries: Required. The queries to execute. You do not need to end a query - // expression with a semicolon. Multiple queries can be specified in one string - // by separating each with a semicolon. Here is an example of a Dataproc API - // snippet that uses a QueryList to specify a HiveJob: "hiveJob": { - // "queryList": { "queries": [ "query1", "query2", "query3;query4", ] } } - Queries []string `json:"queries,omitempty"` - // ForceSendFields is a list of field names (e.g. "Queries") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See +// ListAutoscalingPoliciesResponse: A response to a request to list autoscaling +// policies in a project. +type ListAutoscalingPoliciesResponse struct { + // NextPageToken: Output only. This token is included in the response if there + // are more results to fetch. + NextPageToken string `json:"nextPageToken,omitempty"` + // Policies: Output only. Autoscaling policies list. + Policies []*AutoscalingPolicy `json:"policies,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. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Queries") to include in API + // 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. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s QueryList) MarshalJSON() ([]byte, error) { - type NoMethod QueryList +func (s ListAutoscalingPoliciesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListAutoscalingPoliciesResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RegexValidation: Validation based on regular expressions. -type RegexValidation struct { - // Regexes: Required. RE2 regular expressions used to validate the parameter's - // value. The value must match the regex in its entirety (substring matches are - // not sufficient). - Regexes []string `json:"regexes,omitempty"` - // ForceSendFields is a list of field names (e.g. "Regexes") to unconditionally +// ListBatchesResponse: A list of batch workloads. +type ListBatchesResponse struct { + // Batches: Output only. The batches from the specified collection. + Batches []*Batch `json:"batches,omitempty"` + // NextPageToken: A token, which can be sent as page_token to retrieve the next + // page. If this field is omitted, there are no subsequent pages. + NextPageToken string `json:"nextPageToken,omitempty"` + // Unreachable: Output only. List of Batches that could not be included in the + // response. Attempting to get one of these resources may indicate why it was + // not included in the list response. + Unreachable []string `json:"unreachable,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Batches") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Regexes") to include in API + // NullFields is a list of field names (e.g. "Batches") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s RegexValidation) MarshalJSON() ([]byte, error) { - type NoMethod RegexValidation +func (s ListBatchesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListBatchesResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RepairClusterRequest: A request to repair a cluster. -type RepairClusterRequest struct { - // ClusterUuid: Optional. Specifying the cluster_uuid means the RPC will fail - // (with error NOT_FOUND) if a cluster with the specified UUID does not exist. - ClusterUuid string `json:"clusterUuid,omitempty"` - // GracefulDecommissionTimeout: Optional. Timeout for graceful YARN - // decommissioning. Graceful decommissioning facilitates the removal of cluster - // nodes without interrupting jobs in progress. The timeout specifies the - // amount of time to wait for jobs finish before forcefully removing nodes. The - // default timeout is 0 for forceful decommissioning, and the maximum timeout - // period is 1 day. (see JSON Mapping—Duration - // (https://developers.google.com/protocol-buffers/docs/proto3#json)).graceful_decommission_timeout - // is supported in Dataproc image versions 1.2+. - GracefulDecommissionTimeout string `json:"gracefulDecommissionTimeout,omitempty"` - // NodePools: Optional. Node pools and corresponding repair action to be taken. - // All node pools should be unique in this request. i.e. Multiple entries for - // the same node pool id are not allowed. - NodePools []*NodePool `json:"nodePools,omitempty"` - // ParentOperationId: Optional. operation id of the parent operation sending - // the repair request - ParentOperationId string `json:"parentOperationId,omitempty"` - // RequestId: Optional. A unique ID used to identify the request. If the server - // receives two RepairClusterRequests with the same ID, the second request is - // ignored, and the first google.longrunning.Operation created and stored in - // the backend is returned.Recommendation: Set this value to a UUID - // (https://en.wikipedia.org/wiki/Universally_unique_identifier).The ID must - // contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens - // (-). The maximum length is 40 characters. - RequestId string `json:"requestId,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClusterUuid") to +// ListClustersResponse: The list of all clusters in a project. +type ListClustersResponse struct { + // Clusters: Output only. The clusters in the project. + Clusters []*Cluster `json:"clusters,omitempty"` + // NextPageToken: Output only. This token is included in the response if there + // are more results to fetch. To fetch additional results, provide this value + // as the page_token in a subsequent ListClustersRequest. + 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. "Clusters") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ClusterUuid") to include in API + // NullFields is a list of field names (e.g. "Clusters") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s RepairClusterRequest) MarshalJSON() ([]byte, error) { - type NoMethod RepairClusterRequest +func (s ListClustersResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListClustersResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -type RepairNodeGroupRequest struct { - // InstanceNames: Required. Name of instances to be repaired. These instances - // must belong to specified node pool. - InstanceNames []string `json:"instanceNames,omitempty"` - // RepairAction: Required. Repair action to take on specified resources of the - // node pool. - // - // Possible values: - // "REPAIR_ACTION_UNSPECIFIED" - No action will be taken by default. - // "REPLACE" - replace the specified list of nodes. - RepairAction string `json:"repairAction,omitempty"` - // RequestId: Optional. A unique ID used to identify the request. If the server - // receives two RepairNodeGroupRequest with the same ID, the second request is - // ignored and the first google.longrunning.Operation created and stored in the - // backend is returned.Recommendation: Set this value to a UUID - // (https://en.wikipedia.org/wiki/Universally_unique_identifier).The ID must - // contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens - // (-). The maximum length is 40 characters. - RequestId string `json:"requestId,omitempty"` - // ForceSendFields is a list of field names (e.g. "InstanceNames") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See +// ListJobsResponse: A list of jobs in a project. +type ListJobsResponse struct { + // Jobs: Output only. Jobs list. + Jobs []*Job `json:"jobs,omitempty"` + // NextPageToken: Optional. This token is included in the response if there are + // more results to fetch. To fetch additional results, provide this value as + // the page_token in a subsequent ListJobsRequest. + NextPageToken string `json:"nextPageToken,omitempty"` + // Unreachable: Output only. List of jobs with kms_key-encrypted parameters + // that could not be decrypted. A response to a jobs.get request may indicate + // the reason for the decryption failure for a specific job. + Unreachable []string `json:"unreachable,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Jobs") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "InstanceNames") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "Jobs") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s RepairNodeGroupRequest) MarshalJSON() ([]byte, error) { - type NoMethod RepairNodeGroupRequest +func (s ListJobsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListJobsResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RepositoryConfig: Configuration for dependency repositories -type RepositoryConfig struct { - // PypiRepositoryConfig: Optional. Configuration for PyPi repository. - PypiRepositoryConfig *PyPiRepositoryConfig `json:"pypiRepositoryConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. "PypiRepositoryConfig") to +// ListOperationsResponse: The response message for Operations.ListOperations. +type ListOperationsResponse struct { + // NextPageToken: The standard List next-page token. + NextPageToken string `json:"nextPageToken,omitempty"` + // Operations: A list of operations that matches the specified filter in the + // request. + Operations []*Operation `json:"operations,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "NextPageToken") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "PypiRepositoryConfig") to include - // in API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. See + // 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. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s RepositoryConfig) MarshalJSON() ([]byte, error) { - type NoMethod RepositoryConfig - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +func (s ListOperationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListOperationsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ReservationAffinity: Reservation Affinity for consuming Zonal reservation. -type ReservationAffinity struct { - // ConsumeReservationType: Optional. Type of reservation to consume - // - // Possible values: - // "TYPE_UNSPECIFIED" - // "NO_RESERVATION" - Do not consume from any allocated capacity. - // "ANY_RESERVATION" - Consume any reservation available. - // "SPECIFIC_RESERVATION" - Must consume from a specific reservation. Must - // specify key value fields for specifying the reservations. - ConsumeReservationType string `json:"consumeReservationType,omitempty"` - // Key: Optional. Corresponds to the label key of reservation resource. - Key string `json:"key,omitempty"` - // Values: Optional. Corresponds to the label values of reservation resource. - Values []string `json:"values,omitempty"` - // ForceSendFields is a list of field names (e.g. "ConsumeReservationType") to +// ListSessionTemplatesResponse: A list of session templates. +type ListSessionTemplatesResponse 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"` + // SessionTemplates: Output only. Session template list + SessionTemplates []*SessionTemplate `json:"sessionTemplates,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. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ConsumeReservationType") to - // include in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. See + // 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. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s ReservationAffinity) MarshalJSON() ([]byte, error) { - type NoMethod ReservationAffinity +func (s ListSessionTemplatesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListSessionTemplatesResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ResizeNodeGroupRequest: A request to resize a node group. -type ResizeNodeGroupRequest struct { - // GracefulDecommissionTimeout: Optional. Timeout for graceful YARN - // decommissioning. Graceful decommissioning - // (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/scaling-clusters#graceful_decommissioning) - // allows the removal of nodes from the Compute Engine node group without - // interrupting jobs in progress. This timeout specifies how long to wait for - // jobs in progress to finish before forcefully removing nodes (and potentially - // interrupting jobs). Default timeout is 0 (for forceful decommission), and - // the maximum allowed timeout is 1 day. (see JSON representation of Duration - // (https://developers.google.com/protocol-buffers/docs/proto3#json)).Only - // supported on Dataproc image versions 1.2 and higher. - GracefulDecommissionTimeout string `json:"gracefulDecommissionTimeout,omitempty"` - // ParentOperationId: Optional. operation id of the parent operation sending - // the resize request - ParentOperationId string `json:"parentOperationId,omitempty"` - // RequestId: Optional. A unique ID used to identify the request. If the server - // receives two ResizeNodeGroupRequest - // (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.ResizeNodeGroupRequests) - // with the same ID, the second request is ignored and the first - // google.longrunning.Operation created and stored in the backend is - // returned.Recommendation: Set this value to a UUID - // (https://en.wikipedia.org/wiki/Universally_unique_identifier).The ID must - // contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens - // (-). The maximum length is 40 characters. - RequestId string `json:"requestId,omitempty"` - // Size: Required. The number of running instances for the node group to - // maintain. The group adds or removes instances to maintain the number of - // instances specified by this parameter. - Size int64 `json:"size,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "GracefulDecommissionTimeout") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields - // for more details. +// ListSessionsResponse: A list of interactive sessions. +type ListSessionsResponse 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"` + // Sessions: Output only. The sessions from the specified collection. + Sessions []*Session `json:"sessions,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. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "GracefulDecommissionTimeout") to - // include in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. See + // 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. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s ResizeNodeGroupRequest) MarshalJSON() ([]byte, error) { - type NoMethod ResizeNodeGroupRequest +func (s ListSessionsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListSessionsResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RuntimeConfig: Runtime configuration for a workload. -type RuntimeConfig struct { - // AutotuningConfig: Optional. Autotuning configuration of the workload. - AutotuningConfig *AutotuningConfig `json:"autotuningConfig,omitempty"` - // Cohort: Optional. Cohort identifier. Identifies families of the workloads - // having the same shape, e.g. daily ETL jobs. - Cohort string `json:"cohort,omitempty"` - // ContainerImage: Optional. Optional custom container image for the job - // runtime environment. If not specified, a default container image will be - // used. - ContainerImage string `json:"containerImage,omitempty"` - // Properties: Optional. A mapping of property names to values, which are used - // to configure workload execution. - Properties map[string]string `json:"properties,omitempty"` - // RepositoryConfig: Optional. Dependency repository configuration. - RepositoryConfig *RepositoryConfig `json:"repositoryConfig,omitempty"` - // Version: Optional. Version of the batch runtime. - Version string `json:"version,omitempty"` - // ForceSendFields is a list of field names (e.g. "AutotuningConfig") to +// ListWorkflowTemplatesResponse: A response to a request to list workflow +// templates in a project. +type ListWorkflowTemplatesResponse struct { + // NextPageToken: Output only. This token is included in the response if there + // are more results to fetch. To fetch additional results, provide this value + // as the page_token in a subsequent ListWorkflowTemplatesRequest. + NextPageToken string `json:"nextPageToken,omitempty"` + // Templates: Output only. WorkflowTemplates list. + Templates []*WorkflowTemplate `json:"templates,omitempty"` + // Unreachable: Output only. List of workflow templates that could not be + // included in the response. Attempting to get one of these resources may + // indicate why it was not included in the list response. + Unreachable []string `json:"unreachable,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "NextPageToken") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AutotuningConfig") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See + // 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. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s RuntimeConfig) MarshalJSON() ([]byte, error) { - type NoMethod RuntimeConfig +func (s ListWorkflowTemplatesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListWorkflowTemplatesResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RuntimeInfo: Runtime information about workload execution. -type RuntimeInfo struct { - // ApproximateUsage: Output only. Approximate workload resource usage, - // calculated when the workload completes (see Dataproc Serverless pricing - // (https://cloud.google.com/dataproc-serverless/pricing)).Note: This metric - // calculation may change in the future, for example, to capture cumulative - // workload resource consumption during workload execution (see the Dataproc - // Serverless release notes - // (https://cloud.google.com/dataproc-serverless/docs/release-notes) for - // announcements, changes, fixes and other Dataproc developments). - ApproximateUsage *UsageMetrics `json:"approximateUsage,omitempty"` - // CurrentUsage: Output only. Snapshot of current workload resource usage. - CurrentUsage *UsageSnapshot `json:"currentUsage,omitempty"` - // DiagnosticOutputUri: Output only. A URI pointing to the location of the - // diagnostics tarball. - DiagnosticOutputUri string `json:"diagnosticOutputUri,omitempty"` - // Endpoints: Output only. Map of remote access endpoints (such as web - // interfaces and APIs) to their URIs. - Endpoints map[string]string `json:"endpoints,omitempty"` - // OutputUri: Output only. A URI pointing to the location of the stdout and - // stderr of the workload. - OutputUri string `json:"outputUri,omitempty"` - // ForceSendFields is a list of field names (e.g. "ApproximateUsage") to +// LoggingConfig: The runtime logging config of the job. +type LoggingConfig struct { + // DriverLogLevels: The per-package log levels for the driver. This can include + // "root" package name to configure rootLogger. Examples: - 'com.google = + // FATAL' - 'root = INFO' - 'org.apache = DEBUG' + DriverLogLevels map[string]string `json:"driverLogLevels,omitempty"` + // ForceSendFields is a list of field names (e.g. "DriverLogLevels") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ApproximateUsage") to include in + // NullFields is a list of field names (e.g. "DriverLogLevels") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s RuntimeInfo) MarshalJSON() ([]byte, error) { - type NoMethod RuntimeInfo +func (s LoggingConfig) MarshalJSON() ([]byte, error) { + type NoMethod LoggingConfig return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SecurityConfig: Security related configuration, including encryption, -// Kerberos, etc. -type SecurityConfig struct { - // IdentityConfig: Optional. Identity related configuration, including service - // account based secure multi-tenancy user mappings. - IdentityConfig *IdentityConfig `json:"identityConfig,omitempty"` - // KerberosConfig: Optional. Kerberos related configuration. - KerberosConfig *KerberosConfig `json:"kerberosConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. "IdentityConfig") to +// ManagedCluster: Cluster that is managed by the workflow. +type ManagedCluster struct { + // ClusterName: Required. The cluster name prefix. A unique cluster name will + // be formed by appending a random suffix.The name must contain only lower-case + // letters (a-z), numbers (0-9), and hyphens (-). Must begin with a letter. + // Cannot begin or end with hyphen. Must consist of between 2 and 35 + // characters. + ClusterName string `json:"clusterName,omitempty"` + // Config: Required. The cluster configuration. + Config *ClusterConfig `json:"config,omitempty"` + // Labels: Optional. The labels to associate with this cluster.Label keys must + // be between 1 and 63 characters long, and must conform to the following PCRE + // regular expression: \p{Ll}\p{Lo}{0,62}Label values must be between 1 and 63 + // characters long, and must conform to the following PCRE regular expression: + // \p{Ll}\p{Lo}\p{N}_-{0,63}No more than 32 labels can be associated with a + // given cluster. + Labels map[string]string `json:"labels,omitempty"` + // ForceSendFields is a list of field names (e.g. "ClusterName") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "IdentityConfig") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See + // NullFields is a list of field names (e.g. "ClusterName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s SecurityConfig) MarshalJSON() ([]byte, error) { - type NoMethod SecurityConfig +func (s ManagedCluster) MarshalJSON() ([]byte, error) { + type NoMethod ManagedCluster return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Session: A representation of a session. -type Session struct { - // CreateTime: Output only. The time when the session was created. - CreateTime string `json:"createTime,omitempty"` - // Creator: Output only. The email address of the user who created the session. - Creator string `json:"creator,omitempty"` - // EnvironmentConfig: Optional. Environment configuration for the session - // execution. - EnvironmentConfig *EnvironmentConfig `json:"environmentConfig,omitempty"` - // JupyterSession: Optional. Jupyter session config. - JupyterSession *JupyterConfig `json:"jupyterSession,omitempty"` - // Labels: Optional. The labels to associate with the session. Label keys must - // contain 1 to 63 characters, and must conform to RFC 1035 - // (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if - // present, must contain 1 to 63 characters, and must conform to RFC 1035 - // (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be - // associated with a session. - Labels map[string]string `json:"labels,omitempty"` - // Name: Required. The resource name of the session. - Name string `json:"name,omitempty"` - // RuntimeConfig: Optional. Runtime configuration for the session execution. - RuntimeConfig *RuntimeConfig `json:"runtimeConfig,omitempty"` - // RuntimeInfo: Output only. Runtime information about session execution. - RuntimeInfo *RuntimeInfo `json:"runtimeInfo,omitempty"` - // SessionTemplate: Optional. The session template used by the session.Only - // resource names, including project ID and location, are valid.Example: * - // https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/sessionTemplates/[template_id] - // * - // projects/[project_id]/locations/[dataproc_region]/sessionTemplates/[template_ - // id]The template must be in the same project and Dataproc region as the - // session. - SessionTemplate string `json:"sessionTemplate,omitempty"` - // SparkConnectSession: Optional. Spark connect session config. - SparkConnectSession *SparkConnectConfig `json:"sparkConnectSession,omitempty"` - // State: Output only. A state of the session. - // - // Possible values: - // "STATE_UNSPECIFIED" - The session state is unknown. - // "CREATING" - The session is created prior to running. - // "ACTIVE" - The session is running. - // "TERMINATING" - The session is terminating. - // "TERMINATED" - The session is terminated successfully. - // "FAILED" - The session is no longer running due to an error. - State string `json:"state,omitempty"` - // StateHistory: Output only. Historical state information for the session. - StateHistory []*SessionStateHistory `json:"stateHistory,omitempty"` - // StateMessage: Output only. Session state details, such as the failure - // description if the state is FAILED. - StateMessage string `json:"stateMessage,omitempty"` - // StateTime: Output only. The time when the session entered the current state. - StateTime string `json:"stateTime,omitempty"` - // User: Optional. The email address of the user who owns the session. - User string `json:"user,omitempty"` - // Uuid: Output only. A session UUID (Unique Universal Identifier). The service - // generates this value when it creates the session. - Uuid string `json:"uuid,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the server. - googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CreateTime") to - // unconditionally include in API requests. By default, fields with empty or +// ManagedGroupConfig: Specifies the resources used to actively manage an +// instance group. +type ManagedGroupConfig struct { + // InstanceGroupManagerName: Output only. The name of the Instance Group + // Manager for this group. + InstanceGroupManagerName string `json:"instanceGroupManagerName,omitempty"` + // InstanceGroupManagerUri: Output only. The partial URI to the instance group + // manager for this group. E.g. + // projects/my-project/regions/us-central1/instanceGroupManagers/my-igm. + InstanceGroupManagerUri string `json:"instanceGroupManagerUri,omitempty"` + // InstanceTemplateName: Output only. The name of the Instance Template used + // for the Managed Instance Group. + InstanceTemplateName string `json:"instanceTemplateName,omitempty"` + // ForceSendFields is a list of field names (e.g. "InstanceGroupManagerName") + // to unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CreateTime") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "InstanceGroupManagerName") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s Session) MarshalJSON() ([]byte, error) { - type NoMethod Session +func (s ManagedGroupConfig) MarshalJSON() ([]byte, error) { + type NoMethod ManagedGroupConfig return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SessionOperationMetadata: Metadata describing the Session operation. -type SessionOperationMetadata struct { - // CreateTime: The time when the operation was created. - CreateTime string `json:"createTime,omitempty"` - // Description: Short description of the operation. - Description string `json:"description,omitempty"` - // DoneTime: The time when the operation was finished. - DoneTime string `json:"doneTime,omitempty"` - // Labels: Labels associated with the operation. - Labels map[string]string `json:"labels,omitempty"` - // OperationType: The operation type. - // - // Possible values: - // "SESSION_OPERATION_TYPE_UNSPECIFIED" - Session operation type is unknown. - // "CREATE" - Create Session operation type. - // "TERMINATE" - Terminate Session operation type. - // "DELETE" - Delete Session operation type. - OperationType string `json:"operationType,omitempty"` - // Session: Name of the session for the operation. - Session string `json:"session,omitempty"` - // SessionUuid: Session UUID for the operation. - SessionUuid string `json:"sessionUuid,omitempty"` - // Warnings: Warnings encountered during operation execution. - Warnings []string `json:"warnings,omitempty"` - // ForceSendFields is a list of field names (e.g. "CreateTime") to - // unconditionally include in API requests. By default, fields with empty or +type MemoryMetrics struct { + TotalOffHeapStorageMemory int64 `json:"totalOffHeapStorageMemory,omitempty,string"` + TotalOnHeapStorageMemory int64 `json:"totalOnHeapStorageMemory,omitempty,string"` + UsedOffHeapStorageMemory int64 `json:"usedOffHeapStorageMemory,omitempty,string"` + UsedOnHeapStorageMemory int64 `json:"usedOnHeapStorageMemory,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "TotalOffHeapStorageMemory") + // to unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CreateTime") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "TotalOffHeapStorageMemory") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s SessionOperationMetadata) MarshalJSON() ([]byte, error) { - type NoMethod SessionOperationMetadata +func (s MemoryMetrics) MarshalJSON() ([]byte, error) { + type NoMethod MemoryMetrics return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SessionStateHistory: Historical state information. -type SessionStateHistory struct { - // State: Output only. The state of the session at this point in the session - // history. - // - // Possible values: - // "STATE_UNSPECIFIED" - The session state is unknown. - // "CREATING" - The session is created prior to running. - // "ACTIVE" - The session is running. - // "TERMINATING" - The session is terminating. - // "TERMINATED" - The session is terminated successfully. - // "FAILED" - The session is no longer running due to an error. - State string `json:"state,omitempty"` - // StateMessage: Output only. Details about the state at this point in the - // session history. - StateMessage string `json:"stateMessage,omitempty"` - // StateStartTime: Output only. The time when the session entered the - // historical state. - StateStartTime string `json:"stateStartTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "State") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See +// MetastoreConfig: Specifies a Metastore configuration. +type MetastoreConfig struct { + // DataprocMetastoreService: Required. Resource name of an existing Dataproc + // Metastore service.Example: + // projects/[project_id]/locations/[dataproc_region]/services/[service-name] + DataprocMetastoreService string `json:"dataprocMetastoreService,omitempty"` + // ForceSendFields is a list of field names (e.g. "DataprocMetastoreService") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "State") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "DataprocMetastoreService") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s SessionStateHistory) MarshalJSON() ([]byte, error) { - type NoMethod SessionStateHistory +func (s MetastoreConfig) MarshalJSON() ([]byte, error) { + type NoMethod MetastoreConfig return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SessionTemplate: A representation of a session template. -type SessionTemplate struct { - // CreateTime: Output only. The time when the template was created. - CreateTime string `json:"createTime,omitempty"` - // Creator: Output only. The email address of the user who created the - // template. - Creator string `json:"creator,omitempty"` - // Description: Optional. Brief description of the template. - Description string `json:"description,omitempty"` - // EnvironmentConfig: Optional. Environment configuration for session - // execution. - EnvironmentConfig *EnvironmentConfig `json:"environmentConfig,omitempty"` - // JupyterSession: Optional. Jupyter session config. - JupyterSession *JupyterConfig `json:"jupyterSession,omitempty"` - // Labels: Optional. Labels to associate with sessions created using this - // template. Label keys must contain 1 to 63 characters, and must conform to - // RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values can be empty, - // but, if present, must contain 1 to 63 characters and conform to RFC 1035 - // (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be - // associated with a session. - Labels map[string]string `json:"labels,omitempty"` - // Name: Required. The resource name of the session template. - Name string `json:"name,omitempty"` - // RuntimeConfig: Optional. Runtime configuration for session execution. - RuntimeConfig *RuntimeConfig `json:"runtimeConfig,omitempty"` - // SparkConnectSession: Optional. Spark connect session config. - SparkConnectSession *SparkConnectConfig `json:"sparkConnectSession,omitempty"` - // UpdateTime: Output only. The time the template was last updated. - UpdateTime string `json:"updateTime,omitempty"` - // Uuid: Output only. A session template UUID (Unique Universal Identifier). - // The service generates this value when it creates the session template. - Uuid string `json:"uuid,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the server. - googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CreateTime") to +// Metric: A Dataproc custom metric. +type Metric struct { + // MetricOverrides: Optional. Specify one or more Custom metrics + // (https://cloud.google.com/dataproc/docs/guides/dataproc-metrics#custom_metrics) + // to collect for the metric course (for the SPARK metric source (any Spark + // metric (https://spark.apache.org/docs/latest/monitoring.html#metrics) can be + // specified).Provide metrics in the following format: METRIC_SOURCE: + // INSTANCE:GROUP:METRIC Use camelcase as appropriate.Examples: + // yarn:ResourceManager:QueueMetrics:AppsCompleted + // spark:driver:DAGScheduler:job.allJobs + // sparkHistoryServer:JVM:Memory:NonHeapMemoryUsage.committed + // hiveserver2:JVM:Memory:NonHeapMemoryUsage.used Notes: Only the specified + // overridden metrics are collected for the metric source. For example, if one + // or more spark:executive metrics are listed as metric overrides, other SPARK + // metrics are not collected. The collection of the metrics for other enabled + // custom metric sources is unaffected. For example, if both SPARK andd YARN + // metric sources are enabled, and overrides are provided for Spark metrics + // only, all YARN metrics are collected. + MetricOverrides []string `json:"metricOverrides,omitempty"` + // MetricSource: Required. A standard set of metrics is collected unless + // metricOverrides are specified for the metric source (see Custom metrics + // (https://cloud.google.com/dataproc/docs/guides/dataproc-metrics#custom_metrics) + // for more information). + // + // Possible values: + // "METRIC_SOURCE_UNSPECIFIED" - Required unspecified metric source. + // "MONITORING_AGENT_DEFAULTS" - Monitoring agent metrics. If this source is + // enabled, Dataproc enables the monitoring agent in Compute Engine, and + // collects monitoring agent metrics, which are published with an + // agent.googleapis.com prefix. + // "HDFS" - HDFS metric source. + // "SPARK" - Spark metric source. + // "YARN" - YARN metric source. + // "SPARK_HISTORY_SERVER" - Spark History Server metric source. + // "HIVESERVER2" - Hiveserver2 metric source. + // "HIVEMETASTORE" - hivemetastore metric source + // "FLINK" - flink metric source + MetricSource string `json:"metricSource,omitempty"` + // ForceSendFields is a list of field names (e.g. "MetricOverrides") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CreateTime") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "MetricOverrides") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s SessionTemplate) MarshalJSON() ([]byte, error) { - type NoMethod SessionTemplate +func (s Metric) MarshalJSON() ([]byte, error) { + type NoMethod Metric return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SetIamPolicyRequest: Request message for SetIamPolicy method. -type SetIamPolicyRequest struct { - // Policy: REQUIRED: The complete policy to be applied to the resource. The - // size of the policy is limited to a few 10s of KB. An empty policy is a valid - // policy but certain Google Cloud services (such as Projects) might reject - // them. - Policy *Policy `json:"policy,omitempty"` - // ForceSendFields is a list of field names (e.g. "Policy") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See +// NamespacedGkeDeploymentTarget: Deprecated. Used only for the deprecated +// beta. A full, namespace-isolated deployment target for an existing GKE +// cluster. +type NamespacedGkeDeploymentTarget struct { + // ClusterNamespace: Optional. A namespace within the GKE cluster to deploy + // into. + ClusterNamespace string `json:"clusterNamespace,omitempty"` + // TargetGkeCluster: Optional. The target GKE cluster to deploy to. Format: + // 'projects/{project}/locations/{location}/clusters/{cluster_id}' + TargetGkeCluster string `json:"targetGkeCluster,omitempty"` + // ForceSendFields is a list of field names (e.g. "ClusterNamespace") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Policy") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "ClusterNamespace") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s SetIamPolicyRequest) MarshalJSON() ([]byte, error) { - type NoMethod SetIamPolicyRequest +func (s NamespacedGkeDeploymentTarget) MarshalJSON() ([]byte, error) { + type NoMethod NamespacedGkeDeploymentTarget return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ShieldedInstanceConfig: Shielded Instance Config for clusters using Compute -// Engine Shielded VMs -// (https://cloud.google.com/security/shielded-cloud/shielded-vm). -type ShieldedInstanceConfig struct { - // EnableIntegrityMonitoring: Optional. Defines whether instances have - // integrity monitoring enabled. - EnableIntegrityMonitoring bool `json:"enableIntegrityMonitoring,omitempty"` - // EnableSecureBoot: Optional. Defines whether instances have Secure Boot - // enabled. - EnableSecureBoot bool `json:"enableSecureBoot,omitempty"` - // EnableVtpm: Optional. Defines whether instances have the vTPM enabled. - EnableVtpm bool `json:"enableVtpm,omitempty"` - // ForceSendFields is a list of field names (e.g. "EnableIntegrityMonitoring") - // to unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See +// NodeGroup: Dataproc Node Group. The Dataproc NodeGroup resource is not +// related to the Dataproc NodeGroupAffinity resource. +type NodeGroup struct { + // Labels: Optional. Node group labels. Label keys must consist of from 1 to 63 + // characters and conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). + // Label values can be empty. If specified, they must consist of from 1 to 63 + // characters and conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). + // The node group must have no more than 32 labels. + Labels map[string]string `json:"labels,omitempty"` + // Name: The Node group resource name (https://aip.dev/122). + Name string `json:"name,omitempty"` + // NodeGroupConfig: Optional. The node group instance group configuration. + NodeGroupConfig *InstanceGroupConfig `json:"nodeGroupConfig,omitempty"` + // Roles: Required. Node group roles. + // + // Possible values: + // "ROLE_UNSPECIFIED" - Required unspecified role. + // "DRIVER" - Job drivers run on the node pool. + Roles []string `json:"roles,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Labels") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "EnableIntegrityMonitoring") to - // include in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. See + // NullFields is a list of field names (e.g. "Labels") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s ShieldedInstanceConfig) MarshalJSON() ([]byte, error) { - type NoMethod ShieldedInstanceConfig +func (s NodeGroup) MarshalJSON() ([]byte, error) { + type NoMethod NodeGroup return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SoftwareConfig: Specifies the selection and config of software inside the -// cluster. -type SoftwareConfig struct { - // ImageVersion: Optional. The version of software inside the cluster. It must - // be one of the supported Dataproc Versions - // (https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported-dataproc-image-versions), - // such as "1.2" (including a subminor version, such as "1.2.29"), or the - // "preview" version - // (https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions). - // If unspecified, it defaults to the latest Debian version. - ImageVersion string `json:"imageVersion,omitempty"` - // OptionalComponents: Optional. The set of components to activate on the - // cluster. - // - // Possible values: - // "COMPONENT_UNSPECIFIED" - Unspecified component. Specifying this will - // cause Cluster creation to fail. - // "ANACONDA" - The Anaconda component is no longer supported or applicable - // to supported Dataproc on Compute Engine image versions - // (https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-version-clusters#supported-dataproc-image-versions). - // It cannot be activated on clusters created with supported Dataproc on - // Compute Engine image versions. - // "DOCKER" - Docker - // "DRUID" - The Druid query engine. (alpha) - // "FLINK" - Flink - // "HBASE" - HBase. (beta) - // "HIVE_WEBHCAT" - The Hive Web HCatalog (the REST service for accessing - // HCatalog). - // "HUDI" - Hudi. - // "JUPYTER" - The Jupyter Notebook. - // "PRESTO" - The Presto query engine. - // "TRINO" - The Trino query engine. - // "RANGER" - The Ranger service. - // "SOLR" - The Solr service. - // "ZEPPELIN" - The Zeppelin notebook. - // "ZOOKEEPER" - The Zookeeper service. - OptionalComponents []string `json:"optionalComponents,omitempty"` - // Properties: Optional. The properties to set on daemon config files.Property - // keys are specified in prefix:property format, for example - // core:hadoop.tmp.dir. The following are supported prefixes and their - // mappings: capacity-scheduler: capacity-scheduler.xml core: core-site.xml - // distcp: distcp-default.xml hdfs: hdfs-site.xml hive: hive-site.xml mapred: - // mapred-site.xml pig: pig.properties spark: spark-defaults.conf yarn: - // yarn-site.xmlFor more information, see Cluster properties - // (https://cloud.google.com/dataproc/docs/concepts/cluster-properties). - Properties map[string]string `json:"properties,omitempty"` - // ForceSendFields is a list of field names (e.g. "ImageVersion") to +// NodeGroupAffinity: Node Group Affinity for clusters using sole-tenant node +// groups. The Dataproc NodeGroupAffinity resource is not related to the +// Dataproc NodeGroup resource. +type NodeGroupAffinity struct { + // NodeGroupUri: Required. The URI of a sole-tenant node group resource + // (https://cloud.google.com/compute/docs/reference/rest/v1/nodeGroups) that + // the cluster will be created on.A full URL, partial URI, or node group name + // are valid. Examples: + // https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]/nodeGroups/node-group-1 + // projects/[project_id]/zones/[zone]/nodeGroups/node-group-1 node-group-1 + NodeGroupUri string `json:"nodeGroupUri,omitempty"` + // ForceSendFields is a list of field names (e.g. "NodeGroupUri") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ImageVersion") to include in API + // NullFields is a list of field names (e.g. "NodeGroupUri") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s SoftwareConfig) MarshalJSON() ([]byte, error) { - type NoMethod SoftwareConfig +func (s NodeGroupAffinity) MarshalJSON() ([]byte, error) { + type NoMethod NodeGroupAffinity return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SparkBatch: A configuration for running an Apache Spark -// (https://spark.apache.org/) batch workload. -type SparkBatch struct { - // ArchiveUris: Optional. HCFS URIs of archives to be extracted into the - // working directory of each executor. Supported file types: .jar, .tar, - // .tar.gz, .tgz, and .zip. - ArchiveUris []string `json:"archiveUris,omitempty"` - // Args: Optional. The arguments to pass to the driver. Do not include - // arguments that can be set as batch properties, such as --conf, since a - // collision can occur that causes an incorrect batch submission. - Args []string `json:"args,omitempty"` - // FileUris: Optional. HCFS URIs of files to be placed in the working directory - // of each executor. - FileUris []string `json:"fileUris,omitempty"` - // JarFileUris: Optional. HCFS URIs of jar files to add to the classpath of the - // Spark driver and tasks. - JarFileUris []string `json:"jarFileUris,omitempty"` - // MainClass: Optional. The name of the driver main class. The jar file that - // contains the class must be in the classpath or specified in jar_file_uris. - MainClass string `json:"mainClass,omitempty"` - // MainJarFileUri: Optional. The HCFS URI of the jar file that contains the - // main class. - MainJarFileUri string `json:"mainJarFileUri,omitempty"` - // ForceSendFields is a list of field names (e.g. "ArchiveUris") to +// NodeGroupOperationMetadata: Metadata describing the node group operation. +type NodeGroupOperationMetadata struct { + // ClusterUuid: Output only. Cluster UUID associated with the node group + // operation. + ClusterUuid string `json:"clusterUuid,omitempty"` + // Description: Output only. Short description of operation. + Description string `json:"description,omitempty"` + // Labels: Output only. Labels associated with the operation. + Labels map[string]string `json:"labels,omitempty"` + // NodeGroupId: Output only. Node group ID for the operation. + NodeGroupId string `json:"nodeGroupId,omitempty"` + // OperationType: The operation type. + // + // Possible values: + // "NODE_GROUP_OPERATION_TYPE_UNSPECIFIED" - Node group operation type is + // unknown. + // "CREATE" - Create node group operation type. + // "UPDATE" - Update node group operation type. + // "DELETE" - Delete node group operation type. + // "RESIZE" - Resize node group operation type. + // "REPAIR" - Repair node group operation type. + // "UPDATE_LABELS" - Update node group label operation type. + // "START" - Start node group operation type. + // "STOP" - Stop node group operation type. + OperationType string `json:"operationType,omitempty"` + // Status: Output only. Current operation status. + Status *ClusterOperationStatus `json:"status,omitempty"` + // StatusHistory: Output only. The previous operation status. + StatusHistory []*ClusterOperationStatus `json:"statusHistory,omitempty"` + // Warnings: Output only. Errors encountered during operation execution. + Warnings []string `json:"warnings,omitempty"` + // ForceSendFields is a list of field names (e.g. "ClusterUuid") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ArchiveUris") to include in API + // NullFields is a list of field names (e.g. "ClusterUuid") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s SparkBatch) MarshalJSON() ([]byte, error) { - type NoMethod SparkBatch +func (s NodeGroupOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod NodeGroupOperationMetadata return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SparkConnectConfig: Spark connect configuration for an interactive session. -type SparkConnectConfig struct { -} - -// SparkHistoryServerConfig: Spark History Server configuration for the -// workload. -type SparkHistoryServerConfig struct { - // DataprocCluster: Optional. Resource name of an existing Dataproc Cluster to - // act as a Spark History Server for the workload.Example: - // projects/[project_id]/regions/[region]/clusters/[cluster_name] - DataprocCluster string `json:"dataprocCluster,omitempty"` - // ForceSendFields is a list of field names (e.g. "DataprocCluster") to +// NodeInitializationAction: Specifies an executable to run on a fully +// configured node and a timeout period for executable completion. +type NodeInitializationAction struct { + // ExecutableFile: Required. Cloud Storage URI of executable file. + ExecutableFile string `json:"executableFile,omitempty"` + // ExecutionTimeout: Optional. Amount of time executable has to complete. + // Default is 10 minutes (see JSON representation of Duration + // (https://developers.google.com/protocol-buffers/docs/proto3#json)).Cluster + // creation fails with an explanatory error message (the name of the executable + // that caused the error and the exceeded timeout period) if the executable is + // not completed at end of the timeout period. + ExecutionTimeout string `json:"executionTimeout,omitempty"` + // ForceSendFields is a list of field names (e.g. "ExecutableFile") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DataprocCluster") to include in + // NullFields is a list of field names (e.g. "ExecutableFile") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s SparkHistoryServerConfig) MarshalJSON() ([]byte, error) { - type NoMethod SparkHistoryServerConfig +func (s NodeInitializationAction) MarshalJSON() ([]byte, error) { + type NoMethod NodeInitializationAction return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SparkJob: A Dataproc job for running Apache Spark -// (https://spark.apache.org/) applications on YARN. -type SparkJob struct { - // ArchiveUris: Optional. HCFS URIs of archives to be extracted into the - // working directory of each executor. Supported file types: .jar, .tar, - // .tar.gz, .tgz, and .zip. - ArchiveUris []string `json:"archiveUris,omitempty"` - // Args: Optional. The arguments to pass to the driver. Do not include - // arguments, such as --conf, that can be set as job properties, since a - // collision may occur that causes an incorrect job submission. - Args []string `json:"args,omitempty"` - // FileUris: Optional. HCFS URIs of files to be placed in the working directory - // of each executor. Useful for naively parallel tasks. - FileUris []string `json:"fileUris,omitempty"` - // JarFileUris: Optional. HCFS URIs of jar files to add to the CLASSPATHs of - // the Spark driver and tasks. - JarFileUris []string `json:"jarFileUris,omitempty"` - // LoggingConfig: Optional. The runtime log config for job execution. - LoggingConfig *LoggingConfig `json:"loggingConfig,omitempty"` - // MainClass: The name of the driver's main class. The jar file that contains - // the class must be in the default CLASSPATH or specified in - // SparkJob.jar_file_uris. - MainClass string `json:"mainClass,omitempty"` - // MainJarFileUri: The HCFS URI of the jar file that contains the main class. - MainJarFileUri string `json:"mainJarFileUri,omitempty"` - // Properties: Optional. A mapping of property names to values, used to - // configure Spark. Properties that conflict with values set by the Dataproc - // API might be overwritten. Can include properties set in - // /etc/spark/conf/spark-defaults.conf and classes in user code. - Properties map[string]string `json:"properties,omitempty"` - // ForceSendFields is a list of field names (e.g. "ArchiveUris") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See +// NodePool: indicating a list of workers of same type +type NodePool struct { + // Id: Required. A unique id of the node pool. Primary and Secondary workers + // can be specified using special reserved ids PRIMARY_WORKER_POOL and + // SECONDARY_WORKER_POOL respectively. Aux node pools can be referenced using + // corresponding pool id. + Id string `json:"id,omitempty"` + // InstanceNames: Name of instances to be repaired. These instances must belong + // to specified node pool. + InstanceNames []string `json:"instanceNames,omitempty"` + // RepairAction: Required. Repair action to take on specified resources of the + // node pool. + // + // Possible values: + // "REPAIR_ACTION_UNSPECIFIED" - No action will be taken by default. + // "DELETE" - delete the specified list of nodes. + RepairAction string `json:"repairAction,omitempty"` + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ArchiveUris") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s SparkJob) MarshalJSON() ([]byte, error) { - type NoMethod SparkJob +func (s NodePool) MarshalJSON() ([]byte, error) { + type NoMethod NodePool return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SparkRBatch: A configuration for running an Apache SparkR -// (https://spark.apache.org/docs/latest/sparkr.html) batch workload. -type SparkRBatch struct { - // ArchiveUris: Optional. HCFS URIs of archives to be extracted into the - // working directory of each executor. Supported file types: .jar, .tar, - // .tar.gz, .tgz, and .zip. - ArchiveUris []string `json:"archiveUris,omitempty"` - // Args: Optional. The arguments to pass to the Spark driver. Do not include - // arguments that can be set as batch properties, such as --conf, since a - // collision can occur that causes an incorrect batch submission. - Args []string `json:"args,omitempty"` - // FileUris: Optional. HCFS URIs of files to be placed in the working directory - // of each executor. - FileUris []string `json:"fileUris,omitempty"` - // MainRFileUri: Required. The HCFS URI of the main R file to use as the - // driver. Must be a .R or .r file. - MainRFileUri string `json:"mainRFileUri,omitempty"` - // ForceSendFields is a list of field names (e.g. "ArchiveUris") to +// Operation: This resource represents a long-running operation that is the +// result of a network API call. +type Operation struct { + // Done: If the value is false, it means the operation is still in progress. If + // true, the operation is completed, and either error or response is available. + Done bool `json:"done,omitempty"` + // Error: The error result of the operation in case of failure or cancellation. + Error *Status `json:"error,omitempty"` + // Metadata: Service-specific metadata associated with the operation. It + // typically contains progress information and common metadata such as create + // time. Some services might not provide such metadata. Any method that returns + // a long-running operation should document the metadata type, if any. + Metadata googleapi.RawMessage `json:"metadata,omitempty"` + // Name: The server-assigned name, which is only unique within the same service + // that originally returns it. If you use the default HTTP mapping, the name + // should be a resource name ending with operations/{unique_id}. + Name string `json:"name,omitempty"` + // Response: The normal, successful response of the operation. If the original + // method returns no data on success, such as Delete, the response is + // google.protobuf.Empty. If the original method is standard Get/Create/Update, + // the response should be the resource. For other methods, the response should + // have the type XxxResponse, where Xxx is the original method name. For + // example, if the original method name is TakeSnapshot(), the inferred + // response type is TakeSnapshotResponse. + Response googleapi.RawMessage `json:"response,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Done") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Done") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s Operation) MarshalJSON() ([]byte, error) { + type NoMethod Operation + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// OrderedJob: A job executed by the workflow. +type OrderedJob struct { + // FlinkJob: Optional. Job is a Flink job. + FlinkJob *FlinkJob `json:"flinkJob,omitempty"` + // HadoopJob: Optional. Job is a Hadoop job. + HadoopJob *HadoopJob `json:"hadoopJob,omitempty"` + // HiveJob: Optional. Job is a Hive job. + HiveJob *HiveJob `json:"hiveJob,omitempty"` + // Labels: Optional. The labels to associate with this job.Label keys must be + // between 1 and 63 characters long, and must conform to the following regular + // expression: \p{Ll}\p{Lo}{0,62}Label values must be between 1 and 63 + // characters long, and must conform to the following regular expression: + // \p{Ll}\p{Lo}\p{N}_-{0,63}No more than 32 labels can be associated with a + // given job. + Labels map[string]string `json:"labels,omitempty"` + // PigJob: Optional. Job is a Pig job. + PigJob *PigJob `json:"pigJob,omitempty"` + // PrerequisiteStepIds: Optional. The optional list of prerequisite job + // step_ids. If not specified, the job will start at the beginning of workflow. + PrerequisiteStepIds []string `json:"prerequisiteStepIds,omitempty"` + // PrestoJob: Optional. Job is a Presto job. + PrestoJob *PrestoJob `json:"prestoJob,omitempty"` + // PysparkJob: Optional. Job is a PySpark job. + PysparkJob *PySparkJob `json:"pysparkJob,omitempty"` + // Scheduling: Optional. Job scheduling configuration. + Scheduling *JobScheduling `json:"scheduling,omitempty"` + // SparkJob: Optional. Job is a Spark job. + SparkJob *SparkJob `json:"sparkJob,omitempty"` + // SparkRJob: Optional. Job is a SparkR job. + SparkRJob *SparkRJob `json:"sparkRJob,omitempty"` + // SparkSqlJob: Optional. Job is a SparkSql job. + SparkSqlJob *SparkSqlJob `json:"sparkSqlJob,omitempty"` + // StepId: Required. The step id. The id must be unique among all jobs within + // the template.The step id is used as prefix for job id, as job + // goog-dataproc-workflow-step-id label, and in prerequisiteStepIds field from + // other steps.The id must contain only letters (a-z, A-Z), numbers (0-9), + // underscores (_), and hyphens (-). Cannot begin or end with underscore or + // hyphen. Must consist of between 3 and 50 characters. + StepId string `json:"stepId,omitempty"` + // TrinoJob: Optional. Job is a Trino job. + TrinoJob *TrinoJob `json:"trinoJob,omitempty"` + // ForceSendFields is a list of field names (e.g. "FlinkJob") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ArchiveUris") to include in API + // NullFields is a list of field names (e.g. "FlinkJob") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s SparkRBatch) MarshalJSON() ([]byte, error) { - type NoMethod SparkRBatch +func (s OrderedJob) MarshalJSON() ([]byte, error) { + type NoMethod OrderedJob return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SparkRJob: A Dataproc job for running Apache SparkR -// (https://spark.apache.org/docs/latest/sparkr.html) applications on YARN. -type SparkRJob struct { - // ArchiveUris: Optional. HCFS URIs of archives to be extracted into the - // working directory of each executor. Supported file types: .jar, .tar, - // .tar.gz, .tgz, and .zip. - ArchiveUris []string `json:"archiveUris,omitempty"` - // Args: Optional. The arguments to pass to the driver. Do not include - // arguments, such as --conf, that can be set as job properties, since a - // collision may occur that causes an incorrect job submission. - Args []string `json:"args,omitempty"` - // FileUris: Optional. HCFS URIs of files to be placed in the working directory - // of each executor. Useful for naively parallel tasks. - FileUris []string `json:"fileUris,omitempty"` - // LoggingConfig: Optional. The runtime log config for job execution. - LoggingConfig *LoggingConfig `json:"loggingConfig,omitempty"` - // MainRFileUri: Required. The HCFS URI of the main R file to use as the - // driver. Must be a .R file. - MainRFileUri string `json:"mainRFileUri,omitempty"` - // Properties: Optional. A mapping of property names to values, used to - // configure SparkR. Properties that conflict with values set by the Dataproc - // API might be overwritten. Can include properties set in - // /etc/spark/conf/spark-defaults.conf and classes in user code. - Properties map[string]string `json:"properties,omitempty"` - // ForceSendFields is a list of field names (e.g. "ArchiveUris") to +// OutputMetrics: Metrics about the data written by the task. +type OutputMetrics struct { + BytesWritten int64 `json:"bytesWritten,omitempty,string"` + RecordsWritten int64 `json:"recordsWritten,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "BytesWritten") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ArchiveUris") to include in API + // NullFields is a list of field names (e.g. "BytesWritten") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s SparkRJob) MarshalJSON() ([]byte, error) { - type NoMethod SparkRJob +func (s OutputMetrics) MarshalJSON() ([]byte, error) { + type NoMethod OutputMetrics return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SparkSqlBatch: A configuration for running Apache Spark SQL -// (https://spark.apache.org/sql/) queries as a batch workload. -type SparkSqlBatch struct { - // JarFileUris: Optional. HCFS URIs of jar files to be added to the Spark - // CLASSPATH. - JarFileUris []string `json:"jarFileUris,omitempty"` - // QueryFileUri: Required. The HCFS URI of the script that contains Spark SQL - // queries to execute. - QueryFileUri string `json:"queryFileUri,omitempty"` - // QueryVariables: Optional. Mapping of query variable names to values - // (equivalent to the Spark SQL command: SET name="value";). - QueryVariables map[string]string `json:"queryVariables,omitempty"` - // ForceSendFields is a list of field names (e.g. "JarFileUris") to +type OutputQuantileMetrics struct { + BytesWritten *Quantiles `json:"bytesWritten,omitempty"` + RecordsWritten *Quantiles `json:"recordsWritten,omitempty"` + // ForceSendFields is a list of field names (e.g. "BytesWritten") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "JarFileUris") to include in API + // NullFields is a list of field names (e.g. "BytesWritten") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s SparkSqlBatch) MarshalJSON() ([]byte, error) { - type NoMethod SparkSqlBatch +func (s OutputQuantileMetrics) MarshalJSON() ([]byte, error) { + type NoMethod OutputQuantileMetrics return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SparkSqlJob: A Dataproc job for running Apache Spark SQL -// (https://spark.apache.org/sql/) queries. -type SparkSqlJob struct { - // JarFileUris: Optional. HCFS URIs of jar files to be added to the Spark - // CLASSPATH. +// ParameterValidation: Configuration for parameter validation. +type ParameterValidation struct { + // Regex: Validation based on regular expressions. + Regex *RegexValidation `json:"regex,omitempty"` + // Values: Validation based on a list of allowed values. + Values *ValueValidation `json:"values,omitempty"` + // ForceSendFields is a list of field names (e.g. "Regex") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Regex") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ParameterValidation) MarshalJSON() ([]byte, error) { + type NoMethod ParameterValidation + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// PeripheralsConfig: Auxiliary services configuration for a workload. +type PeripheralsConfig struct { + // MetastoreService: Optional. Resource name of an existing Dataproc Metastore + // service.Example: + // projects/[project_id]/locations/[region]/services/[service_id] + MetastoreService string `json:"metastoreService,omitempty"` + // SparkHistoryServerConfig: Optional. The Spark History Server configuration + // for the workload. + SparkHistoryServerConfig *SparkHistoryServerConfig `json:"sparkHistoryServerConfig,omitempty"` + // ForceSendFields is a list of field names (e.g. "MetastoreService") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "MetastoreService") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s PeripheralsConfig) MarshalJSON() ([]byte, error) { + type NoMethod PeripheralsConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// PigJob: A Dataproc job for running Apache Pig (https://pig.apache.org/) +// queries on YARN. +type PigJob struct { + // ContinueOnFailure: Optional. Whether to continue executing queries if a + // query fails. The default value is false. Setting to true can be useful when + // executing independent parallel queries. + ContinueOnFailure bool `json:"continueOnFailure,omitempty"` + // JarFileUris: Optional. HCFS URIs of jar files to add to the CLASSPATH of the + // Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs. JarFileUris []string `json:"jarFileUris,omitempty"` // LoggingConfig: Optional. The runtime log config for job execution. LoggingConfig *LoggingConfig `json:"loggingConfig,omitempty"` // Properties: Optional. A mapping of property names to values, used to - // configure Spark SQL's SparkConf. Properties that conflict with values set by - // the Dataproc API might be overwritten. + // configure Pig. Properties that conflict with values set by the Dataproc API + // might be overwritten. Can include properties set in + // /etc/hadoop/conf/*-site.xml, /etc/pig/conf/pig.properties, and classes in + // user code. Properties map[string]string `json:"properties,omitempty"` - // QueryFileUri: The HCFS URI of the script that contains SQL queries. + // QueryFileUri: The HCFS URI of the script that contains the Pig queries. QueryFileUri string `json:"queryFileUri,omitempty"` // QueryList: A list of queries. QueryList *QueryList `json:"queryList,omitempty"` // ScriptVariables: Optional. Mapping of query variable names to values - // (equivalent to the Spark SQL command: SET name="value";). + // (equivalent to the Pig command: name=[value]). ScriptVariables map[string]string `json:"scriptVariables,omitempty"` - // ForceSendFields is a list of field names (e.g. "JarFileUris") to + // ForceSendFields is a list of field names (e.g. "ContinueOnFailure") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "JarFileUris") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "ContinueOnFailure") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s SparkSqlJob) MarshalJSON() ([]byte, error) { - type NoMethod SparkSqlJob +func (s PigJob) MarshalJSON() ([]byte, error) { + type NoMethod PigJob return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SparkStandaloneAutoscalingConfig: Basic autoscaling configurations for Spark -// Standalone. -type SparkStandaloneAutoscalingConfig struct { - // GracefulDecommissionTimeout: Required. Timeout for Spark graceful - // decommissioning of spark workers. Specifies the duration to wait for spark - // worker to complete spark decommissioning tasks before forcefully removing - // workers. Only applicable to downscaling operations.Bounds: 0s, 1d. - GracefulDecommissionTimeout string `json:"gracefulDecommissionTimeout,omitempty"` - // RemoveOnlyIdleWorkers: Optional. Remove only idle workers when scaling down - // cluster - RemoveOnlyIdleWorkers bool `json:"removeOnlyIdleWorkers,omitempty"` - // ScaleDownFactor: Required. Fraction of required executors to remove from - // Spark Serverless clusters. A scale-down factor of 1.0 will result in scaling - // down so that there are no more executors for the Spark Job.(more aggressive - // scaling). A scale-down factor closer to 0 will result in a smaller magnitude - // of scaling donw (less aggressive scaling).Bounds: 0.0, 1.0. - ScaleDownFactor float64 `json:"scaleDownFactor,omitempty"` - // ScaleDownMinWorkerFraction: Optional. Minimum scale-down threshold as a - // fraction of total cluster size before scaling occurs. For example, in a - // 20-worker cluster, a threshold of 0.1 means the autoscaler must recommend at - // least a 2 worker scale-down for the cluster to scale. A threshold of 0 means - // the autoscaler will scale down on any recommended change.Bounds: 0.0, 1.0. - // Default: 0.0. - ScaleDownMinWorkerFraction float64 `json:"scaleDownMinWorkerFraction,omitempty"` - // ScaleUpFactor: Required. Fraction of required workers to add to Spark - // Standalone clusters. A scale-up factor of 1.0 will result in scaling up so - // that there are no more required workers for the Spark Job (more aggressive - // scaling). A scale-up factor closer to 0 will result in a smaller magnitude - // of scaling up (less aggressive scaling).Bounds: 0.0, 1.0. - ScaleUpFactor float64 `json:"scaleUpFactor,omitempty"` - // ScaleUpMinWorkerFraction: Optional. Minimum scale-up threshold as a fraction - // of total cluster size before scaling occurs. For example, in a 20-worker - // cluster, a threshold of 0.1 means the autoscaler must recommend at least a - // 2-worker scale-up for the cluster to scale. A threshold of 0 means the - // autoscaler will scale up on any recommended change.Bounds: 0.0, 1.0. - // Default: 0.0. - ScaleUpMinWorkerFraction float64 `json:"scaleUpMinWorkerFraction,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "GracefulDecommissionTimeout") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields - // for more details. +// Policy: An Identity and Access Management (IAM) policy, which specifies +// access controls for Google Cloud resources.A Policy is a collection of +// bindings. A binding binds one or more members, or principals, to a single +// role. Principals can be user accounts, service accounts, Google groups, and +// domains (such as G Suite). A role is a named list of permissions; each role +// can be an IAM predefined role or a user-created custom role.For some types +// of Google Cloud resources, a binding can also specify a condition, which is +// a logical expression that allows access to a resource only if the expression +// evaluates to true. A condition can add constraints based on attributes of +// the request, the resource, or both. To learn which resources support +// conditions in their IAM policies, see the IAM documentation +// (https://cloud.google.com/iam/help/conditions/resource-policies).JSON +// example: { "bindings": [ { "role": +// "roles/resourcemanager.organizationAdmin", "members": [ +// "user:mike@example.com", "group:admins@example.com", "domain:google.com", +// "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": +// "roles/resourcemanager.organizationViewer", "members": [ +// "user:eve@example.com" ], "condition": { "title": "expirable access", +// "description": "Does not grant access after Sep 2020", "expression": +// "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": +// "BwWWja0YfJA=", "version": 3 } YAML example: bindings: - members: - +// user:mike@example.com - group:admins@example.com - domain:google.com - +// serviceAccount:my-project-id@appspot.gserviceaccount.com role: +// roles/resourcemanager.organizationAdmin - members: - user:eve@example.com +// role: roles/resourcemanager.organizationViewer condition: title: expirable +// access description: Does not grant access after Sep 2020 expression: +// request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= +// version: 3 For a description of IAM and its features, see the IAM +// documentation (https://cloud.google.com/iam/docs/). +type Policy struct { + // Bindings: Associates a list of members, or principals, with a role. + // Optionally, may specify a condition that determines how and when the + // bindings are applied. Each of the bindings must contain at least one + // principal.The bindings in a Policy can refer to up to 1,500 principals; up + // to 250 of these principals can be Google groups. Each occurrence of a + // principal counts towards these limits. For example, if the bindings grant 50 + // different roles to user:alice@example.com, and not to any other principal, + // then you can add another 1,450 principals to the bindings in the Policy. + Bindings []*Binding `json:"bindings,omitempty"` + // Etag: etag is used for optimistic concurrency control as a way to help + // prevent simultaneous updates of a policy from overwriting each other. It is + // strongly suggested that systems make use of the etag in the + // read-modify-write cycle to perform policy updates in order to avoid race + // conditions: An etag is returned in the response to getIamPolicy, and systems + // are expected to put that etag in the request to setIamPolicy to ensure that + // their change will be applied to the same version of the policy.Important: If + // you use IAM Conditions, you must include the etag field whenever you call + // setIamPolicy. If you omit this field, then IAM allows you to overwrite a + // version 3 policy with a version 1 policy, and all of the conditions in the + // version 3 policy are lost. + Etag string `json:"etag,omitempty"` + // Version: Specifies the format of the policy.Valid values are 0, 1, and 3. + // Requests that specify an invalid value are rejected.Any operation that + // affects conditional role bindings must specify version 3. This requirement + // applies to the following operations: Getting a policy that includes a + // conditional role binding Adding a conditional role binding to a policy + // Changing a conditional role binding in a policy Removing any role binding, + // with or without a condition, from a policy that includes + // conditionsImportant: If you use IAM Conditions, you must include the etag + // field whenever you call setIamPolicy. If you omit this field, then IAM + // allows you to overwrite a version 3 policy with a version 1 policy, and all + // of the conditions in the version 3 policy are lost.If a policy does not + // include any conditions, operations on that policy may specify any valid + // version or leave the field unset.To learn which resources support conditions + // in their IAM policies, see the IAM documentation + // (https://cloud.google.com/iam/help/conditions/resource-policies). + Version int64 `json:"version,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Bindings") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "GracefulDecommissionTimeout") to - // include in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. See + // NullFields is a list of field names (e.g. "Bindings") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s SparkStandaloneAutoscalingConfig) MarshalJSON() ([]byte, error) { - type NoMethod SparkStandaloneAutoscalingConfig +func (s Policy) MarshalJSON() ([]byte, error) { + type NoMethod Policy return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -func (s *SparkStandaloneAutoscalingConfig) UnmarshalJSON(data []byte) error { - type NoMethod SparkStandaloneAutoscalingConfig - var s1 struct { - ScaleDownFactor gensupport.JSONFloat64 `json:"scaleDownFactor"` - ScaleDownMinWorkerFraction gensupport.JSONFloat64 `json:"scaleDownMinWorkerFraction"` - ScaleUpFactor gensupport.JSONFloat64 `json:"scaleUpFactor"` - ScaleUpMinWorkerFraction gensupport.JSONFloat64 `json:"scaleUpMinWorkerFraction"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.ScaleDownFactor = float64(s1.ScaleDownFactor) - s.ScaleDownMinWorkerFraction = float64(s1.ScaleDownMinWorkerFraction) - s.ScaleUpFactor = float64(s1.ScaleUpFactor) - s.ScaleUpMinWorkerFraction = float64(s1.ScaleUpMinWorkerFraction) - return nil -} - -// StartClusterRequest: A request to start a cluster. -type StartClusterRequest struct { - // ClusterUuid: Optional. Specifying the cluster_uuid means the RPC will fail - // (with error NOT_FOUND) if a cluster with the specified UUID does not exist. - ClusterUuid string `json:"clusterUuid,omitempty"` - // RequestId: Optional. A unique ID used to identify the request. If the server - // receives two StartClusterRequest - // (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StartClusterRequest)s - // with the same id, then the second request will be ignored and the first - // google.longrunning.Operation created and stored in the backend is - // returned.Recommendation: Set this value to a UUID - // (https://en.wikipedia.org/wiki/Universally_unique_identifier).The ID must - // contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens - // (-). The maximum length is 40 characters. - RequestId string `json:"requestId,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClusterUuid") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See +// PoolData: Pool Data +type PoolData struct { + Name string `json:"name,omitempty"` + StageIds googleapi.Int64s `json:"stageIds,omitempty"` + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ClusterUuid") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s StartClusterRequest) MarshalJSON() ([]byte, error) { - type NoMethod StartClusterRequest +func (s PoolData) MarshalJSON() ([]byte, error) { + type NoMethod PoolData return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// StartupConfig: Configuration to handle the startup of instances during -// cluster create and update process. -type StartupConfig struct { - // RequiredRegistrationFraction: Optional. The config setting to enable cluster - // creation/ updation to be successful only after - // required_registration_fraction of instances are up and running. This - // configuration is applicable to only secondary workers for now. The cluster - // will fail if required_registration_fraction of instances are not available. - // This will include instance creation, agent registration, and service - // registration (if enabled). - RequiredRegistrationFraction float64 `json:"requiredRegistrationFraction,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "RequiredRegistrationFraction") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields - // for more details. +// PrestoJob: A Dataproc job for running Presto (https://prestosql.io/) +// queries. IMPORTANT: The Dataproc Presto Optional Component +// (https://cloud.google.com/dataproc/docs/concepts/components/presto) must be +// enabled when the cluster is created to submit a Presto job to the cluster. +type PrestoJob struct { + // ClientTags: Optional. Presto client tags to attach to this query + ClientTags []string `json:"clientTags,omitempty"` + // ContinueOnFailure: Optional. Whether to continue executing queries if a + // query fails. The default value is false. Setting to true can be useful when + // executing independent parallel queries. + ContinueOnFailure bool `json:"continueOnFailure,omitempty"` + // LoggingConfig: Optional. The runtime log config for job execution. + LoggingConfig *LoggingConfig `json:"loggingConfig,omitempty"` + // OutputFormat: Optional. The format in which query output will be displayed. + // See the Presto documentation for supported output formats + OutputFormat string `json:"outputFormat,omitempty"` + // Properties: Optional. A mapping of property names to values. Used to set + // Presto session properties + // (https://prestodb.io/docs/current/sql/set-session.html) Equivalent to using + // the --session flag in the Presto CLI + Properties map[string]string `json:"properties,omitempty"` + // QueryFileUri: The HCFS URI of the script that contains SQL queries. + QueryFileUri string `json:"queryFileUri,omitempty"` + // QueryList: A list of queries. + QueryList *QueryList `json:"queryList,omitempty"` + // ForceSendFields is a list of field names (e.g. "ClientTags") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "RequiredRegistrationFraction") to - // include in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. See + // NullFields is a list of field names (e.g. "ClientTags") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s StartupConfig) MarshalJSON() ([]byte, error) { - type NoMethod StartupConfig +func (s PrestoJob) MarshalJSON() ([]byte, error) { + type NoMethod PrestoJob return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -func (s *StartupConfig) UnmarshalJSON(data []byte) error { - type NoMethod StartupConfig - var s1 struct { - RequiredRegistrationFraction gensupport.JSONFloat64 `json:"requiredRegistrationFraction"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.RequiredRegistrationFraction = float64(s1.RequiredRegistrationFraction) - return nil -} - -// StateHistory: Historical state information. -type StateHistory struct { - // State: Output only. The state of the batch at this point in history. - // - // Possible values: - // "STATE_UNSPECIFIED" - The batch state is unknown. - // "PENDING" - The batch is created before running. - // "RUNNING" - The batch is running. - // "CANCELLING" - The batch is cancelling. - // "CANCELLED" - The batch cancellation was successful. - // "SUCCEEDED" - The batch completed successfully. - // "FAILED" - The batch is no longer running due to an error. - State string `json:"state,omitempty"` - // StateMessage: Output only. Details about the state at this point in history. - StateMessage string `json:"stateMessage,omitempty"` - // StateStartTime: Output only. The time when the batch entered the historical - // state. - StateStartTime string `json:"stateStartTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "State") to unconditionally +// ProcessSummary: Process Summary +type ProcessSummary struct { + AddTime string `json:"addTime,omitempty"` + HostPort string `json:"hostPort,omitempty"` + IsActive bool `json:"isActive,omitempty"` + ProcessId string `json:"processId,omitempty"` + ProcessLogs map[string]string `json:"processLogs,omitempty"` + RemoveTime string `json:"removeTime,omitempty"` + TotalCores int64 `json:"totalCores,omitempty"` + // ForceSendFields is a list of field names (e.g. "AddTime") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "State") to include in API + // NullFields is a list of field names (e.g. "AddTime") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s StateHistory) MarshalJSON() ([]byte, error) { - type NoMethod StateHistory +func (s ProcessSummary) MarshalJSON() ([]byte, error) { + type NoMethod ProcessSummary return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Status: The Status type defines a logical error model that is suitable for -// different programming environments, including REST APIs and RPC APIs. It is -// used by gRPC (https://github.com/grpc). Each Status message contains three -// pieces of data: error code, error message, and error details.You can find -// out more about this error model and how to work with it in the API Design -// Guide (https://cloud.google.com/apis/design/errors). -type Status struct { - // Code: The status code, which should be an enum value of google.rpc.Code. - Code int64 `json:"code,omitempty"` - // Details: A list of messages that carry the error details. There is a common - // set of message types for APIs to use. - Details []googleapi.RawMessage `json:"details,omitempty"` - // Message: A developer-facing error message, which should be in English. Any - // user-facing error message should be localized and sent in the - // google.rpc.Status.details field, or localized by the client. - Message string `json:"message,omitempty"` - // ForceSendFields is a list of field names (e.g. "Code") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See +// ProvisioningModelMix: Defines how Dataproc should create VMs with a mixture +// of provisioning models. +type ProvisioningModelMix struct { + // StandardCapacityBase: Optional. The base capacity that will always use + // Standard VMs to avoid risk of more preemption than the minimum capacity you + // need. Dataproc will create only standard VMs until it reaches + // standard_capacity_base, then it will start using + // standard_capacity_percent_above_base to mix Spot with Standard VMs. eg. If + // 15 instances are requested and standard_capacity_base is 5, Dataproc will + // create 5 standard VMs and then start mixing spot and standard VMs for + // remaining 10 instances. + StandardCapacityBase int64 `json:"standardCapacityBase,omitempty"` + // StandardCapacityPercentAboveBase: Optional. The percentage of target + // capacity that should use Standard VM. The remaining percentage will use Spot + // VMs. The percentage applies only to the capacity above + // standard_capacity_base. eg. If 15 instances are requested and + // standard_capacity_base is 5 and standard_capacity_percent_above_base is 30, + // Dataproc will create 5 standard VMs and then start mixing spot and standard + // VMs for remaining 10 instances. The mix will be 30% standard and 70% spot. + StandardCapacityPercentAboveBase int64 `json:"standardCapacityPercentAboveBase,omitempty"` + // ForceSendFields is a list of field names (e.g. "StandardCapacityBase") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Code") to include in API requests - // with the JSON null value. By default, fields with empty values are omitted - // from API requests. See + // NullFields is a list of field names (e.g. "StandardCapacityBase") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s Status) MarshalJSON() ([]byte, error) { - type NoMethod Status +func (s ProvisioningModelMix) MarshalJSON() ([]byte, error) { + type NoMethod ProvisioningModelMix return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// StopClusterRequest: A request to stop a cluster. -type StopClusterRequest struct { - // ClusterUuid: Optional. Specifying the cluster_uuid means the RPC will fail - // (with error NOT_FOUND) if a cluster with the specified UUID does not exist. - ClusterUuid string `json:"clusterUuid,omitempty"` - // RequestId: Optional. A unique ID used to identify the request. If the server - // receives two StopClusterRequest - // (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StopClusterRequest)s - // with the same id, then the second request will be ignored and the first - // google.longrunning.Operation created and stored in the backend is - // returned.Recommendation: Set this value to a UUID - // (https://en.wikipedia.org/wiki/Universally_unique_identifier).The ID must - // contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens - // (-). The maximum length is 40 characters. - RequestId string `json:"requestId,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClusterUuid") to +// PyPiRepositoryConfig: Configuration for PyPi repository +type PyPiRepositoryConfig struct { + // PypiRepository: Optional. PyPi repository address + PypiRepository string `json:"pypiRepository,omitempty"` + // ForceSendFields is a list of field names (e.g. "PypiRepository") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ClusterUuid") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "PypiRepository") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s StopClusterRequest) MarshalJSON() ([]byte, error) { - type NoMethod StopClusterRequest +func (s PyPiRepositoryConfig) MarshalJSON() ([]byte, error) { + type NoMethod PyPiRepositoryConfig return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SubmitJobRequest: A request to submit a job. -type SubmitJobRequest struct { - // Job: Required. The job resource. - Job *Job `json:"job,omitempty"` - // RequestId: Optional. A unique id used to identify the request. If the server - // receives two SubmitJobRequest - // (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.SubmitJobRequest)s - // with the same id, then the second request will be ignored and the first Job - // created and stored in the backend is returned.It is recommended to always - // set this value to a UUID - // (https://en.wikipedia.org/wiki/Universally_unique_identifier).The id must - // contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens - // (-). The maximum length is 40 characters. - RequestId string `json:"requestId,omitempty"` - // ForceSendFields is a list of field names (e.g. "Job") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See +// PySparkBatch: A configuration for running an Apache PySpark +// (https://spark.apache.org/docs/latest/api/python/getting_started/quickstart.html) +// batch workload. +type PySparkBatch struct { + // ArchiveUris: Optional. HCFS URIs of archives to be extracted into the + // working directory of each executor. Supported file types: .jar, .tar, + // .tar.gz, .tgz, and .zip. + ArchiveUris []string `json:"archiveUris,omitempty"` + // Args: Optional. The arguments to pass to the driver. Do not include + // arguments that can be set as batch properties, such as --conf, since a + // collision can occur that causes an incorrect batch submission. + Args []string `json:"args,omitempty"` + // FileUris: Optional. HCFS URIs of files to be placed in the working directory + // of each executor. + FileUris []string `json:"fileUris,omitempty"` + // JarFileUris: Optional. HCFS URIs of jar files to add to the classpath of the + // Spark driver and tasks. + JarFileUris []string `json:"jarFileUris,omitempty"` + // MainPythonFileUri: Required. The HCFS URI of the main Python file to use as + // the Spark driver. Must be a .py file. + MainPythonFileUri string `json:"mainPythonFileUri,omitempty"` + // PythonFileUris: Optional. HCFS file URIs of Python files to pass to the + // PySpark framework. Supported file types: .py, .egg, and .zip. + PythonFileUris []string `json:"pythonFileUris,omitempty"` + // ForceSendFields is a list of field names (e.g. "ArchiveUris") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Job") to include in API requests - // with the JSON null value. By default, fields with empty values are omitted - // from API requests. See + // NullFields is a list of field names (e.g. "ArchiveUris") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s SubmitJobRequest) MarshalJSON() ([]byte, error) { - type NoMethod SubmitJobRequest +func (s PySparkBatch) MarshalJSON() ([]byte, error) { + type NoMethod PySparkBatch return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// TemplateParameter: A configurable parameter that replaces one or more fields -// in the template. Parameterizable fields: - Labels - File uris - Job -// properties - Job arguments - Script variables - Main class (in HadoopJob and -// SparkJob) - Zone (in ClusterSelector) -type TemplateParameter struct { - // Description: Optional. Brief description of the parameter. Must not exceed - // 1024 characters. - Description string `json:"description,omitempty"` - // Fields: Required. Paths to all fields that the parameter replaces. A field - // is allowed to appear in at most one parameter's list of field paths.A field - // path is similar in syntax to a google.protobuf.FieldMask. For example, a - // field path that references the zone field of a workflow template's cluster - // selector would be specified as placement.clusterSelector.zone.Also, field - // paths can reference fields using the following syntax: Values in maps can be - // referenced by key: labels'key' placement.clusterSelector.clusterLabels'key' - // placement.managedCluster.labels'key' - // placement.clusterSelector.clusterLabels'key' jobs'step-id'.labels'key' Jobs - // in the jobs list can be referenced by step-id: - // jobs'step-id'.hadoopJob.mainJarFileUri jobs'step-id'.hiveJob.queryFileUri - // jobs'step-id'.pySparkJob.mainPythonFileUri - // jobs'step-id'.hadoopJob.jarFileUris0 jobs'step-id'.hadoopJob.archiveUris0 - // jobs'step-id'.hadoopJob.fileUris0 jobs'step-id'.pySparkJob.pythonFileUris0 - // Items in repeated fields can be referenced by a zero-based index: - // jobs'step-id'.sparkJob.args0 Other examples: - // jobs'step-id'.hadoopJob.properties'key' jobs'step-id'.hadoopJob.args0 - // jobs'step-id'.hiveJob.scriptVariables'key' - // jobs'step-id'.hadoopJob.mainJarFileUri placement.clusterSelector.zoneIt may - // not be possible to parameterize maps and repeated fields in their entirety - // since only individual map values and individual items in repeated fields can - // be referenced. For example, the following field paths are invalid: - // placement.clusterSelector.clusterLabels jobs'step-id'.sparkJob.args - Fields []string `json:"fields,omitempty"` - // Name: Required. Parameter name. The parameter name is used as the key, and - // paired with the parameter value, which are passed to the template when the - // template is instantiated. The name must contain only capital letters (A-Z), - // numbers (0-9), and underscores (_), and must not start with a number. The - // maximum length is 40 characters. - Name string `json:"name,omitempty"` - // Validation: Optional. Validation rules to be applied to this parameter's - // value. - Validation *ParameterValidation `json:"validation,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to +// PySparkJob: A Dataproc job for running Apache PySpark +// (https://spark.apache.org/docs/0.9.0/python-programming-guide.html) +// applications on YARN. +type PySparkJob struct { + // ArchiveUris: Optional. HCFS URIs of archives to be extracted into the + // working directory of each executor. Supported file types: .jar, .tar, + // .tar.gz, .tgz, and .zip. + ArchiveUris []string `json:"archiveUris,omitempty"` + // Args: Optional. The arguments to pass to the driver. Do not include + // arguments, such as --conf, that can be set as job properties, since a + // collision may occur that causes an incorrect job submission. + Args []string `json:"args,omitempty"` + // FileUris: Optional. HCFS URIs of files to be placed in the working directory + // of each executor. Useful for naively parallel tasks. + FileUris []string `json:"fileUris,omitempty"` + // JarFileUris: Optional. HCFS URIs of jar files to add to the CLASSPATHs of + // the Python driver and tasks. + JarFileUris []string `json:"jarFileUris,omitempty"` + // LoggingConfig: Optional. The runtime log config for job execution. + LoggingConfig *LoggingConfig `json:"loggingConfig,omitempty"` + // MainPythonFileUri: Required. The HCFS URI of the main Python file to use as + // the driver. Must be a .py file. + MainPythonFileUri string `json:"mainPythonFileUri,omitempty"` + // Properties: Optional. A mapping of property names to values, used to + // configure PySpark. Properties that conflict with values set by the Dataproc + // API might be overwritten. Can include properties set in + // /etc/spark/conf/spark-defaults.conf and classes in user code. + Properties map[string]string `json:"properties,omitempty"` + // PythonFileUris: Optional. HCFS file URIs of Python files to pass to the + // PySpark framework. Supported file types: .py, .egg, and .zip. + PythonFileUris []string `json:"pythonFileUris,omitempty"` + // ForceSendFields is a list of field names (e.g. "ArchiveUris") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Description") to include in API + // NullFields is a list of field names (e.g. "ArchiveUris") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s TemplateParameter) MarshalJSON() ([]byte, error) { - type NoMethod TemplateParameter +func (s PySparkJob) MarshalJSON() ([]byte, error) { + type NoMethod PySparkJob return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// TerminateSessionRequest: A request to terminate an interactive session. -type TerminateSessionRequest struct { - // RequestId: Optional. A unique ID used to identify the request. If the - // service receives two TerminateSessionRequest - // (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.TerminateSessionRequest)s - // with the same ID, the second request is ignored.Recommendation: Set this - // value to a UUID - // (https://en.wikipedia.org/wiki/Universally_unique_identifier).The value must - // contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens - // (-). The maximum length is 40 characters. - RequestId string `json:"requestId,omitempty"` - // ForceSendFields is a list of field names (e.g. "RequestId") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See +// Quantiles: Quantile metrics data related to Tasks. Units can be seconds, +// bytes, milliseconds, etc depending on the message type. +type Quantiles struct { + Count int64 `json:"count,omitempty,string"` + Maximum int64 `json:"maximum,omitempty,string"` + Minimum int64 `json:"minimum,omitempty,string"` + Percentile25 int64 `json:"percentile25,omitempty,string"` + Percentile50 int64 `json:"percentile50,omitempty,string"` + Percentile75 int64 `json:"percentile75,omitempty,string"` + Sum int64 `json:"sum,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "Count") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "RequestId") to include in API + // NullFields is a list of field names (e.g. "Count") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s TerminateSessionRequest) MarshalJSON() ([]byte, error) { - type NoMethod TerminateSessionRequest +func (s Quantiles) MarshalJSON() ([]byte, error) { + type NoMethod Quantiles return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// TestIamPermissionsRequest: Request message for TestIamPermissions method. -type TestIamPermissionsRequest struct { - // Permissions: The set of permissions to check for the resource. Permissions - // with wildcards (such as * or storage.*) are not allowed. For more - // information see IAM Overview - // (https://cloud.google.com/iam/docs/overview#permissions). - Permissions []string `json:"permissions,omitempty"` - // ForceSendFields is a list of field names (e.g. "Permissions") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See +// QueryList: A list of queries to run on a cluster. +type QueryList struct { + // Queries: Required. The queries to execute. You do not need to end a query + // expression with a semicolon. Multiple queries can be specified in one string + // by separating each with a semicolon. Here is an example of a Dataproc API + // snippet that uses a QueryList to specify a HiveJob: "hiveJob": { + // "queryList": { "queries": [ "query1", "query2", "query3;query4", ] } } + Queries []string `json:"queries,omitempty"` + // ForceSendFields is a list of field names (e.g. "Queries") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Permissions") to include in API + // NullFields is a list of field names (e.g. "Queries") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s TestIamPermissionsRequest) MarshalJSON() ([]byte, error) { - type NoMethod TestIamPermissionsRequest +func (s QueryList) MarshalJSON() ([]byte, error) { + type NoMethod QueryList return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// TestIamPermissionsResponse: Response message for TestIamPermissions method. -type TestIamPermissionsResponse struct { - // Permissions: A subset of TestPermissionsRequest.permissions that the caller - // is allowed. - Permissions []string `json:"permissions,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the server. - googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Permissions") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See +// RddDataDistribution: Details about RDD usage. +type RddDataDistribution struct { + Address string `json:"address,omitempty"` + DiskUsed int64 `json:"diskUsed,omitempty,string"` + MemoryRemaining int64 `json:"memoryRemaining,omitempty,string"` + MemoryUsed int64 `json:"memoryUsed,omitempty,string"` + OffHeapMemoryRemaining int64 `json:"offHeapMemoryRemaining,omitempty,string"` + OffHeapMemoryUsed int64 `json:"offHeapMemoryUsed,omitempty,string"` + OnHeapMemoryRemaining int64 `json:"onHeapMemoryRemaining,omitempty,string"` + OnHeapMemoryUsed int64 `json:"onHeapMemoryUsed,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "Address") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Permissions") to include in API + // NullFields is a list of field names (e.g. "Address") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { - type NoMethod TestIamPermissionsResponse +func (s RddDataDistribution) MarshalJSON() ([]byte, error) { + type NoMethod RddDataDistribution return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// TrinoJob: A Dataproc job for running Trino (https://trino.io/) queries. -// IMPORTANT: The Dataproc Trino Optional Component -// (https://cloud.google.com/dataproc/docs/concepts/components/trino) must be -// enabled when the cluster is created to submit a Trino job to the cluster. -type TrinoJob struct { - // ClientTags: Optional. Trino client tags to attach to this query - ClientTags []string `json:"clientTags,omitempty"` - // ContinueOnFailure: Optional. Whether to continue executing queries if a - // query fails. The default value is false. Setting to true can be useful when - // executing independent parallel queries. - ContinueOnFailure bool `json:"continueOnFailure,omitempty"` - // LoggingConfig: Optional. The runtime log config for job execution. - LoggingConfig *LoggingConfig `json:"loggingConfig,omitempty"` - // OutputFormat: Optional. The format in which query output will be displayed. - // See the Trino documentation for supported output formats - OutputFormat string `json:"outputFormat,omitempty"` - // Properties: Optional. A mapping of property names to values. Used to set - // Trino session properties - // (https://trino.io/docs/current/sql/set-session.html) Equivalent to using the - // --session flag in the Trino CLI - Properties map[string]string `json:"properties,omitempty"` - // QueryFileUri: The HCFS URI of the script that contains SQL queries. - QueryFileUri string `json:"queryFileUri,omitempty"` - // QueryList: A list of queries. - QueryList *QueryList `json:"queryList,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClientTags") to +// RddOperationCluster: A grouping of nodes representing higher level +// constructs (stage, job etc.). +type RddOperationCluster struct { + ChildClusters []*RddOperationCluster `json:"childClusters,omitempty"` + ChildNodes []*RddOperationNode `json:"childNodes,omitempty"` + Name string `json:"name,omitempty"` + RddClusterId string `json:"rddClusterId,omitempty"` + // ForceSendFields is a list of field names (e.g. "ChildClusters") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ClientTags") to include in API + // NullFields is a list of field names (e.g. "ChildClusters") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s TrinoJob) MarshalJSON() ([]byte, error) { - type NoMethod TrinoJob +func (s RddOperationCluster) MarshalJSON() ([]byte, error) { + type NoMethod RddOperationCluster return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// UsageMetrics: Usage metrics represent approximate total resources consumed -// by a workload. -type UsageMetrics struct { - // AcceleratorType: Optional. Accelerator type being used, if any - AcceleratorType string `json:"acceleratorType,omitempty"` - // MilliAcceleratorSeconds: Optional. Accelerator usage in (milliAccelerator x - // seconds) (see Dataproc Serverless pricing - // (https://cloud.google.com/dataproc-serverless/pricing)). - MilliAcceleratorSeconds int64 `json:"milliAcceleratorSeconds,omitempty,string"` - // MilliDcuSeconds: Optional. DCU (Dataproc Compute Units) usage in (milliDCU x - // seconds) (see Dataproc Serverless pricing - // (https://cloud.google.com/dataproc-serverless/pricing)). - MilliDcuSeconds int64 `json:"milliDcuSeconds,omitempty,string"` - // ShuffleStorageGbSeconds: Optional. Shuffle storage usage in (GB x seconds) - // (see Dataproc Serverless pricing - // (https://cloud.google.com/dataproc-serverless/pricing)). - ShuffleStorageGbSeconds int64 `json:"shuffleStorageGbSeconds,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "AcceleratorType") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See +// RddOperationEdge: A directed edge representing dependency between two RDDs. +type RddOperationEdge struct { + FromId int64 `json:"fromId,omitempty"` + ToId int64 `json:"toId,omitempty"` + // ForceSendFields is a list of field names (e.g. "FromId") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AcceleratorType") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See + // NullFields is a list of field names (e.g. "FromId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s UsageMetrics) MarshalJSON() ([]byte, error) { - type NoMethod UsageMetrics +func (s RddOperationEdge) MarshalJSON() ([]byte, error) { + type NoMethod RddOperationEdge return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// UsageSnapshot: The usage snapshot represents the resources consumed by a -// workload at a specified time. -type UsageSnapshot struct { - // AcceleratorType: Optional. Accelerator type being used, if any - AcceleratorType string `json:"acceleratorType,omitempty"` - // MilliAccelerator: Optional. Milli (one-thousandth) accelerator. (see - // Dataproc Serverless pricing - // (https://cloud.google.com/dataproc-serverless/pricing)) - MilliAccelerator int64 `json:"milliAccelerator,omitempty,string"` - // MilliDcu: Optional. Milli (one-thousandth) Dataproc Compute Units (DCUs) - // (see Dataproc Serverless pricing - // (https://cloud.google.com/dataproc-serverless/pricing)). - MilliDcu int64 `json:"milliDcu,omitempty,string"` - // MilliDcuPremium: Optional. Milli (one-thousandth) Dataproc Compute Units - // (DCUs) charged at premium tier (see Dataproc Serverless pricing - // (https://cloud.google.com/dataproc-serverless/pricing)). - MilliDcuPremium int64 `json:"milliDcuPremium,omitempty,string"` - // ShuffleStorageGb: Optional. Shuffle Storage in gigabytes (GB). (see Dataproc - // Serverless pricing (https://cloud.google.com/dataproc-serverless/pricing)) - ShuffleStorageGb int64 `json:"shuffleStorageGb,omitempty,string"` - // ShuffleStorageGbPremium: Optional. Shuffle Storage in gigabytes (GB) charged - // at premium tier. (see Dataproc Serverless pricing - // (https://cloud.google.com/dataproc-serverless/pricing)) - ShuffleStorageGbPremium int64 `json:"shuffleStorageGbPremium,omitempty,string"` - // SnapshotTime: Optional. The timestamp of the usage snapshot. - SnapshotTime string `json:"snapshotTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "AcceleratorType") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See +// RddOperationGraph: Graph representing RDD dependencies. Consists of edges +// and a root cluster. +type RddOperationGraph struct { + Edges []*RddOperationEdge `json:"edges,omitempty"` + IncomingEdges []*RddOperationEdge `json:"incomingEdges,omitempty"` + OutgoingEdges []*RddOperationEdge `json:"outgoingEdges,omitempty"` + RootCluster *RddOperationCluster `json:"rootCluster,omitempty"` + StageId int64 `json:"stageId,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "Edges") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AcceleratorType") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See + // NullFields is a list of field names (e.g. "Edges") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s UsageSnapshot) MarshalJSON() ([]byte, error) { - type NoMethod UsageSnapshot +func (s RddOperationGraph) MarshalJSON() ([]byte, error) { + type NoMethod RddOperationGraph return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ValueValidation: Validation based on a list of allowed values. -type ValueValidation struct { - // Values: Required. List of allowed values for the parameter. - Values []string `json:"values,omitempty"` - // ForceSendFields is a list of field names (e.g. "Values") to unconditionally +// RddOperationNode: A node in the RDD operation graph. Corresponds to a single +// RDD. +type RddOperationNode struct { + Barrier bool `json:"barrier,omitempty"` + Cached bool `json:"cached,omitempty"` + Callsite string `json:"callsite,omitempty"` + Name string `json:"name,omitempty"` + NodeId int64 `json:"nodeId,omitempty"` + // Possible values: + // "DETERMINISTIC_LEVEL_UNSPECIFIED" + // "DETERMINISTIC_LEVEL_DETERMINATE" + // "DETERMINISTIC_LEVEL_UNORDERED" + // "DETERMINISTIC_LEVEL_INDETERMINATE" + OutputDeterministicLevel string `json:"outputDeterministicLevel,omitempty"` + // ForceSendFields is a list of field names (e.g. "Barrier") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Values") to include in API + // NullFields is a list of field names (e.g. "Barrier") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s ValueValidation) MarshalJSON() ([]byte, error) { - type NoMethod ValueValidation +func (s RddOperationNode) MarshalJSON() ([]byte, error) { + type NoMethod RddOperationNode return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// VirtualClusterConfig: The Dataproc cluster config for a cluster that does -// not directly control the underlying compute resources, such as a -// Dataproc-on-GKE cluster -// (https://cloud.google.com/dataproc/docs/guides/dpgke/dataproc-gke-overview). -type VirtualClusterConfig struct { - // AuxiliaryServicesConfig: Optional. Configuration of auxiliary services used - // by this cluster. - AuxiliaryServicesConfig *AuxiliaryServicesConfig `json:"auxiliaryServicesConfig,omitempty"` - // KubernetesClusterConfig: Required. The configuration for running the - // Dataproc cluster on Kubernetes. - KubernetesClusterConfig *KubernetesClusterConfig `json:"kubernetesClusterConfig,omitempty"` - // StagingBucket: Optional. A Cloud Storage bucket used to stage job - // dependencies, config files, and job driver console output. If you do not - // specify a staging bucket, Cloud Dataproc will determine a Cloud Storage - // location (US, ASIA, or EU) for your cluster's staging bucket according to - // the Compute Engine zone where your cluster is deployed, and then create and - // manage this project-level, per-location bucket (see Dataproc staging and - // temp buckets - // (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). - // This field requires a Cloud Storage bucket name, not a gs://... URI to a - // Cloud Storage bucket. - StagingBucket string `json:"stagingBucket,omitempty"` - // ForceSendFields is a list of field names (e.g. "AuxiliaryServicesConfig") to +// RddPartitionInfo: Information about RDD partitions. +type RddPartitionInfo struct { + BlockName string `json:"blockName,omitempty"` + DiskUsed int64 `json:"diskUsed,omitempty,string"` + Executors []string `json:"executors,omitempty"` + MemoryUsed int64 `json:"memoryUsed,omitempty,string"` + StorageLevel string `json:"storageLevel,omitempty"` + // ForceSendFields is a list of field names (e.g. "BlockName") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AuxiliaryServicesConfig") to - // include in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s VirtualClusterConfig) MarshalJSON() ([]byte, error) { - type NoMethod VirtualClusterConfig - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// WorkflowGraph: The workflow graph. -type WorkflowGraph struct { - // Nodes: Output only. The workflow nodes. - Nodes []*WorkflowNode `json:"nodes,omitempty"` - // ForceSendFields is a list of field names (e.g. "Nodes") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Nodes") to include in API + // NullFields is a list of field names (e.g. "BlockName") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s WorkflowGraph) MarshalJSON() ([]byte, error) { - type NoMethod WorkflowGraph +func (s RddPartitionInfo) MarshalJSON() ([]byte, error) { + type NoMethod RddPartitionInfo return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// WorkflowMetadata: A Dataproc workflow template resource. -type WorkflowMetadata struct { - // ClusterName: Output only. The name of the target cluster. - ClusterName string `json:"clusterName,omitempty"` - // ClusterUuid: Output only. The UUID of target cluster. - ClusterUuid string `json:"clusterUuid,omitempty"` - // CreateCluster: Output only. The create cluster operation metadata. - CreateCluster *ClusterOperation `json:"createCluster,omitempty"` - // DagEndTime: Output only. DAG end time, only set for workflows with - // dag_timeout when DAG ends. - DagEndTime string `json:"dagEndTime,omitempty"` - // DagStartTime: Output only. DAG start time, only set for workflows with - // dag_timeout when DAG begins. - DagStartTime string `json:"dagStartTime,omitempty"` - // DagTimeout: Output only. The timeout duration for the DAG of jobs, expressed - // in seconds (see JSON representation of duration - // (https://developers.google.com/protocol-buffers/docs/proto3#json)). - DagTimeout string `json:"dagTimeout,omitempty"` - // DeleteCluster: Output only. The delete cluster operation metadata. - DeleteCluster *ClusterOperation `json:"deleteCluster,omitempty"` - // EndTime: Output only. Workflow end time. - EndTime string `json:"endTime,omitempty"` - // Graph: Output only. The workflow graph. - Graph *WorkflowGraph `json:"graph,omitempty"` - // Parameters: Map from parameter names to values that were used for those - // parameters. - Parameters map[string]string `json:"parameters,omitempty"` - // StartTime: Output only. Workflow start time. - StartTime string `json:"startTime,omitempty"` - // State: Output only. The workflow state. - // - // Possible values: - // "UNKNOWN" - Unused. - // "PENDING" - The operation has been created. - // "RUNNING" - The operation is running. - // "DONE" - The operation is done; either cancelled or completed. - State string `json:"state,omitempty"` - // Template: Output only. The resource name of the workflow template as - // described in https://cloud.google.com/apis/design/resource_names. For - // projects.regions.workflowTemplates, the resource name of the template has - // the following format: - // projects/{project_id}/regions/{region}/workflowTemplates/{template_id} For - // projects.locations.workflowTemplates, the resource name of the template has - // the following format: - // projects/{project_id}/locations/{location}/workflowTemplates/{template_id} - Template string `json:"template,omitempty"` - // Version: Output only. The version of template at the time of workflow - // instantiation. - Version int64 `json:"version,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClusterName") to +// RddStorageInfo: Overall data about RDD storage. +type RddStorageInfo struct { + DataDistribution []*RddDataDistribution `json:"dataDistribution,omitempty"` + DiskUsed int64 `json:"diskUsed,omitempty,string"` + MemoryUsed int64 `json:"memoryUsed,omitempty,string"` + Name string `json:"name,omitempty"` + NumCachedPartitions int64 `json:"numCachedPartitions,omitempty"` + NumPartitions int64 `json:"numPartitions,omitempty"` + Partitions []*RddPartitionInfo `json:"partitions,omitempty"` + RddStorageId int64 `json:"rddStorageId,omitempty"` + StorageLevel string `json:"storageLevel,omitempty"` + // ForceSendFields is a list of field names (e.g. "DataDistribution") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ClusterName") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "DataDistribution") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s WorkflowMetadata) MarshalJSON() ([]byte, error) { - type NoMethod WorkflowMetadata +func (s RddStorageInfo) MarshalJSON() ([]byte, error) { + type NoMethod RddStorageInfo return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// WorkflowNode: The workflow node. -type WorkflowNode struct { - // Error: Output only. The error detail. - Error string `json:"error,omitempty"` - // JobId: Output only. The job id; populated after the node enters RUNNING - // state. - JobId string `json:"jobId,omitempty"` - // PrerequisiteStepIds: Output only. Node's prerequisite nodes. - PrerequisiteStepIds []string `json:"prerequisiteStepIds,omitempty"` - // State: Output only. The node state. - // - // Possible values: - // "NODE_STATE_UNSPECIFIED" - State is unspecified. - // "BLOCKED" - The node is awaiting prerequisite node to finish. - // "RUNNABLE" - The node is runnable but not running. - // "RUNNING" - The node is running. - // "COMPLETED" - The node completed successfully. - // "FAILED" - The node failed. A node can be marked FAILED because its - // ancestor or peer failed. - State string `json:"state,omitempty"` - // StepId: Output only. The name of the node. - StepId string `json:"stepId,omitempty"` - // ForceSendFields is a list of field names (e.g. "Error") to unconditionally +// RegexValidation: Validation based on regular expressions. +type RegexValidation struct { + // Regexes: Required. RE2 regular expressions used to validate the parameter's + // value. The value must match the regex in its entirety (substring matches are + // not sufficient). + Regexes []string `json:"regexes,omitempty"` + // ForceSendFields is a list of field names (e.g. "Regexes") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Error") to include in API + // NullFields is a list of field names (e.g. "Regexes") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s WorkflowNode) MarshalJSON() ([]byte, error) { - type NoMethod WorkflowNode +func (s RegexValidation) MarshalJSON() ([]byte, error) { + type NoMethod RegexValidation return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// WorkflowTemplate: A Dataproc workflow template resource. -type WorkflowTemplate struct { - // CreateTime: Output only. The time template was created. - CreateTime string `json:"createTime,omitempty"` - // DagTimeout: Optional. Timeout duration for the DAG of jobs, expressed in - // seconds (see JSON representation of duration - // (https://developers.google.com/protocol-buffers/docs/proto3#json)). The - // timeout duration must be from 10 minutes ("600s") to 24 hours ("86400s"). - // The timer begins when the first job is submitted. If the workflow is running - // at the end of the timeout period, any remaining jobs are cancelled, the - // workflow is ended, and if the workflow was running on a managed cluster, the - // cluster is deleted. - DagTimeout string `json:"dagTimeout,omitempty"` - // EncryptionConfig: Optional. Encryption settings for encrypting workflow - // template job arguments. - EncryptionConfig *GoogleCloudDataprocV1WorkflowTemplateEncryptionConfig `json:"encryptionConfig,omitempty"` - Id string `json:"id,omitempty"` - // Jobs: Required. The Directed Acyclic Graph of Jobs to submit. - Jobs []*OrderedJob `json:"jobs,omitempty"` - // Labels: Optional. The labels to associate with this template. These labels - // will be propagated to all jobs and clusters created by the workflow - // instance.Label keys must contain 1 to 63 characters, and must conform to RFC - // 1035 (https://www.ietf.org/rfc/rfc1035.txt).Label values may be empty, but, - // if present, must contain 1 to 63 characters, and must conform to RFC 1035 - // (https://www.ietf.org/rfc/rfc1035.txt).No more than 32 labels can be - // associated with a template. - Labels map[string]string `json:"labels,omitempty"` - // Name: Output only. The resource name of the workflow template, as described - // in https://cloud.google.com/apis/design/resource_names. For - // projects.regions.workflowTemplates, the resource name of the template has - // the following format: - // projects/{project_id}/regions/{region}/workflowTemplates/{template_id} For - // projects.locations.workflowTemplates, the resource name of the template has - // the following format: - // projects/{project_id}/locations/{location}/workflowTemplates/{template_id} - Name string `json:"name,omitempty"` - // Parameters: Optional. Template parameters whose values are substituted into - // the template. Values for parameters must be provided when the template is - // instantiated. - Parameters []*TemplateParameter `json:"parameters,omitempty"` - // Placement: Required. WorkflowTemplate scheduling information. - Placement *WorkflowTemplatePlacement `json:"placement,omitempty"` - // UpdateTime: Output only. The time template was last updated. - UpdateTime string `json:"updateTime,omitempty"` - // Version: Optional. Used to perform a consistent read-modify-write.This field - // should be left blank for a CreateWorkflowTemplate request. It is required - // for an UpdateWorkflowTemplate request, and must match the current server - // version. A typical update template flow would fetch the current template - // with a GetWorkflowTemplate request, which will return the current template - // with the version field filled in with the current server version. The user - // updates other fields in the template, then returns it as part of the - // UpdateWorkflowTemplate request. - Version int64 `json:"version,omitempty"` +// RepairClusterRequest: A request to repair a cluster. +type RepairClusterRequest struct { + // Cluster: Optional. Cluster to be repaired + Cluster *ClusterToRepair `json:"cluster,omitempty"` + // ClusterUuid: Optional. Specifying the cluster_uuid means the RPC will fail + // (with error NOT_FOUND) if a cluster with the specified UUID does not exist. + ClusterUuid string `json:"clusterUuid,omitempty"` + // GracefulDecommissionTimeout: Optional. Timeout for graceful YARN + // decommissioning. Graceful decommissioning facilitates the removal of cluster + // nodes without interrupting jobs in progress. The timeout specifies the + // amount of time to wait for jobs finish before forcefully removing nodes. The + // default timeout is 0 for forceful decommissioning, and the maximum timeout + // period is 1 day. (see JSON Mapping—Duration + // (https://developers.google.com/protocol-buffers/docs/proto3#json)).graceful_decommission_timeout + // is supported in Dataproc image versions 1.2+. + GracefulDecommissionTimeout string `json:"gracefulDecommissionTimeout,omitempty"` + // NodePools: Optional. Node pools and corresponding repair action to be taken. + // All node pools should be unique in this request. i.e. Multiple entries for + // the same node pool id are not allowed. + NodePools []*NodePool `json:"nodePools,omitempty"` + // ParentOperationId: Optional. operation id of the parent operation sending + // the repair request + ParentOperationId string `json:"parentOperationId,omitempty"` + // RequestId: Optional. A unique ID used to identify the request. If the server + // receives two RepairClusterRequests with the same ID, the second request is + // ignored, and the first google.longrunning.Operation created and stored in + // the backend is returned.Recommendation: Set this value to a UUID + // (https://en.wikipedia.org/wiki/Universally_unique_identifier).The ID must + // contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens + // (-). The maximum length is 40 characters. + RequestId string `json:"requestId,omitempty"` + // ForceSendFields is a list of field names (e.g. "Cluster") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Cluster") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} - // ServerResponse contains the HTTP response code and headers from the server. - googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CreateTime") to +func (s RepairClusterRequest) MarshalJSON() ([]byte, error) { + type NoMethod RepairClusterRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +type RepairNodeGroupRequest struct { + // InstanceNames: Required. Name of instances to be repaired. These instances + // must belong to specified node pool. + InstanceNames []string `json:"instanceNames,omitempty"` + // RepairAction: Required. Repair action to take on specified resources of the + // node pool. + // + // Possible values: + // "REPAIR_ACTION_UNSPECIFIED" - No action will be taken by default. + // "REPLACE" - replace the specified list of nodes. + RepairAction string `json:"repairAction,omitempty"` + // RequestId: Optional. A unique ID used to identify the request. If the server + // receives two RepairNodeGroupRequest with the same ID, the second request is + // ignored and the first google.longrunning.Operation created and stored in the + // backend is returned.Recommendation: Set this value to a UUID + // (https://en.wikipedia.org/wiki/Universally_unique_identifier).The ID must + // contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens + // (-). The maximum length is 40 characters. + RequestId string `json:"requestId,omitempty"` + // ForceSendFields is a list of field names (e.g. "InstanceNames") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CreateTime") to include in API + // NullFields is a list of field names (e.g. "InstanceNames") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s WorkflowTemplate) MarshalJSON() ([]byte, error) { - type NoMethod WorkflowTemplate +func (s RepairNodeGroupRequest) MarshalJSON() ([]byte, error) { + type NoMethod RepairNodeGroupRequest return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// WorkflowTemplatePlacement: Specifies workflow execution target.Either -// managed_cluster or cluster_selector is required. -type WorkflowTemplatePlacement struct { - // ClusterSelector: Optional. A selector that chooses target cluster for jobs - // based on metadata.The selector is evaluated at the time each job is - // submitted. - ClusterSelector *ClusterSelector `json:"clusterSelector,omitempty"` - // ManagedCluster: A cluster that is managed by the workflow. - ManagedCluster *ManagedCluster `json:"managedCluster,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClusterSelector") to +// RepositoryConfig: Configuration for dependency repositories +type RepositoryConfig struct { + // PypiRepositoryConfig: Optional. Configuration for PyPi repository. + PypiRepositoryConfig *PyPiRepositoryConfig `json:"pypiRepositoryConfig,omitempty"` + // ForceSendFields is a list of field names (e.g. "PypiRepositoryConfig") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ClusterSelector") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See + // NullFields is a list of field names (e.g. "PypiRepositoryConfig") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s WorkflowTemplatePlacement) MarshalJSON() ([]byte, error) { - type NoMethod WorkflowTemplatePlacement +func (s RepositoryConfig) MarshalJSON() ([]byte, error) { + type NoMethod RepositoryConfig return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// YarnApplication: A YARN application created by a job. Application -// information is a subset of -// org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto.Beta Feature: -// This report is available for testing purposes only. It may be changed before -// final release. -type YarnApplication struct { - // Name: Required. The application name. - Name string `json:"name,omitempty"` - // Progress: Required. The numerical progress of the application, from 1 to - // 100. - Progress float64 `json:"progress,omitempty"` - // State: Required. The application state. +// ReservationAffinity: Reservation Affinity for consuming Zonal reservation. +type ReservationAffinity struct { + // ConsumeReservationType: Optional. Type of reservation to consume // // Possible values: - // "STATE_UNSPECIFIED" - Status is unspecified. - // "NEW" - Status is NEW. - // "NEW_SAVING" - Status is NEW_SAVING. - // "SUBMITTED" - Status is SUBMITTED. - // "ACCEPTED" - Status is ACCEPTED. - // "RUNNING" - Status is RUNNING. - // "FINISHED" - Status is FINISHED. - // "FAILED" - Status is FAILED. - // "KILLED" - Status is KILLED. - State string `json:"state,omitempty"` - // TrackingUrl: Optional. The HTTP URL of the ApplicationMaster, HistoryServer, - // or TimelineServer that provides application-specific information. The URL - // uses the internal hostname, and requires a proxy server for resolution and, - // possibly, access. - TrackingUrl string `json:"trackingUrl,omitempty"` - // ForceSendFields is a list of field names (e.g. "Name") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See + // "TYPE_UNSPECIFIED" + // "NO_RESERVATION" - Do not consume from any allocated capacity. + // "ANY_RESERVATION" - Consume any reservation available. + // "SPECIFIC_RESERVATION" - Must consume from a specific reservation. Must + // specify key value fields for specifying the reservations. + ConsumeReservationType string `json:"consumeReservationType,omitempty"` + // Key: Optional. Corresponds to the label key of reservation resource. + Key string `json:"key,omitempty"` + // Values: Optional. Corresponds to the label values of reservation resource. + Values []string `json:"values,omitempty"` + // ForceSendFields is a list of field names (e.g. "ConsumeReservationType") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Name") to include in API requests - // with the JSON null value. By default, fields with empty values are omitted - // from API requests. See + // NullFields is a list of field names (e.g. "ConsumeReservationType") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s YarnApplication) MarshalJSON() ([]byte, error) { - type NoMethod YarnApplication +func (s ReservationAffinity) MarshalJSON() ([]byte, error) { + type NoMethod ReservationAffinity return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -func (s *YarnApplication) UnmarshalJSON(data []byte) error { - type NoMethod YarnApplication - var s1 struct { - Progress gensupport.JSONFloat64 `json:"progress"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.Progress = float64(s1.Progress) - return nil +// ResizeNodeGroupRequest: A request to resize a node group. +type ResizeNodeGroupRequest struct { + // GracefulDecommissionTimeout: Optional. Timeout for graceful YARN + // decommissioning. Graceful decommissioning + // (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/scaling-clusters#graceful_decommissioning) + // allows the removal of nodes from the Compute Engine node group without + // interrupting jobs in progress. This timeout specifies how long to wait for + // jobs in progress to finish before forcefully removing nodes (and potentially + // interrupting jobs). Default timeout is 0 (for forceful decommission), and + // the maximum allowed timeout is 1 day. (see JSON representation of Duration + // (https://developers.google.com/protocol-buffers/docs/proto3#json)).Only + // supported on Dataproc image versions 1.2 and higher. + GracefulDecommissionTimeout string `json:"gracefulDecommissionTimeout,omitempty"` + // ParentOperationId: Optional. operation id of the parent operation sending + // the resize request + ParentOperationId string `json:"parentOperationId,omitempty"` + // RequestId: Optional. A unique ID used to identify the request. If the server + // receives two ResizeNodeGroupRequest + // (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.ResizeNodeGroupRequests) + // with the same ID, the second request is ignored and the first + // google.longrunning.Operation created and stored in the backend is + // returned.Recommendation: Set this value to a UUID + // (https://en.wikipedia.org/wiki/Universally_unique_identifier).The ID must + // contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens + // (-). The maximum length is 40 characters. + RequestId string `json:"requestId,omitempty"` + // Size: Required. The number of running instances for the node group to + // maintain. The group adds or removes instances to maintain the number of + // instances specified by this parameter. + Size int64 `json:"size,omitempty"` + // ForceSendFields is a list of field names (e.g. + // "GracefulDecommissionTimeout") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "GracefulDecommissionTimeout") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` } -type ProjectsLocationsAutoscalingPoliciesCreateCall struct { - s *Service - parent string - autoscalingpolicy *AutoscalingPolicy - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +func (s ResizeNodeGroupRequest) MarshalJSON() ([]byte, error) { + type NoMethod ResizeNodeGroupRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +type ResourceInformation struct { + Addresses []string `json:"addresses,omitempty"` + Name string `json:"name,omitempty"` + // ForceSendFields is a list of field names (e.g. "Addresses") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Addresses") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ResourceInformation) MarshalJSON() ([]byte, error) { + type NoMethod ResourceInformation + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// ResourceProfileInfo: Resource profile that contains information about all +// the resources required by executors and tasks. +type ResourceProfileInfo struct { + ExecutorResources map[string]ExecutorResourceRequest `json:"executorResources,omitempty"` + ResourceProfileId int64 `json:"resourceProfileId,omitempty"` + TaskResources map[string]TaskResourceRequest `json:"taskResources,omitempty"` + // ForceSendFields is a list of field names (e.g. "ExecutorResources") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ExecutorResources") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ResourceProfileInfo) MarshalJSON() ([]byte, error) { + type NoMethod ResourceProfileInfo + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// RuntimeConfig: Runtime configuration for a workload. +type RuntimeConfig struct { + // AutotuningConfig: Optional. Autotuning configuration of the workload. + AutotuningConfig *AutotuningConfig `json:"autotuningConfig,omitempty"` + // Cohort: Optional. Cohort identifier. Identifies families of the workloads + // having the same shape, e.g. daily ETL jobs. + Cohort string `json:"cohort,omitempty"` + // ContainerImage: Optional. Optional custom container image for the job + // runtime environment. If not specified, a default container image will be + // used. + ContainerImage string `json:"containerImage,omitempty"` + // Properties: Optional. A mapping of property names to values, which are used + // to configure workload execution. + Properties map[string]string `json:"properties,omitempty"` + // RepositoryConfig: Optional. Dependency repository configuration. + RepositoryConfig *RepositoryConfig `json:"repositoryConfig,omitempty"` + // Version: Optional. Version of the batch runtime. + Version string `json:"version,omitempty"` + // ForceSendFields is a list of field names (e.g. "AutotuningConfig") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AutotuningConfig") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s RuntimeConfig) MarshalJSON() ([]byte, error) { + type NoMethod RuntimeConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// RuntimeInfo: Runtime information about workload execution. +type RuntimeInfo struct { + // ApproximateUsage: Output only. Approximate workload resource usage, + // calculated when the workload completes (see Dataproc Serverless pricing + // (https://cloud.google.com/dataproc-serverless/pricing)).Note: This metric + // calculation may change in the future, for example, to capture cumulative + // workload resource consumption during workload execution (see the Dataproc + // Serverless release notes + // (https://cloud.google.com/dataproc-serverless/docs/release-notes) for + // announcements, changes, fixes and other Dataproc developments). + ApproximateUsage *UsageMetrics `json:"approximateUsage,omitempty"` + // CurrentUsage: Output only. Snapshot of current workload resource usage. + CurrentUsage *UsageSnapshot `json:"currentUsage,omitempty"` + // DiagnosticOutputUri: Output only. A URI pointing to the location of the + // diagnostics tarball. + DiagnosticOutputUri string `json:"diagnosticOutputUri,omitempty"` + // Endpoints: Output only. Map of remote access endpoints (such as web + // interfaces and APIs) to their URIs. + Endpoints map[string]string `json:"endpoints,omitempty"` + // OutputUri: Output only. A URI pointing to the location of the stdout and + // stderr of the workload. + OutputUri string `json:"outputUri,omitempty"` + // ForceSendFields is a list of field names (e.g. "ApproximateUsage") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ApproximateUsage") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s RuntimeInfo) MarshalJSON() ([]byte, error) { + type NoMethod RuntimeInfo + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// SearchSessionSparkApplicationExecutorStageSummaryResponse: List of Executors +// associated with a Spark Application Stage. +type SearchSessionSparkApplicationExecutorStageSummaryResponse struct { + // NextPageToken: This token is included in the response if there are more + // results to fetch. To fetch additional results, provide this value as the + // page_token in a subsequent + // SearchSessionSparkApplicationExecutorStageSummaryRequest. + NextPageToken string `json:"nextPageToken,omitempty"` + // SparkApplicationStageExecutors: Details about executors used by the + // application stage. + SparkApplicationStageExecutors []*ExecutorStageSummary `json:"sparkApplicationStageExecutors,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. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + 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. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SearchSessionSparkApplicationExecutorStageSummaryResponse) MarshalJSON() ([]byte, error) { + type NoMethod SearchSessionSparkApplicationExecutorStageSummaryResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// SearchSessionSparkApplicationExecutorsResponse: List of Executors associated +// with a Spark Application. +type SearchSessionSparkApplicationExecutorsResponse struct { + // NextPageToken: This token is included in the response if there are more + // results to fetch. To fetch additional results, provide this value as the + // page_token in a subsequent SearchSessionSparkApplicationExecutorsRequest. + NextPageToken string `json:"nextPageToken,omitempty"` + // SparkApplicationExecutors: Details about executors used by the application. + SparkApplicationExecutors []*ExecutorSummary `json:"sparkApplicationExecutors,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. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + 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. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SearchSessionSparkApplicationExecutorsResponse) MarshalJSON() ([]byte, error) { + type NoMethod SearchSessionSparkApplicationExecutorsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// SearchSessionSparkApplicationJobsResponse: A list of Jobs associated with a +// Spark Application. +type SearchSessionSparkApplicationJobsResponse struct { + // NextPageToken: This token is included in the response if there are more + // results to fetch. To fetch additional results, provide this value as the + // page_token in a subsequent SearchSessionSparkApplicationJobsRequest. + NextPageToken string `json:"nextPageToken,omitempty"` + // SparkApplicationJobs: Output only. Data corresponding to a spark job. + SparkApplicationJobs []*JobData `json:"sparkApplicationJobs,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. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + 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. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SearchSessionSparkApplicationJobsResponse) MarshalJSON() ([]byte, error) { + type NoMethod SearchSessionSparkApplicationJobsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// SearchSessionSparkApplicationSqlQueriesResponse: List of all queries for a +// Spark Application. +type SearchSessionSparkApplicationSqlQueriesResponse struct { + // NextPageToken: This token is included in the response if there are more + // results to fetch. To fetch additional results, provide this value as the + // page_token in a subsequent SearchSessionSparkApplicationSqlQueriesRequest. + NextPageToken string `json:"nextPageToken,omitempty"` + // SparkApplicationSqlQueries: Output only. SQL Execution Data + SparkApplicationSqlQueries []*SqlExecutionUiData `json:"sparkApplicationSqlQueries,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. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + 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. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SearchSessionSparkApplicationSqlQueriesResponse) MarshalJSON() ([]byte, error) { + type NoMethod SearchSessionSparkApplicationSqlQueriesResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// SearchSessionSparkApplicationStageAttemptTasksResponse: List of tasks for a +// stage of a Spark Application +type SearchSessionSparkApplicationStageAttemptTasksResponse struct { + // NextPageToken: This token is included in the response if there are more + // results to fetch. To fetch additional results, provide this value as the + // page_token in a subsequent + // SearchSessionSparkApplicationStageAttemptTasksRequest. + NextPageToken string `json:"nextPageToken,omitempty"` + // SparkApplicationStageAttemptTasks: Output only. Data corresponding to tasks + // created by spark. + SparkApplicationStageAttemptTasks []*TaskData `json:"sparkApplicationStageAttemptTasks,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. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + 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. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SearchSessionSparkApplicationStageAttemptTasksResponse) MarshalJSON() ([]byte, error) { + type NoMethod SearchSessionSparkApplicationStageAttemptTasksResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// SearchSessionSparkApplicationStageAttemptsResponse: A list of Stage Attempts +// for a Stage of a Spark Application. +type SearchSessionSparkApplicationStageAttemptsResponse struct { + // NextPageToken: This token is included in the response if there are more + // results to fetch. To fetch additional results, provide this value as the + // page_token in a subsequent + // SearchSessionSparkApplicationStageAttemptsRequest. + NextPageToken string `json:"nextPageToken,omitempty"` + // SparkApplicationStageAttempts: Output only. Data corresponding to a stage + // attempts + SparkApplicationStageAttempts []*StageData `json:"sparkApplicationStageAttempts,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. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + 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. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SearchSessionSparkApplicationStageAttemptsResponse) MarshalJSON() ([]byte, error) { + type NoMethod SearchSessionSparkApplicationStageAttemptsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// SearchSessionSparkApplicationStagesResponse: A list of stages associated +// with a Spark Application. +type SearchSessionSparkApplicationStagesResponse struct { + // NextPageToken: This token is included in the response if there are more + // results to fetch. To fetch additional results, provide this value as the + // page_token in a subsequent SearchSessionSparkApplicationStages. + NextPageToken string `json:"nextPageToken,omitempty"` + // SparkApplicationStages: Output only. Data corresponding to a stage. + SparkApplicationStages []*StageData `json:"sparkApplicationStages,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. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + 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. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SearchSessionSparkApplicationStagesResponse) MarshalJSON() ([]byte, error) { + type NoMethod SearchSessionSparkApplicationStagesResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// SearchSessionSparkApplicationsResponse: A list of summary of Spark +// Applications +type SearchSessionSparkApplicationsResponse struct { + // NextPageToken: This token is included in the response if there are more + // results to fetch. To fetch additional results, provide this value as the + // page_token in a subsequent SearchSessionSparkApplicationsRequest. + NextPageToken string `json:"nextPageToken,omitempty"` + // SparkApplications: Output only. High level information corresponding to an + // application. + SparkApplications []*SparkApplication `json:"sparkApplications,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. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + 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. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SearchSessionSparkApplicationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod SearchSessionSparkApplicationsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// SearchSparkApplicationExecutorStageSummaryResponse: List of Executors +// associated with a Spark Application Stage. +type SearchSparkApplicationExecutorStageSummaryResponse struct { + // NextPageToken: This token is included in the response if there are more + // results to fetch. To fetch additional results, provide this value as the + // page_token in a subsequent SearchSparkApplicationExecutorsListRequest. + NextPageToken string `json:"nextPageToken,omitempty"` + // SparkApplicationStageExecutors: Details about executors used by the + // application stage. + SparkApplicationStageExecutors []*ExecutorStageSummary `json:"sparkApplicationStageExecutors,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. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + 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. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SearchSparkApplicationExecutorStageSummaryResponse) MarshalJSON() ([]byte, error) { + type NoMethod SearchSparkApplicationExecutorStageSummaryResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// SearchSparkApplicationExecutorsResponse: List of Executors associated with a +// Spark Application. +type SearchSparkApplicationExecutorsResponse struct { + // NextPageToken: This token is included in the response if there are more + // results to fetch. To fetch additional results, provide this value as the + // page_token in a subsequent SearchSparkApplicationExecutorsListRequest. + NextPageToken string `json:"nextPageToken,omitempty"` + // SparkApplicationExecutors: Details about executors used by the application. + SparkApplicationExecutors []*ExecutorSummary `json:"sparkApplicationExecutors,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. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + 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. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SearchSparkApplicationExecutorsResponse) MarshalJSON() ([]byte, error) { + type NoMethod SearchSparkApplicationExecutorsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// SearchSparkApplicationJobsResponse: A list of Jobs associated with a Spark +// Application. +type SearchSparkApplicationJobsResponse struct { + // NextPageToken: This token is included in the response if there are more + // results to fetch. To fetch additional results, provide this value as the + // page_token in a subsequent SearchSparkApplicationJobsRequest. + NextPageToken string `json:"nextPageToken,omitempty"` + // SparkApplicationJobs: Output only. Data corresponding to a spark job. + SparkApplicationJobs []*JobData `json:"sparkApplicationJobs,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. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + 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. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SearchSparkApplicationJobsResponse) MarshalJSON() ([]byte, error) { + type NoMethod SearchSparkApplicationJobsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// SearchSparkApplicationSqlQueriesResponse: List of all queries for a Spark +// Application. +type SearchSparkApplicationSqlQueriesResponse struct { + // NextPageToken: This token is included in the response if there are more + // results to fetch. To fetch additional results, provide this value as the + // page_token in a subsequent SearchSparkApplicationSqlQueriesRequest. + NextPageToken string `json:"nextPageToken,omitempty"` + // SparkApplicationSqlQueries: Output only. SQL Execution Data + SparkApplicationSqlQueries []*SqlExecutionUiData `json:"sparkApplicationSqlQueries,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. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + 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. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SearchSparkApplicationSqlQueriesResponse) MarshalJSON() ([]byte, error) { + type NoMethod SearchSparkApplicationSqlQueriesResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// SearchSparkApplicationStageAttemptTasksResponse: List of tasks for a stage +// of a Spark Application +type SearchSparkApplicationStageAttemptTasksResponse struct { + // NextPageToken: This token is included in the response if there are more + // results to fetch. To fetch additional results, provide this value as the + // page_token in a subsequent ListSparkApplicationStageAttemptTasksRequest. + NextPageToken string `json:"nextPageToken,omitempty"` + // SparkApplicationStageAttemptTasks: Output only. Data corresponding to tasks + // created by spark. + SparkApplicationStageAttemptTasks []*TaskData `json:"sparkApplicationStageAttemptTasks,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. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + 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. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SearchSparkApplicationStageAttemptTasksResponse) MarshalJSON() ([]byte, error) { + type NoMethod SearchSparkApplicationStageAttemptTasksResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// SearchSparkApplicationStageAttemptsResponse: A list of Stage Attempts for a +// Stage of a Spark Application. +type SearchSparkApplicationStageAttemptsResponse struct { + // NextPageToken: This token is included in the response if there are more + // results to fetch. To fetch additional results, provide this value as the + // page_token in a subsequent ListSparkApplicationStageAttemptsRequest. + NextPageToken string `json:"nextPageToken,omitempty"` + // SparkApplicationStageAttempts: Output only. Data corresponding to a stage + // attempts + SparkApplicationStageAttempts []*StageData `json:"sparkApplicationStageAttempts,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. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + 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. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SearchSparkApplicationStageAttemptsResponse) MarshalJSON() ([]byte, error) { + type NoMethod SearchSparkApplicationStageAttemptsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// SearchSparkApplicationStagesResponse: A list of stages associated with a +// Spark Application. +type SearchSparkApplicationStagesResponse struct { + // NextPageToken: This token is included in the response if there are more + // results to fetch. To fetch additional results, provide this value as the + // page_token in a subsequent SearchSparkApplicationStages. + NextPageToken string `json:"nextPageToken,omitempty"` + // SparkApplicationStages: Output only. Data corresponding to a stage. + SparkApplicationStages []*StageData `json:"sparkApplicationStages,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. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + 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. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SearchSparkApplicationStagesResponse) MarshalJSON() ([]byte, error) { + type NoMethod SearchSparkApplicationStagesResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// SearchSparkApplicationsResponse: A list of summary of Spark Applications +type SearchSparkApplicationsResponse struct { + // NextPageToken: This token is included in the response if there are more + // results to fetch. To fetch additional results, provide this value as the + // page_token in a subsequent SearchSparkApplicationsRequest. + NextPageToken string `json:"nextPageToken,omitempty"` + // SparkApplications: Output only. High level information corresponding to an + // application. + SparkApplications []*SparkApplication `json:"sparkApplications,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. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + 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. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SearchSparkApplicationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod SearchSparkApplicationsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// SecurityConfig: Security related configuration, including encryption, +// Kerberos, etc. +type SecurityConfig struct { + // IdentityConfig: Optional. Identity related configuration, including service + // account based secure multi-tenancy user mappings. + IdentityConfig *IdentityConfig `json:"identityConfig,omitempty"` + // KerberosConfig: Optional. Kerberos related configuration. + KerberosConfig *KerberosConfig `json:"kerberosConfig,omitempty"` + // ForceSendFields is a list of field names (e.g. "IdentityConfig") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "IdentityConfig") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SecurityConfig) MarshalJSON() ([]byte, error) { + type NoMethod SecurityConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// Session: A representation of a session. +type Session struct { + // CreateTime: Output only. The time when the session was created. + CreateTime string `json:"createTime,omitempty"` + // Creator: Output only. The email address of the user who created the session. + Creator string `json:"creator,omitempty"` + // EnvironmentConfig: Optional. Environment configuration for the session + // execution. + EnvironmentConfig *EnvironmentConfig `json:"environmentConfig,omitempty"` + // JupyterSession: Optional. Jupyter session config. + JupyterSession *JupyterConfig `json:"jupyterSession,omitempty"` + // Labels: Optional. The labels to associate with the session. Label keys must + // contain 1 to 63 characters, and must conform to RFC 1035 + // (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if + // present, must contain 1 to 63 characters, and must conform to RFC 1035 + // (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be + // associated with a session. + Labels map[string]string `json:"labels,omitempty"` + // Name: Required. The resource name of the session. + Name string `json:"name,omitempty"` + // RuntimeConfig: Optional. Runtime configuration for the session execution. + RuntimeConfig *RuntimeConfig `json:"runtimeConfig,omitempty"` + // RuntimeInfo: Output only. Runtime information about session execution. + RuntimeInfo *RuntimeInfo `json:"runtimeInfo,omitempty"` + // SessionTemplate: Optional. The session template used by the session.Only + // resource names, including project ID and location, are valid.Example: * + // https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/sessionTemplates/[template_id] + // * + // projects/[project_id]/locations/[dataproc_region]/sessionTemplates/[template_ + // id]The template must be in the same project and Dataproc region as the + // session. + SessionTemplate string `json:"sessionTemplate,omitempty"` + // SparkConnectSession: Optional. Spark connect session config. + SparkConnectSession *SparkConnectConfig `json:"sparkConnectSession,omitempty"` + // State: Output only. A state of the session. + // + // Possible values: + // "STATE_UNSPECIFIED" - The session state is unknown. + // "CREATING" - The session is created prior to running. + // "ACTIVE" - The session is running. + // "TERMINATING" - The session is terminating. + // "TERMINATED" - The session is terminated successfully. + // "FAILED" - The session is no longer running due to an error. + State string `json:"state,omitempty"` + // StateHistory: Output only. Historical state information for the session. + StateHistory []*SessionStateHistory `json:"stateHistory,omitempty"` + // StateMessage: Output only. Session state details, such as the failure + // description if the state is FAILED. + StateMessage string `json:"stateMessage,omitempty"` + // StateTime: Output only. The time when the session entered the current state. + StateTime string `json:"stateTime,omitempty"` + // User: Optional. The email address of the user who owns the session. + User string `json:"user,omitempty"` + // Uuid: Output only. A session UUID (Unique Universal Identifier). The service + // generates this value when it creates the session. + Uuid string `json:"uuid,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CreateTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s Session) MarshalJSON() ([]byte, error) { + type NoMethod Session + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// SessionOperationMetadata: Metadata describing the Session operation. +type SessionOperationMetadata struct { + // CreateTime: The time when the operation was created. + CreateTime string `json:"createTime,omitempty"` + // Description: Short description of the operation. + Description string `json:"description,omitempty"` + // DoneTime: The time when the operation was finished. + DoneTime string `json:"doneTime,omitempty"` + // Labels: Labels associated with the operation. + Labels map[string]string `json:"labels,omitempty"` + // OperationType: The operation type. + // + // Possible values: + // "SESSION_OPERATION_TYPE_UNSPECIFIED" - Session operation type is unknown. + // "CREATE" - Create Session operation type. + // "TERMINATE" - Terminate Session operation type. + // "DELETE" - Delete Session operation type. + OperationType string `json:"operationType,omitempty"` + // Session: Name of the session for the operation. + Session string `json:"session,omitempty"` + // SessionUuid: Session UUID for the operation. + SessionUuid string `json:"sessionUuid,omitempty"` + // Warnings: Warnings encountered during operation execution. + Warnings []string `json:"warnings,omitempty"` + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CreateTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SessionOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod SessionOperationMetadata + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// SessionStateHistory: Historical state information. +type SessionStateHistory struct { + // State: Output only. The state of the session at this point in the session + // history. + // + // Possible values: + // "STATE_UNSPECIFIED" - The session state is unknown. + // "CREATING" - The session is created prior to running. + // "ACTIVE" - The session is running. + // "TERMINATING" - The session is terminating. + // "TERMINATED" - The session is terminated successfully. + // "FAILED" - The session is no longer running due to an error. + State string `json:"state,omitempty"` + // StateMessage: Output only. Details about the state at this point in the + // session history. + StateMessage string `json:"stateMessage,omitempty"` + // StateStartTime: Output only. The time when the session entered the + // historical state. + StateStartTime string `json:"stateStartTime,omitempty"` + // ForceSendFields is a list of field names (e.g. "State") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "State") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SessionStateHistory) MarshalJSON() ([]byte, error) { + type NoMethod SessionStateHistory + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// SessionTemplate: A representation of a session template. +type SessionTemplate struct { + // CreateTime: Output only. The time when the template was created. + CreateTime string `json:"createTime,omitempty"` + // Creator: Output only. The email address of the user who created the + // template. + Creator string `json:"creator,omitempty"` + // Description: Optional. Brief description of the template. + Description string `json:"description,omitempty"` + // EnvironmentConfig: Optional. Environment configuration for session + // execution. + EnvironmentConfig *EnvironmentConfig `json:"environmentConfig,omitempty"` + // JupyterSession: Optional. Jupyter session config. + JupyterSession *JupyterConfig `json:"jupyterSession,omitempty"` + // Labels: Optional. Labels to associate with sessions created using this + // template. Label keys must contain 1 to 63 characters, and must conform to + // RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values can be empty, + // but, if present, must contain 1 to 63 characters and conform to RFC 1035 + // (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be + // associated with a session. + Labels map[string]string `json:"labels,omitempty"` + // Name: Required. The resource name of the session template. + Name string `json:"name,omitempty"` + // RuntimeConfig: Optional. Runtime configuration for session execution. + RuntimeConfig *RuntimeConfig `json:"runtimeConfig,omitempty"` + // SparkConnectSession: Optional. Spark connect session config. + SparkConnectSession *SparkConnectConfig `json:"sparkConnectSession,omitempty"` + // UpdateTime: Output only. The time the template was last updated. + UpdateTime string `json:"updateTime,omitempty"` + // Uuid: Output only. A session template UUID (Unique Universal Identifier). + // The service generates this value when it creates the session template. + Uuid string `json:"uuid,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CreateTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SessionTemplate) MarshalJSON() ([]byte, error) { + type NoMethod SessionTemplate + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// SetIamPolicyRequest: Request message for SetIamPolicy method. +type SetIamPolicyRequest struct { + // Policy: REQUIRED: The complete policy to be applied to the resource. The + // size of the policy is limited to a few 10s of KB. An empty policy is a valid + // policy but certain Google Cloud services (such as Projects) might reject + // them. + Policy *Policy `json:"policy,omitempty"` + // ForceSendFields is a list of field names (e.g. "Policy") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Policy") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SetIamPolicyRequest) MarshalJSON() ([]byte, error) { + type NoMethod SetIamPolicyRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// ShieldedInstanceConfig: Shielded Instance Config for clusters using Compute +// Engine Shielded VMs +// (https://cloud.google.com/security/shielded-cloud/shielded-vm). +type ShieldedInstanceConfig struct { + // EnableIntegrityMonitoring: Optional. Defines whether instances have + // integrity monitoring enabled. + EnableIntegrityMonitoring bool `json:"enableIntegrityMonitoring,omitempty"` + // EnableSecureBoot: Optional. Defines whether instances have Secure Boot + // enabled. + EnableSecureBoot bool `json:"enableSecureBoot,omitempty"` + // EnableVtpm: Optional. Defines whether instances have the vTPM enabled. + EnableVtpm bool `json:"enableVtpm,omitempty"` + // ForceSendFields is a list of field names (e.g. "EnableIntegrityMonitoring") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "EnableIntegrityMonitoring") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ShieldedInstanceConfig) MarshalJSON() ([]byte, error) { + type NoMethod ShieldedInstanceConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +type ShufflePushReadMetrics struct { + CorruptMergedBlockChunks int64 `json:"corruptMergedBlockChunks,omitempty,string"` + LocalMergedBlocksFetched int64 `json:"localMergedBlocksFetched,omitempty,string"` + LocalMergedBytesRead int64 `json:"localMergedBytesRead,omitempty,string"` + LocalMergedChunksFetched int64 `json:"localMergedChunksFetched,omitempty,string"` + MergedFetchFallbackCount int64 `json:"mergedFetchFallbackCount,omitempty,string"` + RemoteMergedBlocksFetched int64 `json:"remoteMergedBlocksFetched,omitempty,string"` + RemoteMergedBytesRead int64 `json:"remoteMergedBytesRead,omitempty,string"` + RemoteMergedChunksFetched int64 `json:"remoteMergedChunksFetched,omitempty,string"` + RemoteMergedReqsDuration int64 `json:"remoteMergedReqsDuration,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "CorruptMergedBlockChunks") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CorruptMergedBlockChunks") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ShufflePushReadMetrics) MarshalJSON() ([]byte, error) { + type NoMethod ShufflePushReadMetrics + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +type ShufflePushReadQuantileMetrics struct { + CorruptMergedBlockChunks *Quantiles `json:"corruptMergedBlockChunks,omitempty"` + LocalMergedBlocksFetched *Quantiles `json:"localMergedBlocksFetched,omitempty"` + LocalMergedBytesRead *Quantiles `json:"localMergedBytesRead,omitempty"` + LocalMergedChunksFetched *Quantiles `json:"localMergedChunksFetched,omitempty"` + MergedFetchFallbackCount *Quantiles `json:"mergedFetchFallbackCount,omitempty"` + RemoteMergedBlocksFetched *Quantiles `json:"remoteMergedBlocksFetched,omitempty"` + RemoteMergedBytesRead *Quantiles `json:"remoteMergedBytesRead,omitempty"` + RemoteMergedChunksFetched *Quantiles `json:"remoteMergedChunksFetched,omitempty"` + RemoteMergedReqsDuration *Quantiles `json:"remoteMergedReqsDuration,omitempty"` + // ForceSendFields is a list of field names (e.g. "CorruptMergedBlockChunks") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CorruptMergedBlockChunks") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ShufflePushReadQuantileMetrics) MarshalJSON() ([]byte, error) { + type NoMethod ShufflePushReadQuantileMetrics + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// ShuffleReadMetrics: Shuffle data read by the task. +type ShuffleReadMetrics struct { + FetchWaitTimeMillis int64 `json:"fetchWaitTimeMillis,omitempty,string"` + LocalBlocksFetched int64 `json:"localBlocksFetched,omitempty,string"` + LocalBytesRead int64 `json:"localBytesRead,omitempty,string"` + RecordsRead int64 `json:"recordsRead,omitempty,string"` + RemoteBlocksFetched int64 `json:"remoteBlocksFetched,omitempty,string"` + RemoteBytesRead int64 `json:"remoteBytesRead,omitempty,string"` + RemoteBytesReadToDisk int64 `json:"remoteBytesReadToDisk,omitempty,string"` + RemoteReqsDuration int64 `json:"remoteReqsDuration,omitempty,string"` + ShufflePushReadMetrics *ShufflePushReadMetrics `json:"shufflePushReadMetrics,omitempty"` + // ForceSendFields is a list of field names (e.g. "FetchWaitTimeMillis") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "FetchWaitTimeMillis") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ShuffleReadMetrics) MarshalJSON() ([]byte, error) { + type NoMethod ShuffleReadMetrics + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +type ShuffleReadQuantileMetrics struct { + FetchWaitTimeMillis *Quantiles `json:"fetchWaitTimeMillis,omitempty"` + LocalBlocksFetched *Quantiles `json:"localBlocksFetched,omitempty"` + ReadBytes *Quantiles `json:"readBytes,omitempty"` + ReadRecords *Quantiles `json:"readRecords,omitempty"` + RemoteBlocksFetched *Quantiles `json:"remoteBlocksFetched,omitempty"` + RemoteBytesRead *Quantiles `json:"remoteBytesRead,omitempty"` + RemoteBytesReadToDisk *Quantiles `json:"remoteBytesReadToDisk,omitempty"` + RemoteReqsDuration *Quantiles `json:"remoteReqsDuration,omitempty"` + ShufflePushReadMetrics *ShufflePushReadQuantileMetrics `json:"shufflePushReadMetrics,omitempty"` + TotalBlocksFetched *Quantiles `json:"totalBlocksFetched,omitempty"` + // ForceSendFields is a list of field names (e.g. "FetchWaitTimeMillis") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "FetchWaitTimeMillis") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ShuffleReadQuantileMetrics) MarshalJSON() ([]byte, error) { + type NoMethod ShuffleReadQuantileMetrics + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// ShuffleWriteMetrics: Shuffle data written by task. +type ShuffleWriteMetrics struct { + BytesWritten int64 `json:"bytesWritten,omitempty,string"` + RecordsWritten int64 `json:"recordsWritten,omitempty,string"` + WriteTimeNanos int64 `json:"writeTimeNanos,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "BytesWritten") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "BytesWritten") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ShuffleWriteMetrics) MarshalJSON() ([]byte, error) { + type NoMethod ShuffleWriteMetrics + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +type ShuffleWriteQuantileMetrics struct { + WriteBytes *Quantiles `json:"writeBytes,omitempty"` + WriteRecords *Quantiles `json:"writeRecords,omitempty"` + WriteTimeNanos *Quantiles `json:"writeTimeNanos,omitempty"` + // ForceSendFields is a list of field names (e.g. "WriteBytes") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "WriteBytes") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ShuffleWriteQuantileMetrics) MarshalJSON() ([]byte, error) { + type NoMethod ShuffleWriteQuantileMetrics + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +type SinkProgress struct { + Description string `json:"description,omitempty"` + Metrics map[string]string `json:"metrics,omitempty"` + NumOutputRows int64 `json:"numOutputRows,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "Description") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SinkProgress) MarshalJSON() ([]byte, error) { + type NoMethod SinkProgress + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// SoftwareConfig: Specifies the selection and config of software inside the +// cluster. +type SoftwareConfig struct { + // ImageVersion: Optional. The version of software inside the cluster. It must + // be one of the supported Dataproc Versions + // (https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported-dataproc-image-versions), + // such as "1.2" (including a subminor version, such as "1.2.29"), or the + // "preview" version + // (https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions). + // If unspecified, it defaults to the latest Debian version. + ImageVersion string `json:"imageVersion,omitempty"` + // OptionalComponents: Optional. The set of components to activate on the + // cluster. + // + // Possible values: + // "COMPONENT_UNSPECIFIED" - Unspecified component. Specifying this will + // cause Cluster creation to fail. + // "ANACONDA" - The Anaconda component is no longer supported or applicable + // to supported Dataproc on Compute Engine image versions + // (https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-version-clusters#supported-dataproc-image-versions). + // It cannot be activated on clusters created with supported Dataproc on + // Compute Engine image versions. + // "DOCKER" - Docker + // "DRUID" - The Druid query engine. (alpha) + // "FLINK" - Flink + // "HBASE" - HBase. (beta) + // "HIVE_WEBHCAT" - The Hive Web HCatalog (the REST service for accessing + // HCatalog). + // "HUDI" - Hudi. + // "JUPYTER" - The Jupyter Notebook. + // "PRESTO" - The Presto query engine. + // "TRINO" - The Trino query engine. + // "RANGER" - The Ranger service. + // "SOLR" - The Solr service. + // "ZEPPELIN" - The Zeppelin notebook. + // "ZOOKEEPER" - The Zookeeper service. + OptionalComponents []string `json:"optionalComponents,omitempty"` + // Properties: Optional. The properties to set on daemon config files.Property + // keys are specified in prefix:property format, for example + // core:hadoop.tmp.dir. The following are supported prefixes and their + // mappings: capacity-scheduler: capacity-scheduler.xml core: core-site.xml + // distcp: distcp-default.xml hdfs: hdfs-site.xml hive: hive-site.xml mapred: + // mapred-site.xml pig: pig.properties spark: spark-defaults.conf yarn: + // yarn-site.xmlFor more information, see Cluster properties + // (https://cloud.google.com/dataproc/docs/concepts/cluster-properties). + Properties map[string]string `json:"properties,omitempty"` + // ForceSendFields is a list of field names (e.g. "ImageVersion") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ImageVersion") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SoftwareConfig) MarshalJSON() ([]byte, error) { + type NoMethod SoftwareConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +type SourceProgress struct { + Description string `json:"description,omitempty"` + EndOffset string `json:"endOffset,omitempty"` + InputRowsPerSecond float64 `json:"inputRowsPerSecond,omitempty"` + LatestOffset string `json:"latestOffset,omitempty"` + Metrics map[string]string `json:"metrics,omitempty"` + NumInputRows int64 `json:"numInputRows,omitempty,string"` + ProcessedRowsPerSecond float64 `json:"processedRowsPerSecond,omitempty"` + StartOffset string `json:"startOffset,omitempty"` + // ForceSendFields is a list of field names (e.g. "Description") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SourceProgress) MarshalJSON() ([]byte, error) { + type NoMethod SourceProgress + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *SourceProgress) UnmarshalJSON(data []byte) error { + type NoMethod SourceProgress + var s1 struct { + InputRowsPerSecond gensupport.JSONFloat64 `json:"inputRowsPerSecond"` + ProcessedRowsPerSecond gensupport.JSONFloat64 `json:"processedRowsPerSecond"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.InputRowsPerSecond = float64(s1.InputRowsPerSecond) + s.ProcessedRowsPerSecond = float64(s1.ProcessedRowsPerSecond) + return nil +} + +// SparkApplication: A summary of Spark Application +type SparkApplication struct { + // Application: Output only. High level information corresponding to an + // application. + Application *ApplicationInfo `json:"application,omitempty"` + // Name: Identifier. Name of the spark application + Name string `json:"name,omitempty"` + // ForceSendFields is a list of field names (e.g. "Application") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Application") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SparkApplication) MarshalJSON() ([]byte, error) { + type NoMethod SparkApplication + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// SparkBatch: A configuration for running an Apache Spark +// (https://spark.apache.org/) batch workload. +type SparkBatch struct { + // ArchiveUris: Optional. HCFS URIs of archives to be extracted into the + // working directory of each executor. Supported file types: .jar, .tar, + // .tar.gz, .tgz, and .zip. + ArchiveUris []string `json:"archiveUris,omitempty"` + // Args: Optional. The arguments to pass to the driver. Do not include + // arguments that can be set as batch properties, such as --conf, since a + // collision can occur that causes an incorrect batch submission. + Args []string `json:"args,omitempty"` + // FileUris: Optional. HCFS URIs of files to be placed in the working directory + // of each executor. + FileUris []string `json:"fileUris,omitempty"` + // JarFileUris: Optional. HCFS URIs of jar files to add to the classpath of the + // Spark driver and tasks. + JarFileUris []string `json:"jarFileUris,omitempty"` + // MainClass: Optional. The name of the driver main class. The jar file that + // contains the class must be in the classpath or specified in jar_file_uris. + MainClass string `json:"mainClass,omitempty"` + // MainJarFileUri: Optional. The HCFS URI of the jar file that contains the + // main class. + MainJarFileUri string `json:"mainJarFileUri,omitempty"` + // ForceSendFields is a list of field names (e.g. "ArchiveUris") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ArchiveUris") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SparkBatch) MarshalJSON() ([]byte, error) { + type NoMethod SparkBatch + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// SparkConnectConfig: Spark connect configuration for an interactive session. +type SparkConnectConfig struct { +} + +// SparkHistoryServerConfig: Spark History Server configuration for the +// workload. +type SparkHistoryServerConfig struct { + // DataprocCluster: Optional. Resource name of an existing Dataproc Cluster to + // act as a Spark History Server for the workload.Example: + // projects/[project_id]/regions/[region]/clusters/[cluster_name] + DataprocCluster string `json:"dataprocCluster,omitempty"` + // ForceSendFields is a list of field names (e.g. "DataprocCluster") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "DataprocCluster") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SparkHistoryServerConfig) MarshalJSON() ([]byte, error) { + type NoMethod SparkHistoryServerConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// SparkJob: A Dataproc job for running Apache Spark +// (https://spark.apache.org/) applications on YARN. +type SparkJob struct { + // ArchiveUris: Optional. HCFS URIs of archives to be extracted into the + // working directory of each executor. Supported file types: .jar, .tar, + // .tar.gz, .tgz, and .zip. + ArchiveUris []string `json:"archiveUris,omitempty"` + // Args: Optional. The arguments to pass to the driver. Do not include + // arguments, such as --conf, that can be set as job properties, since a + // collision may occur that causes an incorrect job submission. + Args []string `json:"args,omitempty"` + // FileUris: Optional. HCFS URIs of files to be placed in the working directory + // of each executor. Useful for naively parallel tasks. + FileUris []string `json:"fileUris,omitempty"` + // JarFileUris: Optional. HCFS URIs of jar files to add to the CLASSPATHs of + // the Spark driver and tasks. + JarFileUris []string `json:"jarFileUris,omitempty"` + // LoggingConfig: Optional. The runtime log config for job execution. + LoggingConfig *LoggingConfig `json:"loggingConfig,omitempty"` + // MainClass: The name of the driver's main class. The jar file that contains + // the class must be in the default CLASSPATH or specified in + // SparkJob.jar_file_uris. + MainClass string `json:"mainClass,omitempty"` + // MainJarFileUri: The HCFS URI of the jar file that contains the main class. + MainJarFileUri string `json:"mainJarFileUri,omitempty"` + // Properties: Optional. A mapping of property names to values, used to + // configure Spark. Properties that conflict with values set by the Dataproc + // API might be overwritten. Can include properties set in + // /etc/spark/conf/spark-defaults.conf and classes in user code. + Properties map[string]string `json:"properties,omitempty"` + // ForceSendFields is a list of field names (e.g. "ArchiveUris") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ArchiveUris") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SparkJob) MarshalJSON() ([]byte, error) { + type NoMethod SparkJob + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// SparkPlanGraph: A graph used for storing information of an executionPlan of +// DataFrame. +type SparkPlanGraph struct { + Edges []*SparkPlanGraphEdge `json:"edges,omitempty"` + ExecutionId int64 `json:"executionId,omitempty,string"` + Nodes []*SparkPlanGraphNodeWrapper `json:"nodes,omitempty"` + // ForceSendFields is a list of field names (e.g. "Edges") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Edges") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SparkPlanGraph) MarshalJSON() ([]byte, error) { + type NoMethod SparkPlanGraph + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// SparkPlanGraphCluster: Represents a tree of spark plan. +type SparkPlanGraphCluster struct { + Desc string `json:"desc,omitempty"` + Metrics []*SqlPlanMetric `json:"metrics,omitempty"` + Name string `json:"name,omitempty"` + Nodes []*SparkPlanGraphNodeWrapper `json:"nodes,omitempty"` + SparkPlanGraphClusterId int64 `json:"sparkPlanGraphClusterId,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "Desc") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Desc") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SparkPlanGraphCluster) MarshalJSON() ([]byte, error) { + type NoMethod SparkPlanGraphCluster + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// SparkPlanGraphEdge: Represents a directed edge in the spark plan tree from +// child to parent. +type SparkPlanGraphEdge struct { + FromId int64 `json:"fromId,omitempty,string"` + ToId int64 `json:"toId,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "FromId") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "FromId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SparkPlanGraphEdge) MarshalJSON() ([]byte, error) { + type NoMethod SparkPlanGraphEdge + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// SparkPlanGraphNode: Represents a node in the spark plan tree. +type SparkPlanGraphNode struct { + Desc string `json:"desc,omitempty"` + Metrics []*SqlPlanMetric `json:"metrics,omitempty"` + Name string `json:"name,omitempty"` + SparkPlanGraphNodeId int64 `json:"sparkPlanGraphNodeId,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "Desc") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Desc") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SparkPlanGraphNode) MarshalJSON() ([]byte, error) { + type NoMethod SparkPlanGraphNode + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// SparkPlanGraphNodeWrapper: Wrapper user to represent either a node or a +// cluster. +type SparkPlanGraphNodeWrapper struct { + Cluster *SparkPlanGraphCluster `json:"cluster,omitempty"` + Node *SparkPlanGraphNode `json:"node,omitempty"` + // ForceSendFields is a list of field names (e.g. "Cluster") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Cluster") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SparkPlanGraphNodeWrapper) MarshalJSON() ([]byte, error) { + type NoMethod SparkPlanGraphNodeWrapper + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// SparkRBatch: A configuration for running an Apache SparkR +// (https://spark.apache.org/docs/latest/sparkr.html) batch workload. +type SparkRBatch struct { + // ArchiveUris: Optional. HCFS URIs of archives to be extracted into the + // working directory of each executor. Supported file types: .jar, .tar, + // .tar.gz, .tgz, and .zip. + ArchiveUris []string `json:"archiveUris,omitempty"` + // Args: Optional. The arguments to pass to the Spark driver. Do not include + // arguments that can be set as batch properties, such as --conf, since a + // collision can occur that causes an incorrect batch submission. + Args []string `json:"args,omitempty"` + // FileUris: Optional. HCFS URIs of files to be placed in the working directory + // of each executor. + FileUris []string `json:"fileUris,omitempty"` + // MainRFileUri: Required. The HCFS URI of the main R file to use as the + // driver. Must be a .R or .r file. + MainRFileUri string `json:"mainRFileUri,omitempty"` + // ForceSendFields is a list of field names (e.g. "ArchiveUris") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ArchiveUris") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SparkRBatch) MarshalJSON() ([]byte, error) { + type NoMethod SparkRBatch + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// SparkRJob: A Dataproc job for running Apache SparkR +// (https://spark.apache.org/docs/latest/sparkr.html) applications on YARN. +type SparkRJob struct { + // ArchiveUris: Optional. HCFS URIs of archives to be extracted into the + // working directory of each executor. Supported file types: .jar, .tar, + // .tar.gz, .tgz, and .zip. + ArchiveUris []string `json:"archiveUris,omitempty"` + // Args: Optional. The arguments to pass to the driver. Do not include + // arguments, such as --conf, that can be set as job properties, since a + // collision may occur that causes an incorrect job submission. + Args []string `json:"args,omitempty"` + // FileUris: Optional. HCFS URIs of files to be placed in the working directory + // of each executor. Useful for naively parallel tasks. + FileUris []string `json:"fileUris,omitempty"` + // LoggingConfig: Optional. The runtime log config for job execution. + LoggingConfig *LoggingConfig `json:"loggingConfig,omitempty"` + // MainRFileUri: Required. The HCFS URI of the main R file to use as the + // driver. Must be a .R file. + MainRFileUri string `json:"mainRFileUri,omitempty"` + // Properties: Optional. A mapping of property names to values, used to + // configure SparkR. Properties that conflict with values set by the Dataproc + // API might be overwritten. Can include properties set in + // /etc/spark/conf/spark-defaults.conf and classes in user code. + Properties map[string]string `json:"properties,omitempty"` + // ForceSendFields is a list of field names (e.g. "ArchiveUris") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ArchiveUris") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SparkRJob) MarshalJSON() ([]byte, error) { + type NoMethod SparkRJob + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +type SparkRuntimeInfo struct { + JavaHome string `json:"javaHome,omitempty"` + JavaVersion string `json:"javaVersion,omitempty"` + ScalaVersion string `json:"scalaVersion,omitempty"` + // ForceSendFields is a list of field names (e.g. "JavaHome") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "JavaHome") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SparkRuntimeInfo) MarshalJSON() ([]byte, error) { + type NoMethod SparkRuntimeInfo + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// SparkSqlBatch: A configuration for running Apache Spark SQL +// (https://spark.apache.org/sql/) queries as a batch workload. +type SparkSqlBatch struct { + // JarFileUris: Optional. HCFS URIs of jar files to be added to the Spark + // CLASSPATH. + JarFileUris []string `json:"jarFileUris,omitempty"` + // QueryFileUri: Required. The HCFS URI of the script that contains Spark SQL + // queries to execute. + QueryFileUri string `json:"queryFileUri,omitempty"` + // QueryVariables: Optional. Mapping of query variable names to values + // (equivalent to the Spark SQL command: SET name="value";). + QueryVariables map[string]string `json:"queryVariables,omitempty"` + // ForceSendFields is a list of field names (e.g. "JarFileUris") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "JarFileUris") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SparkSqlBatch) MarshalJSON() ([]byte, error) { + type NoMethod SparkSqlBatch + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// SparkSqlJob: A Dataproc job for running Apache Spark SQL +// (https://spark.apache.org/sql/) queries. +type SparkSqlJob struct { + // JarFileUris: Optional. HCFS URIs of jar files to be added to the Spark + // CLASSPATH. + JarFileUris []string `json:"jarFileUris,omitempty"` + // LoggingConfig: Optional. The runtime log config for job execution. + LoggingConfig *LoggingConfig `json:"loggingConfig,omitempty"` + // Properties: Optional. A mapping of property names to values, used to + // configure Spark SQL's SparkConf. Properties that conflict with values set by + // the Dataproc API might be overwritten. + Properties map[string]string `json:"properties,omitempty"` + // QueryFileUri: The HCFS URI of the script that contains SQL queries. + QueryFileUri string `json:"queryFileUri,omitempty"` + // QueryList: A list of queries. + QueryList *QueryList `json:"queryList,omitempty"` + // ScriptVariables: Optional. Mapping of query variable names to values + // (equivalent to the Spark SQL command: SET name="value";). + ScriptVariables map[string]string `json:"scriptVariables,omitempty"` + // ForceSendFields is a list of field names (e.g. "JarFileUris") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "JarFileUris") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SparkSqlJob) MarshalJSON() ([]byte, error) { + type NoMethod SparkSqlJob + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// SparkStandaloneAutoscalingConfig: Basic autoscaling configurations for Spark +// Standalone. +type SparkStandaloneAutoscalingConfig struct { + // GracefulDecommissionTimeout: Required. Timeout for Spark graceful + // decommissioning of spark workers. Specifies the duration to wait for spark + // worker to complete spark decommissioning tasks before forcefully removing + // workers. Only applicable to downscaling operations.Bounds: 0s, 1d. + GracefulDecommissionTimeout string `json:"gracefulDecommissionTimeout,omitempty"` + // RemoveOnlyIdleWorkers: Optional. Remove only idle workers when scaling down + // cluster + RemoveOnlyIdleWorkers bool `json:"removeOnlyIdleWorkers,omitempty"` + // ScaleDownFactor: Required. Fraction of required executors to remove from + // Spark Serverless clusters. A scale-down factor of 1.0 will result in scaling + // down so that there are no more executors for the Spark Job.(more aggressive + // scaling). A scale-down factor closer to 0 will result in a smaller magnitude + // of scaling donw (less aggressive scaling).Bounds: 0.0, 1.0. + ScaleDownFactor float64 `json:"scaleDownFactor,omitempty"` + // ScaleDownMinWorkerFraction: Optional. Minimum scale-down threshold as a + // fraction of total cluster size before scaling occurs. For example, in a + // 20-worker cluster, a threshold of 0.1 means the autoscaler must recommend at + // least a 2 worker scale-down for the cluster to scale. A threshold of 0 means + // the autoscaler will scale down on any recommended change.Bounds: 0.0, 1.0. + // Default: 0.0. + ScaleDownMinWorkerFraction float64 `json:"scaleDownMinWorkerFraction,omitempty"` + // ScaleUpFactor: Required. Fraction of required workers to add to Spark + // Standalone clusters. A scale-up factor of 1.0 will result in scaling up so + // that there are no more required workers for the Spark Job (more aggressive + // scaling). A scale-up factor closer to 0 will result in a smaller magnitude + // of scaling up (less aggressive scaling).Bounds: 0.0, 1.0. + ScaleUpFactor float64 `json:"scaleUpFactor,omitempty"` + // ScaleUpMinWorkerFraction: Optional. Minimum scale-up threshold as a fraction + // of total cluster size before scaling occurs. For example, in a 20-worker + // cluster, a threshold of 0.1 means the autoscaler must recommend at least a + // 2-worker scale-up for the cluster to scale. A threshold of 0 means the + // autoscaler will scale up on any recommended change.Bounds: 0.0, 1.0. + // Default: 0.0. + ScaleUpMinWorkerFraction float64 `json:"scaleUpMinWorkerFraction,omitempty"` + // ForceSendFields is a list of field names (e.g. + // "GracefulDecommissionTimeout") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "GracefulDecommissionTimeout") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SparkStandaloneAutoscalingConfig) MarshalJSON() ([]byte, error) { + type NoMethod SparkStandaloneAutoscalingConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *SparkStandaloneAutoscalingConfig) UnmarshalJSON(data []byte) error { + type NoMethod SparkStandaloneAutoscalingConfig + var s1 struct { + ScaleDownFactor gensupport.JSONFloat64 `json:"scaleDownFactor"` + ScaleDownMinWorkerFraction gensupport.JSONFloat64 `json:"scaleDownMinWorkerFraction"` + ScaleUpFactor gensupport.JSONFloat64 `json:"scaleUpFactor"` + ScaleUpMinWorkerFraction gensupport.JSONFloat64 `json:"scaleUpMinWorkerFraction"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.ScaleDownFactor = float64(s1.ScaleDownFactor) + s.ScaleDownMinWorkerFraction = float64(s1.ScaleDownMinWorkerFraction) + s.ScaleUpFactor = float64(s1.ScaleUpFactor) + s.ScaleUpMinWorkerFraction = float64(s1.ScaleUpMinWorkerFraction) + return nil +} + +// SparkWrapperObject: Outer message that contains the data obtained from spark +// listener, packaged with information that is required to process it. +type SparkWrapperObject struct { + AppSummary *AppSummary `json:"appSummary,omitempty"` + ApplicationEnvironmentInfo *ApplicationEnvironmentInfo `json:"applicationEnvironmentInfo,omitempty"` + // ApplicationId: Application Id created by Spark. + ApplicationId string `json:"applicationId,omitempty"` + ApplicationInfo *ApplicationInfo `json:"applicationInfo,omitempty"` + // EventTimestamp: VM Timestamp associated with the data object. + EventTimestamp string `json:"eventTimestamp,omitempty"` + ExecutorStageSummary *ExecutorStageSummary `json:"executorStageSummary,omitempty"` + ExecutorSummary *ExecutorSummary `json:"executorSummary,omitempty"` + JobData *JobData `json:"jobData,omitempty"` + PoolData *PoolData `json:"poolData,omitempty"` + ProcessSummary *ProcessSummary `json:"processSummary,omitempty"` + RddOperationGraph *RddOperationGraph `json:"rddOperationGraph,omitempty"` + RddStorageInfo *RddStorageInfo `json:"rddStorageInfo,omitempty"` + ResourceProfileInfo *ResourceProfileInfo `json:"resourceProfileInfo,omitempty"` + SparkPlanGraph *SparkPlanGraph `json:"sparkPlanGraph,omitempty"` + SpeculationStageSummary *SpeculationStageSummary `json:"speculationStageSummary,omitempty"` + SqlExecutionUiData *SqlExecutionUiData `json:"sqlExecutionUiData,omitempty"` + StageData *StageData `json:"stageData,omitempty"` + StreamBlockData *StreamBlockData `json:"streamBlockData,omitempty"` + StreamingQueryData *StreamingQueryData `json:"streamingQueryData,omitempty"` + StreamingQueryProgress *StreamingQueryProgress `json:"streamingQueryProgress,omitempty"` + TaskData *TaskData `json:"taskData,omitempty"` + // ForceSendFields is a list of field names (e.g. "AppSummary") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AppSummary") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SparkWrapperObject) MarshalJSON() ([]byte, error) { + type NoMethod SparkWrapperObject + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// SpeculationStageSummary: Details of the speculation task when speculative +// execution is enabled. +type SpeculationStageSummary struct { + NumActiveTasks int64 `json:"numActiveTasks,omitempty"` + NumCompletedTasks int64 `json:"numCompletedTasks,omitempty"` + NumFailedTasks int64 `json:"numFailedTasks,omitempty"` + NumKilledTasks int64 `json:"numKilledTasks,omitempty"` + NumTasks int64 `json:"numTasks,omitempty"` + StageAttemptId int64 `json:"stageAttemptId,omitempty"` + StageId int64 `json:"stageId,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "NumActiveTasks") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "NumActiveTasks") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SpeculationStageSummary) MarshalJSON() ([]byte, error) { + type NoMethod SpeculationStageSummary + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// SqlExecutionUiData: SQL Execution Data +type SqlExecutionUiData struct { + CompletionTime string `json:"completionTime,omitempty"` + Description string `json:"description,omitempty"` + Details string `json:"details,omitempty"` + ErrorMessage string `json:"errorMessage,omitempty"` + ExecutionId int64 `json:"executionId,omitempty,string"` + Jobs map[string]string `json:"jobs,omitempty"` + MetricValues map[string]string `json:"metricValues,omitempty"` + MetricValuesIsNull bool `json:"metricValuesIsNull,omitempty"` + Metrics []*SqlPlanMetric `json:"metrics,omitempty"` + ModifiedConfigs map[string]string `json:"modifiedConfigs,omitempty"` + PhysicalPlanDescription string `json:"physicalPlanDescription,omitempty"` + RootExecutionId int64 `json:"rootExecutionId,omitempty,string"` + Stages googleapi.Int64s `json:"stages,omitempty"` + SubmissionTime string `json:"submissionTime,omitempty"` + // ForceSendFields is a list of field names (e.g. "CompletionTime") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CompletionTime") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SqlExecutionUiData) MarshalJSON() ([]byte, error) { + type NoMethod SqlExecutionUiData + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// SqlPlanMetric: Metrics related to SQL execution. +type SqlPlanMetric struct { + AccumulatorId int64 `json:"accumulatorId,omitempty,string"` + MetricType string `json:"metricType,omitempty"` + Name string `json:"name,omitempty"` + // ForceSendFields is a list of field names (e.g. "AccumulatorId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AccumulatorId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SqlPlanMetric) MarshalJSON() ([]byte, error) { + type NoMethod SqlPlanMetric + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// StageAttemptTasksSummary: Data related to tasks summary for a Spark Stage +// Attempt +type StageAttemptTasksSummary struct { + ApplicationId string `json:"applicationId,omitempty"` + NumFailedTasks int64 `json:"numFailedTasks,omitempty"` + NumKilledTasks int64 `json:"numKilledTasks,omitempty"` + NumPendingTasks int64 `json:"numPendingTasks,omitempty"` + NumRunningTasks int64 `json:"numRunningTasks,omitempty"` + NumSuccessTasks int64 `json:"numSuccessTasks,omitempty"` + NumTasks int64 `json:"numTasks,omitempty"` + StageAttemptId int64 `json:"stageAttemptId,omitempty"` + StageId int64 `json:"stageId,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "ApplicationId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ApplicationId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s StageAttemptTasksSummary) MarshalJSON() ([]byte, error) { + type NoMethod StageAttemptTasksSummary + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// StageData: Data corresponding to a stage. +type StageData struct { + AccumulatorUpdates []*AccumulableInfo `json:"accumulatorUpdates,omitempty"` + CompletionTime string `json:"completionTime,omitempty"` + Description string `json:"description,omitempty"` + Details string `json:"details,omitempty"` + ExecutorMetricsDistributions *ExecutorMetricsDistributions `json:"executorMetricsDistributions,omitempty"` + ExecutorSummary map[string]ExecutorStageSummary `json:"executorSummary,omitempty"` + FailureReason string `json:"failureReason,omitempty"` + FirstTaskLaunchedTime string `json:"firstTaskLaunchedTime,omitempty"` + IsShufflePushEnabled bool `json:"isShufflePushEnabled,omitempty"` + JobIds googleapi.Int64s `json:"jobIds,omitempty"` + KilledTasksSummary map[string]int64 `json:"killedTasksSummary,omitempty"` + Locality map[string]string `json:"locality,omitempty"` + Name string `json:"name,omitempty"` + NumActiveTasks int64 `json:"numActiveTasks,omitempty"` + NumCompleteTasks int64 `json:"numCompleteTasks,omitempty"` + NumCompletedIndices int64 `json:"numCompletedIndices,omitempty"` + NumFailedTasks int64 `json:"numFailedTasks,omitempty"` + NumKilledTasks int64 `json:"numKilledTasks,omitempty"` + NumTasks int64 `json:"numTasks,omitempty"` + ParentStageIds googleapi.Int64s `json:"parentStageIds,omitempty"` + PeakExecutorMetrics *ExecutorMetrics `json:"peakExecutorMetrics,omitempty"` + RddIds googleapi.Int64s `json:"rddIds,omitempty"` + ResourceProfileId int64 `json:"resourceProfileId,omitempty"` + SchedulingPool string `json:"schedulingPool,omitempty"` + ShuffleMergersCount int64 `json:"shuffleMergersCount,omitempty"` + SpeculationSummary *SpeculationStageSummary `json:"speculationSummary,omitempty"` + StageAttemptId int64 `json:"stageAttemptId,omitempty"` + StageId int64 `json:"stageId,omitempty,string"` + StageMetrics *StageMetrics `json:"stageMetrics,omitempty"` + // Possible values: + // "STAGE_STATUS_UNSPECIFIED" + // "STAGE_STATUS_ACTIVE" + // "STAGE_STATUS_COMPLETE" + // "STAGE_STATUS_FAILED" + // "STAGE_STATUS_PENDING" + // "STAGE_STATUS_SKIPPED" + Status string `json:"status,omitempty"` + SubmissionTime string `json:"submissionTime,omitempty"` + // TaskQuantileMetrics: Summary metrics fields. These are included in response + // only if present in summary_metrics_mask field in request + TaskQuantileMetrics *TaskQuantileMetrics `json:"taskQuantileMetrics,omitempty"` + Tasks map[string]TaskData `json:"tasks,omitempty"` + // ForceSendFields is a list of field names (e.g. "AccumulatorUpdates") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AccumulatorUpdates") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s StageData) MarshalJSON() ([]byte, error) { + type NoMethod StageData + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// StageInputMetrics: Metrics about the input read by the stage. +type StageInputMetrics struct { + BytesRead int64 `json:"bytesRead,omitempty,string"` + RecordsRead int64 `json:"recordsRead,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "BytesRead") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "BytesRead") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s StageInputMetrics) MarshalJSON() ([]byte, error) { + type NoMethod StageInputMetrics + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// StageMetrics: Stage Level Aggregated Metrics +type StageMetrics struct { + DiskBytesSpilled int64 `json:"diskBytesSpilled,omitempty,string"` + ExecutorCpuTimeNanos int64 `json:"executorCpuTimeNanos,omitempty,string"` + ExecutorDeserializeCpuTimeNanos int64 `json:"executorDeserializeCpuTimeNanos,omitempty,string"` + ExecutorDeserializeTimeMillis int64 `json:"executorDeserializeTimeMillis,omitempty,string"` + ExecutorRunTimeMillis int64 `json:"executorRunTimeMillis,omitempty,string"` + JvmGcTimeMillis int64 `json:"jvmGcTimeMillis,omitempty,string"` + MemoryBytesSpilled int64 `json:"memoryBytesSpilled,omitempty,string"` + PeakExecutionMemoryBytes int64 `json:"peakExecutionMemoryBytes,omitempty,string"` + ResultSerializationTimeMillis int64 `json:"resultSerializationTimeMillis,omitempty,string"` + ResultSize int64 `json:"resultSize,omitempty,string"` + StageInputMetrics *StageInputMetrics `json:"stageInputMetrics,omitempty"` + StageOutputMetrics *StageOutputMetrics `json:"stageOutputMetrics,omitempty"` + StageShuffleReadMetrics *StageShuffleReadMetrics `json:"stageShuffleReadMetrics,omitempty"` + StageShuffleWriteMetrics *StageShuffleWriteMetrics `json:"stageShuffleWriteMetrics,omitempty"` + // ForceSendFields is a list of field names (e.g. "DiskBytesSpilled") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "DiskBytesSpilled") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s StageMetrics) MarshalJSON() ([]byte, error) { + type NoMethod StageMetrics + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// StageOutputMetrics: Metrics about the output written by the stage. +type StageOutputMetrics struct { + BytesWritten int64 `json:"bytesWritten,omitempty,string"` + RecordsWritten int64 `json:"recordsWritten,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "BytesWritten") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "BytesWritten") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s StageOutputMetrics) MarshalJSON() ([]byte, error) { + type NoMethod StageOutputMetrics + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +type StageShufflePushReadMetrics struct { + CorruptMergedBlockChunks int64 `json:"corruptMergedBlockChunks,omitempty,string"` + LocalMergedBlocksFetched int64 `json:"localMergedBlocksFetched,omitempty,string"` + LocalMergedBytesRead int64 `json:"localMergedBytesRead,omitempty,string"` + LocalMergedChunksFetched int64 `json:"localMergedChunksFetched,omitempty,string"` + MergedFetchFallbackCount int64 `json:"mergedFetchFallbackCount,omitempty,string"` + RemoteMergedBlocksFetched int64 `json:"remoteMergedBlocksFetched,omitempty,string"` + RemoteMergedBytesRead int64 `json:"remoteMergedBytesRead,omitempty,string"` + RemoteMergedChunksFetched int64 `json:"remoteMergedChunksFetched,omitempty,string"` + RemoteMergedReqsDuration int64 `json:"remoteMergedReqsDuration,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "CorruptMergedBlockChunks") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CorruptMergedBlockChunks") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s StageShufflePushReadMetrics) MarshalJSON() ([]byte, error) { + type NoMethod StageShufflePushReadMetrics + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// StageShuffleReadMetrics: Shuffle data read for the stage. +type StageShuffleReadMetrics struct { + BytesRead int64 `json:"bytesRead,omitempty,string"` + FetchWaitTimeMillis int64 `json:"fetchWaitTimeMillis,omitempty,string"` + LocalBlocksFetched int64 `json:"localBlocksFetched,omitempty,string"` + LocalBytesRead int64 `json:"localBytesRead,omitempty,string"` + RecordsRead int64 `json:"recordsRead,omitempty,string"` + RemoteBlocksFetched int64 `json:"remoteBlocksFetched,omitempty,string"` + RemoteBytesRead int64 `json:"remoteBytesRead,omitempty,string"` + RemoteBytesReadToDisk int64 `json:"remoteBytesReadToDisk,omitempty,string"` + RemoteReqsDuration int64 `json:"remoteReqsDuration,omitempty,string"` + StageShufflePushReadMetrics *StageShufflePushReadMetrics `json:"stageShufflePushReadMetrics,omitempty"` + // ForceSendFields is a list of field names (e.g. "BytesRead") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "BytesRead") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s StageShuffleReadMetrics) MarshalJSON() ([]byte, error) { + type NoMethod StageShuffleReadMetrics + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// StageShuffleWriteMetrics: Shuffle data written for the stage. +type StageShuffleWriteMetrics struct { + BytesWritten int64 `json:"bytesWritten,omitempty,string"` + RecordsWritten int64 `json:"recordsWritten,omitempty,string"` + WriteTimeNanos int64 `json:"writeTimeNanos,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "BytesWritten") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "BytesWritten") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s StageShuffleWriteMetrics) MarshalJSON() ([]byte, error) { + type NoMethod StageShuffleWriteMetrics + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// StagesSummary: Data related to Stages page summary +type StagesSummary struct { + ApplicationId string `json:"applicationId,omitempty"` + NumActiveStages int64 `json:"numActiveStages,omitempty"` + NumCompletedStages int64 `json:"numCompletedStages,omitempty"` + NumFailedStages int64 `json:"numFailedStages,omitempty"` + NumPendingStages int64 `json:"numPendingStages,omitempty"` + NumSkippedStages int64 `json:"numSkippedStages,omitempty"` + // ForceSendFields is a list of field names (e.g. "ApplicationId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ApplicationId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s StagesSummary) MarshalJSON() ([]byte, error) { + type NoMethod StagesSummary + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// StartClusterRequest: A request to start a cluster. +type StartClusterRequest struct { + // ClusterUuid: Optional. Specifying the cluster_uuid means the RPC will fail + // (with error NOT_FOUND) if a cluster with the specified UUID does not exist. + ClusterUuid string `json:"clusterUuid,omitempty"` + // RequestId: Optional. A unique ID used to identify the request. If the server + // receives two StartClusterRequest + // (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StartClusterRequest)s + // with the same id, then the second request will be ignored and the first + // google.longrunning.Operation created and stored in the backend is + // returned.Recommendation: Set this value to a UUID + // (https://en.wikipedia.org/wiki/Universally_unique_identifier).The ID must + // contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens + // (-). The maximum length is 40 characters. + RequestId string `json:"requestId,omitempty"` + // ForceSendFields is a list of field names (e.g. "ClusterUuid") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ClusterUuid") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s StartClusterRequest) MarshalJSON() ([]byte, error) { + type NoMethod StartClusterRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// StartupConfig: Configuration to handle the startup of instances during +// cluster create and update process. +type StartupConfig struct { + // RequiredRegistrationFraction: Optional. The config setting to enable cluster + // creation/ updation to be successful only after + // required_registration_fraction of instances are up and running. This + // configuration is applicable to only secondary workers for now. The cluster + // will fail if required_registration_fraction of instances are not available. + // This will include instance creation, agent registration, and service + // registration (if enabled). + RequiredRegistrationFraction float64 `json:"requiredRegistrationFraction,omitempty"` + // ForceSendFields is a list of field names (e.g. + // "RequiredRegistrationFraction") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "RequiredRegistrationFraction") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s StartupConfig) MarshalJSON() ([]byte, error) { + type NoMethod StartupConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *StartupConfig) UnmarshalJSON(data []byte) error { + type NoMethod StartupConfig + var s1 struct { + RequiredRegistrationFraction gensupport.JSONFloat64 `json:"requiredRegistrationFraction"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.RequiredRegistrationFraction = float64(s1.RequiredRegistrationFraction) + return nil +} + +// StateHistory: Historical state information. +type StateHistory struct { + // State: Output only. The state of the batch at this point in history. + // + // Possible values: + // "STATE_UNSPECIFIED" - The batch state is unknown. + // "PENDING" - The batch is created before running. + // "RUNNING" - The batch is running. + // "CANCELLING" - The batch is cancelling. + // "CANCELLED" - The batch cancellation was successful. + // "SUCCEEDED" - The batch completed successfully. + // "FAILED" - The batch is no longer running due to an error. + State string `json:"state,omitempty"` + // StateMessage: Output only. Details about the state at this point in history. + StateMessage string `json:"stateMessage,omitempty"` + // StateStartTime: Output only. The time when the batch entered the historical + // state. + StateStartTime string `json:"stateStartTime,omitempty"` + // ForceSendFields is a list of field names (e.g. "State") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "State") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s StateHistory) MarshalJSON() ([]byte, error) { + type NoMethod StateHistory + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +type StateOperatorProgress struct { + AllRemovalsTimeMs int64 `json:"allRemovalsTimeMs,omitempty,string"` + AllUpdatesTimeMs int64 `json:"allUpdatesTimeMs,omitempty,string"` + CommitTimeMs int64 `json:"commitTimeMs,omitempty,string"` + CustomMetrics map[string]string `json:"customMetrics,omitempty"` + MemoryUsedBytes int64 `json:"memoryUsedBytes,omitempty,string"` + NumRowsDroppedByWatermark int64 `json:"numRowsDroppedByWatermark,omitempty,string"` + NumRowsRemoved int64 `json:"numRowsRemoved,omitempty,string"` + NumRowsTotal int64 `json:"numRowsTotal,omitempty,string"` + NumRowsUpdated int64 `json:"numRowsUpdated,omitempty,string"` + NumShufflePartitions int64 `json:"numShufflePartitions,omitempty,string"` + NumStateStoreInstances int64 `json:"numStateStoreInstances,omitempty,string"` + OperatorName string `json:"operatorName,omitempty"` + // ForceSendFields is a list of field names (e.g. "AllRemovalsTimeMs") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AllRemovalsTimeMs") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s StateOperatorProgress) MarshalJSON() ([]byte, error) { + type NoMethod StateOperatorProgress + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// Status: The Status type defines a logical error model that is suitable for +// different programming environments, including REST APIs and RPC APIs. It is +// used by gRPC (https://github.com/grpc). Each Status message contains three +// pieces of data: error code, error message, and error details.You can find +// out more about this error model and how to work with it in the API Design +// Guide (https://cloud.google.com/apis/design/errors). +type Status struct { + // Code: The status code, which should be an enum value of google.rpc.Code. + Code int64 `json:"code,omitempty"` + // Details: A list of messages that carry the error details. There is a common + // set of message types for APIs to use. + Details []googleapi.RawMessage `json:"details,omitempty"` + // Message: A developer-facing error message, which should be in English. Any + // user-facing error message should be localized and sent in the + // google.rpc.Status.details field, or localized by the client. + Message string `json:"message,omitempty"` + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s Status) MarshalJSON() ([]byte, error) { + type NoMethod Status + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// StopClusterRequest: A request to stop a cluster. +type StopClusterRequest struct { + // ClusterUuid: Optional. Specifying the cluster_uuid means the RPC will fail + // (with error NOT_FOUND) if a cluster with the specified UUID does not exist. + ClusterUuid string `json:"clusterUuid,omitempty"` + // RequestId: Optional. A unique ID used to identify the request. If the server + // receives two StopClusterRequest + // (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StopClusterRequest)s + // with the same id, then the second request will be ignored and the first + // google.longrunning.Operation created and stored in the backend is + // returned.Recommendation: Set this value to a UUID + // (https://en.wikipedia.org/wiki/Universally_unique_identifier).The ID must + // contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens + // (-). The maximum length is 40 characters. + RequestId string `json:"requestId,omitempty"` + // ForceSendFields is a list of field names (e.g. "ClusterUuid") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ClusterUuid") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s StopClusterRequest) MarshalJSON() ([]byte, error) { + type NoMethod StopClusterRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// StreamBlockData: Stream Block Data. +type StreamBlockData struct { + Deserialized bool `json:"deserialized,omitempty"` + DiskSize int64 `json:"diskSize,omitempty,string"` + ExecutorId string `json:"executorId,omitempty"` + HostPort string `json:"hostPort,omitempty"` + MemSize int64 `json:"memSize,omitempty,string"` + Name string `json:"name,omitempty"` + StorageLevel string `json:"storageLevel,omitempty"` + UseDisk bool `json:"useDisk,omitempty"` + UseMemory bool `json:"useMemory,omitempty"` + // ForceSendFields is a list of field names (e.g. "Deserialized") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Deserialized") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s StreamBlockData) MarshalJSON() ([]byte, error) { + type NoMethod StreamBlockData + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// StreamingQueryData: Streaming +type StreamingQueryData struct { + EndTimestamp int64 `json:"endTimestamp,omitempty,string"` + Exception string `json:"exception,omitempty"` + IsActive bool `json:"isActive,omitempty"` + Name string `json:"name,omitempty"` + RunId string `json:"runId,omitempty"` + StartTimestamp int64 `json:"startTimestamp,omitempty,string"` + StreamingQueryId string `json:"streamingQueryId,omitempty"` + // ForceSendFields is a list of field names (e.g. "EndTimestamp") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "EndTimestamp") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s StreamingQueryData) MarshalJSON() ([]byte, error) { + type NoMethod StreamingQueryData + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +type StreamingQueryProgress struct { + BatchDuration int64 `json:"batchDuration,omitempty,string"` + BatchId int64 `json:"batchId,omitempty,string"` + DurationMillis map[string]string `json:"durationMillis,omitempty"` + EventTime map[string]string `json:"eventTime,omitempty"` + Name string `json:"name,omitempty"` + ObservedMetrics map[string]string `json:"observedMetrics,omitempty"` + RunId string `json:"runId,omitempty"` + Sink *SinkProgress `json:"sink,omitempty"` + Sources []*SourceProgress `json:"sources,omitempty"` + StateOperators []*StateOperatorProgress `json:"stateOperators,omitempty"` + StreamingQueryProgressId string `json:"streamingQueryProgressId,omitempty"` + Timestamp string `json:"timestamp,omitempty"` + // ForceSendFields is a list of field names (e.g. "BatchDuration") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "BatchDuration") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s StreamingQueryProgress) MarshalJSON() ([]byte, error) { + type NoMethod StreamingQueryProgress + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// SubmitJobRequest: A request to submit a job. +type SubmitJobRequest struct { + // Job: Required. The job resource. + Job *Job `json:"job,omitempty"` + // RequestId: Optional. A unique id used to identify the request. If the server + // receives two SubmitJobRequest + // (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.SubmitJobRequest)s + // with the same id, then the second request will be ignored and the first Job + // created and stored in the backend is returned.It is recommended to always + // set this value to a UUID + // (https://en.wikipedia.org/wiki/Universally_unique_identifier).The id must + // contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens + // (-). The maximum length is 40 characters. + RequestId string `json:"requestId,omitempty"` + // ForceSendFields is a list of field names (e.g. "Job") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Job") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SubmitJobRequest) MarshalJSON() ([]byte, error) { + type NoMethod SubmitJobRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// SummarizeSessionSparkApplicationExecutorsResponse: Consolidated summary of +// executors for a Spark Application. +type SummarizeSessionSparkApplicationExecutorsResponse struct { + // ActiveExecutorSummary: Consolidated summary for active executors. + ActiveExecutorSummary *ConsolidatedExecutorSummary `json:"activeExecutorSummary,omitempty"` + // ApplicationId: Spark Application Id + ApplicationId string `json:"applicationId,omitempty"` + // DeadExecutorSummary: Consolidated summary for dead executors. + DeadExecutorSummary *ConsolidatedExecutorSummary `json:"deadExecutorSummary,omitempty"` + // TotalExecutorSummary: Overall consolidated summary for all executors. + TotalExecutorSummary *ConsolidatedExecutorSummary `json:"totalExecutorSummary,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "ActiveExecutorSummary") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ActiveExecutorSummary") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SummarizeSessionSparkApplicationExecutorsResponse) MarshalJSON() ([]byte, error) { + type NoMethod SummarizeSessionSparkApplicationExecutorsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// SummarizeSessionSparkApplicationJobsResponse: Summary of a Spark Application +// jobs. +type SummarizeSessionSparkApplicationJobsResponse struct { + // JobsSummary: Summary of a Spark Application Jobs + JobsSummary *JobsSummary `json:"jobsSummary,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "JobsSummary") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "JobsSummary") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SummarizeSessionSparkApplicationJobsResponse) MarshalJSON() ([]byte, error) { + type NoMethod SummarizeSessionSparkApplicationJobsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// SummarizeSessionSparkApplicationStageAttemptTasksResponse: Summary of tasks +// for a Spark Application stage attempt. +type SummarizeSessionSparkApplicationStageAttemptTasksResponse struct { + // StageAttemptTasksSummary: Summary of tasks for a Spark Application Stage + // Attempt + StageAttemptTasksSummary *StageAttemptTasksSummary `json:"stageAttemptTasksSummary,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "StageAttemptTasksSummary") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "StageAttemptTasksSummary") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SummarizeSessionSparkApplicationStageAttemptTasksResponse) MarshalJSON() ([]byte, error) { + type NoMethod SummarizeSessionSparkApplicationStageAttemptTasksResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// SummarizeSessionSparkApplicationStagesResponse: Summary of a Spark +// Application stages. +type SummarizeSessionSparkApplicationStagesResponse struct { + // StagesSummary: Summary of a Spark Application Stages + StagesSummary *StagesSummary `json:"stagesSummary,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "StagesSummary") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "StagesSummary") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SummarizeSessionSparkApplicationStagesResponse) MarshalJSON() ([]byte, error) { + type NoMethod SummarizeSessionSparkApplicationStagesResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// SummarizeSparkApplicationExecutorsResponse: Consolidated summary of +// executors for a Spark Application. +type SummarizeSparkApplicationExecutorsResponse struct { + // ActiveExecutorSummary: Consolidated summary for active executors. + ActiveExecutorSummary *ConsolidatedExecutorSummary `json:"activeExecutorSummary,omitempty"` + // ApplicationId: Spark Application Id + ApplicationId string `json:"applicationId,omitempty"` + // DeadExecutorSummary: Consolidated summary for dead executors. + DeadExecutorSummary *ConsolidatedExecutorSummary `json:"deadExecutorSummary,omitempty"` + // TotalExecutorSummary: Overall consolidated summary for all executors. + TotalExecutorSummary *ConsolidatedExecutorSummary `json:"totalExecutorSummary,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "ActiveExecutorSummary") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ActiveExecutorSummary") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SummarizeSparkApplicationExecutorsResponse) MarshalJSON() ([]byte, error) { + type NoMethod SummarizeSparkApplicationExecutorsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// SummarizeSparkApplicationJobsResponse: Summary of a Spark Application jobs. +type SummarizeSparkApplicationJobsResponse struct { + // JobsSummary: Summary of a Spark Application Jobs + JobsSummary *JobsSummary `json:"jobsSummary,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "JobsSummary") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "JobsSummary") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SummarizeSparkApplicationJobsResponse) MarshalJSON() ([]byte, error) { + type NoMethod SummarizeSparkApplicationJobsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// SummarizeSparkApplicationStageAttemptTasksResponse: Summary of tasks for a +// Spark Application stage attempt. +type SummarizeSparkApplicationStageAttemptTasksResponse struct { + // StageAttemptTasksSummary: Summary of tasks for a Spark Application Stage + // Attempt + StageAttemptTasksSummary *StageAttemptTasksSummary `json:"stageAttemptTasksSummary,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "StageAttemptTasksSummary") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "StageAttemptTasksSummary") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SummarizeSparkApplicationStageAttemptTasksResponse) MarshalJSON() ([]byte, error) { + type NoMethod SummarizeSparkApplicationStageAttemptTasksResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// SummarizeSparkApplicationStagesResponse: Summary of a Spark Application +// stages. +type SummarizeSparkApplicationStagesResponse struct { + // StagesSummary: Summary of a Spark Application Stages + StagesSummary *StagesSummary `json:"stagesSummary,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "StagesSummary") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "StagesSummary") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SummarizeSparkApplicationStagesResponse) MarshalJSON() ([]byte, error) { + type NoMethod SummarizeSparkApplicationStagesResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// TaskData: Data corresponding to tasks created by spark. +type TaskData struct { + AccumulatorUpdates []*AccumulableInfo `json:"accumulatorUpdates,omitempty"` + Attempt int64 `json:"attempt,omitempty"` + DurationMillis int64 `json:"durationMillis,omitempty,string"` + ErrorMessage string `json:"errorMessage,omitempty"` + ExecutorId string `json:"executorId,omitempty"` + ExecutorLogs map[string]string `json:"executorLogs,omitempty"` + GettingResultTimeMillis int64 `json:"gettingResultTimeMillis,omitempty,string"` + HasMetrics bool `json:"hasMetrics,omitempty"` + Host string `json:"host,omitempty"` + Index int64 `json:"index,omitempty"` + LaunchTime string `json:"launchTime,omitempty"` + PartitionId int64 `json:"partitionId,omitempty"` + ResultFetchStart string `json:"resultFetchStart,omitempty"` + SchedulerDelayMillis int64 `json:"schedulerDelayMillis,omitempty,string"` + Speculative bool `json:"speculative,omitempty"` + StageAttemptId int64 `json:"stageAttemptId,omitempty"` + StageId int64 `json:"stageId,omitempty,string"` + Status string `json:"status,omitempty"` + TaskId int64 `json:"taskId,omitempty,string"` + TaskLocality string `json:"taskLocality,omitempty"` + TaskMetrics *TaskMetrics `json:"taskMetrics,omitempty"` + // ForceSendFields is a list of field names (e.g. "AccumulatorUpdates") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AccumulatorUpdates") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s TaskData) MarshalJSON() ([]byte, error) { + type NoMethod TaskData + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// TaskMetrics: Executor Task Metrics +type TaskMetrics struct { + DiskBytesSpilled int64 `json:"diskBytesSpilled,omitempty,string"` + ExecutorCpuTimeNanos int64 `json:"executorCpuTimeNanos,omitempty,string"` + ExecutorDeserializeCpuTimeNanos int64 `json:"executorDeserializeCpuTimeNanos,omitempty,string"` + ExecutorDeserializeTimeMillis int64 `json:"executorDeserializeTimeMillis,omitempty,string"` + ExecutorRunTimeMillis int64 `json:"executorRunTimeMillis,omitempty,string"` + InputMetrics *InputMetrics `json:"inputMetrics,omitempty"` + JvmGcTimeMillis int64 `json:"jvmGcTimeMillis,omitempty,string"` + MemoryBytesSpilled int64 `json:"memoryBytesSpilled,omitempty,string"` + OutputMetrics *OutputMetrics `json:"outputMetrics,omitempty"` + PeakExecutionMemoryBytes int64 `json:"peakExecutionMemoryBytes,omitempty,string"` + ResultSerializationTimeMillis int64 `json:"resultSerializationTimeMillis,omitempty,string"` + ResultSize int64 `json:"resultSize,omitempty,string"` + ShuffleReadMetrics *ShuffleReadMetrics `json:"shuffleReadMetrics,omitempty"` + ShuffleWriteMetrics *ShuffleWriteMetrics `json:"shuffleWriteMetrics,omitempty"` + // ForceSendFields is a list of field names (e.g. "DiskBytesSpilled") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "DiskBytesSpilled") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s TaskMetrics) MarshalJSON() ([]byte, error) { + type NoMethod TaskMetrics + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +type TaskQuantileMetrics struct { + DiskBytesSpilled *Quantiles `json:"diskBytesSpilled,omitempty"` + DurationMillis *Quantiles `json:"durationMillis,omitempty"` + ExecutorCpuTimeNanos *Quantiles `json:"executorCpuTimeNanos,omitempty"` + ExecutorDeserializeCpuTimeNanos *Quantiles `json:"executorDeserializeCpuTimeNanos,omitempty"` + ExecutorDeserializeTimeMillis *Quantiles `json:"executorDeserializeTimeMillis,omitempty"` + ExecutorRunTimeMillis *Quantiles `json:"executorRunTimeMillis,omitempty"` + GettingResultTimeMillis *Quantiles `json:"gettingResultTimeMillis,omitempty"` + InputMetrics *InputQuantileMetrics `json:"inputMetrics,omitempty"` + JvmGcTimeMillis *Quantiles `json:"jvmGcTimeMillis,omitempty"` + MemoryBytesSpilled *Quantiles `json:"memoryBytesSpilled,omitempty"` + OutputMetrics *OutputQuantileMetrics `json:"outputMetrics,omitempty"` + PeakExecutionMemoryBytes *Quantiles `json:"peakExecutionMemoryBytes,omitempty"` + ResultSerializationTimeMillis *Quantiles `json:"resultSerializationTimeMillis,omitempty"` + ResultSize *Quantiles `json:"resultSize,omitempty"` + SchedulerDelayMillis *Quantiles `json:"schedulerDelayMillis,omitempty"` + ShuffleReadMetrics *ShuffleReadQuantileMetrics `json:"shuffleReadMetrics,omitempty"` + ShuffleWriteMetrics *ShuffleWriteQuantileMetrics `json:"shuffleWriteMetrics,omitempty"` + // ForceSendFields is a list of field names (e.g. "DiskBytesSpilled") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "DiskBytesSpilled") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s TaskQuantileMetrics) MarshalJSON() ([]byte, error) { + type NoMethod TaskQuantileMetrics + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// TaskResourceRequest: Resources used per task created by the application. +type TaskResourceRequest struct { + Amount float64 `json:"amount,omitempty"` + ResourceName string `json:"resourceName,omitempty"` + // ForceSendFields is a list of field names (e.g. "Amount") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Amount") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s TaskResourceRequest) MarshalJSON() ([]byte, error) { + type NoMethod TaskResourceRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *TaskResourceRequest) UnmarshalJSON(data []byte) error { + type NoMethod TaskResourceRequest + var s1 struct { + Amount gensupport.JSONFloat64 `json:"amount"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Amount = float64(s1.Amount) + return nil +} + +// TemplateParameter: A configurable parameter that replaces one or more fields +// in the template. Parameterizable fields: - Labels - File uris - Job +// properties - Job arguments - Script variables - Main class (in HadoopJob and +// SparkJob) - Zone (in ClusterSelector) +type TemplateParameter struct { + // Description: Optional. Brief description of the parameter. Must not exceed + // 1024 characters. + Description string `json:"description,omitempty"` + // Fields: Required. Paths to all fields that the parameter replaces. A field + // is allowed to appear in at most one parameter's list of field paths.A field + // path is similar in syntax to a google.protobuf.FieldMask. For example, a + // field path that references the zone field of a workflow template's cluster + // selector would be specified as placement.clusterSelector.zone.Also, field + // paths can reference fields using the following syntax: Values in maps can be + // referenced by key: labels'key' placement.clusterSelector.clusterLabels'key' + // placement.managedCluster.labels'key' + // placement.clusterSelector.clusterLabels'key' jobs'step-id'.labels'key' Jobs + // in the jobs list can be referenced by step-id: + // jobs'step-id'.hadoopJob.mainJarFileUri jobs'step-id'.hiveJob.queryFileUri + // jobs'step-id'.pySparkJob.mainPythonFileUri + // jobs'step-id'.hadoopJob.jarFileUris0 jobs'step-id'.hadoopJob.archiveUris0 + // jobs'step-id'.hadoopJob.fileUris0 jobs'step-id'.pySparkJob.pythonFileUris0 + // Items in repeated fields can be referenced by a zero-based index: + // jobs'step-id'.sparkJob.args0 Other examples: + // jobs'step-id'.hadoopJob.properties'key' jobs'step-id'.hadoopJob.args0 + // jobs'step-id'.hiveJob.scriptVariables'key' + // jobs'step-id'.hadoopJob.mainJarFileUri placement.clusterSelector.zoneIt may + // not be possible to parameterize maps and repeated fields in their entirety + // since only individual map values and individual items in repeated fields can + // be referenced. For example, the following field paths are invalid: + // placement.clusterSelector.clusterLabels jobs'step-id'.sparkJob.args + Fields []string `json:"fields,omitempty"` + // Name: Required. Parameter name. The parameter name is used as the key, and + // paired with the parameter value, which are passed to the template when the + // template is instantiated. The name must contain only capital letters (A-Z), + // numbers (0-9), and underscores (_), and must not start with a number. The + // maximum length is 40 characters. + Name string `json:"name,omitempty"` + // Validation: Optional. Validation rules to be applied to this parameter's + // value. + Validation *ParameterValidation `json:"validation,omitempty"` + // ForceSendFields is a list of field names (e.g. "Description") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s TemplateParameter) MarshalJSON() ([]byte, error) { + type NoMethod TemplateParameter + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// TerminateSessionRequest: A request to terminate an interactive session. +type TerminateSessionRequest struct { + // RequestId: Optional. A unique ID used to identify the request. If the + // service receives two TerminateSessionRequest + // (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.TerminateSessionRequest)s + // with the same ID, the second request is ignored.Recommendation: Set this + // value to a UUID + // (https://en.wikipedia.org/wiki/Universally_unique_identifier).The value must + // contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens + // (-). The maximum length is 40 characters. + RequestId string `json:"requestId,omitempty"` + // ForceSendFields is a list of field names (e.g. "RequestId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "RequestId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s TerminateSessionRequest) MarshalJSON() ([]byte, error) { + type NoMethod TerminateSessionRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// TestIamPermissionsRequest: Request message for TestIamPermissions method. +type TestIamPermissionsRequest struct { + // Permissions: The set of permissions to check for the resource. Permissions + // with wildcards (such as * or storage.*) are not allowed. For more + // information see IAM Overview + // (https://cloud.google.com/iam/docs/overview#permissions). + Permissions []string `json:"permissions,omitempty"` + // ForceSendFields is a list of field names (e.g. "Permissions") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Permissions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s TestIamPermissionsRequest) MarshalJSON() ([]byte, error) { + type NoMethod TestIamPermissionsRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// TestIamPermissionsResponse: Response message for TestIamPermissions method. +type TestIamPermissionsResponse struct { + // Permissions: A subset of TestPermissionsRequest.permissions that the caller + // is allowed. + Permissions []string `json:"permissions,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Permissions") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Permissions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { + type NoMethod TestIamPermissionsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// TrinoJob: A Dataproc job for running Trino (https://trino.io/) queries. +// IMPORTANT: The Dataproc Trino Optional Component +// (https://cloud.google.com/dataproc/docs/concepts/components/trino) must be +// enabled when the cluster is created to submit a Trino job to the cluster. +type TrinoJob struct { + // ClientTags: Optional. Trino client tags to attach to this query + ClientTags []string `json:"clientTags,omitempty"` + // ContinueOnFailure: Optional. Whether to continue executing queries if a + // query fails. The default value is false. Setting to true can be useful when + // executing independent parallel queries. + ContinueOnFailure bool `json:"continueOnFailure,omitempty"` + // LoggingConfig: Optional. The runtime log config for job execution. + LoggingConfig *LoggingConfig `json:"loggingConfig,omitempty"` + // OutputFormat: Optional. The format in which query output will be displayed. + // See the Trino documentation for supported output formats + OutputFormat string `json:"outputFormat,omitempty"` + // Properties: Optional. A mapping of property names to values. Used to set + // Trino session properties + // (https://trino.io/docs/current/sql/set-session.html) Equivalent to using the + // --session flag in the Trino CLI + Properties map[string]string `json:"properties,omitempty"` + // QueryFileUri: The HCFS URI of the script that contains SQL queries. + QueryFileUri string `json:"queryFileUri,omitempty"` + // QueryList: A list of queries. + QueryList *QueryList `json:"queryList,omitempty"` + // ForceSendFields is a list of field names (e.g. "ClientTags") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ClientTags") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s TrinoJob) MarshalJSON() ([]byte, error) { + type NoMethod TrinoJob + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// UsageMetrics: Usage metrics represent approximate total resources consumed +// by a workload. +type UsageMetrics struct { + // AcceleratorType: Optional. Accelerator type being used, if any + AcceleratorType string `json:"acceleratorType,omitempty"` + // MilliAcceleratorSeconds: Optional. Accelerator usage in (milliAccelerator x + // seconds) (see Dataproc Serverless pricing + // (https://cloud.google.com/dataproc-serverless/pricing)). + MilliAcceleratorSeconds int64 `json:"milliAcceleratorSeconds,omitempty,string"` + // MilliDcuSeconds: Optional. DCU (Dataproc Compute Units) usage in (milliDCU x + // seconds) (see Dataproc Serverless pricing + // (https://cloud.google.com/dataproc-serverless/pricing)). + MilliDcuSeconds int64 `json:"milliDcuSeconds,omitempty,string"` + // ShuffleStorageGbSeconds: Optional. Shuffle storage usage in (GB x seconds) + // (see Dataproc Serverless pricing + // (https://cloud.google.com/dataproc-serverless/pricing)). + ShuffleStorageGbSeconds int64 `json:"shuffleStorageGbSeconds,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "AcceleratorType") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AcceleratorType") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s UsageMetrics) MarshalJSON() ([]byte, error) { + type NoMethod UsageMetrics + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// UsageSnapshot: The usage snapshot represents the resources consumed by a +// workload at a specified time. +type UsageSnapshot struct { + // AcceleratorType: Optional. Accelerator type being used, if any + AcceleratorType string `json:"acceleratorType,omitempty"` + // MilliAccelerator: Optional. Milli (one-thousandth) accelerator. (see + // Dataproc Serverless pricing + // (https://cloud.google.com/dataproc-serverless/pricing)) + MilliAccelerator int64 `json:"milliAccelerator,omitempty,string"` + // MilliDcu: Optional. Milli (one-thousandth) Dataproc Compute Units (DCUs) + // (see Dataproc Serverless pricing + // (https://cloud.google.com/dataproc-serverless/pricing)). + MilliDcu int64 `json:"milliDcu,omitempty,string"` + // MilliDcuPremium: Optional. Milli (one-thousandth) Dataproc Compute Units + // (DCUs) charged at premium tier (see Dataproc Serverless pricing + // (https://cloud.google.com/dataproc-serverless/pricing)). + MilliDcuPremium int64 `json:"milliDcuPremium,omitempty,string"` + // ShuffleStorageGb: Optional. Shuffle Storage in gigabytes (GB). (see Dataproc + // Serverless pricing (https://cloud.google.com/dataproc-serverless/pricing)) + ShuffleStorageGb int64 `json:"shuffleStorageGb,omitempty,string"` + // ShuffleStorageGbPremium: Optional. Shuffle Storage in gigabytes (GB) charged + // at premium tier. (see Dataproc Serverless pricing + // (https://cloud.google.com/dataproc-serverless/pricing)) + ShuffleStorageGbPremium int64 `json:"shuffleStorageGbPremium,omitempty,string"` + // SnapshotTime: Optional. The timestamp of the usage snapshot. + SnapshotTime string `json:"snapshotTime,omitempty"` + // ForceSendFields is a list of field names (e.g. "AcceleratorType") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AcceleratorType") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s UsageSnapshot) MarshalJSON() ([]byte, error) { + type NoMethod UsageSnapshot + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// ValueValidation: Validation based on a list of allowed values. +type ValueValidation struct { + // Values: Required. List of allowed values for the parameter. + Values []string `json:"values,omitempty"` + // ForceSendFields is a list of field names (e.g. "Values") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Values") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ValueValidation) MarshalJSON() ([]byte, error) { + type NoMethod ValueValidation + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// VirtualClusterConfig: The Dataproc cluster config for a cluster that does +// not directly control the underlying compute resources, such as a +// Dataproc-on-GKE cluster +// (https://cloud.google.com/dataproc/docs/guides/dpgke/dataproc-gke-overview). +type VirtualClusterConfig struct { + // AuxiliaryServicesConfig: Optional. Configuration of auxiliary services used + // by this cluster. + AuxiliaryServicesConfig *AuxiliaryServicesConfig `json:"auxiliaryServicesConfig,omitempty"` + // KubernetesClusterConfig: Required. The configuration for running the + // Dataproc cluster on Kubernetes. + KubernetesClusterConfig *KubernetesClusterConfig `json:"kubernetesClusterConfig,omitempty"` + // StagingBucket: Optional. A Cloud Storage bucket used to stage job + // dependencies, config files, and job driver console output. If you do not + // specify a staging bucket, Cloud Dataproc will determine a Cloud Storage + // location (US, ASIA, or EU) for your cluster's staging bucket according to + // the Compute Engine zone where your cluster is deployed, and then create and + // manage this project-level, per-location bucket (see Dataproc staging and + // temp buckets + // (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). + // This field requires a Cloud Storage bucket name, not a gs://... URI to a + // Cloud Storage bucket. + StagingBucket string `json:"stagingBucket,omitempty"` + // ForceSendFields is a list of field names (e.g. "AuxiliaryServicesConfig") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AuxiliaryServicesConfig") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s VirtualClusterConfig) MarshalJSON() ([]byte, error) { + type NoMethod VirtualClusterConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// WorkflowGraph: The workflow graph. +type WorkflowGraph struct { + // Nodes: Output only. The workflow nodes. + Nodes []*WorkflowNode `json:"nodes,omitempty"` + // ForceSendFields is a list of field names (e.g. "Nodes") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Nodes") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s WorkflowGraph) MarshalJSON() ([]byte, error) { + type NoMethod WorkflowGraph + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// WorkflowMetadata: A Dataproc workflow template resource. +type WorkflowMetadata struct { + // ClusterName: Output only. The name of the target cluster. + ClusterName string `json:"clusterName,omitempty"` + // ClusterUuid: Output only. The UUID of target cluster. + ClusterUuid string `json:"clusterUuid,omitempty"` + // CreateCluster: Output only. The create cluster operation metadata. + CreateCluster *ClusterOperation `json:"createCluster,omitempty"` + // DagEndTime: Output only. DAG end time, only set for workflows with + // dag_timeout when DAG ends. + DagEndTime string `json:"dagEndTime,omitempty"` + // DagStartTime: Output only. DAG start time, only set for workflows with + // dag_timeout when DAG begins. + DagStartTime string `json:"dagStartTime,omitempty"` + // DagTimeout: Output only. The timeout duration for the DAG of jobs, expressed + // in seconds (see JSON representation of duration + // (https://developers.google.com/protocol-buffers/docs/proto3#json)). + DagTimeout string `json:"dagTimeout,omitempty"` + // DeleteCluster: Output only. The delete cluster operation metadata. + DeleteCluster *ClusterOperation `json:"deleteCluster,omitempty"` + // EndTime: Output only. Workflow end time. + EndTime string `json:"endTime,omitempty"` + // Graph: Output only. The workflow graph. + Graph *WorkflowGraph `json:"graph,omitempty"` + // Parameters: Map from parameter names to values that were used for those + // parameters. + Parameters map[string]string `json:"parameters,omitempty"` + // StartTime: Output only. Workflow start time. + StartTime string `json:"startTime,omitempty"` + // State: Output only. The workflow state. + // + // Possible values: + // "UNKNOWN" - Unused. + // "PENDING" - The operation has been created. + // "RUNNING" - The operation is running. + // "DONE" - The operation is done; either cancelled or completed. + State string `json:"state,omitempty"` + // Template: Output only. The resource name of the workflow template as + // described in https://cloud.google.com/apis/design/resource_names. For + // projects.regions.workflowTemplates, the resource name of the template has + // the following format: + // projects/{project_id}/regions/{region}/workflowTemplates/{template_id} For + // projects.locations.workflowTemplates, the resource name of the template has + // the following format: + // projects/{project_id}/locations/{location}/workflowTemplates/{template_id} + Template string `json:"template,omitempty"` + // Version: Output only. The version of template at the time of workflow + // instantiation. + Version int64 `json:"version,omitempty"` + // ForceSendFields is a list of field names (e.g. "ClusterName") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ClusterName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s WorkflowMetadata) MarshalJSON() ([]byte, error) { + type NoMethod WorkflowMetadata + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// WorkflowNode: The workflow node. +type WorkflowNode struct { + // Error: Output only. The error detail. + Error string `json:"error,omitempty"` + // JobId: Output only. The job id; populated after the node enters RUNNING + // state. + JobId string `json:"jobId,omitempty"` + // PrerequisiteStepIds: Output only. Node's prerequisite nodes. + PrerequisiteStepIds []string `json:"prerequisiteStepIds,omitempty"` + // State: Output only. The node state. + // + // Possible values: + // "NODE_STATE_UNSPECIFIED" - State is unspecified. + // "BLOCKED" - The node is awaiting prerequisite node to finish. + // "RUNNABLE" - The node is runnable but not running. + // "RUNNING" - The node is running. + // "COMPLETED" - The node completed successfully. + // "FAILED" - The node failed. A node can be marked FAILED because its + // ancestor or peer failed. + State string `json:"state,omitempty"` + // StepId: Output only. The name of the node. + StepId string `json:"stepId,omitempty"` + // ForceSendFields is a list of field names (e.g. "Error") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Error") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s WorkflowNode) MarshalJSON() ([]byte, error) { + type NoMethod WorkflowNode + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// WorkflowTemplate: A Dataproc workflow template resource. +type WorkflowTemplate struct { + // CreateTime: Output only. The time template was created. + CreateTime string `json:"createTime,omitempty"` + // DagTimeout: Optional. Timeout duration for the DAG of jobs, expressed in + // seconds (see JSON representation of duration + // (https://developers.google.com/protocol-buffers/docs/proto3#json)). The + // timeout duration must be from 10 minutes ("600s") to 24 hours ("86400s"). + // The timer begins when the first job is submitted. If the workflow is running + // at the end of the timeout period, any remaining jobs are cancelled, the + // workflow is ended, and if the workflow was running on a managed cluster, the + // cluster is deleted. + DagTimeout string `json:"dagTimeout,omitempty"` + // EncryptionConfig: Optional. Encryption settings for encrypting workflow + // template job arguments. + EncryptionConfig *GoogleCloudDataprocV1WorkflowTemplateEncryptionConfig `json:"encryptionConfig,omitempty"` + Id string `json:"id,omitempty"` + // Jobs: Required. The Directed Acyclic Graph of Jobs to submit. + Jobs []*OrderedJob `json:"jobs,omitempty"` + // Labels: Optional. The labels to associate with this template. These labels + // will be propagated to all jobs and clusters created by the workflow + // instance.Label keys must contain 1 to 63 characters, and must conform to RFC + // 1035 (https://www.ietf.org/rfc/rfc1035.txt).Label values may be empty, but, + // if present, must contain 1 to 63 characters, and must conform to RFC 1035 + // (https://www.ietf.org/rfc/rfc1035.txt).No more than 32 labels can be + // associated with a template. + Labels map[string]string `json:"labels,omitempty"` + // Name: Output only. The resource name of the workflow template, as described + // in https://cloud.google.com/apis/design/resource_names. For + // projects.regions.workflowTemplates, the resource name of the template has + // the following format: + // projects/{project_id}/regions/{region}/workflowTemplates/{template_id} For + // projects.locations.workflowTemplates, the resource name of the template has + // the following format: + // projects/{project_id}/locations/{location}/workflowTemplates/{template_id} + Name string `json:"name,omitempty"` + // Parameters: Optional. Template parameters whose values are substituted into + // the template. Values for parameters must be provided when the template is + // instantiated. + Parameters []*TemplateParameter `json:"parameters,omitempty"` + // Placement: Required. WorkflowTemplate scheduling information. + Placement *WorkflowTemplatePlacement `json:"placement,omitempty"` + // UpdateTime: Output only. The time template was last updated. + UpdateTime string `json:"updateTime,omitempty"` + // Version: Optional. Used to perform a consistent read-modify-write.This field + // should be left blank for a CreateWorkflowTemplate request. It is required + // for an UpdateWorkflowTemplate request, and must match the current server + // version. A typical update template flow would fetch the current template + // with a GetWorkflowTemplate request, which will return the current template + // with the version field filled in with the current server version. The user + // updates other fields in the template, then returns it as part of the + // UpdateWorkflowTemplate request. + Version int64 `json:"version,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CreateTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s WorkflowTemplate) MarshalJSON() ([]byte, error) { + type NoMethod WorkflowTemplate + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// WorkflowTemplatePlacement: Specifies workflow execution target.Either +// managed_cluster or cluster_selector is required. +type WorkflowTemplatePlacement struct { + // ClusterSelector: Optional. A selector that chooses target cluster for jobs + // based on metadata.The selector is evaluated at the time each job is + // submitted. + ClusterSelector *ClusterSelector `json:"clusterSelector,omitempty"` + // ManagedCluster: A cluster that is managed by the workflow. + ManagedCluster *ManagedCluster `json:"managedCluster,omitempty"` + // ForceSendFields is a list of field names (e.g. "ClusterSelector") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ClusterSelector") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s WorkflowTemplatePlacement) MarshalJSON() ([]byte, error) { + type NoMethod WorkflowTemplatePlacement + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// WriteSessionSparkApplicationContextRequest: Write Spark Application data to +// internal storage systems +type WriteSessionSparkApplicationContextRequest struct { + // Parent: Required. Parent (Batch) resource reference. + Parent string `json:"parent,omitempty"` + // SparkWrapperObjects: Required. The batch of spark application context + // objects sent for ingestion. + SparkWrapperObjects []*SparkWrapperObject `json:"sparkWrapperObjects,omitempty"` + // ForceSendFields is a list of field names (e.g. "Parent") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Parent") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s WriteSessionSparkApplicationContextRequest) MarshalJSON() ([]byte, error) { + type NoMethod WriteSessionSparkApplicationContextRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// WriteSessionSparkApplicationContextResponse: Response returned as an +// acknowledgement of receipt of data. +type WriteSessionSparkApplicationContextResponse struct { + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` +} + +// WriteSparkApplicationContextRequest: Write Spark Application data to +// internal storage systems +type WriteSparkApplicationContextRequest struct { + // Parent: Required. Parent (Batch) resource reference. + Parent string `json:"parent,omitempty"` + SparkWrapperObjects []*SparkWrapperObject `json:"sparkWrapperObjects,omitempty"` + // ForceSendFields is a list of field names (e.g. "Parent") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Parent") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s WriteSparkApplicationContextRequest) MarshalJSON() ([]byte, error) { + type NoMethod WriteSparkApplicationContextRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// WriteSparkApplicationContextResponse: Response returned as an +// acknowledgement of receipt of data. +type WriteSparkApplicationContextResponse struct { + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` +} + +// YarnApplication: A YARN application created by a job. Application +// information is a subset of +// org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto.Beta Feature: +// This report is available for testing purposes only. It may be changed before +// final release. +type YarnApplication struct { + // Name: Required. The application name. + Name string `json:"name,omitempty"` + // Progress: Required. The numerical progress of the application, from 1 to + // 100. + Progress float64 `json:"progress,omitempty"` + // State: Required. The application state. + // + // Possible values: + // "STATE_UNSPECIFIED" - Status is unspecified. + // "NEW" - Status is NEW. + // "NEW_SAVING" - Status is NEW_SAVING. + // "SUBMITTED" - Status is SUBMITTED. + // "ACCEPTED" - Status is ACCEPTED. + // "RUNNING" - Status is RUNNING. + // "FINISHED" - Status is FINISHED. + // "FAILED" - Status is FAILED. + // "KILLED" - Status is KILLED. + State string `json:"state,omitempty"` + // TrackingUrl: Optional. The HTTP URL of the ApplicationMaster, HistoryServer, + // or TimelineServer that provides application-specific information. The URL + // uses the internal hostname, and requires a proxy server for resolution and, + // possibly, access. + TrackingUrl string `json:"trackingUrl,omitempty"` + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s YarnApplication) MarshalJSON() ([]byte, error) { + type NoMethod YarnApplication + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *YarnApplication) UnmarshalJSON(data []byte) error { + type NoMethod YarnApplication + var s1 struct { + Progress gensupport.JSONFloat64 `json:"progress"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Progress = float64(s1.Progress) + return nil +} + +type ProjectsLocationsAutoscalingPoliciesCreateCall struct { + s *Service + parent string + autoscalingpolicy *AutoscalingPolicy + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates new autoscaling policy. +// +// - parent: The "resource name" of the region or location, as described in +// https://cloud.google.com/apis/design/resource_names. For +// projects.regions.autoscalingPolicies.create, the resource name of the +// region has the following format: projects/{project_id}/regions/{region} +// For projects.locations.autoscalingPolicies.create, the resource name of +// the location has the following format: +// projects/{project_id}/locations/{location}. +func (r *ProjectsLocationsAutoscalingPoliciesService) Create(parent string, autoscalingpolicy *AutoscalingPolicy) *ProjectsLocationsAutoscalingPoliciesCreateCall { + c := &ProjectsLocationsAutoscalingPoliciesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.autoscalingpolicy = autoscalingpolicy + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsAutoscalingPoliciesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutoscalingPoliciesCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAutoscalingPoliciesCreateCall) Context(ctx context.Context) *ProjectsLocationsAutoscalingPoliciesCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAutoscalingPoliciesCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAutoscalingPoliciesCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.autoscalingpolicy) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/autoscalingPolicies") + 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 "dataproc.projects.locations.autoscalingPolicies.create" call. +// Any non-2xx status code is an error. Response headers are in either +// *AutoscalingPolicy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsAutoscalingPoliciesCreateCall) Do(opts ...googleapi.CallOption) (*AutoscalingPolicy, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &AutoscalingPolicy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsAutoscalingPoliciesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes an autoscaling policy. It is an error to delete an +// autoscaling policy that is in use by one or more clusters. +// +// - name: The "resource name" of the autoscaling policy, as described in +// https://cloud.google.com/apis/design/resource_names. For +// projects.regions.autoscalingPolicies.delete, the resource name of the +// policy has the following format: +// projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id} For +// projects.locations.autoscalingPolicies.delete, the resource name of the +// policy has the following format: +// projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}. +func (r *ProjectsLocationsAutoscalingPoliciesService) Delete(name string) *ProjectsLocationsAutoscalingPoliciesDeleteCall { + c := &ProjectsLocationsAutoscalingPoliciesDeleteCall{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 +// details. +func (c *ProjectsLocationsAutoscalingPoliciesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutoscalingPoliciesDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAutoscalingPoliciesDeleteCall) Context(ctx context.Context) *ProjectsLocationsAutoscalingPoliciesDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAutoscalingPoliciesDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAutoscalingPoliciesDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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 "dataproc.projects.locations.autoscalingPolicies.delete" call. +// 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 *ProjectsLocationsAutoscalingPoliciesDeleteCall) 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 +} + +type ProjectsLocationsAutoscalingPoliciesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Retrieves autoscaling policy. +// +// - name: The "resource name" of the autoscaling policy, as described in +// https://cloud.google.com/apis/design/resource_names. For +// projects.regions.autoscalingPolicies.get, the resource name of the policy +// has the following format: +// projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id} For +// projects.locations.autoscalingPolicies.get, the resource name of the +// policy has the following format: +// projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}. +func (r *ProjectsLocationsAutoscalingPoliciesService) Get(name string) *ProjectsLocationsAutoscalingPoliciesGetCall { + c := &ProjectsLocationsAutoscalingPoliciesGetCall{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 +// details. +func (c *ProjectsLocationsAutoscalingPoliciesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutoscalingPoliciesGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsAutoscalingPoliciesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAutoscalingPoliciesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAutoscalingPoliciesGetCall) Context(ctx context.Context) *ProjectsLocationsAutoscalingPoliciesGetCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAutoscalingPoliciesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAutoscalingPoliciesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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 "dataproc.projects.locations.autoscalingPolicies.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *AutoscalingPolicy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsAutoscalingPoliciesGetCall) Do(opts ...googleapi.CallOption) (*AutoscalingPolicy, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &AutoscalingPolicy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall struct { + s *Service + resource string + getiampolicyrequest *GetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// GetIamPolicy: Gets the access control policy for a resource. Returns an +// empty policy if the resource exists and does not have a policy set. +// +// - resource: REQUIRED: The resource for which the policy is being requested. +// See Resource names (https://cloud.google.com/apis/design/resource_names) +// for the appropriate value for this field. +func (r *ProjectsLocationsAutoscalingPoliciesService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall { + c := &ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.getiampolicyrequest = getiampolicyrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.getiampolicyrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataproc.projects.locations.autoscalingPolicies.getIamPolicy" call. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Policy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsAutoscalingPoliciesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists autoscaling policies in the project. +// +// - parent: The "resource name" of the region or location, as described in +// https://cloud.google.com/apis/design/resource_names. For +// projects.regions.autoscalingPolicies.list, the resource name of the region +// has the following format: projects/{project_id}/regions/{region} For +// projects.locations.autoscalingPolicies.list, the resource name of the +// location has the following format: +// projects/{project_id}/locations/{location}. +func (r *ProjectsLocationsAutoscalingPoliciesService) List(parent string) *ProjectsLocationsAutoscalingPoliciesListCall { + c := &ProjectsLocationsAutoscalingPoliciesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of +// results to return in each response. Must be less than or equal to 1000. +// Defaults to 100. +func (c *ProjectsLocationsAutoscalingPoliciesListCall) PageSize(pageSize int64) *ProjectsLocationsAutoscalingPoliciesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The page token, returned +// by a previous call, to request the next page of results. +func (c *ProjectsLocationsAutoscalingPoliciesListCall) PageToken(pageToken string) *ProjectsLocationsAutoscalingPoliciesListCall { + 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 +// details. +func (c *ProjectsLocationsAutoscalingPoliciesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutoscalingPoliciesListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsAutoscalingPoliciesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAutoscalingPoliciesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAutoscalingPoliciesListCall) Context(ctx context.Context) *ProjectsLocationsAutoscalingPoliciesListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAutoscalingPoliciesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAutoscalingPoliciesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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}/autoscalingPolicies") + 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 "dataproc.projects.locations.autoscalingPolicies.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *ListAutoscalingPoliciesResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsAutoscalingPoliciesListCall) Do(opts ...googleapi.CallOption) (*ListAutoscalingPoliciesResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &ListAutoscalingPoliciesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +// 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 *ProjectsLocationsAutoscalingPoliciesListCall) Pages(ctx context.Context, f func(*ListAutoscalingPoliciesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + 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 ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall struct { + s *Service + resource string + setiampolicyrequest *SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SetIamPolicy: Sets the access control policy on the specified resource. +// Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and +// PERMISSION_DENIED errors. +// +// - resource: REQUIRED: The resource for which the policy is being specified. +// See Resource names (https://cloud.google.com/apis/design/resource_names) +// for the appropriate value for this field. +func (r *ProjectsLocationsAutoscalingPoliciesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall { + c := &ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.setiampolicyrequest = setiampolicyrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataproc.projects.locations.autoscalingPolicies.setIamPolicy" call. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Policy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall struct { + s *Service + resource string + testiampermissionsrequest *TestIamPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// TestIamPermissions: Returns permissions that a caller has on the specified +// resource. If the resource does not exist, this will return an empty set of +// permissions, not a NOT_FOUND error.Note: This operation is designed to be +// used for building permission-aware UIs and command-line tools, not for +// authorization checking. This operation may "fail open" without warning. +// +// - resource: REQUIRED: The resource for which the policy detail is being +// requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the appropriate +// value for this field. +func (r *ProjectsLocationsAutoscalingPoliciesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall { + c := &ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.testiampermissionsrequest = testiampermissionsrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataproc.projects.locations.autoscalingPolicies.testIamPermissions" call. +// Any non-2xx status code is an error. Response headers are in either +// *TestIamPermissionsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &TestIamPermissionsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsAutoscalingPoliciesUpdateCall struct { + s *Service + name string + autoscalingpolicy *AutoscalingPolicy + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Update: Updates (replaces) autoscaling policy.Disabled check for +// update_mask, because all updates will be full replacements. +// +// - name: Output only. The "resource name" of the autoscaling policy, as +// described in https://cloud.google.com/apis/design/resource_names. For +// projects.regions.autoscalingPolicies, the resource name of the policy has +// the following format: +// projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id} For +// projects.locations.autoscalingPolicies, the resource name of the policy +// has the following format: +// projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}. +func (r *ProjectsLocationsAutoscalingPoliciesService) Update(name string, autoscalingpolicy *AutoscalingPolicy) *ProjectsLocationsAutoscalingPoliciesUpdateCall { + c := &ProjectsLocationsAutoscalingPoliciesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.autoscalingpolicy = autoscalingpolicy + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsAutoscalingPoliciesUpdateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutoscalingPoliciesUpdateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAutoscalingPoliciesUpdateCall) Context(ctx context.Context) *ProjectsLocationsAutoscalingPoliciesUpdateCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAutoscalingPoliciesUpdateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAutoscalingPoliciesUpdateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.autoscalingpolicy) + if err != nil { + return nil, err + } + 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("PUT", 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 "dataproc.projects.locations.autoscalingPolicies.update" call. +// Any non-2xx status code is an error. Response headers are in either +// *AutoscalingPolicy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsAutoscalingPoliciesUpdateCall) Do(opts ...googleapi.CallOption) (*AutoscalingPolicy, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &AutoscalingPolicy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsBatchesAnalyzeCall struct { + s *Service + name string + analyzebatchrequest *AnalyzeBatchRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Analyze: Analyze a Batch for possible recommendations and insights. +// +// - name: The fully qualified name of the batch to analyze in the format +// "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID". +func (r *ProjectsLocationsBatchesService) Analyze(name string, analyzebatchrequest *AnalyzeBatchRequest) *ProjectsLocationsBatchesAnalyzeCall { + c := &ProjectsLocationsBatchesAnalyzeCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.analyzebatchrequest = analyzebatchrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsBatchesAnalyzeCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchesAnalyzeCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsBatchesAnalyzeCall) Context(ctx context.Context) *ProjectsLocationsBatchesAnalyzeCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsBatchesAnalyzeCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBatchesAnalyzeCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.analyzebatchrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:analyze") + 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 "dataproc.projects.locations.batches.analyze" call. +// 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 *ProjectsLocationsBatchesAnalyzeCall) 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 +} + +type ProjectsLocationsBatchesCreateCall struct { + s *Service + parent string + batch *Batch + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a batch workload that executes asynchronously. +// +// - parent: The parent resource where this batch will be created. +func (r *ProjectsLocationsBatchesService) Create(parent string, batch *Batch) *ProjectsLocationsBatchesCreateCall { + c := &ProjectsLocationsBatchesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.batch = batch + return c +} + +// BatchId sets the optional parameter "batchId": The ID to use for the batch, +// which will become the final component of the batch's resource name.This +// value must be 4-63 characters. Valid characters are /[a-z][0-9]-/. +func (c *ProjectsLocationsBatchesCreateCall) BatchId(batchId string) *ProjectsLocationsBatchesCreateCall { + c.urlParams_.Set("batchId", batchId) + return c +} + +// RequestId sets the optional parameter "requestId": A unique ID used to +// identify the request. If the service receives two CreateBatchRequest +// (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateBatchRequest)s +// with the same request_id, the second request is ignored and the Operation +// that corresponds to the first Batch created and stored in the backend is +// returned.Recommendation: Set this value to a UUID +// (https://en.wikipedia.org/wiki/Universally_unique_identifier).The value must +// contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens +// (-). The maximum length is 40 characters. +func (c *ProjectsLocationsBatchesCreateCall) RequestId(requestId string) *ProjectsLocationsBatchesCreateCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsBatchesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchesCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsBatchesCreateCall) Context(ctx context.Context) *ProjectsLocationsBatchesCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsBatchesCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBatchesCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.batch) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/batches") + 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 "dataproc.projects.locations.batches.create" call. +// 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 *ProjectsLocationsBatchesCreateCall) 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 +} + +type ProjectsLocationsBatchesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes the batch workload resource. If the batch is not in a +// CANCELLED, SUCCEEDED or FAILED State, the delete operation fails and the +// response returns FAILED_PRECONDITION. +// +// - name: The fully qualified name of the batch to retrieve in the format +// "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID". +func (r *ProjectsLocationsBatchesService) Delete(name string) *ProjectsLocationsBatchesDeleteCall { + c := &ProjectsLocationsBatchesDeleteCall{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 +// details. +func (c *ProjectsLocationsBatchesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchesDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsBatchesDeleteCall) Context(ctx context.Context) *ProjectsLocationsBatchesDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsBatchesDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBatchesDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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 "dataproc.projects.locations.batches.delete" call. +// 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 *ProjectsLocationsBatchesDeleteCall) 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 +} + +type ProjectsLocationsBatchesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the batch workload resource representation. +// +// - name: The fully qualified name of the batch to retrieve in the format +// "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID". +func (r *ProjectsLocationsBatchesService) Get(name string) *ProjectsLocationsBatchesGetCall { + c := &ProjectsLocationsBatchesGetCall{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 +// details. +func (c *ProjectsLocationsBatchesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchesGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsBatchesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsBatchesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsBatchesGetCall) Context(ctx context.Context) *ProjectsLocationsBatchesGetCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsBatchesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBatchesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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 "dataproc.projects.locations.batches.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *Batch.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsBatchesGetCall) Do(opts ...googleapi.CallOption) (*Batch, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Batch{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsBatchesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists batch workloads. +// +// - parent: The parent, which owns this collection of batches. +func (r *ProjectsLocationsBatchesService) List(parent string) *ProjectsLocationsBatchesListCall { + c := &ProjectsLocationsBatchesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": A filter for the batches to +// return in the response.A filter is a logical expression constraining the +// values of various fields in each batch resource. Filters are case sensitive, +// and may contain multiple clauses combined with logical operators (AND/OR). +// Supported fields are batch_id, batch_uuid, state, create_time, and +// labels.e.g. state = RUNNING and create_time < "2023-01-01T00:00:00Z" filters +// for batches in state RUNNING that were created before 2023-01-01. state = +// RUNNING and labels.environment=production filters for batches in state in a +// RUNNING state that have a production environment label.See +// https://google.aip.dev/assets/misc/ebnf-filtering.txt for a detailed +// description of the filter syntax and a list of supported comparisons. +func (c *ProjectsLocationsBatchesListCall) Filter(filter string) *ProjectsLocationsBatchesListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": Field(s) on which to sort the +// list of batches.Currently the only supported sort orders are unspecified +// (empty) and create_time desc to sort by most recently created batches +// first.See https://google.aip.dev/132#ordering for more details. +func (c *ProjectsLocationsBatchesListCall) OrderBy(orderBy string) *ProjectsLocationsBatchesListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of +// batches to return in each response. The service may return fewer than this +// value. The default page size is 20; the maximum page size is 1000. +func (c *ProjectsLocationsBatchesListCall) PageSize(pageSize int64) *ProjectsLocationsBatchesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token received +// from a previous ListBatches call. Provide this token to retrieve the +// subsequent page. +func (c *ProjectsLocationsBatchesListCall) PageToken(pageToken string) *ProjectsLocationsBatchesListCall { + 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 +// details. +func (c *ProjectsLocationsBatchesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchesListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsBatchesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsBatchesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsBatchesListCall) Context(ctx context.Context) *ProjectsLocationsBatchesListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsBatchesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBatchesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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}/batches") + 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 "dataproc.projects.locations.batches.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *ListBatchesResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsBatchesListCall) Do(opts ...googleapi.CallOption) (*ListBatchesResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &ListBatchesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +// 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 *ProjectsLocationsBatchesListCall) Pages(ctx context.Context, f func(*ListBatchesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + 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 ProjectsLocationsBatchesSparkApplicationsAccessCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Access: Obtain high level information corresponding to a single Spark +// Application. +// +// - name: The fully qualified name of the batch to retrieve in the format +// "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplic +// ations/APPLICATION_ID". +func (r *ProjectsLocationsBatchesSparkApplicationsService) Access(name string) *ProjectsLocationsBatchesSparkApplicationsAccessCall { + c := &ProjectsLocationsBatchesSparkApplicationsAccessCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Parent sets the optional parameter "parent": Required. Parent (Batch) +// resource reference. +func (c *ProjectsLocationsBatchesSparkApplicationsAccessCall) Parent(parent string) *ProjectsLocationsBatchesSparkApplicationsAccessCall { + c.urlParams_.Set("parent", parent) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsBatchesSparkApplicationsAccessCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchesSparkApplicationsAccessCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsBatchesSparkApplicationsAccessCall) IfNoneMatch(entityTag string) *ProjectsLocationsBatchesSparkApplicationsAccessCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsBatchesSparkApplicationsAccessCall) Context(ctx context.Context) *ProjectsLocationsBatchesSparkApplicationsAccessCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsBatchesSparkApplicationsAccessCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBatchesSparkApplicationsAccessCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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}:access") + 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 "dataproc.projects.locations.batches.sparkApplications.access" call. +// Any non-2xx status code is an error. Response headers are in either +// *AccessSparkApplicationResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsBatchesSparkApplicationsAccessCall) Do(opts ...googleapi.CallOption) (*AccessSparkApplicationResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &AccessSparkApplicationResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsBatchesSparkApplicationsAccessEnvironmentInfoCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// AccessEnvironmentInfo: Obtain environment details for a Spark Application +// +// - name: The fully qualified name of the batch to retrieve in the format +// "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplic +// ations/APPLICATION_ID". +func (r *ProjectsLocationsBatchesSparkApplicationsService) AccessEnvironmentInfo(name string) *ProjectsLocationsBatchesSparkApplicationsAccessEnvironmentInfoCall { + c := &ProjectsLocationsBatchesSparkApplicationsAccessEnvironmentInfoCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Parent sets the optional parameter "parent": Required. Parent (Batch) +// resource reference. +func (c *ProjectsLocationsBatchesSparkApplicationsAccessEnvironmentInfoCall) Parent(parent string) *ProjectsLocationsBatchesSparkApplicationsAccessEnvironmentInfoCall { + c.urlParams_.Set("parent", parent) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsBatchesSparkApplicationsAccessEnvironmentInfoCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchesSparkApplicationsAccessEnvironmentInfoCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsBatchesSparkApplicationsAccessEnvironmentInfoCall) IfNoneMatch(entityTag string) *ProjectsLocationsBatchesSparkApplicationsAccessEnvironmentInfoCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsBatchesSparkApplicationsAccessEnvironmentInfoCall) Context(ctx context.Context) *ProjectsLocationsBatchesSparkApplicationsAccessEnvironmentInfoCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsBatchesSparkApplicationsAccessEnvironmentInfoCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBatchesSparkApplicationsAccessEnvironmentInfoCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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}:accessEnvironmentInfo") + 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 "dataproc.projects.locations.batches.sparkApplications.accessEnvironmentInfo" call. +// Any non-2xx status code is an error. Response headers are in either +// *AccessSparkApplicationEnvironmentInfoResponse.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsBatchesSparkApplicationsAccessEnvironmentInfoCall) Do(opts ...googleapi.CallOption) (*AccessSparkApplicationEnvironmentInfoResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &AccessSparkApplicationEnvironmentInfoResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsBatchesSparkApplicationsAccessJobCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// AccessJob: Obtain data corresponding to a spark job for a Spark Application. +// +// - name: The fully qualified name of the batch to retrieve in the format +// "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplic +// ations/APPLICATION_ID". +func (r *ProjectsLocationsBatchesSparkApplicationsService) AccessJob(name string) *ProjectsLocationsBatchesSparkApplicationsAccessJobCall { + c := &ProjectsLocationsBatchesSparkApplicationsAccessJobCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// JobId sets the optional parameter "jobId": Required. Job ID to fetch data +// for. +func (c *ProjectsLocationsBatchesSparkApplicationsAccessJobCall) JobId(jobId int64) *ProjectsLocationsBatchesSparkApplicationsAccessJobCall { + c.urlParams_.Set("jobId", fmt.Sprint(jobId)) + return c +} + +// Parent sets the optional parameter "parent": Required. Parent (Batch) +// resource reference. +func (c *ProjectsLocationsBatchesSparkApplicationsAccessJobCall) Parent(parent string) *ProjectsLocationsBatchesSparkApplicationsAccessJobCall { + c.urlParams_.Set("parent", parent) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsBatchesSparkApplicationsAccessJobCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchesSparkApplicationsAccessJobCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsBatchesSparkApplicationsAccessJobCall) IfNoneMatch(entityTag string) *ProjectsLocationsBatchesSparkApplicationsAccessJobCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsBatchesSparkApplicationsAccessJobCall) Context(ctx context.Context) *ProjectsLocationsBatchesSparkApplicationsAccessJobCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsBatchesSparkApplicationsAccessJobCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBatchesSparkApplicationsAccessJobCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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}:accessJob") + 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 "dataproc.projects.locations.batches.sparkApplications.accessJob" call. +// Any non-2xx status code is an error. Response headers are in either +// *AccessSparkApplicationJobResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsBatchesSparkApplicationsAccessJobCall) Do(opts ...googleapi.CallOption) (*AccessSparkApplicationJobResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &AccessSparkApplicationJobResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsBatchesSparkApplicationsAccessSqlPlanCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// AccessSqlPlan: Obtain Spark Plan Graph for a Spark Application SQL +// execution. Limits the number of clusters returned as part of the graph to +// 10000. +// +// - name: The fully qualified name of the batch to retrieve in the format +// "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplic +// ations/APPLICATION_ID". +func (r *ProjectsLocationsBatchesSparkApplicationsService) AccessSqlPlan(name string) *ProjectsLocationsBatchesSparkApplicationsAccessSqlPlanCall { + c := &ProjectsLocationsBatchesSparkApplicationsAccessSqlPlanCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// ExecutionId sets the optional parameter "executionId": Required. Execution +// ID +func (c *ProjectsLocationsBatchesSparkApplicationsAccessSqlPlanCall) ExecutionId(executionId int64) *ProjectsLocationsBatchesSparkApplicationsAccessSqlPlanCall { + c.urlParams_.Set("executionId", fmt.Sprint(executionId)) + return c +} + +// Parent sets the optional parameter "parent": Required. Parent (Batch) +// resource reference. +func (c *ProjectsLocationsBatchesSparkApplicationsAccessSqlPlanCall) Parent(parent string) *ProjectsLocationsBatchesSparkApplicationsAccessSqlPlanCall { + c.urlParams_.Set("parent", parent) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsBatchesSparkApplicationsAccessSqlPlanCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchesSparkApplicationsAccessSqlPlanCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsBatchesSparkApplicationsAccessSqlPlanCall) IfNoneMatch(entityTag string) *ProjectsLocationsBatchesSparkApplicationsAccessSqlPlanCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsBatchesSparkApplicationsAccessSqlPlanCall) Context(ctx context.Context) *ProjectsLocationsBatchesSparkApplicationsAccessSqlPlanCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsBatchesSparkApplicationsAccessSqlPlanCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBatchesSparkApplicationsAccessSqlPlanCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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}:accessSqlPlan") + 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 "dataproc.projects.locations.batches.sparkApplications.accessSqlPlan" call. +// Any non-2xx status code is an error. Response headers are in either +// *AccessSparkApplicationSqlSparkPlanGraphResponse.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsBatchesSparkApplicationsAccessSqlPlanCall) Do(opts ...googleapi.CallOption) (*AccessSparkApplicationSqlSparkPlanGraphResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &AccessSparkApplicationSqlSparkPlanGraphResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsBatchesSparkApplicationsAccessSqlQueryCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// AccessSqlQuery: Obtain data corresponding to a particular SQL Query for a +// Spark Application. +// +// - name: The fully qualified name of the batch to retrieve in the format +// "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplic +// ations/APPLICATION_ID". +func (r *ProjectsLocationsBatchesSparkApplicationsService) AccessSqlQuery(name string) *ProjectsLocationsBatchesSparkApplicationsAccessSqlQueryCall { + c := &ProjectsLocationsBatchesSparkApplicationsAccessSqlQueryCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Details sets the optional parameter "details": Lists/ hides details of Spark +// plan nodes. True is set to list and false to hide. +func (c *ProjectsLocationsBatchesSparkApplicationsAccessSqlQueryCall) Details(details bool) *ProjectsLocationsBatchesSparkApplicationsAccessSqlQueryCall { + c.urlParams_.Set("details", fmt.Sprint(details)) + return c +} + +// ExecutionId sets the optional parameter "executionId": Required. Execution +// ID +func (c *ProjectsLocationsBatchesSparkApplicationsAccessSqlQueryCall) ExecutionId(executionId int64) *ProjectsLocationsBatchesSparkApplicationsAccessSqlQueryCall { + c.urlParams_.Set("executionId", fmt.Sprint(executionId)) + return c +} + +// Parent sets the optional parameter "parent": Required. Parent (Batch) +// resource reference. +func (c *ProjectsLocationsBatchesSparkApplicationsAccessSqlQueryCall) Parent(parent string) *ProjectsLocationsBatchesSparkApplicationsAccessSqlQueryCall { + c.urlParams_.Set("parent", parent) + return c +} + +// PlanDescription sets the optional parameter "planDescription": Enables/ +// disables physical plan description on demand +func (c *ProjectsLocationsBatchesSparkApplicationsAccessSqlQueryCall) PlanDescription(planDescription bool) *ProjectsLocationsBatchesSparkApplicationsAccessSqlQueryCall { + c.urlParams_.Set("planDescription", fmt.Sprint(planDescription)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsBatchesSparkApplicationsAccessSqlQueryCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchesSparkApplicationsAccessSqlQueryCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsBatchesSparkApplicationsAccessSqlQueryCall) IfNoneMatch(entityTag string) *ProjectsLocationsBatchesSparkApplicationsAccessSqlQueryCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsBatchesSparkApplicationsAccessSqlQueryCall) Context(ctx context.Context) *ProjectsLocationsBatchesSparkApplicationsAccessSqlQueryCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsBatchesSparkApplicationsAccessSqlQueryCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBatchesSparkApplicationsAccessSqlQueryCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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}:accessSqlQuery") + 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 "dataproc.projects.locations.batches.sparkApplications.accessSqlQuery" call. +// Any non-2xx status code is an error. Response headers are in either +// *AccessSparkApplicationSqlQueryResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsBatchesSparkApplicationsAccessSqlQueryCall) Do(opts ...googleapi.CallOption) (*AccessSparkApplicationSqlQueryResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &AccessSparkApplicationSqlQueryResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsBatchesSparkApplicationsAccessStageAttemptCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// AccessStageAttempt: Obtain data corresponding to a spark stage attempt for a +// Spark Application. +// +// - name: The fully qualified name of the batch to retrieve in the format +// "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplic +// ations/APPLICATION_ID". +func (r *ProjectsLocationsBatchesSparkApplicationsService) AccessStageAttempt(name string) *ProjectsLocationsBatchesSparkApplicationsAccessStageAttemptCall { + c := &ProjectsLocationsBatchesSparkApplicationsAccessStageAttemptCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Parent sets the optional parameter "parent": Required. Parent (Batch) +// resource reference. +func (c *ProjectsLocationsBatchesSparkApplicationsAccessStageAttemptCall) Parent(parent string) *ProjectsLocationsBatchesSparkApplicationsAccessStageAttemptCall { + c.urlParams_.Set("parent", parent) + return c +} + +// StageAttemptId sets the optional parameter "stageAttemptId": Required. Stage +// Attempt ID +func (c *ProjectsLocationsBatchesSparkApplicationsAccessStageAttemptCall) StageAttemptId(stageAttemptId int64) *ProjectsLocationsBatchesSparkApplicationsAccessStageAttemptCall { + c.urlParams_.Set("stageAttemptId", fmt.Sprint(stageAttemptId)) + return c +} + +// StageId sets the optional parameter "stageId": Required. Stage ID +func (c *ProjectsLocationsBatchesSparkApplicationsAccessStageAttemptCall) StageId(stageId int64) *ProjectsLocationsBatchesSparkApplicationsAccessStageAttemptCall { + c.urlParams_.Set("stageId", fmt.Sprint(stageId)) + return c +} + +// SummaryMetricsMask sets the optional parameter "summaryMetricsMask": The +// list of summary metrics fields to include. Empty list will default to skip +// all summary metrics fields. Example, if the response should include +// TaskQuantileMetrics, the request should have task_quantile_metrics in +// summary_metrics_mask field +func (c *ProjectsLocationsBatchesSparkApplicationsAccessStageAttemptCall) SummaryMetricsMask(summaryMetricsMask string) *ProjectsLocationsBatchesSparkApplicationsAccessStageAttemptCall { + c.urlParams_.Set("summaryMetricsMask", summaryMetricsMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsBatchesSparkApplicationsAccessStageAttemptCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchesSparkApplicationsAccessStageAttemptCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsBatchesSparkApplicationsAccessStageAttemptCall) IfNoneMatch(entityTag string) *ProjectsLocationsBatchesSparkApplicationsAccessStageAttemptCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsBatchesSparkApplicationsAccessStageAttemptCall) Context(ctx context.Context) *ProjectsLocationsBatchesSparkApplicationsAccessStageAttemptCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsBatchesSparkApplicationsAccessStageAttemptCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBatchesSparkApplicationsAccessStageAttemptCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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}:accessStageAttempt") + 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 "dataproc.projects.locations.batches.sparkApplications.accessStageAttempt" call. +// Any non-2xx status code is an error. Response headers are in either +// *AccessSparkApplicationStageAttemptResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsBatchesSparkApplicationsAccessStageAttemptCall) Do(opts ...googleapi.CallOption) (*AccessSparkApplicationStageAttemptResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &AccessSparkApplicationStageAttemptResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsBatchesSparkApplicationsAccessStageRddGraphCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// AccessStageRddGraph: Obtain RDD operation graph for a Spark Application +// Stage. Limits the number of clusters returned as part of the graph to 10000. +// +// - name: The fully qualified name of the batch to retrieve in the format +// "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplic +// ations/APPLICATION_ID". +func (r *ProjectsLocationsBatchesSparkApplicationsService) AccessStageRddGraph(name string) *ProjectsLocationsBatchesSparkApplicationsAccessStageRddGraphCall { + c := &ProjectsLocationsBatchesSparkApplicationsAccessStageRddGraphCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Parent sets the optional parameter "parent": Required. Parent (Batch) +// resource reference. +func (c *ProjectsLocationsBatchesSparkApplicationsAccessStageRddGraphCall) Parent(parent string) *ProjectsLocationsBatchesSparkApplicationsAccessStageRddGraphCall { + c.urlParams_.Set("parent", parent) + return c +} + +// StageId sets the optional parameter "stageId": Required. Stage ID +func (c *ProjectsLocationsBatchesSparkApplicationsAccessStageRddGraphCall) StageId(stageId int64) *ProjectsLocationsBatchesSparkApplicationsAccessStageRddGraphCall { + c.urlParams_.Set("stageId", fmt.Sprint(stageId)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsBatchesSparkApplicationsAccessStageRddGraphCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchesSparkApplicationsAccessStageRddGraphCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsBatchesSparkApplicationsAccessStageRddGraphCall) IfNoneMatch(entityTag string) *ProjectsLocationsBatchesSparkApplicationsAccessStageRddGraphCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsBatchesSparkApplicationsAccessStageRddGraphCall) Context(ctx context.Context) *ProjectsLocationsBatchesSparkApplicationsAccessStageRddGraphCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsBatchesSparkApplicationsAccessStageRddGraphCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBatchesSparkApplicationsAccessStageRddGraphCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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}:accessStageRddGraph") + 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 "dataproc.projects.locations.batches.sparkApplications.accessStageRddGraph" call. +// Any non-2xx status code is an error. Response headers are in either +// *AccessSparkApplicationStageRddOperationGraphResponse.ServerResponse.Header +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsBatchesSparkApplicationsAccessStageRddGraphCall) Do(opts ...googleapi.CallOption) (*AccessSparkApplicationStageRddOperationGraphResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &AccessSparkApplicationStageRddOperationGraphResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsBatchesSparkApplicationsSearchCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Search: Obtain high level information and list of Spark Applications +// corresponding to a batch +// +// - parent: The fully qualified name of the batch to retrieve in the format +// "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID". +func (r *ProjectsLocationsBatchesSparkApplicationsService) Search(parent string) *ProjectsLocationsBatchesSparkApplicationsSearchCall { + c := &ProjectsLocationsBatchesSparkApplicationsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// ApplicationStatus sets the optional parameter "applicationStatus": Search +// only applications in the chosen state. +// +// Possible values: +// +// "APPLICATION_STATUS_UNSPECIFIED" +// "APPLICATION_STATUS_RUNNING" +// "APPLICATION_STATUS_COMPLETED" +func (c *ProjectsLocationsBatchesSparkApplicationsSearchCall) ApplicationStatus(applicationStatus string) *ProjectsLocationsBatchesSparkApplicationsSearchCall { + c.urlParams_.Set("applicationStatus", applicationStatus) + return c +} + +// MaxEndTime sets the optional parameter "maxEndTime": Latest end timestamp to +// list. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchCall) MaxEndTime(maxEndTime string) *ProjectsLocationsBatchesSparkApplicationsSearchCall { + c.urlParams_.Set("maxEndTime", maxEndTime) + return c +} + +// MaxTime sets the optional parameter "maxTime": Latest start timestamp to +// list. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchCall) MaxTime(maxTime string) *ProjectsLocationsBatchesSparkApplicationsSearchCall { + c.urlParams_.Set("maxTime", maxTime) + return c +} + +// MinEndTime sets the optional parameter "minEndTime": Earliest end timestamp +// to list. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchCall) MinEndTime(minEndTime string) *ProjectsLocationsBatchesSparkApplicationsSearchCall { + c.urlParams_.Set("minEndTime", minEndTime) + return c +} + +// MinTime sets the optional parameter "minTime": Earliest start timestamp to +// list. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchCall) MinTime(minTime string) *ProjectsLocationsBatchesSparkApplicationsSearchCall { + c.urlParams_.Set("minTime", minTime) + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of +// applications to return in each response. The service may return fewer than +// this. The default page size is 10; the maximum page size is 100. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchCall) PageSize(pageSize int64) *ProjectsLocationsBatchesSparkApplicationsSearchCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token received +// from a previous SearchSparkApplications call. Provide this token to retrieve +// the subsequent page. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchCall) PageToken(pageToken string) *ProjectsLocationsBatchesSparkApplicationsSearchCall { + 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 +// details. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchesSparkApplicationsSearchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchCall) IfNoneMatch(entityTag string) *ProjectsLocationsBatchesSparkApplicationsSearchCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchCall) Context(ctx context.Context) *ProjectsLocationsBatchesSparkApplicationsSearchCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBatchesSparkApplicationsSearchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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}/sparkApplications:search") + 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 "dataproc.projects.locations.batches.sparkApplications.search" call. +// Any non-2xx status code is an error. Response headers are in either +// *SearchSparkApplicationsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchCall) Do(opts ...googleapi.CallOption) (*SearchSparkApplicationsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &SearchSparkApplicationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +// 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 *ProjectsLocationsBatchesSparkApplicationsSearchCall) Pages(ctx context.Context, f func(*SearchSparkApplicationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + 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 ProjectsLocationsBatchesSparkApplicationsSearchExecutorStageSummaryCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// SearchExecutorStageSummary: Obtain executor summary with respect to a spark +// stage attempt. +// +// - name: The fully qualified name of the batch to retrieve in the format +// "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplic +// ations/APPLICATION_ID". +func (r *ProjectsLocationsBatchesSparkApplicationsService) SearchExecutorStageSummary(name string) *ProjectsLocationsBatchesSparkApplicationsSearchExecutorStageSummaryCall { + c := &ProjectsLocationsBatchesSparkApplicationsSearchExecutorStageSummaryCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of executors +// to return in each response. The service may return fewer than this. The +// default page size is 10; the maximum page size is 100. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchExecutorStageSummaryCall) PageSize(pageSize int64) *ProjectsLocationsBatchesSparkApplicationsSearchExecutorStageSummaryCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token received +// from a previous AccessSparkApplicationExecutorsList call. Provide this token +// to retrieve the subsequent page. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchExecutorStageSummaryCall) PageToken(pageToken string) *ProjectsLocationsBatchesSparkApplicationsSearchExecutorStageSummaryCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Parent sets the optional parameter "parent": Required. Parent (Batch) +// resource reference. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchExecutorStageSummaryCall) Parent(parent string) *ProjectsLocationsBatchesSparkApplicationsSearchExecutorStageSummaryCall { + c.urlParams_.Set("parent", parent) + return c +} + +// StageAttemptId sets the optional parameter "stageAttemptId": Required. Stage +// Attempt ID +func (c *ProjectsLocationsBatchesSparkApplicationsSearchExecutorStageSummaryCall) StageAttemptId(stageAttemptId int64) *ProjectsLocationsBatchesSparkApplicationsSearchExecutorStageSummaryCall { + c.urlParams_.Set("stageAttemptId", fmt.Sprint(stageAttemptId)) + return c +} + +// StageId sets the optional parameter "stageId": Required. Stage ID +func (c *ProjectsLocationsBatchesSparkApplicationsSearchExecutorStageSummaryCall) StageId(stageId int64) *ProjectsLocationsBatchesSparkApplicationsSearchExecutorStageSummaryCall { + c.urlParams_.Set("stageId", fmt.Sprint(stageId)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchExecutorStageSummaryCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchesSparkApplicationsSearchExecutorStageSummaryCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchExecutorStageSummaryCall) IfNoneMatch(entityTag string) *ProjectsLocationsBatchesSparkApplicationsSearchExecutorStageSummaryCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchExecutorStageSummaryCall) Context(ctx context.Context) *ProjectsLocationsBatchesSparkApplicationsSearchExecutorStageSummaryCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchExecutorStageSummaryCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBatchesSparkApplicationsSearchExecutorStageSummaryCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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}:searchExecutorStageSummary") + 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 "dataproc.projects.locations.batches.sparkApplications.searchExecutorStageSummary" call. +// Any non-2xx status code is an error. Response headers are in either +// *SearchSparkApplicationExecutorStageSummaryResponse.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchExecutorStageSummaryCall) Do(opts ...googleapi.CallOption) (*SearchSparkApplicationExecutorStageSummaryResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &SearchSparkApplicationExecutorStageSummaryResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +// 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 *ProjectsLocationsBatchesSparkApplicationsSearchExecutorStageSummaryCall) Pages(ctx context.Context, f func(*SearchSparkApplicationExecutorStageSummaryResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + 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 ProjectsLocationsBatchesSparkApplicationsSearchExecutorsCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// SearchExecutors: Obtain data corresponding to executors for a Spark +// Application. +// +// - name: The fully qualified name of the batch to retrieve in the format +// "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplic +// ations/APPLICATION_ID". +func (r *ProjectsLocationsBatchesSparkApplicationsService) SearchExecutors(name string) *ProjectsLocationsBatchesSparkApplicationsSearchExecutorsCall { + c := &ProjectsLocationsBatchesSparkApplicationsSearchExecutorsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// ExecutorStatus sets the optional parameter "executorStatus": Filter to +// select whether active/ dead or all executors should be selected. +// +// Possible values: +// +// "EXECUTOR_STATUS_UNSPECIFIED" +// "EXECUTOR_STATUS_ACTIVE" +// "EXECUTOR_STATUS_DEAD" +func (c *ProjectsLocationsBatchesSparkApplicationsSearchExecutorsCall) ExecutorStatus(executorStatus string) *ProjectsLocationsBatchesSparkApplicationsSearchExecutorsCall { + c.urlParams_.Set("executorStatus", executorStatus) + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of executors +// to return in each response. The service may return fewer than this. The +// default page size is 10; the maximum page size is 100. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchExecutorsCall) PageSize(pageSize int64) *ProjectsLocationsBatchesSparkApplicationsSearchExecutorsCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token received +// from a previous AccessSparkApplicationExecutorsList call. Provide this token +// to retrieve the subsequent page. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchExecutorsCall) PageToken(pageToken string) *ProjectsLocationsBatchesSparkApplicationsSearchExecutorsCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Parent sets the optional parameter "parent": Required. Parent (Batch) +// resource reference. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchExecutorsCall) Parent(parent string) *ProjectsLocationsBatchesSparkApplicationsSearchExecutorsCall { + c.urlParams_.Set("parent", parent) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchExecutorsCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchesSparkApplicationsSearchExecutorsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchExecutorsCall) IfNoneMatch(entityTag string) *ProjectsLocationsBatchesSparkApplicationsSearchExecutorsCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchExecutorsCall) Context(ctx context.Context) *ProjectsLocationsBatchesSparkApplicationsSearchExecutorsCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchExecutorsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBatchesSparkApplicationsSearchExecutorsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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}:searchExecutors") + 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 "dataproc.projects.locations.batches.sparkApplications.searchExecutors" call. +// Any non-2xx status code is an error. Response headers are in either +// *SearchSparkApplicationExecutorsResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchExecutorsCall) Do(opts ...googleapi.CallOption) (*SearchSparkApplicationExecutorsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &SearchSparkApplicationExecutorsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +// 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 *ProjectsLocationsBatchesSparkApplicationsSearchExecutorsCall) Pages(ctx context.Context, f func(*SearchSparkApplicationExecutorsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + 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 ProjectsLocationsBatchesSparkApplicationsSearchJobsCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// SearchJobs: Obtain list of spark jobs corresponding to a Spark Application. +// +// - name: The fully qualified name of the batch to retrieve in the format +// "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplic +// ations/APPLICATION_ID". +func (r *ProjectsLocationsBatchesSparkApplicationsService) SearchJobs(name string) *ProjectsLocationsBatchesSparkApplicationsSearchJobsCall { + c := &ProjectsLocationsBatchesSparkApplicationsSearchJobsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// JobStatus sets the optional parameter "jobStatus": List only jobs in the +// specific state. +// +// Possible values: +// +// "JOB_EXECUTION_STATUS_UNSPECIFIED" +// "JOB_EXECUTION_STATUS_RUNNING" +// "JOB_EXECUTION_STATUS_SUCCEEDED" +// "JOB_EXECUTION_STATUS_FAILED" +// "JOB_EXECUTION_STATUS_UNKNOWN" +func (c *ProjectsLocationsBatchesSparkApplicationsSearchJobsCall) JobStatus(jobStatus string) *ProjectsLocationsBatchesSparkApplicationsSearchJobsCall { + c.urlParams_.Set("jobStatus", jobStatus) + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of jobs to +// return in each response. The service may return fewer than this. The default +// page size is 10; the maximum page size is 100. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchJobsCall) PageSize(pageSize int64) *ProjectsLocationsBatchesSparkApplicationsSearchJobsCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token received +// from a previous SearchSparkApplicationJobs call. Provide this token to +// retrieve the subsequent page. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchJobsCall) PageToken(pageToken string) *ProjectsLocationsBatchesSparkApplicationsSearchJobsCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Parent sets the optional parameter "parent": Required. Parent (Batch) +// resource reference. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchJobsCall) Parent(parent string) *ProjectsLocationsBatchesSparkApplicationsSearchJobsCall { + c.urlParams_.Set("parent", parent) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchJobsCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchesSparkApplicationsSearchJobsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchJobsCall) IfNoneMatch(entityTag string) *ProjectsLocationsBatchesSparkApplicationsSearchJobsCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchJobsCall) Context(ctx context.Context) *ProjectsLocationsBatchesSparkApplicationsSearchJobsCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchJobsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBatchesSparkApplicationsSearchJobsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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}:searchJobs") + 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 "dataproc.projects.locations.batches.sparkApplications.searchJobs" call. +// Any non-2xx status code is an error. Response headers are in either +// *SearchSparkApplicationJobsResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchJobsCall) Do(opts ...googleapi.CallOption) (*SearchSparkApplicationJobsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &SearchSparkApplicationJobsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +// 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 *ProjectsLocationsBatchesSparkApplicationsSearchJobsCall) Pages(ctx context.Context, f func(*SearchSparkApplicationJobsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + 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 ProjectsLocationsBatchesSparkApplicationsSearchSqlQueriesCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// SearchSqlQueries: Obtain data corresponding to SQL Queries for a Spark +// Application. +// +// - name: The fully qualified name of the batch to retrieve in the format +// "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplic +// ations/APPLICATION_ID". +func (r *ProjectsLocationsBatchesSparkApplicationsService) SearchSqlQueries(name string) *ProjectsLocationsBatchesSparkApplicationsSearchSqlQueriesCall { + c := &ProjectsLocationsBatchesSparkApplicationsSearchSqlQueriesCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Details sets the optional parameter "details": Lists/ hides details of Spark +// plan nodes. True is set to list and false to hide. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchSqlQueriesCall) Details(details bool) *ProjectsLocationsBatchesSparkApplicationsSearchSqlQueriesCall { + c.urlParams_.Set("details", fmt.Sprint(details)) + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of queries +// to return in each response. The service may return fewer than this. The +// default page size is 10; the maximum page size is 100. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchSqlQueriesCall) PageSize(pageSize int64) *ProjectsLocationsBatchesSparkApplicationsSearchSqlQueriesCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token received +// from a previous SearchSparkApplicationSqlQueries call. Provide this token to +// retrieve the subsequent page. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchSqlQueriesCall) PageToken(pageToken string) *ProjectsLocationsBatchesSparkApplicationsSearchSqlQueriesCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Parent sets the optional parameter "parent": Required. Parent (Batch) +// resource reference. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchSqlQueriesCall) Parent(parent string) *ProjectsLocationsBatchesSparkApplicationsSearchSqlQueriesCall { + c.urlParams_.Set("parent", parent) + return c +} + +// PlanDescription sets the optional parameter "planDescription": Enables/ +// disables physical plan description on demand +func (c *ProjectsLocationsBatchesSparkApplicationsSearchSqlQueriesCall) PlanDescription(planDescription bool) *ProjectsLocationsBatchesSparkApplicationsSearchSqlQueriesCall { + c.urlParams_.Set("planDescription", fmt.Sprint(planDescription)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchSqlQueriesCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchesSparkApplicationsSearchSqlQueriesCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchSqlQueriesCall) IfNoneMatch(entityTag string) *ProjectsLocationsBatchesSparkApplicationsSearchSqlQueriesCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchSqlQueriesCall) Context(ctx context.Context) *ProjectsLocationsBatchesSparkApplicationsSearchSqlQueriesCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchSqlQueriesCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBatchesSparkApplicationsSearchSqlQueriesCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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}:searchSqlQueries") + 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 "dataproc.projects.locations.batches.sparkApplications.searchSqlQueries" call. +// Any non-2xx status code is an error. Response headers are in either +// *SearchSparkApplicationSqlQueriesResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchSqlQueriesCall) Do(opts ...googleapi.CallOption) (*SearchSparkApplicationSqlQueriesResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &SearchSparkApplicationSqlQueriesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +// 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 *ProjectsLocationsBatchesSparkApplicationsSearchSqlQueriesCall) Pages(ctx context.Context, f func(*SearchSparkApplicationSqlQueriesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + 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 ProjectsLocationsBatchesSparkApplicationsSearchStageAttemptTasksCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// SearchStageAttemptTasks: Obtain data corresponding to tasks for a spark +// stage attempt for a Spark Application. +// +// - name: The fully qualified name of the batch to retrieve in the format +// "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplic +// ations/APPLICATION_ID". +func (r *ProjectsLocationsBatchesSparkApplicationsService) SearchStageAttemptTasks(name string) *ProjectsLocationsBatchesSparkApplicationsSearchStageAttemptTasksCall { + c := &ProjectsLocationsBatchesSparkApplicationsSearchStageAttemptTasksCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of tasks to +// return in each response. The service may return fewer than this. The default +// page size is 10; the maximum page size is 100. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchStageAttemptTasksCall) PageSize(pageSize int64) *ProjectsLocationsBatchesSparkApplicationsSearchStageAttemptTasksCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token received +// from a previous ListSparkApplicationStageAttemptTasks call. Provide this +// token to retrieve the subsequent page. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchStageAttemptTasksCall) PageToken(pageToken string) *ProjectsLocationsBatchesSparkApplicationsSearchStageAttemptTasksCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Parent sets the optional parameter "parent": Required. Parent (Batch) +// resource reference. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchStageAttemptTasksCall) Parent(parent string) *ProjectsLocationsBatchesSparkApplicationsSearchStageAttemptTasksCall { + c.urlParams_.Set("parent", parent) + return c +} + +// SortRuntime sets the optional parameter "sortRuntime": Sort the tasks by +// runtime. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchStageAttemptTasksCall) SortRuntime(sortRuntime bool) *ProjectsLocationsBatchesSparkApplicationsSearchStageAttemptTasksCall { + c.urlParams_.Set("sortRuntime", fmt.Sprint(sortRuntime)) + return c +} + +// StageAttemptId sets the optional parameter "stageAttemptId": Stage Attempt +// ID +func (c *ProjectsLocationsBatchesSparkApplicationsSearchStageAttemptTasksCall) StageAttemptId(stageAttemptId int64) *ProjectsLocationsBatchesSparkApplicationsSearchStageAttemptTasksCall { + c.urlParams_.Set("stageAttemptId", fmt.Sprint(stageAttemptId)) + return c +} + +// StageId sets the optional parameter "stageId": Stage ID +func (c *ProjectsLocationsBatchesSparkApplicationsSearchStageAttemptTasksCall) StageId(stageId int64) *ProjectsLocationsBatchesSparkApplicationsSearchStageAttemptTasksCall { + c.urlParams_.Set("stageId", fmt.Sprint(stageId)) + return c +} + +// TaskStatus sets the optional parameter "taskStatus": List only tasks in the +// state. +// +// Possible values: +// +// "TASK_STATUS_UNSPECIFIED" +// "TASK_STATUS_RUNNING" +// "TASK_STATUS_SUCCESS" +// "TASK_STATUS_FAILED" +// "TASK_STATUS_KILLED" +// "TASK_STATUS_PENDING" +func (c *ProjectsLocationsBatchesSparkApplicationsSearchStageAttemptTasksCall) TaskStatus(taskStatus string) *ProjectsLocationsBatchesSparkApplicationsSearchStageAttemptTasksCall { + c.urlParams_.Set("taskStatus", taskStatus) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchStageAttemptTasksCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchesSparkApplicationsSearchStageAttemptTasksCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchStageAttemptTasksCall) IfNoneMatch(entityTag string) *ProjectsLocationsBatchesSparkApplicationsSearchStageAttemptTasksCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchStageAttemptTasksCall) Context(ctx context.Context) *ProjectsLocationsBatchesSparkApplicationsSearchStageAttemptTasksCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchStageAttemptTasksCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBatchesSparkApplicationsSearchStageAttemptTasksCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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}:searchStageAttemptTasks") + 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 "dataproc.projects.locations.batches.sparkApplications.searchStageAttemptTasks" call. +// Any non-2xx status code is an error. Response headers are in either +// *SearchSparkApplicationStageAttemptTasksResponse.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchStageAttemptTasksCall) Do(opts ...googleapi.CallOption) (*SearchSparkApplicationStageAttemptTasksResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &SearchSparkApplicationStageAttemptTasksResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +// 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 *ProjectsLocationsBatchesSparkApplicationsSearchStageAttemptTasksCall) Pages(ctx context.Context, f func(*SearchSparkApplicationStageAttemptTasksResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + 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 ProjectsLocationsBatchesSparkApplicationsSearchStageAttemptsCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// SearchStageAttempts: Obtain data corresponding to a spark stage attempts for +// a Spark Application. +// +// - name: The fully qualified name of the batch to retrieve in the format +// "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplic +// ations/APPLICATION_ID". +func (r *ProjectsLocationsBatchesSparkApplicationsService) SearchStageAttempts(name string) *ProjectsLocationsBatchesSparkApplicationsSearchStageAttemptsCall { + c := &ProjectsLocationsBatchesSparkApplicationsSearchStageAttemptsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of stage +// attempts (paging based on stage_attempt_id) to return in each response. The +// service may return fewer than this. The default page size is 10; the maximum +// page size is 100. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchStageAttemptsCall) PageSize(pageSize int64) *ProjectsLocationsBatchesSparkApplicationsSearchStageAttemptsCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token received +// from a previous SearchSparkApplicationStageAttempts call. Provide this token +// to retrieve the subsequent page. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchStageAttemptsCall) PageToken(pageToken string) *ProjectsLocationsBatchesSparkApplicationsSearchStageAttemptsCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Parent sets the optional parameter "parent": Required. Parent (Batch) +// resource reference. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchStageAttemptsCall) Parent(parent string) *ProjectsLocationsBatchesSparkApplicationsSearchStageAttemptsCall { + c.urlParams_.Set("parent", parent) + return c +} + +// StageId sets the optional parameter "stageId": Required. Stage ID for which +// attempts are to be fetched +func (c *ProjectsLocationsBatchesSparkApplicationsSearchStageAttemptsCall) StageId(stageId int64) *ProjectsLocationsBatchesSparkApplicationsSearchStageAttemptsCall { + c.urlParams_.Set("stageId", fmt.Sprint(stageId)) + return c +} + +// SummaryMetricsMask sets the optional parameter "summaryMetricsMask": The +// list of summary metrics fields to include. Empty list will default to skip +// all summary metrics fields. Example, if the response should include +// TaskQuantileMetrics, the request should have task_quantile_metrics in +// summary_metrics_mask field +func (c *ProjectsLocationsBatchesSparkApplicationsSearchStageAttemptsCall) SummaryMetricsMask(summaryMetricsMask string) *ProjectsLocationsBatchesSparkApplicationsSearchStageAttemptsCall { + c.urlParams_.Set("summaryMetricsMask", summaryMetricsMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchStageAttemptsCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchesSparkApplicationsSearchStageAttemptsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchStageAttemptsCall) IfNoneMatch(entityTag string) *ProjectsLocationsBatchesSparkApplicationsSearchStageAttemptsCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchStageAttemptsCall) Context(ctx context.Context) *ProjectsLocationsBatchesSparkApplicationsSearchStageAttemptsCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchStageAttemptsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBatchesSparkApplicationsSearchStageAttemptsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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}:searchStageAttempts") + 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 "dataproc.projects.locations.batches.sparkApplications.searchStageAttempts" call. +// Any non-2xx status code is an error. Response headers are in either +// *SearchSparkApplicationStageAttemptsResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchStageAttemptsCall) Do(opts ...googleapi.CallOption) (*SearchSparkApplicationStageAttemptsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &SearchSparkApplicationStageAttemptsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +// 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 *ProjectsLocationsBatchesSparkApplicationsSearchStageAttemptsCall) Pages(ctx context.Context, f func(*SearchSparkApplicationStageAttemptsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + 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 ProjectsLocationsBatchesSparkApplicationsSearchStagesCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// SearchStages: Obtain data corresponding to stages for a Spark Application. +// +// - name: The fully qualified name of the batch to retrieve in the format +// "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplic +// ations/APPLICATION_ID". +func (r *ProjectsLocationsBatchesSparkApplicationsService) SearchStages(name string) *ProjectsLocationsBatchesSparkApplicationsSearchStagesCall { + c := &ProjectsLocationsBatchesSparkApplicationsSearchStagesCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of stages +// (paging based on stage_id) to return in each response. The service may +// return fewer than this. The default page size is 10; the maximum page size +// is 100. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchStagesCall) PageSize(pageSize int64) *ProjectsLocationsBatchesSparkApplicationsSearchStagesCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token received +// from a previous FetchSparkApplicationStagesList call. Provide this token to +// retrieve the subsequent page. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchStagesCall) PageToken(pageToken string) *ProjectsLocationsBatchesSparkApplicationsSearchStagesCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Parent sets the optional parameter "parent": Required. Parent (Batch) +// resource reference. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchStagesCall) Parent(parent string) *ProjectsLocationsBatchesSparkApplicationsSearchStagesCall { + c.urlParams_.Set("parent", parent) + return c +} + +// StageStatus sets the optional parameter "stageStatus": List only stages in +// the given state. +// +// Possible values: +// +// "STAGE_STATUS_UNSPECIFIED" +// "STAGE_STATUS_ACTIVE" +// "STAGE_STATUS_COMPLETE" +// "STAGE_STATUS_FAILED" +// "STAGE_STATUS_PENDING" +// "STAGE_STATUS_SKIPPED" +func (c *ProjectsLocationsBatchesSparkApplicationsSearchStagesCall) StageStatus(stageStatus string) *ProjectsLocationsBatchesSparkApplicationsSearchStagesCall { + c.urlParams_.Set("stageStatus", stageStatus) + return c +} + +// SummaryMetricsMask sets the optional parameter "summaryMetricsMask": The +// list of summary metrics fields to include. Empty list will default to skip +// all summary metrics fields. Example, if the response should include +// TaskQuantileMetrics, the request should have task_quantile_metrics in +// summary_metrics_mask field +func (c *ProjectsLocationsBatchesSparkApplicationsSearchStagesCall) SummaryMetricsMask(summaryMetricsMask string) *ProjectsLocationsBatchesSparkApplicationsSearchStagesCall { + c.urlParams_.Set("summaryMetricsMask", summaryMetricsMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchStagesCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchesSparkApplicationsSearchStagesCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchStagesCall) IfNoneMatch(entityTag string) *ProjectsLocationsBatchesSparkApplicationsSearchStagesCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchStagesCall) Context(ctx context.Context) *ProjectsLocationsBatchesSparkApplicationsSearchStagesCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchStagesCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBatchesSparkApplicationsSearchStagesCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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}:searchStages") + 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 "dataproc.projects.locations.batches.sparkApplications.searchStages" call. +// Any non-2xx status code is an error. Response headers are in either +// *SearchSparkApplicationStagesResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsBatchesSparkApplicationsSearchStagesCall) Do(opts ...googleapi.CallOption) (*SearchSparkApplicationStagesResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &SearchSparkApplicationStagesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +// 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 *ProjectsLocationsBatchesSparkApplicationsSearchStagesCall) Pages(ctx context.Context, f func(*SearchSparkApplicationStagesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + 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 ProjectsLocationsBatchesSparkApplicationsSummarizeExecutorsCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// SummarizeExecutors: Obtain summary of Executor Summary for a Spark +// Application +// +// - name: The fully qualified name of the batch to retrieve in the format +// "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplic +// ations/APPLICATION_ID". +func (r *ProjectsLocationsBatchesSparkApplicationsService) SummarizeExecutors(name string) *ProjectsLocationsBatchesSparkApplicationsSummarizeExecutorsCall { + c := &ProjectsLocationsBatchesSparkApplicationsSummarizeExecutorsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Parent sets the optional parameter "parent": Required. Parent (Batch) +// resource reference. +func (c *ProjectsLocationsBatchesSparkApplicationsSummarizeExecutorsCall) Parent(parent string) *ProjectsLocationsBatchesSparkApplicationsSummarizeExecutorsCall { + c.urlParams_.Set("parent", parent) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsBatchesSparkApplicationsSummarizeExecutorsCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchesSparkApplicationsSummarizeExecutorsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsBatchesSparkApplicationsSummarizeExecutorsCall) IfNoneMatch(entityTag string) *ProjectsLocationsBatchesSparkApplicationsSummarizeExecutorsCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsBatchesSparkApplicationsSummarizeExecutorsCall) Context(ctx context.Context) *ProjectsLocationsBatchesSparkApplicationsSummarizeExecutorsCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsBatchesSparkApplicationsSummarizeExecutorsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBatchesSparkApplicationsSummarizeExecutorsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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}:summarizeExecutors") + 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 "dataproc.projects.locations.batches.sparkApplications.summarizeExecutors" call. +// Any non-2xx status code is an error. Response headers are in either +// *SummarizeSparkApplicationExecutorsResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsBatchesSparkApplicationsSummarizeExecutorsCall) Do(opts ...googleapi.CallOption) (*SummarizeSparkApplicationExecutorsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &SummarizeSparkApplicationExecutorsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsBatchesSparkApplicationsSummarizeJobsCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// SummarizeJobs: Obtain summary of Jobs for a Spark Application +// +// - name: The fully qualified name of the batch to retrieve in the format +// "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplic +// ations/APPLICATION_ID". +func (r *ProjectsLocationsBatchesSparkApplicationsService) SummarizeJobs(name string) *ProjectsLocationsBatchesSparkApplicationsSummarizeJobsCall { + c := &ProjectsLocationsBatchesSparkApplicationsSummarizeJobsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Parent sets the optional parameter "parent": Required. Parent (Batch) +// resource reference. +func (c *ProjectsLocationsBatchesSparkApplicationsSummarizeJobsCall) Parent(parent string) *ProjectsLocationsBatchesSparkApplicationsSummarizeJobsCall { + c.urlParams_.Set("parent", parent) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsBatchesSparkApplicationsSummarizeJobsCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchesSparkApplicationsSummarizeJobsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsBatchesSparkApplicationsSummarizeJobsCall) IfNoneMatch(entityTag string) *ProjectsLocationsBatchesSparkApplicationsSummarizeJobsCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsBatchesSparkApplicationsSummarizeJobsCall) Context(ctx context.Context) *ProjectsLocationsBatchesSparkApplicationsSummarizeJobsCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsBatchesSparkApplicationsSummarizeJobsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBatchesSparkApplicationsSummarizeJobsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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}:summarizeJobs") + 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 "dataproc.projects.locations.batches.sparkApplications.summarizeJobs" call. +// Any non-2xx status code is an error. Response headers are in either +// *SummarizeSparkApplicationJobsResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsBatchesSparkApplicationsSummarizeJobsCall) Do(opts ...googleapi.CallOption) (*SummarizeSparkApplicationJobsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &SummarizeSparkApplicationJobsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsBatchesSparkApplicationsSummarizeStageAttemptTasksCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// SummarizeStageAttemptTasks: Obtain summary of Tasks for a Spark Application +// Stage Attempt +// +// - name: The fully qualified name of the batch to retrieve in the format +// "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplic +// ations/APPLICATION_ID". +func (r *ProjectsLocationsBatchesSparkApplicationsService) SummarizeStageAttemptTasks(name string) *ProjectsLocationsBatchesSparkApplicationsSummarizeStageAttemptTasksCall { + c := &ProjectsLocationsBatchesSparkApplicationsSummarizeStageAttemptTasksCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Parent sets the optional parameter "parent": Required. Parent (Batch) +// resource reference. +func (c *ProjectsLocationsBatchesSparkApplicationsSummarizeStageAttemptTasksCall) Parent(parent string) *ProjectsLocationsBatchesSparkApplicationsSummarizeStageAttemptTasksCall { + c.urlParams_.Set("parent", parent) + return c +} + +// StageAttemptId sets the optional parameter "stageAttemptId": Required. Stage +// Attempt ID +func (c *ProjectsLocationsBatchesSparkApplicationsSummarizeStageAttemptTasksCall) StageAttemptId(stageAttemptId int64) *ProjectsLocationsBatchesSparkApplicationsSummarizeStageAttemptTasksCall { + c.urlParams_.Set("stageAttemptId", fmt.Sprint(stageAttemptId)) + return c +} + +// StageId sets the optional parameter "stageId": Required. Stage ID +func (c *ProjectsLocationsBatchesSparkApplicationsSummarizeStageAttemptTasksCall) StageId(stageId int64) *ProjectsLocationsBatchesSparkApplicationsSummarizeStageAttemptTasksCall { + c.urlParams_.Set("stageId", fmt.Sprint(stageId)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsBatchesSparkApplicationsSummarizeStageAttemptTasksCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchesSparkApplicationsSummarizeStageAttemptTasksCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsBatchesSparkApplicationsSummarizeStageAttemptTasksCall) IfNoneMatch(entityTag string) *ProjectsLocationsBatchesSparkApplicationsSummarizeStageAttemptTasksCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsBatchesSparkApplicationsSummarizeStageAttemptTasksCall) Context(ctx context.Context) *ProjectsLocationsBatchesSparkApplicationsSummarizeStageAttemptTasksCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsBatchesSparkApplicationsSummarizeStageAttemptTasksCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBatchesSparkApplicationsSummarizeStageAttemptTasksCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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}:summarizeStageAttemptTasks") + 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 "dataproc.projects.locations.batches.sparkApplications.summarizeStageAttemptTasks" call. +// Any non-2xx status code is an error. Response headers are in either +// *SummarizeSparkApplicationStageAttemptTasksResponse.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsBatchesSparkApplicationsSummarizeStageAttemptTasksCall) Do(opts ...googleapi.CallOption) (*SummarizeSparkApplicationStageAttemptTasksResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &SummarizeSparkApplicationStageAttemptTasksResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsBatchesSparkApplicationsSummarizeStagesCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// SummarizeStages: Obtain summary of Stages for a Spark Application +// +// - name: The fully qualified name of the batch to retrieve in the format +// "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplic +// ations/APPLICATION_ID". +func (r *ProjectsLocationsBatchesSparkApplicationsService) SummarizeStages(name string) *ProjectsLocationsBatchesSparkApplicationsSummarizeStagesCall { + c := &ProjectsLocationsBatchesSparkApplicationsSummarizeStagesCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Parent sets the optional parameter "parent": Required. Parent (Batch) +// resource reference. +func (c *ProjectsLocationsBatchesSparkApplicationsSummarizeStagesCall) Parent(parent string) *ProjectsLocationsBatchesSparkApplicationsSummarizeStagesCall { + c.urlParams_.Set("parent", parent) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsBatchesSparkApplicationsSummarizeStagesCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchesSparkApplicationsSummarizeStagesCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsBatchesSparkApplicationsSummarizeStagesCall) IfNoneMatch(entityTag string) *ProjectsLocationsBatchesSparkApplicationsSummarizeStagesCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsBatchesSparkApplicationsSummarizeStagesCall) Context(ctx context.Context) *ProjectsLocationsBatchesSparkApplicationsSummarizeStagesCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsBatchesSparkApplicationsSummarizeStagesCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBatchesSparkApplicationsSummarizeStagesCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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}:summarizeStages") + 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 "dataproc.projects.locations.batches.sparkApplications.summarizeStages" call. +// Any non-2xx status code is an error. Response headers are in either +// *SummarizeSparkApplicationStagesResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsBatchesSparkApplicationsSummarizeStagesCall) Do(opts ...googleapi.CallOption) (*SummarizeSparkApplicationStagesResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &SummarizeSparkApplicationStagesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsBatchesSparkApplicationsWriteCall struct { + s *Service + name string + writesparkapplicationcontextrequest *WriteSparkApplicationContextRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Write: Write wrapper objects from dataplane to spanner +// +// - name: The fully qualified name of the spark application to write data +// about in the format +// "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplic +// ations/APPLICATION_ID". +func (r *ProjectsLocationsBatchesSparkApplicationsService) Write(name string, writesparkapplicationcontextrequest *WriteSparkApplicationContextRequest) *ProjectsLocationsBatchesSparkApplicationsWriteCall { + c := &ProjectsLocationsBatchesSparkApplicationsWriteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.writesparkapplicationcontextrequest = writesparkapplicationcontextrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsBatchesSparkApplicationsWriteCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchesSparkApplicationsWriteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsBatchesSparkApplicationsWriteCall) Context(ctx context.Context) *ProjectsLocationsBatchesSparkApplicationsWriteCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsBatchesSparkApplicationsWriteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBatchesSparkApplicationsWriteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.writesparkapplicationcontextrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:write") + 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 "dataproc.projects.locations.batches.sparkApplications.write" call. +// Any non-2xx status code is an error. Response headers are in either +// *WriteSparkApplicationContextResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsBatchesSparkApplicationsWriteCall) Do(opts ...googleapi.CallOption) (*WriteSparkApplicationContextResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &WriteSparkApplicationContextResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsOperationsCancelCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Cancel: Starts asynchronous cancellation on a long-running operation. The +// server makes a best effort to cancel the operation, but success is not +// guaranteed. If the server doesn't support this method, it returns +// google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or +// other methods to check whether the cancellation succeeded or whether the +// operation completed despite cancellation. On successful cancellation, the +// operation is not deleted; instead, it becomes an operation with an +// Operation.error value with a google.rpc.Status.code of 1, corresponding to +// Code.CANCELLED. +// +// - name: The name of the operation resource to be cancelled. +func (r *ProjectsLocationsOperationsService) Cancel(name string) *ProjectsLocationsOperationsCancelCall { + c := &ProjectsLocationsOperationsCancelCall{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 +// details. +func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataproc.projects.locations.operations.cancel" call. +// 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 *ProjectsLocationsOperationsCancelCall) 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 +} + +type ProjectsLocationsOperationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a long-running operation. This method indicates that the +// client is no longer interested in the operation result. It does not cancel +// the operation. If the server doesn't support this method, it returns +// google.rpc.Code.UNIMPLEMENTED. +// +// - name: The name of the operation resource to be deleted. +func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall { + c := &ProjectsLocationsOperationsDeleteCall{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 +// details. +func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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 "dataproc.projects.locations.operations.delete" call. +// 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 *ProjectsLocationsOperationsDeleteCall) 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 +} + +type ProjectsLocationsOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the latest state of a long-running operation. Clients can use this +// method to poll the operation result at intervals as recommended by the API +// service. +// +// - name: The name of the operation resource. +func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall { + c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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 "dataproc.projects.locations.operations.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsOperationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists operations that match the specified filter in the request. If +// the server doesn't support this method, it returns UNIMPLEMENTED. +// +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { + c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": The standard list filter. +func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list page +// size. +func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list page +// token. +func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsOperationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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 "dataproc.projects.locations.operations.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *ListOperationsResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &ListOperationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + 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 ProjectsLocationsSessionTemplatesCreateCall struct { + s *Service + parent string + sessiontemplate *SessionTemplate + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Create a session template synchronously. +// +// - parent: The parent resource where this session template will be created. +func (r *ProjectsLocationsSessionTemplatesService) Create(parent string, sessiontemplate *SessionTemplate) *ProjectsLocationsSessionTemplatesCreateCall { + c := &ProjectsLocationsSessionTemplatesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.sessiontemplate = sessiontemplate + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsSessionTemplatesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsSessionTemplatesCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsSessionTemplatesCreateCall) Context(ctx context.Context) *ProjectsLocationsSessionTemplatesCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsSessionTemplatesCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsSessionTemplatesCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.sessiontemplate) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/sessionTemplates") + 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 "dataproc.projects.locations.sessionTemplates.create" call. +// Any non-2xx status code is an error. Response headers are in either +// *SessionTemplate.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsSessionTemplatesCreateCall) Do(opts ...googleapi.CallOption) (*SessionTemplate, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &SessionTemplate{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsSessionTemplatesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a session template. +// +// - name: The name of the session template resource to delete. +func (r *ProjectsLocationsSessionTemplatesService) Delete(name string) *ProjectsLocationsSessionTemplatesDeleteCall { + c := &ProjectsLocationsSessionTemplatesDeleteCall{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 +// details. +func (c *ProjectsLocationsSessionTemplatesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsSessionTemplatesDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsSessionTemplatesDeleteCall) Context(ctx context.Context) *ProjectsLocationsSessionTemplatesDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsSessionTemplatesDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsSessionTemplatesDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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 "dataproc.projects.locations.sessionTemplates.delete" call. +// 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 *ProjectsLocationsSessionTemplatesDeleteCall) 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 +} + +type ProjectsLocationsSessionTemplatesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the resource representation for a session template. +// +// - name: The name of the session template to retrieve. +func (r *ProjectsLocationsSessionTemplatesService) Get(name string) *ProjectsLocationsSessionTemplatesGetCall { + c := &ProjectsLocationsSessionTemplatesGetCall{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 +// details. +func (c *ProjectsLocationsSessionTemplatesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsSessionTemplatesGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsSessionTemplatesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsSessionTemplatesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsSessionTemplatesGetCall) Context(ctx context.Context) *ProjectsLocationsSessionTemplatesGetCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsSessionTemplatesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsSessionTemplatesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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 "dataproc.projects.locations.sessionTemplates.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *SessionTemplate.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsSessionTemplatesGetCall) Do(opts ...googleapi.CallOption) (*SessionTemplate, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &SessionTemplate{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsSessionTemplatesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists session templates. +// +// - parent: The parent that owns this collection of session templates. +func (r *ProjectsLocationsSessionTemplatesService) List(parent string) *ProjectsLocationsSessionTemplatesListCall { + c := &ProjectsLocationsSessionTemplatesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": A filter for the session +// templates to return in the response. Filters are case sensitive and have the +// following syntax:field = value AND field = value ... +func (c *ProjectsLocationsSessionTemplatesListCall) Filter(filter string) *ProjectsLocationsSessionTemplatesListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of +// sessions to return in each response. The service may return fewer than this +// value. +func (c *ProjectsLocationsSessionTemplatesListCall) PageSize(pageSize int64) *ProjectsLocationsSessionTemplatesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c } -// Create: Creates new autoscaling policy. -// -// - parent: The "resource name" of the region or location, as described in -// https://cloud.google.com/apis/design/resource_names. For -// projects.regions.autoscalingPolicies.create, the resource name of the -// region has the following format: projects/{project_id}/regions/{region} -// For projects.locations.autoscalingPolicies.create, the resource name of -// the location has the following format: -// projects/{project_id}/locations/{location}. -func (r *ProjectsLocationsAutoscalingPoliciesService) Create(parent string, autoscalingpolicy *AutoscalingPolicy) *ProjectsLocationsAutoscalingPoliciesCreateCall { - c := &ProjectsLocationsAutoscalingPoliciesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.autoscalingpolicy = autoscalingpolicy +// PageToken sets the optional parameter "pageToken": A page token received +// from a previous ListSessions call. Provide this token to retrieve the +// subsequent page. +func (c *ProjectsLocationsSessionTemplatesListCall) PageToken(pageToken string) *ProjectsLocationsSessionTemplatesListCall { + 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 // details. -func (c *ProjectsLocationsAutoscalingPoliciesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutoscalingPoliciesCreateCall { +func (c *ProjectsLocationsSessionTemplatesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsSessionTemplatesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsSessionTemplatesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsSessionTemplatesListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAutoscalingPoliciesCreateCall) Context(ctx context.Context) *ProjectsLocationsAutoscalingPoliciesCreateCall { +func (c *ProjectsLocationsSessionTemplatesListCall) Context(ctx context.Context) *ProjectsLocationsSessionTemplatesListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsAutoscalingPoliciesCreateCall) Header() http.Header { +func (c *ProjectsLocationsSessionTemplatesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAutoscalingPoliciesCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.autoscalingpolicy) - if err != nil { - return nil, err +func (c *ProjectsLocationsSessionTemplatesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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}/autoscalingPolicies") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/sessionTemplates") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -6091,13 +14533,13 @@ func (c *ProjectsLocationsAutoscalingPoliciesCreateCall) doRequest(alt string) ( return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "dataproc.projects.locations.autoscalingPolicies.create" call. +// Do executes the "dataproc.projects.locations.sessionTemplates.list" call. // Any non-2xx status code is an error. Response headers are in either -// *AutoscalingPolicy.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsAutoscalingPoliciesCreateCall) Do(opts ...googleapi.CallOption) (*AutoscalingPolicy, error) { +// *ListSessionTemplatesResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsSessionTemplatesListCall) Do(opts ...googleapi.CallOption) (*ListSessionTemplatesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6116,7 +14558,7 @@ func (c *ProjectsLocationsAutoscalingPoliciesCreateCall) Do(opts ...googleapi.Ca if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &AutoscalingPolicy{ + ret := &ListSessionTemplatesResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6129,62 +14571,81 @@ func (c *ProjectsLocationsAutoscalingPoliciesCreateCall) Do(opts ...googleapi.Ca return ret, nil } -type ProjectsLocationsAutoscalingPoliciesDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// 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 *ProjectsLocationsSessionTemplatesListCall) Pages(ctx context.Context, f func(*ListSessionTemplatesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + 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) + } } -// Delete: Deletes an autoscaling policy. It is an error to delete an -// autoscaling policy that is in use by one or more clusters. +type ProjectsLocationsSessionTemplatesPatchCall struct { + s *Service + name string + sessiontemplate *SessionTemplate + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates the session template synchronously. // -// - name: The "resource name" of the autoscaling policy, as described in -// https://cloud.google.com/apis/design/resource_names. For -// projects.regions.autoscalingPolicies.delete, the resource name of the -// policy has the following format: -// projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id} For -// projects.locations.autoscalingPolicies.delete, the resource name of the -// policy has the following format: -// projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}. -func (r *ProjectsLocationsAutoscalingPoliciesService) Delete(name string) *ProjectsLocationsAutoscalingPoliciesDeleteCall { - c := &ProjectsLocationsAutoscalingPoliciesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The resource name of the session template. +func (r *ProjectsLocationsSessionTemplatesService) Patch(name string, sessiontemplate *SessionTemplate) *ProjectsLocationsSessionTemplatesPatchCall { + c := &ProjectsLocationsSessionTemplatesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.sessiontemplate = sessiontemplate return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsAutoscalingPoliciesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutoscalingPoliciesDeleteCall { +func (c *ProjectsLocationsSessionTemplatesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsSessionTemplatesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAutoscalingPoliciesDeleteCall) Context(ctx context.Context) *ProjectsLocationsAutoscalingPoliciesDeleteCall { +func (c *ProjectsLocationsSessionTemplatesPatchCall) Context(ctx context.Context) *ProjectsLocationsSessionTemplatesPatchCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsAutoscalingPoliciesDeleteCall) Header() http.Header { +func (c *ProjectsLocationsSessionTemplatesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAutoscalingPoliciesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) +func (c *ProjectsLocationsSessionTemplatesPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.sessiontemplate) + if err != nil { + return nil, err + } 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) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } @@ -6195,12 +14656,13 @@ func (c *ProjectsLocationsAutoscalingPoliciesDeleteCall) doRequest(alt string) ( return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "dataproc.projects.locations.autoscalingPolicies.delete" call. +// Do executes the "dataproc.projects.locations.sessionTemplates.patch" call. // 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 *ProjectsLocationsAutoscalingPoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { +// *SessionTemplate.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsSessionTemplatesPatchCall) Do(opts ...googleapi.CallOption) (*SessionTemplate, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6219,7 +14681,7 @@ func (c *ProjectsLocationsAutoscalingPoliciesDeleteCall) Do(opts ...googleapi.Ca if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Empty{ + ret := &SessionTemplate{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6232,90 +14694,97 @@ func (c *ProjectsLocationsAutoscalingPoliciesDeleteCall) Do(opts ...googleapi.Ca return ret, nil } -type ProjectsLocationsAutoscalingPoliciesGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsSessionsCreateCall struct { + s *Service + parent string + session *Session + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Retrieves autoscaling policy. +// Create: Create an interactive session asynchronously. // -// - name: The "resource name" of the autoscaling policy, as described in -// https://cloud.google.com/apis/design/resource_names. For -// projects.regions.autoscalingPolicies.get, the resource name of the policy -// has the following format: -// projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id} For -// projects.locations.autoscalingPolicies.get, the resource name of the -// policy has the following format: -// projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}. -func (r *ProjectsLocationsAutoscalingPoliciesService) Get(name string) *ProjectsLocationsAutoscalingPoliciesGetCall { - c := &ProjectsLocationsAutoscalingPoliciesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The parent resource where this session will be created. +func (r *ProjectsLocationsSessionsService) Create(parent string, session *Session) *ProjectsLocationsSessionsCreateCall { + c := &ProjectsLocationsSessionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.session = session + return c +} + +// RequestId sets the optional parameter "requestId": A unique ID used to +// identify the request. If the service receives two CreateSessionRequests +// (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateSessionRequest)s +// with the same ID, the second request is ignored, and the first Session is +// created and stored in the backend.Recommendation: Set this value to a UUID +// (https://en.wikipedia.org/wiki/Universally_unique_identifier).The value must +// contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens +// (-). The maximum length is 40 characters. +func (c *ProjectsLocationsSessionsCreateCall) RequestId(requestId string) *ProjectsLocationsSessionsCreateCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// SessionId sets the optional parameter "sessionId": Required. The ID to use +// for the session, which becomes the final component of the session's resource +// name.This value must be 4-63 characters. Valid characters are /a-z-/. +func (c *ProjectsLocationsSessionsCreateCall) SessionId(sessionId string) *ProjectsLocationsSessionsCreateCall { + c.urlParams_.Set("sessionId", sessionId) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsAutoscalingPoliciesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutoscalingPoliciesGetCall { +func (c *ProjectsLocationsSessionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsSessionsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets an 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. -func (c *ProjectsLocationsAutoscalingPoliciesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAutoscalingPoliciesGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAutoscalingPoliciesGetCall) Context(ctx context.Context) *ProjectsLocationsAutoscalingPoliciesGetCall { +func (c *ProjectsLocationsSessionsCreateCall) Context(ctx context.Context) *ProjectsLocationsSessionsCreateCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsAutoscalingPoliciesGetCall) Header() http.Header { +func (c *ProjectsLocationsSessionsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAutoscalingPoliciesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } +func (c *ProjectsLocationsSessionsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.session) + if err != nil { + return nil, err + } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/sessions") 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 "dataproc.projects.locations.autoscalingPolicies.get" call. +// Do executes the "dataproc.projects.locations.sessions.create" call. // Any non-2xx status code is an error. Response headers are in either -// *AutoscalingPolicy.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsAutoscalingPoliciesGetCall) Do(opts ...googleapi.CallOption) (*AutoscalingPolicy, error) { +// *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 *ProjectsLocationsSessionsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6334,7 +14803,7 @@ func (c *ProjectsLocationsAutoscalingPoliciesGetCall) Do(opts ...googleapi.CallO if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &AutoscalingPolicy{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6347,79 +14816,84 @@ func (c *ProjectsLocationsAutoscalingPoliciesGetCall) Do(opts ...googleapi.CallO return ret, nil } -type ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall struct { - s *Service - resource string - getiampolicyrequest *GetIamPolicyRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsSessionsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes the interactive session resource. If the session is not in +// terminal state, it is terminated, and then deleted. +// +// - name: The name of the session resource to delete. +func (r *ProjectsLocationsSessionsService) Delete(name string) *ProjectsLocationsSessionsDeleteCall { + c := &ProjectsLocationsSessionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c } -// GetIamPolicy: Gets the access control policy for a resource. Returns an -// empty policy if the resource exists and does not have a policy set. -// -// - resource: REQUIRED: The resource for which the policy is being requested. -// See Resource names (https://cloud.google.com/apis/design/resource_names) -// for the appropriate value for this field. -func (r *ProjectsLocationsAutoscalingPoliciesService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall { - c := &ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.getiampolicyrequest = getiampolicyrequest +// RequestId sets the optional parameter "requestId": A unique ID used to +// identify the request. If the service receives two DeleteSessionRequest +// (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.DeleteSessionRequest)s +// with the same ID, the second request is ignored.Recommendation: Set this +// value to a UUID +// (https://en.wikipedia.org/wiki/Universally_unique_identifier).The value must +// contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens +// (-). The maximum length is 40 characters. +func (c *ProjectsLocationsSessionsDeleteCall) RequestId(requestId string) *ProjectsLocationsSessionsDeleteCall { + c.urlParams_.Set("requestId", requestId) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall { +func (c *ProjectsLocationsSessionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsSessionsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall { +func (c *ProjectsLocationsSessionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsSessionsDeleteCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsSessionsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) +func (c *ProjectsLocationsSessionsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.getiampolicyrequest) - if err != nil { - return nil, err - } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+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{ - "resource": c.resource, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "dataproc.projects.locations.autoscalingPolicies.getIamPolicy" call. +// Do executes the "dataproc.projects.locations.sessions.delete" call. // Any non-2xx status code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) in +// *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 *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { +func (c *ProjectsLocationsSessionsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6438,7 +14912,7 @@ func (c *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall) Do(opts ...google if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Policy{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6451,49 +14925,28 @@ func (c *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall) Do(opts ...google return ret, nil } -type ProjectsLocationsAutoscalingPoliciesListCall struct { +type ProjectsLocationsSessionsGetCall struct { s *Service - parent string + name string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Lists autoscaling policies in the project. +// Get: Gets the resource representation for an interactive session. // -// - parent: The "resource name" of the region or location, as described in -// https://cloud.google.com/apis/design/resource_names. For -// projects.regions.autoscalingPolicies.list, the resource name of the region -// has the following format: projects/{project_id}/regions/{region} For -// projects.locations.autoscalingPolicies.list, the resource name of the -// location has the following format: -// projects/{project_id}/locations/{location}. -func (r *ProjectsLocationsAutoscalingPoliciesService) List(parent string) *ProjectsLocationsAutoscalingPoliciesListCall { - c := &ProjectsLocationsAutoscalingPoliciesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number of -// results to return in each response. Must be less than or equal to 1000. -// Defaults to 100. -func (c *ProjectsLocationsAutoscalingPoliciesListCall) PageSize(pageSize int64) *ProjectsLocationsAutoscalingPoliciesListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The page token, returned -// by a previous call, to request the next page of results. -func (c *ProjectsLocationsAutoscalingPoliciesListCall) PageToken(pageToken string) *ProjectsLocationsAutoscalingPoliciesListCall { - c.urlParams_.Set("pageToken", pageToken) +// - name: The name of the session to retrieve. +func (r *ProjectsLocationsSessionsService) Get(name string) *ProjectsLocationsSessionsGetCall { + c := &ProjectsLocationsSessionsGetCall{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 // details. -func (c *ProjectsLocationsAutoscalingPoliciesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutoscalingPoliciesListCall { +func (c *ProjectsLocationsSessionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsSessionsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -6501,27 +14954,27 @@ func (c *ProjectsLocationsAutoscalingPoliciesListCall) Fields(s ...googleapi.Fie // IfNoneMatch sets an 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. -func (c *ProjectsLocationsAutoscalingPoliciesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAutoscalingPoliciesListCall { +func (c *ProjectsLocationsSessionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsSessionsGetCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAutoscalingPoliciesListCall) Context(ctx context.Context) *ProjectsLocationsAutoscalingPoliciesListCall { +func (c *ProjectsLocationsSessionsGetCall) Context(ctx context.Context) *ProjectsLocationsSessionsGetCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsAutoscalingPoliciesListCall) Header() http.Header { +func (c *ProjectsLocationsSessionsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAutoscalingPoliciesListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsSessionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -6529,7 +14982,7 @@ func (c *ProjectsLocationsAutoscalingPoliciesListCall) 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, "v1/{+parent}/autoscalingPolicies") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -6537,18 +14990,17 @@ func (c *ProjectsLocationsAutoscalingPoliciesListCall) 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 "dataproc.projects.locations.autoscalingPolicies.list" call. +// Do executes the "dataproc.projects.locations.sessions.get" call. // Any non-2xx status code is an error. Response headers are in either -// *ListAutoscalingPoliciesResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *ProjectsLocationsAutoscalingPoliciesListCall) Do(opts ...googleapi.CallOption) (*ListAutoscalingPoliciesResponse, error) { +// *Session.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsSessionsGetCall) Do(opts ...googleapi.CallOption) (*Session, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6567,7 +15019,7 @@ func (c *ProjectsLocationsAutoscalingPoliciesListCall) Do(opts ...googleapi.Call if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ListAutoscalingPoliciesResponse{ + ret := &Session{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6580,101 +15032,116 @@ func (c *ProjectsLocationsAutoscalingPoliciesListCall) Do(opts ...googleapi.Call return ret, nil } -// 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 *ProjectsLocationsAutoscalingPoliciesListCall) Pages(ctx context.Context, f func(*ListAutoscalingPoliciesResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) - 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 ProjectsLocationsSessionsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -type ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall struct { - s *Service - resource string - setiampolicyrequest *SetIamPolicyRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// List: Lists interactive sessions. +// +// - parent: The parent, which owns this collection of sessions. +func (r *ProjectsLocationsSessionsService) List(parent string) *ProjectsLocationsSessionsListCall { + c := &ProjectsLocationsSessionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c } -// SetIamPolicy: Sets the access control policy on the specified resource. -// Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and -// PERMISSION_DENIED errors. -// -// - resource: REQUIRED: The resource for which the policy is being specified. -// See Resource names (https://cloud.google.com/apis/design/resource_names) -// for the appropriate value for this field. -func (r *ProjectsLocationsAutoscalingPoliciesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall { - c := &ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.setiampolicyrequest = setiampolicyrequest +// Filter sets the optional parameter "filter": A filter for the sessions to +// return in the response.A filter is a logical expression constraining the +// values of various fields in each session resource. Filters are case +// sensitive, and may contain multiple clauses combined with logical operators +// (AND, OR). Supported fields are session_id, session_uuid, state, +// create_time, and labels.Example: state = ACTIVE and create_time < +// "2023-01-01T00:00:00Z" is a filter for sessions in an ACTIVE state that were +// created before 2023-01-01. state = ACTIVE and labels.environment=production +// is a filter for sessions in an ACTIVE state that have a production +// environment label.See https://google.aip.dev/assets/misc/ebnf-filtering.txt +// for a detailed description of the filter syntax and a list of supported +// comparators. +func (c *ProjectsLocationsSessionsListCall) Filter(filter string) *ProjectsLocationsSessionsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of +// sessions to return in each response. The service may return fewer than this +// value. +func (c *ProjectsLocationsSessionsListCall) PageSize(pageSize int64) *ProjectsLocationsSessionsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token received +// from a previous ListSessions call. Provide this token to retrieve the +// subsequent page. +func (c *ProjectsLocationsSessionsListCall) PageToken(pageToken string) *ProjectsLocationsSessionsListCall { + 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 // details. -func (c *ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall { +func (c *ProjectsLocationsSessionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsSessionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsSessionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsSessionsListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall { +func (c *ProjectsLocationsSessionsListCall) Context(ctx context.Context) *ProjectsLocationsSessionsListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsSessionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest) - if err != nil { - return nil, err +func (c *ProjectsLocationsSessionsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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/{+resource}:setIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/sessions") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "dataproc.projects.locations.autoscalingPolicies.setIamPolicy" call. +// Do executes the "dataproc.projects.locations.sessions.list" call. // Any non-2xx status code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was returned. -func (c *ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { +// *ListSessionsResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsSessionsListCall) Do(opts ...googleapi.CallOption) (*ListSessionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6693,7 +15160,7 @@ func (c *ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall) Do(opts ...google if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Policy{ + ret := &ListSessionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6703,68 +15170,82 @@ func (c *ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall) Do(opts ...google if err := gensupport.DecodeResponse(target, res); err != nil { return nil, err } - return ret, nil + return ret, nil +} + +// 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 *ProjectsLocationsSessionsListCall) Pages(ctx context.Context, f func(*ListSessionsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + 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 ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall struct { - s *Service - resource string - testiampermissionsrequest *TestIamPermissionsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsSessionsTerminateCall struct { + s *Service + name string + terminatesessionrequest *TerminateSessionRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// TestIamPermissions: Returns permissions that a caller has on the specified -// resource. If the resource does not exist, this will return an empty set of -// permissions, not a NOT_FOUND error.Note: This operation is designed to be -// used for building permission-aware UIs and command-line tools, not for -// authorization checking. This operation may "fail open" without warning. +// Terminate: Terminates the interactive session. // -// - resource: REQUIRED: The resource for which the policy detail is being -// requested. See Resource names -// (https://cloud.google.com/apis/design/resource_names) for the appropriate -// value for this field. -func (r *ProjectsLocationsAutoscalingPoliciesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall { - c := &ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.testiampermissionsrequest = testiampermissionsrequest +// - name: The name of the session resource to terminate. +func (r *ProjectsLocationsSessionsService) Terminate(name string, terminatesessionrequest *TerminateSessionRequest) *ProjectsLocationsSessionsTerminateCall { + c := &ProjectsLocationsSessionsTerminateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.terminatesessionrequest = terminatesessionrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall { +func (c *ProjectsLocationsSessionsTerminateCall) Fields(s ...googleapi.Field) *ProjectsLocationsSessionsTerminateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall { +func (c *ProjectsLocationsSessionsTerminateCall) Context(ctx context.Context) *ProjectsLocationsSessionsTerminateCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall) Header() http.Header { +func (c *ProjectsLocationsSessionsTerminateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsSessionsTerminateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.terminatesessionrequest) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:terminate") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -6772,18 +15253,17 @@ func (c *ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall) doRequest(a } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "dataproc.projects.locations.autoscalingPolicies.testIamPermissions" call. +// Do executes the "dataproc.projects.locations.sessions.terminate" call. // Any non-2xx status code is an error. Response headers are in either -// *TestIamPermissionsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) { +// *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 *ProjectsLocationsSessionsTerminateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6802,7 +15282,7 @@ func (c *ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall) Do(opts ... if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &TestIamPermissionsResponse{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6815,68 +15295,76 @@ func (c *ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall) Do(opts ... return ret, nil } -type ProjectsLocationsAutoscalingPoliciesUpdateCall struct { - s *Service - name string - autoscalingpolicy *AutoscalingPolicy - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsSessionsSparkApplicationsAccessCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Update: Updates (replaces) autoscaling policy.Disabled check for -// update_mask, because all updates will be full replacements. +// Access: Obtain high level information corresponding to a single Spark +// Application. // -// - name: Output only. The "resource name" of the autoscaling policy, as -// described in https://cloud.google.com/apis/design/resource_names. For -// projects.regions.autoscalingPolicies, the resource name of the policy has -// the following format: -// projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id} For -// projects.locations.autoscalingPolicies, the resource name of the policy -// has the following format: -// projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}. -func (r *ProjectsLocationsAutoscalingPoliciesService) Update(name string, autoscalingpolicy *AutoscalingPolicy) *ProjectsLocationsAutoscalingPoliciesUpdateCall { - c := &ProjectsLocationsAutoscalingPoliciesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The fully qualified name of the session to retrieve in the format +// "projects/PROJECT_ID/locations/DATAPROC_REGION/sessions/SESSION_ID/sparkApp +// lications/APPLICATION_ID". +func (r *ProjectsLocationsSessionsSparkApplicationsService) Access(name string) *ProjectsLocationsSessionsSparkApplicationsAccessCall { + c := &ProjectsLocationsSessionsSparkApplicationsAccessCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.autoscalingpolicy = autoscalingpolicy + return c +} + +// Parent sets the optional parameter "parent": Required. Parent (Session) +// resource reference. +func (c *ProjectsLocationsSessionsSparkApplicationsAccessCall) Parent(parent string) *ProjectsLocationsSessionsSparkApplicationsAccessCall { + c.urlParams_.Set("parent", parent) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsAutoscalingPoliciesUpdateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutoscalingPoliciesUpdateCall { +func (c *ProjectsLocationsSessionsSparkApplicationsAccessCall) Fields(s ...googleapi.Field) *ProjectsLocationsSessionsSparkApplicationsAccessCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsSessionsSparkApplicationsAccessCall) IfNoneMatch(entityTag string) *ProjectsLocationsSessionsSparkApplicationsAccessCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAutoscalingPoliciesUpdateCall) Context(ctx context.Context) *ProjectsLocationsAutoscalingPoliciesUpdateCall { +func (c *ProjectsLocationsSessionsSparkApplicationsAccessCall) Context(ctx context.Context) *ProjectsLocationsSessionsSparkApplicationsAccessCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsAutoscalingPoliciesUpdateCall) Header() http.Header { +func (c *ProjectsLocationsSessionsSparkApplicationsAccessCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAutoscalingPoliciesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.autoscalingpolicy) - if err != nil { - return nil, err +func (c *ProjectsLocationsSessionsSparkApplicationsAccessCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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 := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:access") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PUT", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -6887,13 +15375,13 @@ func (c *ProjectsLocationsAutoscalingPoliciesUpdateCall) doRequest(alt string) ( return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "dataproc.projects.locations.autoscalingPolicies.update" call. +// Do executes the "dataproc.projects.locations.sessions.sparkApplications.access" call. // Any non-2xx status code is an error. Response headers are in either -// *AutoscalingPolicy.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsAutoscalingPoliciesUpdateCall) Do(opts ...googleapi.CallOption) (*AutoscalingPolicy, error) { +// *AccessSessionSparkApplicationResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsSessionsSparkApplicationsAccessCall) Do(opts ...googleapi.CallOption) (*AccessSessionSparkApplicationResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6912,7 +15400,7 @@ func (c *ProjectsLocationsAutoscalingPoliciesUpdateCall) Do(opts ...googleapi.Ca if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &AutoscalingPolicy{ + ret := &AccessSessionSparkApplicationResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6925,61 +15413,75 @@ func (c *ProjectsLocationsAutoscalingPoliciesUpdateCall) Do(opts ...googleapi.Ca return ret, nil } -type ProjectsLocationsBatchesAnalyzeCall struct { - s *Service - name string - analyzebatchrequest *AnalyzeBatchRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsSessionsSparkApplicationsAccessEnvironmentInfoCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Analyze: Analyze a Batch for possible recommendations and insights. +// AccessEnvironmentInfo: Obtain environment details for a Spark Application // -// - name: The fully qualified name of the batch to analyze in the format -// "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID". -func (r *ProjectsLocationsBatchesService) Analyze(name string, analyzebatchrequest *AnalyzeBatchRequest) *ProjectsLocationsBatchesAnalyzeCall { - c := &ProjectsLocationsBatchesAnalyzeCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The fully qualified name of the session to retrieve in the format +// "projects/PROJECT_ID/locations/DATAPROC_REGION/sessions/SESSION_ID/sparkApp +// lications/APPLICATION_ID". +func (r *ProjectsLocationsSessionsSparkApplicationsService) AccessEnvironmentInfo(name string) *ProjectsLocationsSessionsSparkApplicationsAccessEnvironmentInfoCall { + c := &ProjectsLocationsSessionsSparkApplicationsAccessEnvironmentInfoCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.analyzebatchrequest = analyzebatchrequest + return c +} + +// Parent sets the optional parameter "parent": Required. Parent (Session) +// resource reference. +func (c *ProjectsLocationsSessionsSparkApplicationsAccessEnvironmentInfoCall) Parent(parent string) *ProjectsLocationsSessionsSparkApplicationsAccessEnvironmentInfoCall { + c.urlParams_.Set("parent", parent) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsBatchesAnalyzeCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchesAnalyzeCall { +func (c *ProjectsLocationsSessionsSparkApplicationsAccessEnvironmentInfoCall) Fields(s ...googleapi.Field) *ProjectsLocationsSessionsSparkApplicationsAccessEnvironmentInfoCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsSessionsSparkApplicationsAccessEnvironmentInfoCall) IfNoneMatch(entityTag string) *ProjectsLocationsSessionsSparkApplicationsAccessEnvironmentInfoCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsBatchesAnalyzeCall) Context(ctx context.Context) *ProjectsLocationsBatchesAnalyzeCall { +func (c *ProjectsLocationsSessionsSparkApplicationsAccessEnvironmentInfoCall) Context(ctx context.Context) *ProjectsLocationsSessionsSparkApplicationsAccessEnvironmentInfoCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsBatchesAnalyzeCall) Header() http.Header { +func (c *ProjectsLocationsSessionsSparkApplicationsAccessEnvironmentInfoCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsBatchesAnalyzeCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.analyzebatchrequest) - if err != nil { - return nil, err +func (c *ProjectsLocationsSessionsSparkApplicationsAccessEnvironmentInfoCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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}:analyze") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:accessEnvironmentInfo") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -6990,12 +15492,13 @@ func (c *ProjectsLocationsBatchesAnalyzeCall) doRequest(alt string) (*http.Respo return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "dataproc.projects.locations.batches.analyze" call. +// Do executes the "dataproc.projects.locations.sessions.sparkApplications.accessEnvironmentInfo" call. // 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 *ProjectsLocationsBatchesAnalyzeCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +// *AccessSessionSparkApplicationEnvironmentInfoResponse.ServerResponse.Header +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsSessionsSparkApplicationsAccessEnvironmentInfoCall) Do(opts ...googleapi.CallOption) (*AccessSessionSparkApplicationEnvironmentInfoResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7014,7 +15517,7 @@ func (c *ProjectsLocationsBatchesAnalyzeCall) Do(opts ...googleapi.CallOption) ( if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &AccessSessionSparkApplicationEnvironmentInfoResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7027,98 +15530,99 @@ func (c *ProjectsLocationsBatchesAnalyzeCall) Do(opts ...googleapi.CallOption) ( return ret, nil } -type ProjectsLocationsBatchesCreateCall struct { - s *Service - parent string - batch *Batch - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsSessionsSparkApplicationsAccessJobCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Create: Creates a batch workload that executes asynchronously. +// AccessJob: Obtain data corresponding to a spark job for a Spark Application. // -// - parent: The parent resource where this batch will be created. -func (r *ProjectsLocationsBatchesService) Create(parent string, batch *Batch) *ProjectsLocationsBatchesCreateCall { - c := &ProjectsLocationsBatchesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.batch = batch +// - name: The fully qualified name of the session to retrieve in the format +// "projects/PROJECT_ID/locations/DATAPROC_REGION/sessions/SESSION_ID/sparkApp +// lications/APPLICATION_ID". +func (r *ProjectsLocationsSessionsSparkApplicationsService) AccessJob(name string) *ProjectsLocationsSessionsSparkApplicationsAccessJobCall { + c := &ProjectsLocationsSessionsSparkApplicationsAccessJobCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } -// BatchId sets the optional parameter "batchId": The ID to use for the batch, -// which will become the final component of the batch's resource name.This -// value must be 4-63 characters. Valid characters are /[a-z][0-9]-/. -func (c *ProjectsLocationsBatchesCreateCall) BatchId(batchId string) *ProjectsLocationsBatchesCreateCall { - c.urlParams_.Set("batchId", batchId) +// JobId sets the optional parameter "jobId": Required. Job ID to fetch data +// for. +func (c *ProjectsLocationsSessionsSparkApplicationsAccessJobCall) JobId(jobId int64) *ProjectsLocationsSessionsSparkApplicationsAccessJobCall { + c.urlParams_.Set("jobId", fmt.Sprint(jobId)) return c } -// RequestId sets the optional parameter "requestId": A unique ID used to -// identify the request. If the service receives two CreateBatchRequest -// (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateBatchRequest)s -// with the same request_id, the second request is ignored and the Operation -// that corresponds to the first Batch created and stored in the backend is -// returned.Recommendation: Set this value to a UUID -// (https://en.wikipedia.org/wiki/Universally_unique_identifier).The value must -// contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens -// (-). The maximum length is 40 characters. -func (c *ProjectsLocationsBatchesCreateCall) RequestId(requestId string) *ProjectsLocationsBatchesCreateCall { - c.urlParams_.Set("requestId", requestId) +// Parent sets the optional parameter "parent": Required. Parent (Session) +// resource reference. +func (c *ProjectsLocationsSessionsSparkApplicationsAccessJobCall) Parent(parent string) *ProjectsLocationsSessionsSparkApplicationsAccessJobCall { + c.urlParams_.Set("parent", parent) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsBatchesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchesCreateCall { +func (c *ProjectsLocationsSessionsSparkApplicationsAccessJobCall) Fields(s ...googleapi.Field) *ProjectsLocationsSessionsSparkApplicationsAccessJobCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsSessionsSparkApplicationsAccessJobCall) IfNoneMatch(entityTag string) *ProjectsLocationsSessionsSparkApplicationsAccessJobCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsBatchesCreateCall) Context(ctx context.Context) *ProjectsLocationsBatchesCreateCall { +func (c *ProjectsLocationsSessionsSparkApplicationsAccessJobCall) Context(ctx context.Context) *ProjectsLocationsSessionsSparkApplicationsAccessJobCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsBatchesCreateCall) Header() http.Header { +func (c *ProjectsLocationsSessionsSparkApplicationsAccessJobCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsBatchesCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.batch) - if err != nil { - return nil, err +func (c *ProjectsLocationsSessionsSparkApplicationsAccessJobCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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}/batches") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:accessJob") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "dataproc.projects.locations.batches.create" call. +// Do executes the "dataproc.projects.locations.sessions.sparkApplications.accessJob" call. // 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 *ProjectsLocationsBatchesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +// *AccessSessionSparkApplicationJobResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsSessionsSparkApplicationsAccessJobCall) Do(opts ...googleapi.CallOption) (*AccessSessionSparkApplicationJobResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7137,7 +15641,7 @@ func (c *ProjectsLocationsBatchesCreateCall) Do(opts ...googleapi.CallOption) (* if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &AccessSessionSparkApplicationJobResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7150,57 +15654,84 @@ func (c *ProjectsLocationsBatchesCreateCall) Do(opts ...googleapi.CallOption) (* return ret, nil } -type ProjectsLocationsBatchesDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsSessionsSparkApplicationsAccessSqlPlanCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Delete: Deletes the batch workload resource. If the batch is not in a -// CANCELLED, SUCCEEDED or FAILED State, the delete operation fails and the -// response returns FAILED_PRECONDITION. +// AccessSqlPlan: Obtain Spark Plan Graph for a Spark Application SQL +// execution. Limits the number of clusters returned as part of the graph to +// 10000. // -// - name: The fully qualified name of the batch to retrieve in the format -// "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID". -func (r *ProjectsLocationsBatchesService) Delete(name string) *ProjectsLocationsBatchesDeleteCall { - c := &ProjectsLocationsBatchesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The fully qualified name of the session to retrieve in the format +// "projects/PROJECT_ID/locations/DATAPROC_REGION/sessions/SESSION_ID/sparkApp +// lications/APPLICATION_ID". +func (r *ProjectsLocationsSessionsSparkApplicationsService) AccessSqlPlan(name string) *ProjectsLocationsSessionsSparkApplicationsAccessSqlPlanCall { + c := &ProjectsLocationsSessionsSparkApplicationsAccessSqlPlanCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } +// ExecutionId sets the optional parameter "executionId": Required. Execution +// ID +func (c *ProjectsLocationsSessionsSparkApplicationsAccessSqlPlanCall) ExecutionId(executionId int64) *ProjectsLocationsSessionsSparkApplicationsAccessSqlPlanCall { + c.urlParams_.Set("executionId", fmt.Sprint(executionId)) + return c +} + +// Parent sets the optional parameter "parent": Required. Parent (Session) +// resource reference. +func (c *ProjectsLocationsSessionsSparkApplicationsAccessSqlPlanCall) Parent(parent string) *ProjectsLocationsSessionsSparkApplicationsAccessSqlPlanCall { + c.urlParams_.Set("parent", parent) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsBatchesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchesDeleteCall { +func (c *ProjectsLocationsSessionsSparkApplicationsAccessSqlPlanCall) Fields(s ...googleapi.Field) *ProjectsLocationsSessionsSparkApplicationsAccessSqlPlanCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsSessionsSparkApplicationsAccessSqlPlanCall) IfNoneMatch(entityTag string) *ProjectsLocationsSessionsSparkApplicationsAccessSqlPlanCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsBatchesDeleteCall) Context(ctx context.Context) *ProjectsLocationsBatchesDeleteCall { +func (c *ProjectsLocationsSessionsSparkApplicationsAccessSqlPlanCall) Context(ctx context.Context) *ProjectsLocationsSessionsSparkApplicationsAccessSqlPlanCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsBatchesDeleteCall) Header() http.Header { +func (c *ProjectsLocationsSessionsSparkApplicationsAccessSqlPlanCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsBatchesDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsSessionsSparkApplicationsAccessSqlPlanCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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 := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:accessSqlPlan") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -7211,12 +15742,15 @@ func (c *ProjectsLocationsBatchesDeleteCall) doRequest(alt string) (*http.Respon return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "dataproc.projects.locations.batches.delete" call. +// Do executes the "dataproc.projects.locations.sessions.sparkApplications.accessSqlPlan" call. // 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 *ProjectsLocationsBatchesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { +// *AccessSessionSparkApplicationSqlSparkPlanGraphResponse.ServerResponse.Header +// +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsSessionsSparkApplicationsAccessSqlPlanCall) Do(opts ...googleapi.CallOption) (*AccessSessionSparkApplicationSqlSparkPlanGraphResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7235,7 +15769,7 @@ func (c *ProjectsLocationsBatchesDeleteCall) Do(opts ...googleapi.CallOption) (* if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Empty{ + ret := &AccessSessionSparkApplicationSqlSparkPlanGraphResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7248,7 +15782,7 @@ func (c *ProjectsLocationsBatchesDeleteCall) Do(opts ...googleapi.CallOption) (* return ret, nil } -type ProjectsLocationsBatchesGetCall struct { +type ProjectsLocationsSessionsSparkApplicationsAccessSqlQueryCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -7257,20 +15791,50 @@ type ProjectsLocationsBatchesGetCall struct { header_ http.Header } -// Get: Gets the batch workload resource representation. +// AccessSqlQuery: Obtain data corresponding to a particular SQL Query for a +// Spark Application. // -// - name: The fully qualified name of the batch to retrieve in the format -// "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID". -func (r *ProjectsLocationsBatchesService) Get(name string) *ProjectsLocationsBatchesGetCall { - c := &ProjectsLocationsBatchesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The fully qualified name of the session to retrieve in the format +// "projects/PROJECT_ID/locations/DATAPROC_REGION/sessions/SESSION_ID/sparkApp +// lications/APPLICATION_ID". +func (r *ProjectsLocationsSessionsSparkApplicationsService) AccessSqlQuery(name string) *ProjectsLocationsSessionsSparkApplicationsAccessSqlQueryCall { + c := &ProjectsLocationsSessionsSparkApplicationsAccessSqlQueryCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } +// Details sets the optional parameter "details": Lists/ hides details of Spark +// plan nodes. True is set to list and false to hide. +func (c *ProjectsLocationsSessionsSparkApplicationsAccessSqlQueryCall) Details(details bool) *ProjectsLocationsSessionsSparkApplicationsAccessSqlQueryCall { + c.urlParams_.Set("details", fmt.Sprint(details)) + return c +} + +// ExecutionId sets the optional parameter "executionId": Required. Execution +// ID +func (c *ProjectsLocationsSessionsSparkApplicationsAccessSqlQueryCall) ExecutionId(executionId int64) *ProjectsLocationsSessionsSparkApplicationsAccessSqlQueryCall { + c.urlParams_.Set("executionId", fmt.Sprint(executionId)) + return c +} + +// Parent sets the optional parameter "parent": Required. Parent (Session) +// resource reference. +func (c *ProjectsLocationsSessionsSparkApplicationsAccessSqlQueryCall) Parent(parent string) *ProjectsLocationsSessionsSparkApplicationsAccessSqlQueryCall { + c.urlParams_.Set("parent", parent) + return c +} + +// PlanDescription sets the optional parameter "planDescription": Enables/ +// disables physical plan description on demand +func (c *ProjectsLocationsSessionsSparkApplicationsAccessSqlQueryCall) PlanDescription(planDescription bool) *ProjectsLocationsSessionsSparkApplicationsAccessSqlQueryCall { + c.urlParams_.Set("planDescription", fmt.Sprint(planDescription)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsBatchesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchesGetCall { +func (c *ProjectsLocationsSessionsSparkApplicationsAccessSqlQueryCall) Fields(s ...googleapi.Field) *ProjectsLocationsSessionsSparkApplicationsAccessSqlQueryCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -7278,27 +15842,27 @@ func (c *ProjectsLocationsBatchesGetCall) Fields(s ...googleapi.Field) *Projects // IfNoneMatch sets an 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. -func (c *ProjectsLocationsBatchesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsBatchesGetCall { +func (c *ProjectsLocationsSessionsSparkApplicationsAccessSqlQueryCall) IfNoneMatch(entityTag string) *ProjectsLocationsSessionsSparkApplicationsAccessSqlQueryCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsBatchesGetCall) Context(ctx context.Context) *ProjectsLocationsBatchesGetCall { +func (c *ProjectsLocationsSessionsSparkApplicationsAccessSqlQueryCall) Context(ctx context.Context) *ProjectsLocationsSessionsSparkApplicationsAccessSqlQueryCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsBatchesGetCall) Header() http.Header { +func (c *ProjectsLocationsSessionsSparkApplicationsAccessSqlQueryCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsBatchesGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsSessionsSparkApplicationsAccessSqlQueryCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -7306,7 +15870,7 @@ func (c *ProjectsLocationsBatchesGetCall) doRequest(alt string) (*http.Response, var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:accessSqlQuery") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -7319,12 +15883,13 @@ func (c *ProjectsLocationsBatchesGetCall) doRequest(alt string) (*http.Response, return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "dataproc.projects.locations.batches.get" call. +// Do executes the "dataproc.projects.locations.sessions.sparkApplications.accessSqlQuery" call. // Any non-2xx status code is an error. Response headers are in either -// *Batch.ServerResponse.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was returned. -func (c *ProjectsLocationsBatchesGetCall) Do(opts ...googleapi.CallOption) (*Batch, error) { +// *AccessSessionSparkApplicationSqlQueryResponse.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsSessionsSparkApplicationsAccessSqlQueryCall) Do(opts ...googleapi.CallOption) (*AccessSessionSparkApplicationSqlQueryResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7343,7 +15908,7 @@ func (c *ProjectsLocationsBatchesGetCall) Do(opts ...googleapi.CallOption) (*Bat if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Batch{ + ret := &AccessSessionSparkApplicationSqlQueryResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7356,69 +15921,61 @@ func (c *ProjectsLocationsBatchesGetCall) Do(opts ...googleapi.CallOption) (*Bat return ret, nil } -type ProjectsLocationsBatchesListCall struct { +type ProjectsLocationsSessionsSparkApplicationsAccessStageAttemptCall struct { s *Service - parent string + name string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Lists batch workloads. +// AccessStageAttempt: Obtain data corresponding to a spark stage attempt for a +// Spark Application. // -// - parent: The parent, which owns this collection of batches. -func (r *ProjectsLocationsBatchesService) List(parent string) *ProjectsLocationsBatchesListCall { - c := &ProjectsLocationsBatchesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent +// - name: The fully qualified name of the session to retrieve in the format +// "projects/PROJECT_ID/locations/DATAPROC_REGION/sessions/SESSION_ID/sparkApp +// lications/APPLICATION_ID". +func (r *ProjectsLocationsSessionsSparkApplicationsService) AccessStageAttempt(name string) *ProjectsLocationsSessionsSparkApplicationsAccessStageAttemptCall { + c := &ProjectsLocationsSessionsSparkApplicationsAccessStageAttemptCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } -// Filter sets the optional parameter "filter": A filter for the batches to -// return in the response.A filter is a logical expression constraining the -// values of various fields in each batch resource. Filters are case sensitive, -// and may contain multiple clauses combined with logical operators (AND/OR). -// Supported fields are batch_id, batch_uuid, state, create_time, and -// labels.e.g. state = RUNNING and create_time < "2023-01-01T00:00:00Z" filters -// for batches in state RUNNING that were created before 2023-01-01. state = -// RUNNING and labels.environment=production filters for batches in state in a -// RUNNING state that have a production environment label.See -// https://google.aip.dev/assets/misc/ebnf-filtering.txt for a detailed -// description of the filter syntax and a list of supported comparisons. -func (c *ProjectsLocationsBatchesListCall) Filter(filter string) *ProjectsLocationsBatchesListCall { - c.urlParams_.Set("filter", filter) +// Parent sets the optional parameter "parent": Required. Parent (Session) +// resource reference. +func (c *ProjectsLocationsSessionsSparkApplicationsAccessStageAttemptCall) Parent(parent string) *ProjectsLocationsSessionsSparkApplicationsAccessStageAttemptCall { + c.urlParams_.Set("parent", parent) return c } -// OrderBy sets the optional parameter "orderBy": Field(s) on which to sort the -// list of batches.Currently the only supported sort orders are unspecified -// (empty) and create_time desc to sort by most recently created batches -// first.See https://google.aip.dev/132#ordering for more details. -func (c *ProjectsLocationsBatchesListCall) OrderBy(orderBy string) *ProjectsLocationsBatchesListCall { - c.urlParams_.Set("orderBy", orderBy) +// StageAttemptId sets the optional parameter "stageAttemptId": Required. Stage +// Attempt ID +func (c *ProjectsLocationsSessionsSparkApplicationsAccessStageAttemptCall) StageAttemptId(stageAttemptId int64) *ProjectsLocationsSessionsSparkApplicationsAccessStageAttemptCall { + c.urlParams_.Set("stageAttemptId", fmt.Sprint(stageAttemptId)) return c } -// PageSize sets the optional parameter "pageSize": The maximum number of -// batches to return in each response. The service may return fewer than this -// value. The default page size is 20; the maximum page size is 1000. -func (c *ProjectsLocationsBatchesListCall) PageSize(pageSize int64) *ProjectsLocationsBatchesListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) +// StageId sets the optional parameter "stageId": Required. Stage ID +func (c *ProjectsLocationsSessionsSparkApplicationsAccessStageAttemptCall) StageId(stageId int64) *ProjectsLocationsSessionsSparkApplicationsAccessStageAttemptCall { + c.urlParams_.Set("stageId", fmt.Sprint(stageId)) return c } -// PageToken sets the optional parameter "pageToken": A page token received -// from a previous ListBatches call. Provide this token to retrieve the -// subsequent page. -func (c *ProjectsLocationsBatchesListCall) PageToken(pageToken string) *ProjectsLocationsBatchesListCall { - c.urlParams_.Set("pageToken", pageToken) +// SummaryMetricsMask sets the optional parameter "summaryMetricsMask": The +// list of summary metrics fields to include. Empty list will default to skip +// all summary metrics fields. Example, if the response should include +// TaskQuantileMetrics, the request should have task_quantile_metrics in +// summary_metrics_mask field +func (c *ProjectsLocationsSessionsSparkApplicationsAccessStageAttemptCall) SummaryMetricsMask(summaryMetricsMask string) *ProjectsLocationsSessionsSparkApplicationsAccessStageAttemptCall { + c.urlParams_.Set("summaryMetricsMask", summaryMetricsMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsBatchesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchesListCall { +func (c *ProjectsLocationsSessionsSparkApplicationsAccessStageAttemptCall) Fields(s ...googleapi.Field) *ProjectsLocationsSessionsSparkApplicationsAccessStageAttemptCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -7426,27 +15983,27 @@ func (c *ProjectsLocationsBatchesListCall) Fields(s ...googleapi.Field) *Project // IfNoneMatch sets an 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. -func (c *ProjectsLocationsBatchesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsBatchesListCall { +func (c *ProjectsLocationsSessionsSparkApplicationsAccessStageAttemptCall) IfNoneMatch(entityTag string) *ProjectsLocationsSessionsSparkApplicationsAccessStageAttemptCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsBatchesListCall) Context(ctx context.Context) *ProjectsLocationsBatchesListCall { +func (c *ProjectsLocationsSessionsSparkApplicationsAccessStageAttemptCall) Context(ctx context.Context) *ProjectsLocationsSessionsSparkApplicationsAccessStageAttemptCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsBatchesListCall) Header() http.Header { +func (c *ProjectsLocationsSessionsSparkApplicationsAccessStageAttemptCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsBatchesListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsSessionsSparkApplicationsAccessStageAttemptCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -7454,7 +16011,7 @@ func (c *ProjectsLocationsBatchesListCall) doRequest(alt string) (*http.Response var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/batches") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:accessStageAttempt") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -7462,18 +16019,18 @@ func (c *ProjectsLocationsBatchesListCall) doRequest(alt string) (*http.Response } 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 "dataproc.projects.locations.batches.list" call. +// Do executes the "dataproc.projects.locations.sessions.sparkApplications.accessStageAttempt" call. // Any non-2xx status code is an error. Response headers are in either -// *ListBatchesResponse.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsBatchesListCall) Do(opts ...googleapi.CallOption) (*ListBatchesResponse, error) { +// *AccessSessionSparkApplicationStageAttemptResponse.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsSessionsSparkApplicationsAccessStageAttemptCall) Do(opts ...googleapi.CallOption) (*AccessSessionSparkApplicationStageAttemptResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7492,7 +16049,7 @@ func (c *ProjectsLocationsBatchesListCall) Do(opts ...googleapi.CallOption) (*Li if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ListBatchesResponse{ + ret := &AccessSessionSparkApplicationStageAttemptResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7505,83 +16062,82 @@ func (c *ProjectsLocationsBatchesListCall) Do(opts ...googleapi.CallOption) (*Li return ret, nil } -// 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 *ProjectsLocationsBatchesListCall) Pages(ctx context.Context, f func(*ListBatchesResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) - 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 ProjectsLocationsOperationsCancelCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsSessionsSparkApplicationsAccessStageRddGraphCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Cancel: Starts asynchronous cancellation on a long-running operation. The -// server makes a best effort to cancel the operation, but success is not -// guaranteed. If the server doesn't support this method, it returns -// google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or -// other methods to check whether the cancellation succeeded or whether the -// operation completed despite cancellation. On successful cancellation, the -// operation is not deleted; instead, it becomes an operation with an -// Operation.error value with a google.rpc.Status.code of 1, corresponding to -// Code.CANCELLED. +// AccessStageRddGraph: Obtain RDD operation graph for a Spark Application +// Stage. Limits the number of clusters returned as part of the graph to 10000. // -// - name: The name of the operation resource to be cancelled. -func (r *ProjectsLocationsOperationsService) Cancel(name string) *ProjectsLocationsOperationsCancelCall { - c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The fully qualified name of the session to retrieve in the format +// "projects/PROJECT_ID/locations/DATAPROC_REGION/sessions/SESSION_ID/sparkApp +// lications/APPLICATION_ID". +func (r *ProjectsLocationsSessionsSparkApplicationsService) AccessStageRddGraph(name string) *ProjectsLocationsSessionsSparkApplicationsAccessStageRddGraphCall { + c := &ProjectsLocationsSessionsSparkApplicationsAccessStageRddGraphCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } +// Parent sets the optional parameter "parent": Required. Parent (Session) +// resource reference. +func (c *ProjectsLocationsSessionsSparkApplicationsAccessStageRddGraphCall) Parent(parent string) *ProjectsLocationsSessionsSparkApplicationsAccessStageRddGraphCall { + c.urlParams_.Set("parent", parent) + return c +} + +// StageId sets the optional parameter "stageId": Required. Stage ID +func (c *ProjectsLocationsSessionsSparkApplicationsAccessStageRddGraphCall) StageId(stageId int64) *ProjectsLocationsSessionsSparkApplicationsAccessStageRddGraphCall { + c.urlParams_.Set("stageId", fmt.Sprint(stageId)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall { +func (c *ProjectsLocationsSessionsSparkApplicationsAccessStageRddGraphCall) Fields(s ...googleapi.Field) *ProjectsLocationsSessionsSparkApplicationsAccessStageRddGraphCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsSessionsSparkApplicationsAccessStageRddGraphCall) IfNoneMatch(entityTag string) *ProjectsLocationsSessionsSparkApplicationsAccessStageRddGraphCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall { +func (c *ProjectsLocationsSessionsSparkApplicationsAccessStageRddGraphCall) Context(ctx context.Context) *ProjectsLocationsSessionsSparkApplicationsAccessStageRddGraphCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { +func (c *ProjectsLocationsSessionsSparkApplicationsAccessStageRddGraphCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsSessionsSparkApplicationsAccessStageRddGraphCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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}:cancel") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:accessStageRddGraph") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -7592,12 +16148,13 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "dataproc.projects.locations.operations.cancel" call. +// Do executes the "dataproc.projects.locations.sessions.sparkApplications.accessStageRddGraph" call. // 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 +// *AccessSessionSparkApplicationStageRddOperationGraphResponse.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 *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) { +func (c *ProjectsLocationsSessionsSparkApplicationsAccessStageRddGraphCall) Do(opts ...googleapi.CallOption) (*AccessSessionSparkApplicationStageRddOperationGraphResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7616,7 +16173,7 @@ func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Empty{ + ret := &AccessSessionSparkApplicationStageRddOperationGraphResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7629,73 +16186,142 @@ func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) return ret, nil } -type ProjectsLocationsOperationsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsSessionsSparkApplicationsSearchCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Delete: Deletes a long-running operation. This method indicates that the -// client is no longer interested in the operation result. It does not cancel -// the operation. If the server doesn't support this method, it returns -// google.rpc.Code.UNIMPLEMENTED. +// Search: Obtain high level information and list of Spark Applications +// corresponding to a batch // -// - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall { - c := &ProjectsLocationsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The fully qualified name of the session to retrieve in the format +// "projects/PROJECT_ID/locations/DATAPROC_REGION/sessions/SESSION_ID". +func (r *ProjectsLocationsSessionsSparkApplicationsService) Search(parent string) *ProjectsLocationsSessionsSparkApplicationsSearchCall { + c := &ProjectsLocationsSessionsSparkApplicationsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// ApplicationStatus sets the optional parameter "applicationStatus": Search +// only applications in the chosen state. +// +// Possible values: +// +// "APPLICATION_STATUS_UNSPECIFIED" +// "APPLICATION_STATUS_RUNNING" +// "APPLICATION_STATUS_COMPLETED" +func (c *ProjectsLocationsSessionsSparkApplicationsSearchCall) ApplicationStatus(applicationStatus string) *ProjectsLocationsSessionsSparkApplicationsSearchCall { + c.urlParams_.Set("applicationStatus", applicationStatus) + return c +} + +// MaxEndTime sets the optional parameter "maxEndTime": Latest end timestamp to +// list. +func (c *ProjectsLocationsSessionsSparkApplicationsSearchCall) MaxEndTime(maxEndTime string) *ProjectsLocationsSessionsSparkApplicationsSearchCall { + c.urlParams_.Set("maxEndTime", maxEndTime) + return c +} + +// MaxTime sets the optional parameter "maxTime": Latest start timestamp to +// list. +func (c *ProjectsLocationsSessionsSparkApplicationsSearchCall) MaxTime(maxTime string) *ProjectsLocationsSessionsSparkApplicationsSearchCall { + c.urlParams_.Set("maxTime", maxTime) + return c +} + +// MinEndTime sets the optional parameter "minEndTime": Earliest end timestamp +// to list. +func (c *ProjectsLocationsSessionsSparkApplicationsSearchCall) MinEndTime(minEndTime string) *ProjectsLocationsSessionsSparkApplicationsSearchCall { + c.urlParams_.Set("minEndTime", minEndTime) + return c +} + +// MinTime sets the optional parameter "minTime": Earliest start timestamp to +// list. +func (c *ProjectsLocationsSessionsSparkApplicationsSearchCall) MinTime(minTime string) *ProjectsLocationsSessionsSparkApplicationsSearchCall { + c.urlParams_.Set("minTime", minTime) + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of +// applications to return in each response. The service may return fewer than +// this. The default page size is 10; the maximum page size is 100. +func (c *ProjectsLocationsSessionsSparkApplicationsSearchCall) PageSize(pageSize int64) *ProjectsLocationsSessionsSparkApplicationsSearchCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token received +// from a previous SearchSessionSparkApplications call. Provide this token to +// retrieve the subsequent page. +func (c *ProjectsLocationsSessionsSparkApplicationsSearchCall) PageToken(pageToken string) *ProjectsLocationsSessionsSparkApplicationsSearchCall { + 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 // details. -func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall { +func (c *ProjectsLocationsSessionsSparkApplicationsSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsSessionsSparkApplicationsSearchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsSessionsSparkApplicationsSearchCall) IfNoneMatch(entityTag string) *ProjectsLocationsSessionsSparkApplicationsSearchCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall { +func (c *ProjectsLocationsSessionsSparkApplicationsSearchCall) Context(ctx context.Context) *ProjectsLocationsSessionsSparkApplicationsSearchCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsSessionsSparkApplicationsSearchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsSessionsSparkApplicationsSearchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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 := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/sparkApplications:search") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "dataproc.projects.locations.operations.delete" call. +// Do executes the "dataproc.projects.locations.sessions.sparkApplications.search" call. // 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 *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { +// *SearchSessionSparkApplicationsResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsSessionsSparkApplicationsSearchCall) Do(opts ...googleapi.CallOption) (*SearchSessionSparkApplicationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7714,7 +16340,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Empty{ + ret := &SearchSessionSparkApplicationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7727,7 +16353,28 @@ func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) return ret, nil } -type ProjectsLocationsOperationsGetCall struct { +// 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 *ProjectsLocationsSessionsSparkApplicationsSearchCall) Pages(ctx context.Context, f func(*SearchSessionSparkApplicationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + 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 ProjectsLocationsSessionsSparkApplicationsSearchExecutorStageSummaryCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -7736,21 +16383,58 @@ type ProjectsLocationsOperationsGetCall struct { header_ http.Header } -// Get: Gets the latest state of a long-running operation. Clients can use this -// method to poll the operation result at intervals as recommended by the API -// service. +// SearchExecutorStageSummary: Obtain executor summary with respect to a spark +// stage attempt. // -// - name: The name of the operation resource. -func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall { - c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The fully qualified name of the session to retrieve in the format +// "projects/PROJECT_ID/locations/DATAPROC_REGION/sessions/SESSION_ID/sparkApp +// lications/APPLICATION_ID". +func (r *ProjectsLocationsSessionsSparkApplicationsService) SearchExecutorStageSummary(name string) *ProjectsLocationsSessionsSparkApplicationsSearchExecutorStageSummaryCall { + c := &ProjectsLocationsSessionsSparkApplicationsSearchExecutorStageSummaryCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } +// PageSize sets the optional parameter "pageSize": Maximum number of executors +// to return in each response. The service may return fewer than this. The +// default page size is 10; the maximum page size is 100. +func (c *ProjectsLocationsSessionsSparkApplicationsSearchExecutorStageSummaryCall) PageSize(pageSize int64) *ProjectsLocationsSessionsSparkApplicationsSearchExecutorStageSummaryCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token received +// from a previous SearchSessionSparkApplicationExecutorStageSummary call. +// Provide this token to retrieve the subsequent page. +func (c *ProjectsLocationsSessionsSparkApplicationsSearchExecutorStageSummaryCall) PageToken(pageToken string) *ProjectsLocationsSessionsSparkApplicationsSearchExecutorStageSummaryCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Parent sets the optional parameter "parent": Required. Parent (Session) +// resource reference. +func (c *ProjectsLocationsSessionsSparkApplicationsSearchExecutorStageSummaryCall) Parent(parent string) *ProjectsLocationsSessionsSparkApplicationsSearchExecutorStageSummaryCall { + c.urlParams_.Set("parent", parent) + return c +} + +// StageAttemptId sets the optional parameter "stageAttemptId": Required. Stage +// Attempt ID +func (c *ProjectsLocationsSessionsSparkApplicationsSearchExecutorStageSummaryCall) StageAttemptId(stageAttemptId int64) *ProjectsLocationsSessionsSparkApplicationsSearchExecutorStageSummaryCall { + c.urlParams_.Set("stageAttemptId", fmt.Sprint(stageAttemptId)) + return c +} + +// StageId sets the optional parameter "stageId": Required. Stage ID +func (c *ProjectsLocationsSessionsSparkApplicationsSearchExecutorStageSummaryCall) StageId(stageId int64) *ProjectsLocationsSessionsSparkApplicationsSearchExecutorStageSummaryCall { + c.urlParams_.Set("stageId", fmt.Sprint(stageId)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall { +func (c *ProjectsLocationsSessionsSparkApplicationsSearchExecutorStageSummaryCall) Fields(s ...googleapi.Field) *ProjectsLocationsSessionsSparkApplicationsSearchExecutorStageSummaryCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -7758,27 +16442,27 @@ func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *Proje // IfNoneMatch sets an 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. -func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall { +func (c *ProjectsLocationsSessionsSparkApplicationsSearchExecutorStageSummaryCall) IfNoneMatch(entityTag string) *ProjectsLocationsSessionsSparkApplicationsSearchExecutorStageSummaryCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall { +func (c *ProjectsLocationsSessionsSparkApplicationsSearchExecutorStageSummaryCall) Context(ctx context.Context) *ProjectsLocationsSessionsSparkApplicationsSearchExecutorStageSummaryCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsSessionsSparkApplicationsSearchExecutorStageSummaryCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsSessionsSparkApplicationsSearchExecutorStageSummaryCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -7786,7 +16470,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:searchExecutorStageSummary") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -7799,12 +16483,13 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "dataproc.projects.locations.operations.get" call. +// Do executes the "dataproc.projects.locations.sessions.sparkApplications.searchExecutorStageSummary" call. // 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 +// *SearchSessionSparkApplicationExecutorStageSummaryResponse.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 *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsLocationsSessionsSparkApplicationsSearchExecutorStageSummaryCall) Do(opts ...googleapi.CallOption) (*SearchSessionSparkApplicationExecutorStageSummaryResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7823,7 +16508,7 @@ func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (* if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &SearchSessionSparkApplicationExecutorStageSummaryResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7836,7 +16521,28 @@ func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (* return ret, nil } -type ProjectsLocationsOperationsListCall struct { +// 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 *ProjectsLocationsSessionsSparkApplicationsSearchExecutorStageSummaryCall) Pages(ctx context.Context, f func(*SearchSessionSparkApplicationExecutorStageSummaryResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + 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 ProjectsLocationsSessionsSparkApplicationsSearchExecutorsCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -7845,40 +16551,58 @@ type ProjectsLocationsOperationsListCall struct { header_ http.Header } -// List: Lists operations that match the specified filter in the request. If -// the server doesn't support this method, it returns UNIMPLEMENTED. +// SearchExecutors: Obtain data corresponding to executors for a Spark +// Application. // -// - name: The name of the operation's parent resource. -func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { - c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The fully qualified name of the session to retrieve in the format +// "projects/PROJECT_ID/locations/DATAPROC_REGION/sessions/SESSION_ID/sparkApp +// lications/APPLICATION_ID". +func (r *ProjectsLocationsSessionsSparkApplicationsService) SearchExecutors(name string) *ProjectsLocationsSessionsSparkApplicationsSearchExecutorsCall { + c := &ProjectsLocationsSessionsSparkApplicationsSearchExecutorsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Filter sets the optional parameter "filter": The standard list filter. -func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall { - c.urlParams_.Set("filter", filter) +// ExecutorStatus sets the optional parameter "executorStatus": Filter to +// select whether active/ dead or all executors should be selected. +// +// Possible values: +// +// "EXECUTOR_STATUS_UNSPECIFIED" +// "EXECUTOR_STATUS_ACTIVE" +// "EXECUTOR_STATUS_DEAD" +func (c *ProjectsLocationsSessionsSparkApplicationsSearchExecutorsCall) ExecutorStatus(executorStatus string) *ProjectsLocationsSessionsSparkApplicationsSearchExecutorsCall { + c.urlParams_.Set("executorStatus", executorStatus) return c } -// PageSize sets the optional parameter "pageSize": The standard list page -// size. -func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall { +// PageSize sets the optional parameter "pageSize": Maximum number of executors +// to return in each response. The service may return fewer than this. The +// default page size is 10; the maximum page size is 100. +func (c *ProjectsLocationsSessionsSparkApplicationsSearchExecutorsCall) PageSize(pageSize int64) *ProjectsLocationsSessionsSparkApplicationsSearchExecutorsCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The standard list page -// token. -func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall { +// PageToken sets the optional parameter "pageToken": A page token received +// from a previous SearchSessionSparkApplicationExecutors call. Provide this +// token to retrieve the subsequent page. +func (c *ProjectsLocationsSessionsSparkApplicationsSearchExecutorsCall) PageToken(pageToken string) *ProjectsLocationsSessionsSparkApplicationsSearchExecutorsCall { c.urlParams_.Set("pageToken", pageToken) return c } +// Parent sets the optional parameter "parent": Required. Parent (Session) +// resource reference. +func (c *ProjectsLocationsSessionsSparkApplicationsSearchExecutorsCall) Parent(parent string) *ProjectsLocationsSessionsSparkApplicationsSearchExecutorsCall { + c.urlParams_.Set("parent", parent) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall { +func (c *ProjectsLocationsSessionsSparkApplicationsSearchExecutorsCall) Fields(s ...googleapi.Field) *ProjectsLocationsSessionsSparkApplicationsSearchExecutorsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -7886,27 +16610,27 @@ func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *Proj // IfNoneMatch sets an 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. -func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall { +func (c *ProjectsLocationsSessionsSparkApplicationsSearchExecutorsCall) IfNoneMatch(entityTag string) *ProjectsLocationsSessionsSparkApplicationsSearchExecutorsCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall { +func (c *ProjectsLocationsSessionsSparkApplicationsSearchExecutorsCall) Context(ctx context.Context) *ProjectsLocationsSessionsSparkApplicationsSearchExecutorsCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsSessionsSparkApplicationsSearchExecutorsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsSessionsSparkApplicationsSearchExecutorsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -7914,7 +16638,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:searchExecutors") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -7927,13 +16651,13 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "dataproc.projects.locations.operations.list" call. +// Do executes the "dataproc.projects.locations.sessions.sparkApplications.searchExecutors" call. // Any non-2xx status code is an error. Response headers are in either -// *ListOperationsResponse.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) { +// *SearchSessionSparkApplicationExecutorsResponse.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsSessionsSparkApplicationsSearchExecutorsCall) Do(opts ...googleapi.CallOption) (*SearchSessionSparkApplicationExecutorsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7952,7 +16676,7 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ListOperationsResponse{ + ret := &SearchSessionSparkApplicationExecutorsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7968,7 +16692,7 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error { +func (c *ProjectsLocationsSessionsSparkApplicationsSearchExecutorsCall) Pages(ctx context.Context, f func(*SearchSessionSparkApplicationExecutorsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { @@ -7986,77 +16710,123 @@ func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func( } } -type ProjectsLocationsSessionTemplatesCreateCall struct { - s *Service - parent string - sessiontemplate *SessionTemplate - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsSessionsSparkApplicationsSearchJobsCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Create: Create a session template synchronously. +// SearchJobs: Obtain list of spark jobs corresponding to a Spark Application. // -// - parent: The parent resource where this session template will be created. -func (r *ProjectsLocationsSessionTemplatesService) Create(parent string, sessiontemplate *SessionTemplate) *ProjectsLocationsSessionTemplatesCreateCall { - c := &ProjectsLocationsSessionTemplatesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.sessiontemplate = sessiontemplate +// - name: The fully qualified name of the session to retrieve in the format +// "projects/PROJECT_ID/locations/DATAPROC_REGION/sessions/SESSION_ID/sparkApp +// lications/APPLICATION_ID". +func (r *ProjectsLocationsSessionsSparkApplicationsService) SearchJobs(name string) *ProjectsLocationsSessionsSparkApplicationsSearchJobsCall { + c := &ProjectsLocationsSessionsSparkApplicationsSearchJobsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// JobStatus sets the optional parameter "jobStatus": List only jobs in the +// specific state. +// +// Possible values: +// +// "JOB_EXECUTION_STATUS_UNSPECIFIED" +// "JOB_EXECUTION_STATUS_RUNNING" +// "JOB_EXECUTION_STATUS_SUCCEEDED" +// "JOB_EXECUTION_STATUS_FAILED" +// "JOB_EXECUTION_STATUS_UNKNOWN" +func (c *ProjectsLocationsSessionsSparkApplicationsSearchJobsCall) JobStatus(jobStatus string) *ProjectsLocationsSessionsSparkApplicationsSearchJobsCall { + c.urlParams_.Set("jobStatus", jobStatus) + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of jobs to +// return in each response. The service may return fewer than this. The default +// page size is 10; the maximum page size is 100. +func (c *ProjectsLocationsSessionsSparkApplicationsSearchJobsCall) PageSize(pageSize int64) *ProjectsLocationsSessionsSparkApplicationsSearchJobsCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token received +// from a previous SearchSessionSparkApplicationJobs call. Provide this token +// to retrieve the subsequent page. +func (c *ProjectsLocationsSessionsSparkApplicationsSearchJobsCall) PageToken(pageToken string) *ProjectsLocationsSessionsSparkApplicationsSearchJobsCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Parent sets the optional parameter "parent": Required. Parent (Session) +// resource reference. +func (c *ProjectsLocationsSessionsSparkApplicationsSearchJobsCall) Parent(parent string) *ProjectsLocationsSessionsSparkApplicationsSearchJobsCall { + c.urlParams_.Set("parent", parent) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsSessionTemplatesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsSessionTemplatesCreateCall { +func (c *ProjectsLocationsSessionsSparkApplicationsSearchJobsCall) Fields(s ...googleapi.Field) *ProjectsLocationsSessionsSparkApplicationsSearchJobsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsSessionsSparkApplicationsSearchJobsCall) IfNoneMatch(entityTag string) *ProjectsLocationsSessionsSparkApplicationsSearchJobsCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsSessionTemplatesCreateCall) Context(ctx context.Context) *ProjectsLocationsSessionTemplatesCreateCall { +func (c *ProjectsLocationsSessionsSparkApplicationsSearchJobsCall) Context(ctx context.Context) *ProjectsLocationsSessionsSparkApplicationsSearchJobsCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsSessionTemplatesCreateCall) Header() http.Header { +func (c *ProjectsLocationsSessionsSparkApplicationsSearchJobsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsSessionTemplatesCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.sessiontemplate) - if err != nil { - return nil, err +func (c *ProjectsLocationsSessionsSparkApplicationsSearchJobsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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}/sessionTemplates") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:searchJobs") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "dataproc.projects.locations.sessionTemplates.create" call. +// Do executes the "dataproc.projects.locations.sessions.sparkApplications.searchJobs" call. // Any non-2xx status code is an error. Response headers are in either -// *SessionTemplate.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsSessionTemplatesCreateCall) Do(opts ...googleapi.CallOption) (*SessionTemplate, error) { +// *SearchSessionSparkApplicationJobsResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsSessionsSparkApplicationsSearchJobsCall) Do(opts ...googleapi.CallOption) (*SearchSessionSparkApplicationJobsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8075,7 +16845,7 @@ func (c *ProjectsLocationsSessionTemplatesCreateCall) Do(opts ...googleapi.CallO if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &SessionTemplate{ + ret := &SearchSessionSparkApplicationJobsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -8088,54 +16858,127 @@ func (c *ProjectsLocationsSessionTemplatesCreateCall) Do(opts ...googleapi.CallO return ret, nil } -type ProjectsLocationsSessionTemplatesDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// 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 *ProjectsLocationsSessionsSparkApplicationsSearchJobsCall) Pages(ctx context.Context, f func(*SearchSessionSparkApplicationJobsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + 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 ProjectsLocationsSessionsSparkApplicationsSearchSqlQueriesCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// SearchSqlQueries: Obtain data corresponding to SQL Queries for a Spark +// Application. +// +// - name: The fully qualified name of the session to retrieve in the format +// "projects/PROJECT_ID/locations/DATAPROC_REGION/sessions/SESSION_ID/sparkApp +// lications/APPLICATION_ID". +func (r *ProjectsLocationsSessionsSparkApplicationsService) SearchSqlQueries(name string) *ProjectsLocationsSessionsSparkApplicationsSearchSqlQueriesCall { + c := &ProjectsLocationsSessionsSparkApplicationsSearchSqlQueriesCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Details sets the optional parameter "details": Lists/ hides details of Spark +// plan nodes. True is set to list and false to hide. +func (c *ProjectsLocationsSessionsSparkApplicationsSearchSqlQueriesCall) Details(details bool) *ProjectsLocationsSessionsSparkApplicationsSearchSqlQueriesCall { + c.urlParams_.Set("details", fmt.Sprint(details)) + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of queries +// to return in each response. The service may return fewer than this. The +// default page size is 10; the maximum page size is 100. +func (c *ProjectsLocationsSessionsSparkApplicationsSearchSqlQueriesCall) PageSize(pageSize int64) *ProjectsLocationsSessionsSparkApplicationsSearchSqlQueriesCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token received +// from a previous SearchSessionSparkApplicationSqlQueries call. Provide this +// token to retrieve the subsequent page. +func (c *ProjectsLocationsSessionsSparkApplicationsSearchSqlQueriesCall) PageToken(pageToken string) *ProjectsLocationsSessionsSparkApplicationsSearchSqlQueriesCall { + c.urlParams_.Set("pageToken", pageToken) + return c } -// Delete: Deletes a session template. -// -// - name: The name of the session template resource to delete. -func (r *ProjectsLocationsSessionTemplatesService) Delete(name string) *ProjectsLocationsSessionTemplatesDeleteCall { - c := &ProjectsLocationsSessionTemplatesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// Parent sets the optional parameter "parent": Required. Parent (Session) +// resource reference. +func (c *ProjectsLocationsSessionsSparkApplicationsSearchSqlQueriesCall) Parent(parent string) *ProjectsLocationsSessionsSparkApplicationsSearchSqlQueriesCall { + c.urlParams_.Set("parent", parent) + return c +} + +// PlanDescription sets the optional parameter "planDescription": Enables/ +// disables physical plan description on demand +func (c *ProjectsLocationsSessionsSparkApplicationsSearchSqlQueriesCall) PlanDescription(planDescription bool) *ProjectsLocationsSessionsSparkApplicationsSearchSqlQueriesCall { + c.urlParams_.Set("planDescription", fmt.Sprint(planDescription)) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsSessionTemplatesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsSessionTemplatesDeleteCall { +func (c *ProjectsLocationsSessionsSparkApplicationsSearchSqlQueriesCall) Fields(s ...googleapi.Field) *ProjectsLocationsSessionsSparkApplicationsSearchSqlQueriesCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsSessionsSparkApplicationsSearchSqlQueriesCall) IfNoneMatch(entityTag string) *ProjectsLocationsSessionsSparkApplicationsSearchSqlQueriesCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsSessionTemplatesDeleteCall) Context(ctx context.Context) *ProjectsLocationsSessionTemplatesDeleteCall { +func (c *ProjectsLocationsSessionsSparkApplicationsSearchSqlQueriesCall) Context(ctx context.Context) *ProjectsLocationsSessionsSparkApplicationsSearchSqlQueriesCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsSessionTemplatesDeleteCall) Header() http.Header { +func (c *ProjectsLocationsSessionsSparkApplicationsSearchSqlQueriesCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsSessionTemplatesDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsSessionsSparkApplicationsSearchSqlQueriesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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 := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:searchSqlQueries") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -8146,12 +16989,13 @@ func (c *ProjectsLocationsSessionTemplatesDeleteCall) doRequest(alt string) (*ht return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "dataproc.projects.locations.sessionTemplates.delete" call. +// Do executes the "dataproc.projects.locations.sessions.sparkApplications.searchSqlQueries" call. // 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 *ProjectsLocationsSessionTemplatesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { +// *SearchSessionSparkApplicationSqlQueriesResponse.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsSessionsSparkApplicationsSearchSqlQueriesCall) Do(opts ...googleapi.CallOption) (*SearchSessionSparkApplicationSqlQueriesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8170,7 +17014,7 @@ func (c *ProjectsLocationsSessionTemplatesDeleteCall) Do(opts ...googleapi.CallO if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Empty{ + ret := &SearchSessionSparkApplicationSqlQueriesResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -8183,7 +17027,28 @@ func (c *ProjectsLocationsSessionTemplatesDeleteCall) Do(opts ...googleapi.CallO return ret, nil } -type ProjectsLocationsSessionTemplatesGetCall struct { +// 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 *ProjectsLocationsSessionsSparkApplicationsSearchSqlQueriesCall) Pages(ctx context.Context, f func(*SearchSessionSparkApplicationSqlQueriesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + 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 ProjectsLocationsSessionsSparkApplicationsSearchStageAttemptTasksCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -8192,19 +17057,81 @@ type ProjectsLocationsSessionTemplatesGetCall struct { header_ http.Header } -// Get: Gets the resource representation for a session template. +// SearchStageAttemptTasks: Obtain data corresponding to tasks for a spark +// stage attempt for a Spark Application. // -// - name: The name of the session template to retrieve. -func (r *ProjectsLocationsSessionTemplatesService) Get(name string) *ProjectsLocationsSessionTemplatesGetCall { - c := &ProjectsLocationsSessionTemplatesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The fully qualified name of the session to retrieve in the format +// "projects/PROJECT_ID/locations/DATAPROC_REGION/sessions/SESSION_ID/sparkApp +// lications/APPLICATION_ID". +func (r *ProjectsLocationsSessionsSparkApplicationsService) SearchStageAttemptTasks(name string) *ProjectsLocationsSessionsSparkApplicationsSearchStageAttemptTasksCall { + c := &ProjectsLocationsSessionsSparkApplicationsSearchStageAttemptTasksCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } +// PageSize sets the optional parameter "pageSize": Maximum number of tasks to +// return in each response. The service may return fewer than this. The default +// page size is 10; the maximum page size is 100. +func (c *ProjectsLocationsSessionsSparkApplicationsSearchStageAttemptTasksCall) PageSize(pageSize int64) *ProjectsLocationsSessionsSparkApplicationsSearchStageAttemptTasksCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token received +// from a previous SearchSessionSparkApplicationStageAttemptTasks call. Provide +// this token to retrieve the subsequent page. +func (c *ProjectsLocationsSessionsSparkApplicationsSearchStageAttemptTasksCall) PageToken(pageToken string) *ProjectsLocationsSessionsSparkApplicationsSearchStageAttemptTasksCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Parent sets the optional parameter "parent": Required. Parent (Session) +// resource reference. +func (c *ProjectsLocationsSessionsSparkApplicationsSearchStageAttemptTasksCall) Parent(parent string) *ProjectsLocationsSessionsSparkApplicationsSearchStageAttemptTasksCall { + c.urlParams_.Set("parent", parent) + return c +} + +// SortRuntime sets the optional parameter "sortRuntime": Sort the tasks by +// runtime. +func (c *ProjectsLocationsSessionsSparkApplicationsSearchStageAttemptTasksCall) SortRuntime(sortRuntime bool) *ProjectsLocationsSessionsSparkApplicationsSearchStageAttemptTasksCall { + c.urlParams_.Set("sortRuntime", fmt.Sprint(sortRuntime)) + return c +} + +// StageAttemptId sets the optional parameter "stageAttemptId": Stage Attempt +// ID +func (c *ProjectsLocationsSessionsSparkApplicationsSearchStageAttemptTasksCall) StageAttemptId(stageAttemptId int64) *ProjectsLocationsSessionsSparkApplicationsSearchStageAttemptTasksCall { + c.urlParams_.Set("stageAttemptId", fmt.Sprint(stageAttemptId)) + return c +} + +// StageId sets the optional parameter "stageId": Stage ID +func (c *ProjectsLocationsSessionsSparkApplicationsSearchStageAttemptTasksCall) StageId(stageId int64) *ProjectsLocationsSessionsSparkApplicationsSearchStageAttemptTasksCall { + c.urlParams_.Set("stageId", fmt.Sprint(stageId)) + return c +} + +// TaskStatus sets the optional parameter "taskStatus": List only tasks in the +// state. +// +// Possible values: +// +// "TASK_STATUS_UNSPECIFIED" +// "TASK_STATUS_RUNNING" +// "TASK_STATUS_SUCCESS" +// "TASK_STATUS_FAILED" +// "TASK_STATUS_KILLED" +// "TASK_STATUS_PENDING" +func (c *ProjectsLocationsSessionsSparkApplicationsSearchStageAttemptTasksCall) TaskStatus(taskStatus string) *ProjectsLocationsSessionsSparkApplicationsSearchStageAttemptTasksCall { + c.urlParams_.Set("taskStatus", taskStatus) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsSessionTemplatesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsSessionTemplatesGetCall { +func (c *ProjectsLocationsSessionsSparkApplicationsSearchStageAttemptTasksCall) Fields(s ...googleapi.Field) *ProjectsLocationsSessionsSparkApplicationsSearchStageAttemptTasksCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -8212,27 +17139,27 @@ func (c *ProjectsLocationsSessionTemplatesGetCall) Fields(s ...googleapi.Field) // IfNoneMatch sets an 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. -func (c *ProjectsLocationsSessionTemplatesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsSessionTemplatesGetCall { +func (c *ProjectsLocationsSessionsSparkApplicationsSearchStageAttemptTasksCall) IfNoneMatch(entityTag string) *ProjectsLocationsSessionsSparkApplicationsSearchStageAttemptTasksCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsSessionTemplatesGetCall) Context(ctx context.Context) *ProjectsLocationsSessionTemplatesGetCall { +func (c *ProjectsLocationsSessionsSparkApplicationsSearchStageAttemptTasksCall) Context(ctx context.Context) *ProjectsLocationsSessionsSparkApplicationsSearchStageAttemptTasksCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsSessionTemplatesGetCall) Header() http.Header { +func (c *ProjectsLocationsSessionsSparkApplicationsSearchStageAttemptTasksCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsSessionTemplatesGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsSessionsSparkApplicationsSearchStageAttemptTasksCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -8240,7 +17167,7 @@ func (c *ProjectsLocationsSessionTemplatesGetCall) doRequest(alt string) (*http. var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:searchStageAttemptTasks") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -8253,13 +17180,15 @@ func (c *ProjectsLocationsSessionTemplatesGetCall) doRequest(alt string) (*http. return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "dataproc.projects.locations.sessionTemplates.get" call. +// Do executes the "dataproc.projects.locations.sessions.sparkApplications.searchStageAttemptTasks" call. // Any non-2xx status code is an error. Response headers are in either -// *SessionTemplate.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsSessionTemplatesGetCall) Do(opts ...googleapi.CallOption) (*SessionTemplate, error) { +// *SearchSessionSparkApplicationStageAttemptTasksResponse.ServerResponse.Header +// +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsSessionsSparkApplicationsSearchStageAttemptTasksCall) Do(opts ...googleapi.CallOption) (*SearchSessionSparkApplicationStageAttemptTasksResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8278,7 +17207,7 @@ func (c *ProjectsLocationsSessionTemplatesGetCall) Do(opts ...googleapi.CallOpti if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &SessionTemplate{ + ret := &SearchSessionSparkApplicationStageAttemptTasksResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -8291,52 +17220,93 @@ func (c *ProjectsLocationsSessionTemplatesGetCall) Do(opts ...googleapi.CallOpti return ret, nil } -type ProjectsLocationsSessionTemplatesListCall struct { +// 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 *ProjectsLocationsSessionsSparkApplicationsSearchStageAttemptTasksCall) Pages(ctx context.Context, f func(*SearchSessionSparkApplicationStageAttemptTasksResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + 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 ProjectsLocationsSessionsSparkApplicationsSearchStageAttemptsCall struct { s *Service - parent string + name string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Lists session templates. +// SearchStageAttempts: Obtain data corresponding to a spark stage attempts for +// a Spark Application. // -// - parent: The parent that owns this collection of session templates. -func (r *ProjectsLocationsSessionTemplatesService) List(parent string) *ProjectsLocationsSessionTemplatesListCall { - c := &ProjectsLocationsSessionTemplatesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// Filter sets the optional parameter "filter": A filter for the session -// templates to return in the response. Filters are case sensitive and have the -// following syntax:field = value AND field = value ... -func (c *ProjectsLocationsSessionTemplatesListCall) Filter(filter string) *ProjectsLocationsSessionTemplatesListCall { - c.urlParams_.Set("filter", filter) +// - name: The fully qualified name of the session to retrieve in the format +// "projects/PROJECT_ID/locations/DATAPROC_REGION/sessions/SESSION_ID/sparkApp +// lications/APPLICATION_ID". +func (r *ProjectsLocationsSessionsSparkApplicationsService) SearchStageAttempts(name string) *ProjectsLocationsSessionsSparkApplicationsSearchStageAttemptsCall { + c := &ProjectsLocationsSessionsSparkApplicationsSearchStageAttemptsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } -// PageSize sets the optional parameter "pageSize": The maximum number of -// sessions to return in each response. The service may return fewer than this -// value. -func (c *ProjectsLocationsSessionTemplatesListCall) PageSize(pageSize int64) *ProjectsLocationsSessionTemplatesListCall { +// PageSize sets the optional parameter "pageSize": Maximum number of stage +// attempts (paging based on stage_attempt_id) to return in each response. The +// service may return fewer than this. The default page size is 10; the maximum +// page size is 100. +func (c *ProjectsLocationsSessionsSparkApplicationsSearchStageAttemptsCall) PageSize(pageSize int64) *ProjectsLocationsSessionsSparkApplicationsSearchStageAttemptsCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": A page token received -// from a previous ListSessions call. Provide this token to retrieve the -// subsequent page. -func (c *ProjectsLocationsSessionTemplatesListCall) PageToken(pageToken string) *ProjectsLocationsSessionTemplatesListCall { +// from a previous SearchSessionSparkApplicationStageAttempts call. Provide +// this token to retrieve the subsequent page. +func (c *ProjectsLocationsSessionsSparkApplicationsSearchStageAttemptsCall) PageToken(pageToken string) *ProjectsLocationsSessionsSparkApplicationsSearchStageAttemptsCall { c.urlParams_.Set("pageToken", pageToken) return c } +// Parent sets the optional parameter "parent": Required. Parent (Session) +// resource reference. +func (c *ProjectsLocationsSessionsSparkApplicationsSearchStageAttemptsCall) Parent(parent string) *ProjectsLocationsSessionsSparkApplicationsSearchStageAttemptsCall { + c.urlParams_.Set("parent", parent) + return c +} + +// StageId sets the optional parameter "stageId": Required. Stage ID for which +// attempts are to be fetched +func (c *ProjectsLocationsSessionsSparkApplicationsSearchStageAttemptsCall) StageId(stageId int64) *ProjectsLocationsSessionsSparkApplicationsSearchStageAttemptsCall { + c.urlParams_.Set("stageId", fmt.Sprint(stageId)) + return c +} + +// SummaryMetricsMask sets the optional parameter "summaryMetricsMask": The +// list of summary metrics fields to include. Empty list will default to skip +// all summary metrics fields. Example, if the response should include +// TaskQuantileMetrics, the request should have task_quantile_metrics in +// summary_metrics_mask field +func (c *ProjectsLocationsSessionsSparkApplicationsSearchStageAttemptsCall) SummaryMetricsMask(summaryMetricsMask string) *ProjectsLocationsSessionsSparkApplicationsSearchStageAttemptsCall { + c.urlParams_.Set("summaryMetricsMask", summaryMetricsMask) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsSessionTemplatesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsSessionTemplatesListCall { +func (c *ProjectsLocationsSessionsSparkApplicationsSearchStageAttemptsCall) Fields(s ...googleapi.Field) *ProjectsLocationsSessionsSparkApplicationsSearchStageAttemptsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -8344,27 +17314,27 @@ func (c *ProjectsLocationsSessionTemplatesListCall) Fields(s ...googleapi.Field) // IfNoneMatch sets an 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. -func (c *ProjectsLocationsSessionTemplatesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsSessionTemplatesListCall { +func (c *ProjectsLocationsSessionsSparkApplicationsSearchStageAttemptsCall) IfNoneMatch(entityTag string) *ProjectsLocationsSessionsSparkApplicationsSearchStageAttemptsCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsSessionTemplatesListCall) Context(ctx context.Context) *ProjectsLocationsSessionTemplatesListCall { +func (c *ProjectsLocationsSessionsSparkApplicationsSearchStageAttemptsCall) Context(ctx context.Context) *ProjectsLocationsSessionsSparkApplicationsSearchStageAttemptsCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsSessionTemplatesListCall) Header() http.Header { +func (c *ProjectsLocationsSessionsSparkApplicationsSearchStageAttemptsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsSessionTemplatesListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsSessionsSparkApplicationsSearchStageAttemptsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -8372,7 +17342,7 @@ func (c *ProjectsLocationsSessionTemplatesListCall) doRequest(alt string) (*http var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/sessionTemplates") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:searchStageAttempts") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -8380,18 +17350,18 @@ func (c *ProjectsLocationsSessionTemplatesListCall) doRequest(alt string) (*http } 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 "dataproc.projects.locations.sessionTemplates.list" call. +// Do executes the "dataproc.projects.locations.sessions.sparkApplications.searchStageAttempts" call. // Any non-2xx status code is an error. Response headers are in either -// *ListSessionTemplatesResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use +// *SearchSessionSparkApplicationStageAttemptsResponse.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was because // http.StatusNotModified was returned. -func (c *ProjectsLocationsSessionTemplatesListCall) Do(opts ...googleapi.CallOption) (*ListSessionTemplatesResponse, error) { +func (c *ProjectsLocationsSessionsSparkApplicationsSearchStageAttemptsCall) Do(opts ...googleapi.CallOption) (*SearchSessionSparkApplicationStageAttemptsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8410,7 +17380,7 @@ func (c *ProjectsLocationsSessionTemplatesListCall) Do(opts ...googleapi.CallOpt if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ListSessionTemplatesResponse{ + ret := &SearchSessionSparkApplicationStageAttemptsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -8426,7 +17396,7 @@ func (c *ProjectsLocationsSessionTemplatesListCall) Do(opts ...googleapi.CallOpt // 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 *ProjectsLocationsSessionTemplatesListCall) Pages(ctx context.Context, f func(*ListSessionTemplatesResponse) error) error { +func (c *ProjectsLocationsSessionsSparkApplicationsSearchStageAttemptsCall) Pages(ctx context.Context, f func(*SearchSessionSparkApplicationStageAttemptsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { @@ -8444,60 +17414,118 @@ func (c *ProjectsLocationsSessionTemplatesListCall) Pages(ctx context.Context, f } } -type ProjectsLocationsSessionTemplatesPatchCall struct { - s *Service - name string - sessiontemplate *SessionTemplate - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsSessionsSparkApplicationsSearchStagesCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Patch: Updates the session template synchronously. +// SearchStages: Obtain data corresponding to stages for a Spark Application. // -// - name: The resource name of the session template. -func (r *ProjectsLocationsSessionTemplatesService) Patch(name string, sessiontemplate *SessionTemplate) *ProjectsLocationsSessionTemplatesPatchCall { - c := &ProjectsLocationsSessionTemplatesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The fully qualified name of the session to retrieve in the format +// "projects/PROJECT_ID/locations/DATAPROC_REGION/sessions/SESSION_ID/sparkApp +// lications/APPLICATION_ID". +func (r *ProjectsLocationsSessionsSparkApplicationsService) SearchStages(name string) *ProjectsLocationsSessionsSparkApplicationsSearchStagesCall { + c := &ProjectsLocationsSessionsSparkApplicationsSearchStagesCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.sessiontemplate = sessiontemplate + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of stages +// (paging based on stage_id) to return in each response. The service may +// return fewer than this. The default page size is 10; the maximum page size +// is 100. +func (c *ProjectsLocationsSessionsSparkApplicationsSearchStagesCall) PageSize(pageSize int64) *ProjectsLocationsSessionsSparkApplicationsSearchStagesCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token received +// from a previous SearchSessionSparkApplicationStages call. Provide this token +// to retrieve the subsequent page. +func (c *ProjectsLocationsSessionsSparkApplicationsSearchStagesCall) PageToken(pageToken string) *ProjectsLocationsSessionsSparkApplicationsSearchStagesCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Parent sets the optional parameter "parent": Required. Parent (Session) +// resource reference. +func (c *ProjectsLocationsSessionsSparkApplicationsSearchStagesCall) Parent(parent string) *ProjectsLocationsSessionsSparkApplicationsSearchStagesCall { + c.urlParams_.Set("parent", parent) + return c +} + +// StageStatus sets the optional parameter "stageStatus": List only stages in +// the given state. +// +// Possible values: +// +// "STAGE_STATUS_UNSPECIFIED" +// "STAGE_STATUS_ACTIVE" +// "STAGE_STATUS_COMPLETE" +// "STAGE_STATUS_FAILED" +// "STAGE_STATUS_PENDING" +// "STAGE_STATUS_SKIPPED" +func (c *ProjectsLocationsSessionsSparkApplicationsSearchStagesCall) StageStatus(stageStatus string) *ProjectsLocationsSessionsSparkApplicationsSearchStagesCall { + c.urlParams_.Set("stageStatus", stageStatus) + return c +} + +// SummaryMetricsMask sets the optional parameter "summaryMetricsMask": The +// list of summary metrics fields to include. Empty list will default to skip +// all summary metrics fields. Example, if the response should include +// TaskQuantileMetrics, the request should have task_quantile_metrics in +// summary_metrics_mask field +func (c *ProjectsLocationsSessionsSparkApplicationsSearchStagesCall) SummaryMetricsMask(summaryMetricsMask string) *ProjectsLocationsSessionsSparkApplicationsSearchStagesCall { + c.urlParams_.Set("summaryMetricsMask", summaryMetricsMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsSessionTemplatesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsSessionTemplatesPatchCall { +func (c *ProjectsLocationsSessionsSparkApplicationsSearchStagesCall) Fields(s ...googleapi.Field) *ProjectsLocationsSessionsSparkApplicationsSearchStagesCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsSessionsSparkApplicationsSearchStagesCall) IfNoneMatch(entityTag string) *ProjectsLocationsSessionsSparkApplicationsSearchStagesCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsSessionTemplatesPatchCall) Context(ctx context.Context) *ProjectsLocationsSessionTemplatesPatchCall { +func (c *ProjectsLocationsSessionsSparkApplicationsSearchStagesCall) Context(ctx context.Context) *ProjectsLocationsSessionsSparkApplicationsSearchStagesCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsSessionTemplatesPatchCall) Header() http.Header { +func (c *ProjectsLocationsSessionsSparkApplicationsSearchStagesCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsSessionTemplatesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.sessiontemplate) - if err != nil { - return nil, err +func (c *ProjectsLocationsSessionsSparkApplicationsSearchStagesCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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 := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:searchStages") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -8508,13 +17536,13 @@ func (c *ProjectsLocationsSessionTemplatesPatchCall) doRequest(alt string) (*htt return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "dataproc.projects.locations.sessionTemplates.patch" call. +// Do executes the "dataproc.projects.locations.sessions.sparkApplications.searchStages" call. // Any non-2xx status code is an error. Response headers are in either -// *SessionTemplate.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsSessionTemplatesPatchCall) Do(opts ...googleapi.CallOption) (*SessionTemplate, error) { +// *SearchSessionSparkApplicationStagesResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsSessionsSparkApplicationsSearchStagesCall) Do(opts ...googleapi.CallOption) (*SearchSessionSparkApplicationStagesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8533,7 +17561,7 @@ func (c *ProjectsLocationsSessionTemplatesPatchCall) Do(opts ...googleapi.CallOp if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &SessionTemplate{ + ret := &SearchSessionSparkApplicationStagesResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -8543,100 +17571,117 @@ func (c *ProjectsLocationsSessionTemplatesPatchCall) Do(opts ...googleapi.CallOp if err := gensupport.DecodeResponse(target, res); err != nil { return nil, err } - return ret, nil + return ret, nil +} + +// 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 *ProjectsLocationsSessionsSparkApplicationsSearchStagesCall) Pages(ctx context.Context, f func(*SearchSessionSparkApplicationStagesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + 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 ProjectsLocationsSessionsCreateCall struct { - s *Service - parent string - session *Session - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsSessionsSparkApplicationsSummarizeExecutorsCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Create: Create an interactive session asynchronously. +// SummarizeExecutors: Obtain summary of Executor Summary for a Spark +// Application // -// - parent: The parent resource where this session will be created. -func (r *ProjectsLocationsSessionsService) Create(parent string, session *Session) *ProjectsLocationsSessionsCreateCall { - c := &ProjectsLocationsSessionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.session = session - return c -} - -// RequestId sets the optional parameter "requestId": A unique ID used to -// identify the request. If the service receives two CreateSessionRequests -// (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateSessionRequest)s -// with the same ID, the second request is ignored, and the first Session is -// created and stored in the backend.Recommendation: Set this value to a UUID -// (https://en.wikipedia.org/wiki/Universally_unique_identifier).The value must -// contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens -// (-). The maximum length is 40 characters. -func (c *ProjectsLocationsSessionsCreateCall) RequestId(requestId string) *ProjectsLocationsSessionsCreateCall { - c.urlParams_.Set("requestId", requestId) +// - name: The fully qualified name of the session to retrieve in the format +// "projects/PROJECT_ID/locations/DATAPROC_REGION/sessions/SESSION_ID/sparkApp +// lications/APPLICATION_ID". +func (r *ProjectsLocationsSessionsSparkApplicationsService) SummarizeExecutors(name string) *ProjectsLocationsSessionsSparkApplicationsSummarizeExecutorsCall { + c := &ProjectsLocationsSessionsSparkApplicationsSummarizeExecutorsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } -// SessionId sets the optional parameter "sessionId": Required. The ID to use -// for the session, which becomes the final component of the session's resource -// name.This value must be 4-63 characters. Valid characters are /a-z-/. -func (c *ProjectsLocationsSessionsCreateCall) SessionId(sessionId string) *ProjectsLocationsSessionsCreateCall { - c.urlParams_.Set("sessionId", sessionId) +// Parent sets the optional parameter "parent": Required. Parent (Session) +// resource reference. +func (c *ProjectsLocationsSessionsSparkApplicationsSummarizeExecutorsCall) Parent(parent string) *ProjectsLocationsSessionsSparkApplicationsSummarizeExecutorsCall { + c.urlParams_.Set("parent", parent) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsSessionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsSessionsCreateCall { +func (c *ProjectsLocationsSessionsSparkApplicationsSummarizeExecutorsCall) Fields(s ...googleapi.Field) *ProjectsLocationsSessionsSparkApplicationsSummarizeExecutorsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsSessionsSparkApplicationsSummarizeExecutorsCall) IfNoneMatch(entityTag string) *ProjectsLocationsSessionsSparkApplicationsSummarizeExecutorsCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsSessionsCreateCall) Context(ctx context.Context) *ProjectsLocationsSessionsCreateCall { +func (c *ProjectsLocationsSessionsSparkApplicationsSummarizeExecutorsCall) Context(ctx context.Context) *ProjectsLocationsSessionsSparkApplicationsSummarizeExecutorsCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsSessionsCreateCall) Header() http.Header { +func (c *ProjectsLocationsSessionsSparkApplicationsSummarizeExecutorsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsSessionsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.session) - if err != nil { - return nil, err +func (c *ProjectsLocationsSessionsSparkApplicationsSummarizeExecutorsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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}/sessions") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:summarizeExecutors") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "dataproc.projects.locations.sessions.create" call. +// Do executes the "dataproc.projects.locations.sessions.sparkApplications.summarizeExecutors" call. // 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 *ProjectsLocationsSessionsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +// *SummarizeSessionSparkApplicationExecutorsResponse.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsSessionsSparkApplicationsSummarizeExecutorsCall) Do(opts ...googleapi.CallOption) (*SummarizeSessionSparkApplicationExecutorsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8655,7 +17700,7 @@ func (c *ProjectsLocationsSessionsCreateCall) Do(opts ...googleapi.CallOption) ( if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &SummarizeSessionSparkApplicationExecutorsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -8668,68 +17713,75 @@ func (c *ProjectsLocationsSessionsCreateCall) Do(opts ...googleapi.CallOption) ( return ret, nil } -type ProjectsLocationsSessionsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsSessionsSparkApplicationsSummarizeJobsCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Delete: Deletes the interactive session resource. If the session is not in -// terminal state, it is terminated, and then deleted. +// SummarizeJobs: Obtain summary of Jobs for a Spark Application // -// - name: The name of the session resource to delete. -func (r *ProjectsLocationsSessionsService) Delete(name string) *ProjectsLocationsSessionsDeleteCall { - c := &ProjectsLocationsSessionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The fully qualified name of the session to retrieve in the format +// "projects/PROJECT_ID/locations/DATAPROC_REGION/sessions/SESSION_ID/sparkApp +// lications/APPLICATION_ID". +func (r *ProjectsLocationsSessionsSparkApplicationsService) SummarizeJobs(name string) *ProjectsLocationsSessionsSparkApplicationsSummarizeJobsCall { + c := &ProjectsLocationsSessionsSparkApplicationsSummarizeJobsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// RequestId sets the optional parameter "requestId": A unique ID used to -// identify the request. If the service receives two DeleteSessionRequest -// (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.DeleteSessionRequest)s -// with the same ID, the second request is ignored.Recommendation: Set this -// value to a UUID -// (https://en.wikipedia.org/wiki/Universally_unique_identifier).The value must -// contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens -// (-). The maximum length is 40 characters. -func (c *ProjectsLocationsSessionsDeleteCall) RequestId(requestId string) *ProjectsLocationsSessionsDeleteCall { - c.urlParams_.Set("requestId", requestId) +// Parent sets the optional parameter "parent": Required. Parent (Session) +// resource reference. +func (c *ProjectsLocationsSessionsSparkApplicationsSummarizeJobsCall) Parent(parent string) *ProjectsLocationsSessionsSparkApplicationsSummarizeJobsCall { + c.urlParams_.Set("parent", parent) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsSessionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsSessionsDeleteCall { +func (c *ProjectsLocationsSessionsSparkApplicationsSummarizeJobsCall) Fields(s ...googleapi.Field) *ProjectsLocationsSessionsSparkApplicationsSummarizeJobsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsSessionsSparkApplicationsSummarizeJobsCall) IfNoneMatch(entityTag string) *ProjectsLocationsSessionsSparkApplicationsSummarizeJobsCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsSessionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsSessionsDeleteCall { +func (c *ProjectsLocationsSessionsSparkApplicationsSummarizeJobsCall) Context(ctx context.Context) *ProjectsLocationsSessionsSparkApplicationsSummarizeJobsCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsSessionsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsSessionsSparkApplicationsSummarizeJobsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsSessionsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsSessionsSparkApplicationsSummarizeJobsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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 := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:summarizeJobs") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -8740,12 +17792,13 @@ func (c *ProjectsLocationsSessionsDeleteCall) doRequest(alt string) (*http.Respo return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "dataproc.projects.locations.sessions.delete" call. +// Do executes the "dataproc.projects.locations.sessions.sparkApplications.summarizeJobs" call. // 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 *ProjectsLocationsSessionsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +// *SummarizeSessionSparkApplicationJobsResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsSessionsSparkApplicationsSummarizeJobsCall) Do(opts ...googleapi.CallOption) (*SummarizeSessionSparkApplicationJobsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8764,7 +17817,7 @@ func (c *ProjectsLocationsSessionsDeleteCall) Do(opts ...googleapi.CallOption) ( if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &SummarizeSessionSparkApplicationJobsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -8777,7 +17830,7 @@ func (c *ProjectsLocationsSessionsDeleteCall) Do(opts ...googleapi.CallOption) ( return ret, nil } -type ProjectsLocationsSessionsGetCall struct { +type ProjectsLocationsSessionsSparkApplicationsSummarizeStageAttemptTasksCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -8786,19 +17839,42 @@ type ProjectsLocationsSessionsGetCall struct { header_ http.Header } -// Get: Gets the resource representation for an interactive session. +// SummarizeStageAttemptTasks: Obtain summary of Tasks for a Spark Application +// Stage Attempt // -// - name: The name of the session to retrieve. -func (r *ProjectsLocationsSessionsService) Get(name string) *ProjectsLocationsSessionsGetCall { - c := &ProjectsLocationsSessionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The fully qualified name of the session to retrieve in the format +// "projects/PROJECT_ID/locations/DATAPROC_REGION/sessions/SESSION_ID/sparkApp +// lications/APPLICATION_ID". +func (r *ProjectsLocationsSessionsSparkApplicationsService) SummarizeStageAttemptTasks(name string) *ProjectsLocationsSessionsSparkApplicationsSummarizeStageAttemptTasksCall { + c := &ProjectsLocationsSessionsSparkApplicationsSummarizeStageAttemptTasksCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } +// Parent sets the optional parameter "parent": Required. Parent (Session) +// resource reference. +func (c *ProjectsLocationsSessionsSparkApplicationsSummarizeStageAttemptTasksCall) Parent(parent string) *ProjectsLocationsSessionsSparkApplicationsSummarizeStageAttemptTasksCall { + c.urlParams_.Set("parent", parent) + return c +} + +// StageAttemptId sets the optional parameter "stageAttemptId": Required. Stage +// Attempt ID +func (c *ProjectsLocationsSessionsSparkApplicationsSummarizeStageAttemptTasksCall) StageAttemptId(stageAttemptId int64) *ProjectsLocationsSessionsSparkApplicationsSummarizeStageAttemptTasksCall { + c.urlParams_.Set("stageAttemptId", fmt.Sprint(stageAttemptId)) + return c +} + +// StageId sets the optional parameter "stageId": Required. Stage ID +func (c *ProjectsLocationsSessionsSparkApplicationsSummarizeStageAttemptTasksCall) StageId(stageId int64) *ProjectsLocationsSessionsSparkApplicationsSummarizeStageAttemptTasksCall { + c.urlParams_.Set("stageId", fmt.Sprint(stageId)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsSessionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsSessionsGetCall { +func (c *ProjectsLocationsSessionsSparkApplicationsSummarizeStageAttemptTasksCall) Fields(s ...googleapi.Field) *ProjectsLocationsSessionsSparkApplicationsSummarizeStageAttemptTasksCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -8806,27 +17882,27 @@ func (c *ProjectsLocationsSessionsGetCall) Fields(s ...googleapi.Field) *Project // IfNoneMatch sets an 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. -func (c *ProjectsLocationsSessionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsSessionsGetCall { +func (c *ProjectsLocationsSessionsSparkApplicationsSummarizeStageAttemptTasksCall) IfNoneMatch(entityTag string) *ProjectsLocationsSessionsSparkApplicationsSummarizeStageAttemptTasksCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsSessionsGetCall) Context(ctx context.Context) *ProjectsLocationsSessionsGetCall { +func (c *ProjectsLocationsSessionsSparkApplicationsSummarizeStageAttemptTasksCall) Context(ctx context.Context) *ProjectsLocationsSessionsSparkApplicationsSummarizeStageAttemptTasksCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsSessionsGetCall) Header() http.Header { +func (c *ProjectsLocationsSessionsSparkApplicationsSummarizeStageAttemptTasksCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsSessionsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsSessionsSparkApplicationsSummarizeStageAttemptTasksCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -8834,7 +17910,7 @@ func (c *ProjectsLocationsSessionsGetCall) doRequest(alt string) (*http.Response var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:summarizeStageAttemptTasks") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -8847,12 +17923,13 @@ func (c *ProjectsLocationsSessionsGetCall) doRequest(alt string) (*http.Response return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "dataproc.projects.locations.sessions.get" call. +// Do executes the "dataproc.projects.locations.sessions.sparkApplications.summarizeStageAttemptTasks" call. // Any non-2xx status code is an error. Response headers are in either -// *Session.ServerResponse.Header or (if a response was returned at all) in +// *SummarizeSessionSparkApplicationStageAttemptTasksResponse.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 *ProjectsLocationsSessionsGetCall) Do(opts ...googleapi.CallOption) (*Session, error) { +func (c *ProjectsLocationsSessionsSparkApplicationsSummarizeStageAttemptTasksCall) Do(opts ...googleapi.CallOption) (*SummarizeSessionSparkApplicationStageAttemptTasksResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8871,7 +17948,7 @@ func (c *ProjectsLocationsSessionsGetCall) Do(opts ...googleapi.CallOption) (*Se if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Session{ + ret := &SummarizeSessionSparkApplicationStageAttemptTasksResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -8884,61 +17961,37 @@ func (c *ProjectsLocationsSessionsGetCall) Do(opts ...googleapi.CallOption) (*Se return ret, nil } -type ProjectsLocationsSessionsListCall struct { +type ProjectsLocationsSessionsSparkApplicationsSummarizeStagesCall struct { s *Service - parent string + name string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Lists interactive sessions. +// SummarizeStages: Obtain summary of Stages for a Spark Application // -// - parent: The parent, which owns this collection of sessions. -func (r *ProjectsLocationsSessionsService) List(parent string) *ProjectsLocationsSessionsListCall { - c := &ProjectsLocationsSessionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// Filter sets the optional parameter "filter": A filter for the sessions to -// return in the response.A filter is a logical expression constraining the -// values of various fields in each session resource. Filters are case -// sensitive, and may contain multiple clauses combined with logical operators -// (AND, OR). Supported fields are session_id, session_uuid, state, -// create_time, and labels.Example: state = ACTIVE and create_time < -// "2023-01-01T00:00:00Z" is a filter for sessions in an ACTIVE state that were -// created before 2023-01-01. state = ACTIVE and labels.environment=production -// is a filter for sessions in an ACTIVE state that have a production -// environment label.See https://google.aip.dev/assets/misc/ebnf-filtering.txt -// for a detailed description of the filter syntax and a list of supported -// comparators. -func (c *ProjectsLocationsSessionsListCall) Filter(filter string) *ProjectsLocationsSessionsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number of -// sessions to return in each response. The service may return fewer than this -// value. -func (c *ProjectsLocationsSessionsListCall) PageSize(pageSize int64) *ProjectsLocationsSessionsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) +// - name: The fully qualified name of the session to retrieve in the format +// "projects/PROJECT_ID/locations/DATAPROC_REGION/sessions/SESSION_ID/sparkApp +// lications/APPLICATION_ID". +func (r *ProjectsLocationsSessionsSparkApplicationsService) SummarizeStages(name string) *ProjectsLocationsSessionsSparkApplicationsSummarizeStagesCall { + c := &ProjectsLocationsSessionsSparkApplicationsSummarizeStagesCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } -// PageToken sets the optional parameter "pageToken": A page token received -// from a previous ListSessions call. Provide this token to retrieve the -// subsequent page. -func (c *ProjectsLocationsSessionsListCall) PageToken(pageToken string) *ProjectsLocationsSessionsListCall { - c.urlParams_.Set("pageToken", pageToken) +// Parent sets the optional parameter "parent": Required. Parent (Session) +// resource reference. +func (c *ProjectsLocationsSessionsSparkApplicationsSummarizeStagesCall) Parent(parent string) *ProjectsLocationsSessionsSparkApplicationsSummarizeStagesCall { + c.urlParams_.Set("parent", parent) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsSessionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsSessionsListCall { +func (c *ProjectsLocationsSessionsSparkApplicationsSummarizeStagesCall) Fields(s ...googleapi.Field) *ProjectsLocationsSessionsSparkApplicationsSummarizeStagesCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -8946,27 +17999,27 @@ func (c *ProjectsLocationsSessionsListCall) Fields(s ...googleapi.Field) *Projec // IfNoneMatch sets an 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. -func (c *ProjectsLocationsSessionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsSessionsListCall { +func (c *ProjectsLocationsSessionsSparkApplicationsSummarizeStagesCall) IfNoneMatch(entityTag string) *ProjectsLocationsSessionsSparkApplicationsSummarizeStagesCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsSessionsListCall) Context(ctx context.Context) *ProjectsLocationsSessionsListCall { +func (c *ProjectsLocationsSessionsSparkApplicationsSummarizeStagesCall) Context(ctx context.Context) *ProjectsLocationsSessionsSparkApplicationsSummarizeStagesCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsSessionsListCall) Header() http.Header { +func (c *ProjectsLocationsSessionsSparkApplicationsSummarizeStagesCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsSessionsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsSessionsSparkApplicationsSummarizeStagesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -8974,7 +18027,7 @@ func (c *ProjectsLocationsSessionsListCall) doRequest(alt string) (*http.Respons var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/sessions") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:summarizeStages") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -8982,18 +18035,18 @@ func (c *ProjectsLocationsSessionsListCall) doRequest(alt string) (*http.Respons } 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 "dataproc.projects.locations.sessions.list" call. +// Do executes the "dataproc.projects.locations.sessions.sparkApplications.summarizeStages" call. // Any non-2xx status code is an error. Response headers are in either -// *ListSessionsResponse.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsSessionsListCall) Do(opts ...googleapi.CallOption) (*ListSessionsResponse, error) { +// *SummarizeSessionSparkApplicationStagesResponse.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsSessionsSparkApplicationsSummarizeStagesCall) Do(opts ...googleapi.CallOption) (*SummarizeSessionSparkApplicationStagesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -9012,7 +18065,7 @@ func (c *ProjectsLocationsSessionsListCall) Do(opts ...googleapi.CallOption) (*L if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ListSessionsResponse{ + ret := &SummarizeSessionSparkApplicationStagesResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -9025,79 +18078,61 @@ func (c *ProjectsLocationsSessionsListCall) Do(opts ...googleapi.CallOption) (*L return ret, nil } -// 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 *ProjectsLocationsSessionsListCall) Pages(ctx context.Context, f func(*ListSessionsResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) - 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 ProjectsLocationsSessionsTerminateCall struct { - s *Service - name string - terminatesessionrequest *TerminateSessionRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsSessionsSparkApplicationsWriteCall struct { + s *Service + name string + writesessionsparkapplicationcontextrequest *WriteSessionSparkApplicationContextRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Terminate: Terminates the interactive session. +// Write: Write wrapper objects from dataplane to spanner // -// - name: The name of the session resource to terminate. -func (r *ProjectsLocationsSessionsService) Terminate(name string, terminatesessionrequest *TerminateSessionRequest) *ProjectsLocationsSessionsTerminateCall { - c := &ProjectsLocationsSessionsTerminateCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The fully qualified name of the spark application to write data +// about in the format +// "projects/PROJECT_ID/locations/DATAPROC_REGION/sessions/SESSION_ID/sparkApp +// lications/APPLICATION_ID". +func (r *ProjectsLocationsSessionsSparkApplicationsService) Write(name string, writesessionsparkapplicationcontextrequest *WriteSessionSparkApplicationContextRequest) *ProjectsLocationsSessionsSparkApplicationsWriteCall { + c := &ProjectsLocationsSessionsSparkApplicationsWriteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.terminatesessionrequest = terminatesessionrequest + c.writesessionsparkapplicationcontextrequest = writesessionsparkapplicationcontextrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsSessionsTerminateCall) Fields(s ...googleapi.Field) *ProjectsLocationsSessionsTerminateCall { +func (c *ProjectsLocationsSessionsSparkApplicationsWriteCall) Fields(s ...googleapi.Field) *ProjectsLocationsSessionsSparkApplicationsWriteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsSessionsTerminateCall) Context(ctx context.Context) *ProjectsLocationsSessionsTerminateCall { +func (c *ProjectsLocationsSessionsSparkApplicationsWriteCall) Context(ctx context.Context) *ProjectsLocationsSessionsSparkApplicationsWriteCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsSessionsTerminateCall) Header() http.Header { +func (c *ProjectsLocationsSessionsSparkApplicationsWriteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsSessionsTerminateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsSessionsSparkApplicationsWriteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.terminatesessionrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.writesessionsparkapplicationcontextrequest) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:terminate") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:write") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -9110,12 +18145,13 @@ func (c *ProjectsLocationsSessionsTerminateCall) doRequest(alt string) (*http.Re return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "dataproc.projects.locations.sessions.terminate" call. +// Do executes the "dataproc.projects.locations.sessions.sparkApplications.write" call. // 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 *ProjectsLocationsSessionsTerminateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +// *WriteSessionSparkApplicationContextResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsSessionsSparkApplicationsWriteCall) Do(opts ...googleapi.CallOption) (*WriteSessionSparkApplicationContextResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -9134,7 +18170,7 @@ func (c *ProjectsLocationsSessionsTerminateCall) Do(opts ...googleapi.CallOption if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &WriteSessionSparkApplicationContextResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, diff --git a/merchantapi/conversions_v1beta/merchantapi-api.json b/merchantapi/conversions_v1beta/merchantapi-api.json index 53f48dbf79e..bec0d8dcd57 100644 --- a/merchantapi/conversions_v1beta/merchantapi-api.json +++ b/merchantapi/conversions_v1beta/merchantapi-api.json @@ -172,7 +172,7 @@ ], "parameters": { "name": { - "description": "Required. The name of the conversion source to be fetched. Format: accounts/{account}/conversionsources/{conversion_source}", + "description": "Required. The name of the conversion source to be fetched. Format: accounts/{account}/conversionSources/{conversion_source}", "location": "path", "pattern": "^accounts/[^/]+/conversionSources/[^/]+$", "required": true, @@ -295,7 +295,7 @@ } } }, - "revision": "20240827", + "revision": "20241001", "rootUrl": "https://merchantapi.googleapis.com/", "schemas": { "AttributionSettings": { diff --git a/merchantapi/conversions_v1beta/merchantapi-gen.go b/merchantapi/conversions_v1beta/merchantapi-gen.go index f3e548ec97d..1abd4f111d0 100644 --- a/merchantapi/conversions_v1beta/merchantapi-gen.go +++ b/merchantapi/conversions_v1beta/merchantapi-gen.go @@ -734,7 +734,7 @@ type AccountsConversionSourcesGetCall struct { // Get: Fetches a conversion source. // // - name: The name of the conversion source to be fetched. Format: -// accounts/{account}/conversionsources/{conversion_source}. +// accounts/{account}/conversionSources/{conversion_source}. func (r *AccountsConversionSourcesService) Get(name string) *AccountsConversionSourcesGetCall { c := &AccountsConversionSourcesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name diff --git a/merchantapi/products_v1beta/merchantapi-api.json b/merchantapi/products_v1beta/merchantapi-api.json index cf74306290c..6930bb8260f 100644 --- a/merchantapi/products_v1beta/merchantapi-api.json +++ b/merchantapi/products_v1beta/merchantapi-api.json @@ -211,7 +211,7 @@ ], "parameters": { "pageSize": { - "description": "The maximum number of products to return. The service may return fewer than this value. The maximum value is 1000; values above 1000 will be coerced to 1000. If unspecified, the maximum number of products will be returned.", + "description": "The maximum number of products to return. The service may return fewer than this value. The maximum value is 250; values above 250 will be coerced to 250. If unspecified, the maximum number of products will be returned.", "format": "int32", "location": "query", "type": "integer" @@ -242,7 +242,7 @@ } } }, - "revision": "20240930", + "revision": "20241001", "rootUrl": "https://merchantapi.googleapis.com/", "schemas": { "Attributes": { diff --git a/merchantapi/products_v1beta/merchantapi-gen.go b/merchantapi/products_v1beta/merchantapi-gen.go index 1eecc1dfc8f..99f68e85fec 100644 --- a/merchantapi/products_v1beta/merchantapi-gen.go +++ b/merchantapi/products_v1beta/merchantapi-gen.go @@ -2128,7 +2128,7 @@ func (r *AccountsProductsService) List(parent string) *AccountsProductsListCall // PageSize sets the optional parameter "pageSize": The maximum number of // products to return. The service may return fewer than this value. The -// maximum value is 1000; values above 1000 will be coerced to 1000. If +// maximum value is 250; values above 250 will be coerced to 250. If // unspecified, the maximum number of products will be returned. func (c *AccountsProductsListCall) PageSize(pageSize int64) *AccountsProductsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) diff --git a/migrationcenter/v1alpha1/migrationcenter-api.json b/migrationcenter/v1alpha1/migrationcenter-api.json index bb59ccebc70..9eb8ac10f8e 100644 --- a/migrationcenter/v1alpha1/migrationcenter-api.json +++ b/migrationcenter/v1alpha1/migrationcenter-api.json @@ -2548,7 +2548,7 @@ } } }, - "revision": "20240919", + "revision": "20240926", "rootUrl": "https://migrationcenter.googleapis.com/", "schemas": { "AddAssetsToGroupRequest": { @@ -4149,7 +4149,7 @@ "type": "string" }, "edition": { - "description": "Optional. Cloud SQL edition. For SQL Server, only Enterprise is available.", + "description": "Optional. Preferred Cloud SQL edition.", "enum": [ "CLOUD_SQL_EDITION_UNSPECIFIED", "CLOUD_SQL_EDITION_ENTERPRISE", @@ -7073,7 +7073,7 @@ }, "coreCountHistogram": { "$ref": "ReportSummaryHistogramChartData", - "description": "Histogram showing a distribution of CPU core counts." + "description": "Histogram showing a distribution of logical CPU core counts." }, "databaseTypes": { "$ref": "ReportSummaryChartData", @@ -8277,7 +8277,8 @@ "type": "integer" }, "cpuThreadCount": { - "description": "Number of CPU threads allocated to the machine.", + "deprecated": true, + "description": "Deprecated: use VirtualMachineDetails.core_count instead. Number of CPU threads allocated to the machine.", "format": "int32", "type": "integer" }, diff --git a/migrationcenter/v1alpha1/migrationcenter-gen.go b/migrationcenter/v1alpha1/migrationcenter-gen.go index 1d2813565cc..7a986dc8fa5 100644 --- a/migrationcenter/v1alpha1/migrationcenter-gen.go +++ b/migrationcenter/v1alpha1/migrationcenter-gen.go @@ -2162,8 +2162,7 @@ type DatabasePreferencesCloudSqlCommon struct { // discount. While not supported in the v1 API, this value is converted to // UNSPECIFIED in conversions to the v1 API. CommitmentPlan string `json:"commitmentPlan,omitempty"` - // Edition: Optional. Cloud SQL edition. For SQL Server, only Enterprise is - // available. + // Edition: Optional. Preferred Cloud SQL edition. // // Possible values: // "CLOUD_SQL_EDITION_UNSPECIFIED" - An unspecified Cloud SQL edition. @@ -5580,7 +5579,8 @@ func (s ReportSummary) MarshalJSON() ([]byte, error) { type ReportSummaryAssetAggregateStats struct { // AssetAge: Count of assets grouped by age. AssetAge *ReportSummaryChartData `json:"assetAge,omitempty"` - // CoreCountHistogram: Histogram showing a distribution of CPU core counts. + // CoreCountHistogram: Histogram showing a distribution of logical CPU core + // counts. CoreCountHistogram *ReportSummaryHistogramChartData `json:"coreCountHistogram,omitempty"` // DatabaseTypes: Output only. Count of assets grouped by database type. Keys // here are taken from DatabaseType enum. Only present for databases. @@ -7026,7 +7026,8 @@ type VirtualMachineArchitectureDetails struct { CpuName string `json:"cpuName,omitempty"` // CpuSocketCount: Number of processor sockets allocated to the machine. CpuSocketCount int64 `json:"cpuSocketCount,omitempty"` - // CpuThreadCount: Number of CPU threads allocated to the machine. + // CpuThreadCount: Deprecated: use VirtualMachineDetails.core_count instead. + // Number of CPU threads allocated to the machine. CpuThreadCount int64 `json:"cpuThreadCount,omitempty"` // Firmware: Firmware (BIOS/efi). Firmware string `json:"firmware,omitempty"` diff --git a/mybusinessbusinessinformation/v1/mybusinessbusinessinformation-api.json b/mybusinessbusinessinformation/v1/mybusinessbusinessinformation-api.json index 86d7442c33e..236042f6343 100644 --- a/mybusinessbusinessinformation/v1/mybusinessbusinessinformation-api.json +++ b/mybusinessbusinessinformation/v1/mybusinessbusinessinformation-api.json @@ -612,7 +612,7 @@ } } }, - "revision": "20231127", + "revision": "20241002", "rootUrl": "https://mybusinessbusinessinformation.googleapis.com/", "schemas": { "AdWordsLocationExtensions": { @@ -1696,22 +1696,22 @@ "id": "TimeOfDay", "properties": { "hours": { - "description": "Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value \"24:00:00\" for scenarios like business closing time.", + "description": "Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal to 23. An API may choose to allow the value \"24:00:00\" for scenarios like business closing time.", "format": "int32", "type": "integer" }, "minutes": { - "description": "Minutes of hour of day. Must be from 0 to 59.", + "description": "Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.", "format": "int32", "type": "integer" }, "nanos": { - "description": "Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.", + "description": "Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.", "format": "int32", "type": "integer" }, "seconds": { - "description": "Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.", + "description": "Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds.", "format": "int32", "type": "integer" } diff --git a/mybusinessbusinessinformation/v1/mybusinessbusinessinformation-gen.go b/mybusinessbusinessinformation/v1/mybusinessbusinessinformation-gen.go index 0f9fd576235..c0a57c91755 100644 --- a/mybusinessbusinessinformation/v1/mybusinessbusinessinformation-gen.go +++ b/mybusinessbusinessinformation/v1/mybusinessbusinessinformation-gen.go @@ -1825,16 +1825,19 @@ func (s StructuredServiceItem) MarshalJSON() ([]byte, error) { // significant or are specified elsewhere. An API may choose to allow leap // seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. type TimeOfDay struct { - // Hours: Hours of day in 24 hour format. Should be from 0 to 23. An API may - // choose to allow the value "24:00:00" for scenarios like business closing - // time. + // Hours: Hours of a day in 24 hour format. Must be greater than or equal to 0 + // and typically must be less than or equal to 23. An API may choose to allow + // the value "24:00:00" for scenarios like business closing time. Hours int64 `json:"hours,omitempty"` - // Minutes: Minutes of hour of day. Must be from 0 to 59. + // Minutes: Minutes of an hour. Must be greater than or equal to 0 and less + // than or equal to 59. Minutes int64 `json:"minutes,omitempty"` - // Nanos: Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. + // Nanos: Fractions of seconds, in nanoseconds. Must be greater than or equal + // to 0 and less than or equal to 999,999,999. Nanos int64 `json:"nanos,omitempty"` - // Seconds: Seconds of minutes of the time. Must normally be from 0 to 59. An - // API may allow the value 60 if it allows leap-seconds. + // Seconds: Seconds of a minute. Must be greater than or equal to 0 and + // typically must be less than or equal to 59. An API may allow the value 60 if + // it allows leap-seconds. Seconds int64 `json:"seconds,omitempty"` // ForceSendFields is a list of field names (e.g. "Hours") to unconditionally // include in API requests. By default, fields with empty or default values are diff --git a/mybusinesslodging/v1/mybusinesslodging-api.json b/mybusinesslodging/v1/mybusinesslodging-api.json index c56399deacf..604d174f9a1 100644 --- a/mybusinesslodging/v1/mybusinesslodging-api.json +++ b/mybusinesslodging/v1/mybusinesslodging-api.json @@ -194,7 +194,7 @@ } } }, - "revision": "20231029", + "revision": "20241002", "rootUrl": "https://mybusinesslodging.googleapis.com/", "schemas": { "Accessibility": { @@ -5215,22 +5215,22 @@ "id": "TimeOfDay", "properties": { "hours": { - "description": "Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value \"24:00:00\" for scenarios like business closing time.", + "description": "Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal to 23. An API may choose to allow the value \"24:00:00\" for scenarios like business closing time.", "format": "int32", "type": "integer" }, "minutes": { - "description": "Minutes of hour of day. Must be from 0 to 59.", + "description": "Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.", "format": "int32", "type": "integer" }, "nanos": { - "description": "Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.", + "description": "Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.", "format": "int32", "type": "integer" }, "seconds": { - "description": "Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.", + "description": "Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds.", "format": "int32", "type": "integer" } diff --git a/mybusinesslodging/v1/mybusinesslodging-gen.go b/mybusinesslodging/v1/mybusinesslodging-gen.go index a208902369b..3749f9b9293 100644 --- a/mybusinesslodging/v1/mybusinesslodging-gen.go +++ b/mybusinesslodging/v1/mybusinesslodging-gen.go @@ -4462,16 +4462,19 @@ func (s SustainableSourcing) MarshalJSON() ([]byte, error) { // significant or are specified elsewhere. An API may choose to allow leap // seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. type TimeOfDay struct { - // Hours: Hours of day in 24 hour format. Should be from 0 to 23. An API may - // choose to allow the value "24:00:00" for scenarios like business closing - // time. + // Hours: Hours of a day in 24 hour format. Must be greater than or equal to 0 + // and typically must be less than or equal to 23. An API may choose to allow + // the value "24:00:00" for scenarios like business closing time. Hours int64 `json:"hours,omitempty"` - // Minutes: Minutes of hour of day. Must be from 0 to 59. + // Minutes: Minutes of an hour. Must be greater than or equal to 0 and less + // than or equal to 59. Minutes int64 `json:"minutes,omitempty"` - // Nanos: Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. + // Nanos: Fractions of seconds, in nanoseconds. Must be greater than or equal + // to 0 and less than or equal to 999,999,999. Nanos int64 `json:"nanos,omitempty"` - // Seconds: Seconds of minutes of the time. Must normally be from 0 to 59. An - // API may allow the value 60 if it allows leap-seconds. + // Seconds: Seconds of a minute. Must be greater than or equal to 0 and + // typically must be less than or equal to 59. An API may allow the value 60 if + // it allows leap-seconds. Seconds int64 `json:"seconds,omitempty"` // ForceSendFields is a list of field names (e.g. "Hours") to unconditionally // include in API requests. By default, fields with empty or default values are diff --git a/run/v1/run-api.json b/run/v1/run-api.json index 1e53c343fbc..8d41641432f 100644 --- a/run/v1/run-api.json +++ b/run/v1/run-api.json @@ -2614,7 +2614,7 @@ } } }, - "revision": "20240916", + "revision": "20240927", "rootUrl": "https://run.googleapis.com/", "schemas": { "Addressable": { @@ -3801,11 +3801,13 @@ "description": "Optional. Option to specify how default logs buckets are setup.", "enum": [ "DEFAULT_LOGS_BUCKET_BEHAVIOR_UNSPECIFIED", - "REGIONAL_USER_OWNED_BUCKET" + "REGIONAL_USER_OWNED_BUCKET", + "LEGACY_BUCKET" ], "enumDescriptions": [ "Unspecified.", - "Bucket is located in user-owned project in the same region as the build. The builder service account must have access to create and write to Cloud Storage buckets in the build project." + "Bucket is located in user-owned project in the same region as the build. The builder service account must have access to create and write to Cloud Storage buckets in the build project.", + "Bucket is located in a Google-owned project and is not regionalized." ], "type": "string" }, @@ -5381,7 +5383,7 @@ "additionalProperties": { "type": "string" }, - "description": "Unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. In Cloud Run, annotations with 'run.googleapis.com/' and 'autoscaling.knative.dev' are restricted, and the accepted annotations will be different depending on the resource type. * `autoscaling.knative.dev/maxScale`: Revision. * `autoscaling.knative.dev/minScale`: Revision. * `run.googleapis.com/base-images`: Service, Revision. * `run.googleapis.com/binary-authorization-breakglass`: Service, Job, * `run.googleapis.com/binary-authorization`: Service, Job, Execution. * `run.googleapis.com/build-base-image`: Service. * `run.googleapis.com/build-enable-automatic-updates`: Service. * `run.googleapis.com/build-environment-variables`: Service. * `run.googleapis.com/build-function-target`: Service. * `run.googleapis.com/build-id`: Service. * `run.googleapis.com/build-image-uri`: Service. * `run.googleapis.com/build-name`: Service. * `run.googleapis.com/build-service-account`: Service. * `run.googleapis.com/build-source-location`: Service. * `run.googleapis.com/build-worker-pool`: Service. * `run.googleapis.com/client-name`: All resources. * `run.googleapis.com/cloudsql-instances`: Revision, Execution. * `run.googleapis.com/container-dependencies`: Revision . * `run.googleapis.com/cpu-throttling`: Revision. * `run.googleapis.com/custom-audiences`: Service. * `run.googleapis.com/default-url-disabled`: Service. * `run.googleapis.com/description`: Service. * `run.googleapis.com/encryption-key-shutdown-hours`: Revision * `run.googleapis.com/encryption-key`: Revision, Execution. * `run.googleapis.com/execution-environment`: Revision, Execution. * `run.googleapis.com/gc-traffic-tags`: Service. * `run.googleapis.com/ingress`: Service. * `run.googleapis.com/launch-stage`: Service, Job. * `run.googleapis.com/minScale`: Service (ALPHA) * `run.googleapis.com/network-interfaces`: Revision, Execution. * `run.googleapis.com/post-key-revocation-action-type`: Revision. * `run.googleapis.com/secrets`: Revision, Execution. * `run.googleapis.com/secure-session-agent`: Revision. * `run.googleapis.com/sessionAffinity`: Revision. * `run.googleapis.com/startup-cpu-boost`: Revision. * `run.googleapis.com/vpc-access-connector`: Revision, Execution. * `run.googleapis.com/vpc-access-egress`: Revision, Execution.", + "description": "Unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. In Cloud Run, annotations with 'run.googleapis.com/' and 'autoscaling.knative.dev' are restricted, and the accepted annotations will be different depending on the resource type. * `autoscaling.knative.dev/maxScale`: Revision. * `autoscaling.knative.dev/minScale`: Revision. * `run.googleapis.com/base-images`: Service, Revision. * `run.googleapis.com/binary-authorization-breakglass`: Service, Job, * `run.googleapis.com/binary-authorization`: Service, Job, Execution. * `run.googleapis.com/build-base-image`: Service. * `run.googleapis.com/build-enable-automatic-updates`: Service. * `run.googleapis.com/build-environment-variables`: Service. * `run.googleapis.com/build-function-target`: Service. * `run.googleapis.com/build-id`: Service. * `run.googleapis.com/build-image-uri`: Service. * `run.googleapis.com/build-name`: Service. * `run.googleapis.com/build-service-account`: Service. * `run.googleapis.com/build-source-location`: Service. * `run.googleapis.com/build-worker-pool`: Service. * `run.googleapis.com/client-name`: All resources. * `run.googleapis.com/cloudsql-instances`: Revision, Execution. * `run.googleapis.com/container-dependencies`: Revision . * `run.googleapis.com/cpu-throttling`: Revision. * `run.googleapis.com/custom-audiences`: Service. * `run.googleapis.com/default-url-disabled`: Service. * `run.googleapis.com/description`: Service. * `run.googleapis.com/encryption-key-shutdown-hours`: Revision * `run.googleapis.com/encryption-key`: Revision, Execution. * `run.googleapis.com/execution-environment`: Revision, Execution. * `run.googleapis.com/gc-traffic-tags`: Service. * `run.googleapis.com/ingress`: Service. * `run.googleapis.com/launch-stage`: Service, Job. * `run.googleapis.com/minScale`: Service * `run.googleapis.com/network-interfaces`: Revision, Execution. * `run.googleapis.com/post-key-revocation-action-type`: Revision. * `run.googleapis.com/secrets`: Revision, Execution. * `run.googleapis.com/secure-session-agent`: Revision. * `run.googleapis.com/sessionAffinity`: Revision. * `run.googleapis.com/startup-cpu-boost`: Revision. * `run.googleapis.com/vpc-access-connector`: Revision, Execution. * `run.googleapis.com/vpc-access-egress`: Revision, Execution.", "type": "object" }, "clusterName": { diff --git a/run/v1/run-gen.go b/run/v1/run-gen.go index 7cc2eb8b8b6..1c67fef4273 100644 --- a/run/v1/run-gen.go +++ b/run/v1/run-gen.go @@ -1965,6 +1965,8 @@ type GoogleDevtoolsCloudbuildV1BuildOptions struct { // "REGIONAL_USER_OWNED_BUCKET" - Bucket is located in user-owned project in // the same region as the build. The builder service account must have access // to create and write to Cloud Storage buckets in the build project. + // "LEGACY_BUCKET" - Bucket is located in a Google-owned project and is not + // regionalized. DefaultLogsBucketBehavior string `json:"defaultLogsBucketBehavior,omitempty"` // DiskSizeGb: Requested disk size for the VM that runs the build. Note that // this is *NOT* "disk free"; some of the space will be used by the operating @@ -3939,7 +3941,7 @@ type ObjectMeta struct { // `run.googleapis.com/execution-environment`: Revision, Execution. * // `run.googleapis.com/gc-traffic-tags`: Service. * // `run.googleapis.com/ingress`: Service. * `run.googleapis.com/launch-stage`: - // Service, Job. * `run.googleapis.com/minScale`: Service (ALPHA) * + // Service, Job. * `run.googleapis.com/minScale`: Service * // `run.googleapis.com/network-interfaces`: Revision, Execution. * // `run.googleapis.com/post-key-revocation-action-type`: Revision. * // `run.googleapis.com/secrets`: Revision, Execution. * diff --git a/run/v2/run-api.json b/run/v2/run-api.json index 15af1d61dc2..0b787b6115f 100644 --- a/run/v2/run-api.json +++ b/run/v2/run-api.json @@ -1526,7 +1526,7 @@ } } }, - "revision": "20240916", + "revision": "20240927", "rootUrl": "https://run.googleapis.com/", "schemas": { "GoogleCloudRunV2BinaryAuthorization": { @@ -3258,6 +3258,10 @@ ], "type": "string" }, + "invokerIamDisabled": { + "description": "Optional. Disables IAM permission check for run.routes.invoke for callers of this service. This setting should not be used with external ingress.", + "type": "boolean" + }, "labels": { "additionalProperties": { "type": "string" @@ -3395,7 +3399,7 @@ "id": "GoogleCloudRunV2ServiceScaling", "properties": { "minInstanceCount": { - "description": "Optional. total min instances for the service. This number of instances is divided among all revisions with specified traffic based on the percent of traffic they are receiving. (BETA)", + "description": "Optional. total min instances for the service. This number of instances is divided among all revisions with specified traffic based on the percent of traffic they are receiving.", "format": "int32", "type": "integer" }, @@ -4309,11 +4313,13 @@ "description": "Optional. Option to specify how default logs buckets are setup.", "enum": [ "DEFAULT_LOGS_BUCKET_BEHAVIOR_UNSPECIFIED", - "REGIONAL_USER_OWNED_BUCKET" + "REGIONAL_USER_OWNED_BUCKET", + "LEGACY_BUCKET" ], "enumDescriptions": [ "Unspecified.", - "Bucket is located in user-owned project in the same region as the build. The builder service account must have access to create and write to Cloud Storage buckets in the build project." + "Bucket is located in user-owned project in the same region as the build. The builder service account must have access to create and write to Cloud Storage buckets in the build project.", + "Bucket is located in a Google-owned project and is not regionalized." ], "type": "string" }, diff --git a/run/v2/run-gen.go b/run/v2/run-gen.go index d586da62475..8e8c5577205 100644 --- a/run/v2/run-gen.go +++ b/run/v2/run-gen.go @@ -2220,6 +2220,10 @@ type GoogleCloudRunV2Service struct { // Load Balancer traffic is allowed. // "INGRESS_TRAFFIC_NONE" - No ingress traffic is allowed. Ingress string `json:"ingress,omitempty"` + // InvokerIamDisabled: Optional. Disables IAM permission check for + // run.routes.invoke for callers of this service. This setting should not be + // used with external ingress. + InvokerIamDisabled bool `json:"invokerIamDisabled,omitempty"` // Labels: Optional. Unstructured key value map that can be used to organize // and categorize objects. User-provided labels are shared with Google's // billing system, so they can be used to filter, or break down billing charges @@ -2392,7 +2396,7 @@ func (s GoogleCloudRunV2ServiceMesh) MarshalJSON() ([]byte, error) { type GoogleCloudRunV2ServiceScaling struct { // MinInstanceCount: Optional. total min instances for the service. This number // of instances is divided among all revisions with specified traffic based on - // the percent of traffic they are receiving. (BETA) + // the percent of traffic they are receiving. MinInstanceCount int64 `json:"minInstanceCount,omitempty"` // ScalingMode: Optional. The scaling mode for the service. // @@ -3345,6 +3349,8 @@ type GoogleDevtoolsCloudbuildV1BuildOptions struct { // "REGIONAL_USER_OWNED_BUCKET" - Bucket is located in user-owned project in // the same region as the build. The builder service account must have access // to create and write to Cloud Storage buckets in the build project. + // "LEGACY_BUCKET" - Bucket is located in a Google-owned project and is not + // regionalized. DefaultLogsBucketBehavior string `json:"defaultLogsBucketBehavior,omitempty"` // DiskSizeGb: Requested disk size for the VM that runs the build. Note that // this is *NOT* "disk free"; some of the space will be used by the operating diff --git a/securitycenter/v1/securitycenter-api.json b/securitycenter/v1/securitycenter-api.json index 24b7fa56418..4d2ac8091a0 100644 --- a/securitycenter/v1/securitycenter-api.json +++ b/securitycenter/v1/securitycenter-api.json @@ -732,39 +732,6 @@ "resources": { "muteConfigs": { "methods": { - "create": { - "description": "Creates a mute config.", - "flatPath": "v1/folders/{foldersId}/locations/{locationsId}/muteConfigs", - "httpMethod": "POST", - "id": "securitycenter.folders.locations.muteConfigs.create", - "parameterOrder": [ - "parent" - ], - "parameters": { - "muteConfigId": { - "description": "Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less.", - "location": "query", - "type": "string" - }, - "parent": { - "description": "Required. Resource name of the new mute configs's parent. Its format is `organizations/[organization_id]`, `folders/[folder_id]`, or `projects/[project_id]`.", - "location": "path", - "pattern": "^folders/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}/muteConfigs", - "request": { - "$ref": "GoogleCloudSecuritycenterV1MuteConfig" - }, - "response": { - "$ref": "GoogleCloudSecuritycenterV1MuteConfig" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, "delete": { "description": "Deletes an existing mute config.", "flatPath": "v1/folders/{foldersId}/locations/{locationsId}/muteConfigs/{muteConfigsId}", @@ -815,42 +782,6 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, - "list": { - "description": "Lists mute configs.", - "flatPath": "v1/folders/{foldersId}/locations/{locationsId}/muteConfigs", - "httpMethod": "GET", - "id": "securitycenter.folders.locations.muteConfigs.list", - "parameterOrder": [ - "parent" - ], - "parameters": { - "pageSize": { - "description": "The maximum number of configs to return. The service may return fewer than this value. If unspecified, at most 10 configs will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "A page token, received from a previous `ListMuteConfigs` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListMuteConfigs` must match the call that provided the page token.", - "location": "query", - "type": "string" - }, - "parent": { - "description": "Required. The parent, which owns the collection of mute configs. Its format is `organizations/[organization_id]`, `folders/[folder_id]`, `projects/[project_id]`.", - "location": "path", - "pattern": "^folders/[^/]+/locations/[^/]+/muteConfigs$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}", - "response": { - "$ref": "ListMuteConfigsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, "patch": { "description": "Updates a mute config.", "flatPath": "v1/folders/{foldersId}/locations/{locationsId}/muteConfigs/{muteConfigsId}", @@ -2508,39 +2439,6 @@ "resources": { "muteConfigs": { "methods": { - "create": { - "description": "Creates a mute config.", - "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/muteConfigs", - "httpMethod": "POST", - "id": "securitycenter.organizations.locations.muteConfigs.create", - "parameterOrder": [ - "parent" - ], - "parameters": { - "muteConfigId": { - "description": "Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less.", - "location": "query", - "type": "string" - }, - "parent": { - "description": "Required. Resource name of the new mute configs's parent. Its format is `organizations/[organization_id]`, `folders/[folder_id]`, or `projects/[project_id]`.", - "location": "path", - "pattern": "^organizations/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}/muteConfigs", - "request": { - "$ref": "GoogleCloudSecuritycenterV1MuteConfig" - }, - "response": { - "$ref": "GoogleCloudSecuritycenterV1MuteConfig" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, "delete": { "description": "Deletes an existing mute config.", "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/muteConfigs/{muteConfigsId}", @@ -2591,42 +2489,6 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, - "list": { - "description": "Lists mute configs.", - "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/muteConfigs", - "httpMethod": "GET", - "id": "securitycenter.organizations.locations.muteConfigs.list", - "parameterOrder": [ - "parent" - ], - "parameters": { - "pageSize": { - "description": "The maximum number of configs to return. The service may return fewer than this value. If unspecified, at most 10 configs will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "A page token, received from a previous `ListMuteConfigs` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListMuteConfigs` must match the call that provided the page token.", - "location": "query", - "type": "string" - }, - "parent": { - "description": "Required. The parent, which owns the collection of mute configs. Its format is `organizations/[organization_id]`, `folders/[folder_id]`, `projects/[project_id]`.", - "location": "path", - "pattern": "^organizations/[^/]+/locations/[^/]+/muteConfigs$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}", - "response": { - "$ref": "ListMuteConfigsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, "patch": { "description": "Updates a mute config.", "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/muteConfigs/{muteConfigsId}", @@ -5017,39 +4879,6 @@ "resources": { "muteConfigs": { "methods": { - "create": { - "description": "Creates a mute config.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/muteConfigs", - "httpMethod": "POST", - "id": "securitycenter.projects.locations.muteConfigs.create", - "parameterOrder": [ - "parent" - ], - "parameters": { - "muteConfigId": { - "description": "Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less.", - "location": "query", - "type": "string" - }, - "parent": { - "description": "Required. Resource name of the new mute configs's parent. Its format is `organizations/[organization_id]`, `folders/[folder_id]`, or `projects/[project_id]`.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}/muteConfigs", - "request": { - "$ref": "GoogleCloudSecuritycenterV1MuteConfig" - }, - "response": { - "$ref": "GoogleCloudSecuritycenterV1MuteConfig" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, "delete": { "description": "Deletes an existing mute config.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/muteConfigs/{muteConfigsId}", @@ -5100,42 +4929,6 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, - "list": { - "description": "Lists mute configs.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/muteConfigs", - "httpMethod": "GET", - "id": "securitycenter.projects.locations.muteConfigs.list", - "parameterOrder": [ - "parent" - ], - "parameters": { - "pageSize": { - "description": "The maximum number of configs to return. The service may return fewer than this value. If unspecified, at most 10 configs will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "A page token, received from a previous `ListMuteConfigs` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListMuteConfigs` must match the call that provided the page token.", - "location": "query", - "type": "string" - }, - "parent": { - "description": "Required. The parent, which owns the collection of mute configs. Its format is `organizations/[organization_id]`, `folders/[folder_id]`, `projects/[project_id]`.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/muteConfigs$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}", - "response": { - "$ref": "ListMuteConfigsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, "patch": { "description": "Updates a mute config.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/muteConfigs/{muteConfigsId}", @@ -6084,7 +5877,7 @@ } } }, - "revision": "20240916", + "revision": "20240926", "rootUrl": "https://securitycenter.googleapis.com/", "schemas": { "Access": { @@ -6630,6 +6423,10 @@ "description": "Represents an Azure resource group.", "id": "AzureResourceGroup", "properties": { + "id": { + "description": "The ID of the Azure resource group.", + "type": "string" + }, "name": { "description": "The name of the Azure resource group. This is not a UUID.", "type": "string" @@ -6804,6 +6601,17 @@ }, "type": "object" }, + "CelPolicySpec": { + "description": "YAML-based rule that uses CEL, which supports the declaration of variables and a filtering predicate. A vulnerable resource is emitted if the evaluation is false. Given: 1) the resource types as: - resource_types: \"compute.googleapis.com/Instance\" - resource_types: \"compute.googleapis.com/Firewall\" 2) the CEL policy spec as: name: bad_instance resource_filters: - name: instance resource_type: compute.googleapis.com/Instance filter: \u003e instance.status == 'RUNNING' \u0026\u0026 'public' in instance.tags.items - name: firewall resource_type: compute.googleapis.com/Firewall filter: \u003e firewall.direction == 'INGRESS' \u0026\u0026 !firewall.disabled \u0026\u0026 firewall.allowed.exists(rule, rule.IPProtocol.upperAscii() in ['TCP', 'ALL'] \u0026\u0026 rule.ports.exists(port, network.portsInRange(port, '11-256'))) rule: match: - predicate: \u003e instance.networkInterfaces.exists(net, firewall.network == net.network) output: \u003e {'message': 'Compute instance with publicly accessible ports', 'instance': instance.name} Users are able to join resource types together using the exact format as Kubernetes Validating Admission policies.", + "id": "CelPolicySpec", + "properties": { + "spec": { + "description": "The CEL policy to evaluate to produce findings. A finding is generated when the policy validation evaluates to false.", + "type": "string" + } + }, + "type": "object" + }, "CloudArmor": { "description": "Fields related to Google Cloud Armor findings.", "id": "CloudArmor", @@ -8242,6 +8050,10 @@ "description": "Defines the properties in a custom module configuration for Security Health Analytics. Use the custom module configuration to create custom detectors that generate custom findings for resources that you specify.", "id": "GoogleCloudSecuritycenterV1CustomConfig", "properties": { + "celPolicy": { + "$ref": "CelPolicySpec", + "description": "The CEL policy spec attached to the custom module." + }, "customOutput": { "$ref": "GoogleCloudSecuritycenterV1CustomOutputSpec", "description": "Custom output properties." @@ -9324,6 +9136,10 @@ "description": "Represents an Azure resource group.", "id": "GoogleCloudSecuritycenterV2AzureResourceGroup", "properties": { + "id": { + "description": "The ID of the Azure resource group.", + "type": "string" + }, "name": { "description": "The name of the Azure resource group. This is not a UUID.", "type": "string" diff --git a/securitycenter/v1/securitycenter-gen.go b/securitycenter/v1/securitycenter-gen.go index fcca9c0250b..00acb263c07 100644 --- a/securitycenter/v1/securitycenter-gen.go +++ b/securitycenter/v1/securitycenter-gen.go @@ -1616,15 +1616,17 @@ func (s AzureMetadata) MarshalJSON() ([]byte, error) { // AzureResourceGroup: Represents an Azure resource group. type AzureResourceGroup struct { + // Id: The ID of the Azure resource group. + Id string `json:"id,omitempty"` // Name: The name of the Azure resource group. This is not a UUID. Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Name") to include in API requests + // NullFields is a list of field names (e.g. "Id") to include in API requests // with the JSON null value. By default, fields with empty values are omitted // from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. @@ -1951,6 +1953,44 @@ func (s BulkMuteFindingsRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// CelPolicySpec: YAML-based rule that uses CEL, which supports the declaration +// of variables and a filtering predicate. A vulnerable resource is emitted if +// the evaluation is false. Given: 1) the resource types as: - resource_types: +// "compute.googleapis.com/Instance" - resource_types: +// "compute.googleapis.com/Firewall" 2) the CEL policy spec as: name: +// bad_instance resource_filters: - name: instance resource_type: +// compute.googleapis.com/Instance filter: > instance.status == 'RUNNING' && +// 'public' in instance.tags.items - name: firewall resource_type: +// compute.googleapis.com/Firewall filter: > firewall.direction == 'INGRESS' && +// !firewall.disabled && firewall.allowed.exists(rule, +// rule.IPProtocol.upperAscii() in ['TCP', 'ALL'] && rule.ports.exists(port, +// network.portsInRange(port, '11-256'))) rule: match: - predicate: > +// instance.networkInterfaces.exists(net, firewall.network == net.network) +// output: > {'message': 'Compute instance with publicly accessible ports', +// 'instance': instance.name} Users are able to join resource types together +// using the exact format as Kubernetes Validating Admission policies. +type CelPolicySpec struct { + // Spec: The CEL policy to evaluate to produce findings. A finding is generated + // when the policy validation evaluates to false. + Spec string `json:"spec,omitempty"` + // ForceSendFields is a list of field names (e.g. "Spec") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Spec") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s CelPolicySpec) MarshalJSON() ([]byte, error) { + type NoMethod CelPolicySpec + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // CloudArmor: Fields related to Google Cloud Armor findings. type CloudArmor struct { // AdaptiveProtection: Information about potential Layer 7 DDoS attacks @@ -3610,6 +3650,8 @@ type GoogleCloudSecuritycenterV1BulkMuteFindingsResponse struct { // configuration to create custom detectors that generate custom findings for // resources that you specify. type GoogleCloudSecuritycenterV1CustomConfig struct { + // CelPolicy: The CEL policy spec attached to the custom module. + CelPolicy *CelPolicySpec `json:"celPolicy,omitempty"` // CustomOutput: Custom output properties. CustomOutput *GoogleCloudSecuritycenterV1CustomOutputSpec `json:"customOutput,omitempty"` // Description: Text that describes the vulnerability or misconfiguration that @@ -3637,13 +3679,13 @@ type GoogleCloudSecuritycenterV1CustomConfig struct { // "MEDIUM" - Medium severity. // "LOW" - Low severity. Severity string `json:"severity,omitempty"` - // ForceSendFields is a list of field names (e.g. "CustomOutput") to + // ForceSendFields is a list of field names (e.g. "CelPolicy") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CustomOutput") to include in API + // NullFields is a list of field names (e.g. "CelPolicy") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. @@ -4986,15 +5028,17 @@ func (s GoogleCloudSecuritycenterV2AzureMetadata) MarshalJSON() ([]byte, error) // GoogleCloudSecuritycenterV2AzureResourceGroup: Represents an Azure resource // group. type GoogleCloudSecuritycenterV2AzureResourceGroup struct { + // Id: The ID of the Azure resource group. + Id string `json:"id,omitempty"` // Name: The name of the Azure resource group. This is not a UUID. Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Name") to include in API requests + // NullFields is a list of field names (e.g. "Id") to include in API requests // with the JSON null value. By default, fields with empty values are omitted // from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. @@ -13690,120 +13734,6 @@ func (c *FoldersFindingsBulkMuteCall) Do(opts ...googleapi.CallOption) (*Operati return ret, nil } -type FoldersLocationsMuteConfigsCreateCall struct { - s *Service - parent string - googlecloudsecuritycenterv1muteconfig *GoogleCloudSecuritycenterV1MuteConfig - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Create: Creates a mute config. -// -// - parent: Resource name of the new mute configs's parent. Its format is -// `organizations/[organization_id]`, `folders/[folder_id]`, or -// `projects/[project_id]`. -func (r *FoldersLocationsMuteConfigsService) Create(parent string, googlecloudsecuritycenterv1muteconfig *GoogleCloudSecuritycenterV1MuteConfig) *FoldersLocationsMuteConfigsCreateCall { - c := &FoldersLocationsMuteConfigsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudsecuritycenterv1muteconfig = googlecloudsecuritycenterv1muteconfig - return c -} - -// MuteConfigId sets the optional parameter "muteConfigId": Required. Unique -// identifier provided by the client within the parent scope. It must consist -// of only lowercase letters, numbers, and hyphens, must start with a letter, -// must end with either a letter or a number, and must be 63 characters or -// less. -func (c *FoldersLocationsMuteConfigsCreateCall) MuteConfigId(muteConfigId string) *FoldersLocationsMuteConfigsCreateCall { - c.urlParams_.Set("muteConfigId", muteConfigId) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *FoldersLocationsMuteConfigsCreateCall) Fields(s ...googleapi.Field) *FoldersLocationsMuteConfigsCreateCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *FoldersLocationsMuteConfigsCreateCall) Context(ctx context.Context) *FoldersLocationsMuteConfigsCreateCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *FoldersLocationsMuteConfigsCreateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *FoldersLocationsMuteConfigsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudsecuritycenterv1muteconfig) - if err != nil { - return nil, err - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/muteConfigs") - 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 "securitycenter.folders.locations.muteConfigs.create" call. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudSecuritycenterV1MuteConfig.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *FoldersLocationsMuteConfigsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudSecuritycenterV1MuteConfig, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleCloudSecuritycenterV1MuteConfig{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil -} - type FoldersLocationsMuteConfigsDeleteCall struct { s *Service name string @@ -14019,103 +13949,90 @@ func (c *FoldersLocationsMuteConfigsGetCall) Do(opts ...googleapi.CallOption) (* return ret, nil } -type FoldersLocationsMuteConfigsListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type FoldersLocationsMuteConfigsPatchCall struct { + s *Service + name string + googlecloudsecuritycenterv1muteconfig *GoogleCloudSecuritycenterV1MuteConfig + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists mute configs. +// Patch: Updates a mute config. // -// - parent: The parent, which owns the collection of mute configs. Its format -// is `organizations/[organization_id]`, `folders/[folder_id]`, -// `projects/[project_id]`. -func (r *FoldersLocationsMuteConfigsService) List(parent string) *FoldersLocationsMuteConfigsListCall { - c := &FoldersLocationsMuteConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number of -// configs to return. The service may return fewer than this value. If -// unspecified, at most 10 configs will be returned. The maximum value is 1000; -// values above 1000 will be coerced to 1000. -func (c *FoldersLocationsMuteConfigsListCall) PageSize(pageSize int64) *FoldersLocationsMuteConfigsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) +// - name: This field will be ignored if provided on config creation. Format +// `organizations/{organization}/muteConfigs/{mute_config}` +// `folders/{folder}/muteConfigs/{mute_config}` +// `projects/{project}/muteConfigs/{mute_config}` +// `organizations/{organization}/locations/global/muteConfigs/{mute_config}` +// `folders/{folder}/locations/global/muteConfigs/{mute_config}` +// `projects/{project}/locations/global/muteConfigs/{mute_config}`. +func (r *FoldersLocationsMuteConfigsService) Patch(name string, googlecloudsecuritycenterv1muteconfig *GoogleCloudSecuritycenterV1MuteConfig) *FoldersLocationsMuteConfigsPatchCall { + c := &FoldersLocationsMuteConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudsecuritycenterv1muteconfig = googlecloudsecuritycenterv1muteconfig return c } -// PageToken sets the optional parameter "pageToken": A page token, received -// from a previous `ListMuteConfigs` call. Provide this to retrieve the -// subsequent page. When paginating, all other parameters provided to -// `ListMuteConfigs` must match the call that provided the page token. -func (c *FoldersLocationsMuteConfigsListCall) PageToken(pageToken string) *FoldersLocationsMuteConfigsListCall { - c.urlParams_.Set("pageToken", pageToken) +// UpdateMask sets the optional parameter "updateMask": The list of fields to +// be updated. If empty all mutable fields will be updated. +func (c *FoldersLocationsMuteConfigsPatchCall) UpdateMask(updateMask string) *FoldersLocationsMuteConfigsPatchCall { + 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 // details. -func (c *FoldersLocationsMuteConfigsListCall) Fields(s ...googleapi.Field) *FoldersLocationsMuteConfigsListCall { +func (c *FoldersLocationsMuteConfigsPatchCall) Fields(s ...googleapi.Field) *FoldersLocationsMuteConfigsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets an 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. -func (c *FoldersLocationsMuteConfigsListCall) IfNoneMatch(entityTag string) *FoldersLocationsMuteConfigsListCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *FoldersLocationsMuteConfigsListCall) Context(ctx context.Context) *FoldersLocationsMuteConfigsListCall { +func (c *FoldersLocationsMuteConfigsPatchCall) Context(ctx context.Context) *FoldersLocationsMuteConfigsPatchCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *FoldersLocationsMuteConfigsListCall) Header() http.Header { +func (c *FoldersLocationsMuteConfigsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *FoldersLocationsMuteConfigsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } +func (c *FoldersLocationsMuteConfigsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudsecuritycenterv1muteconfig) + if err != nil { + return nil, err + } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", 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 "securitycenter.folders.locations.muteConfigs.list" call. +// Do executes the "securitycenter.folders.locations.muteConfigs.patch" call. // Any non-2xx status code is an error. Response headers are in either -// *ListMuteConfigsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use +// *GoogleCloudSecuritycenterV1MuteConfig.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was because // http.StatusNotModified was returned. -func (c *FoldersLocationsMuteConfigsListCall) Do(opts ...googleapi.CallOption) (*ListMuteConfigsResponse, error) { +func (c *FoldersLocationsMuteConfigsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudSecuritycenterV1MuteConfig, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -14134,7 +14051,7 @@ func (c *FoldersLocationsMuteConfigsListCall) Do(opts ...googleapi.CallOption) ( if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ListMuteConfigsResponse{ + ret := &GoogleCloudSecuritycenterV1MuteConfig{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -14147,159 +14064,23 @@ func (c *FoldersLocationsMuteConfigsListCall) Do(opts ...googleapi.CallOption) ( return ret, nil } -// 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 *FoldersLocationsMuteConfigsListCall) Pages(ctx context.Context, f func(*ListMuteConfigsResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) - 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 FoldersLocationsMuteConfigsPatchCall struct { +type FoldersMuteConfigsCreateCall struct { s *Service - name string + parent string googlecloudsecuritycenterv1muteconfig *GoogleCloudSecuritycenterV1MuteConfig urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } -// Patch: Updates a mute config. +// Create: Creates a mute config. // -// - name: This field will be ignored if provided on config creation. Format -// `organizations/{organization}/muteConfigs/{mute_config}` -// `folders/{folder}/muteConfigs/{mute_config}` -// `projects/{project}/muteConfigs/{mute_config}` -// `organizations/{organization}/locations/global/muteConfigs/{mute_config}` -// `folders/{folder}/locations/global/muteConfigs/{mute_config}` -// `projects/{project}/locations/global/muteConfigs/{mute_config}`. -func (r *FoldersLocationsMuteConfigsService) Patch(name string, googlecloudsecuritycenterv1muteconfig *GoogleCloudSecuritycenterV1MuteConfig) *FoldersLocationsMuteConfigsPatchCall { - c := &FoldersLocationsMuteConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.googlecloudsecuritycenterv1muteconfig = googlecloudsecuritycenterv1muteconfig - return c -} - -// UpdateMask sets the optional parameter "updateMask": The list of fields to -// be updated. If empty all mutable fields will be updated. -func (c *FoldersLocationsMuteConfigsPatchCall) UpdateMask(updateMask string) *FoldersLocationsMuteConfigsPatchCall { - 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 -// details. -func (c *FoldersLocationsMuteConfigsPatchCall) Fields(s ...googleapi.Field) *FoldersLocationsMuteConfigsPatchCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *FoldersLocationsMuteConfigsPatchCall) Context(ctx context.Context) *FoldersLocationsMuteConfigsPatchCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *FoldersLocationsMuteConfigsPatchCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *FoldersLocationsMuteConfigsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudsecuritycenterv1muteconfig) - if err != nil { - return nil, err - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "securitycenter.folders.locations.muteConfigs.patch" call. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudSecuritycenterV1MuteConfig.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *FoldersLocationsMuteConfigsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudSecuritycenterV1MuteConfig, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleCloudSecuritycenterV1MuteConfig{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil -} - -type FoldersMuteConfigsCreateCall struct { - s *Service - parent string - googlecloudsecuritycenterv1muteconfig *GoogleCloudSecuritycenterV1MuteConfig - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Create: Creates a mute config. -// -// - parent: Resource name of the new mute configs's parent. Its format is -// `organizations/[organization_id]`, `folders/[folder_id]`, or -// `projects/[project_id]`. -func (r *FoldersMuteConfigsService) Create(parent string, googlecloudsecuritycenterv1muteconfig *GoogleCloudSecuritycenterV1MuteConfig) *FoldersMuteConfigsCreateCall { - c := &FoldersMuteConfigsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent +// - parent: Resource name of the new mute configs's parent. Its format is +// `organizations/[organization_id]`, `folders/[folder_id]`, or +// `projects/[project_id]`. +func (r *FoldersMuteConfigsService) Create(parent string, googlecloudsecuritycenterv1muteconfig *GoogleCloudSecuritycenterV1MuteConfig) *FoldersMuteConfigsCreateCall { + c := &FoldersMuteConfigsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent c.googlecloudsecuritycenterv1muteconfig = googlecloudsecuritycenterv1muteconfig return c } @@ -20312,120 +20093,6 @@ func (c *OrganizationsFindingsBulkMuteCall) Do(opts ...googleapi.CallOption) (*O return ret, nil } -type OrganizationsLocationsMuteConfigsCreateCall struct { - s *Service - parent string - googlecloudsecuritycenterv1muteconfig *GoogleCloudSecuritycenterV1MuteConfig - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Create: Creates a mute config. -// -// - parent: Resource name of the new mute configs's parent. Its format is -// `organizations/[organization_id]`, `folders/[folder_id]`, or -// `projects/[project_id]`. -func (r *OrganizationsLocationsMuteConfigsService) Create(parent string, googlecloudsecuritycenterv1muteconfig *GoogleCloudSecuritycenterV1MuteConfig) *OrganizationsLocationsMuteConfigsCreateCall { - c := &OrganizationsLocationsMuteConfigsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudsecuritycenterv1muteconfig = googlecloudsecuritycenterv1muteconfig - return c -} - -// MuteConfigId sets the optional parameter "muteConfigId": Required. Unique -// identifier provided by the client within the parent scope. It must consist -// of only lowercase letters, numbers, and hyphens, must start with a letter, -// must end with either a letter or a number, and must be 63 characters or -// less. -func (c *OrganizationsLocationsMuteConfigsCreateCall) MuteConfigId(muteConfigId string) *OrganizationsLocationsMuteConfigsCreateCall { - c.urlParams_.Set("muteConfigId", muteConfigId) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *OrganizationsLocationsMuteConfigsCreateCall) Fields(s ...googleapi.Field) *OrganizationsLocationsMuteConfigsCreateCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *OrganizationsLocationsMuteConfigsCreateCall) Context(ctx context.Context) *OrganizationsLocationsMuteConfigsCreateCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *OrganizationsLocationsMuteConfigsCreateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *OrganizationsLocationsMuteConfigsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudsecuritycenterv1muteconfig) - if err != nil { - return nil, err - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/muteConfigs") - 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 "securitycenter.organizations.locations.muteConfigs.create" call. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudSecuritycenterV1MuteConfig.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *OrganizationsLocationsMuteConfigsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudSecuritycenterV1MuteConfig, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleCloudSecuritycenterV1MuteConfig{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil -} - type OrganizationsLocationsMuteConfigsDeleteCall struct { s *Service name string @@ -20621,173 +20288,24 @@ func (c *OrganizationsLocationsMuteConfigsGetCall) Do(opts ...googleapi.CallOpti Header: res.Header, }) } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleCloudSecuritycenterV1MuteConfig{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil -} - -type OrganizationsLocationsMuteConfigsListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Lists mute configs. -// -// - parent: The parent, which owns the collection of mute configs. Its format -// is `organizations/[organization_id]`, `folders/[folder_id]`, -// `projects/[project_id]`. -func (r *OrganizationsLocationsMuteConfigsService) List(parent string) *OrganizationsLocationsMuteConfigsListCall { - c := &OrganizationsLocationsMuteConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number of -// configs to return. The service may return fewer than this value. If -// unspecified, at most 10 configs will be returned. The maximum value is 1000; -// values above 1000 will be coerced to 1000. -func (c *OrganizationsLocationsMuteConfigsListCall) PageSize(pageSize int64) *OrganizationsLocationsMuteConfigsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": A page token, received -// from a previous `ListMuteConfigs` call. Provide this to retrieve the -// subsequent page. When paginating, all other parameters provided to -// `ListMuteConfigs` must match the call that provided the page token. -func (c *OrganizationsLocationsMuteConfigsListCall) PageToken(pageToken string) *OrganizationsLocationsMuteConfigsListCall { - 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 -// details. -func (c *OrganizationsLocationsMuteConfigsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsMuteConfigsListCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets an 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. -func (c *OrganizationsLocationsMuteConfigsListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsMuteConfigsListCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *OrganizationsLocationsMuteConfigsListCall) Context(ctx context.Context) *OrganizationsLocationsMuteConfigsListCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *OrganizationsLocationsMuteConfigsListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *OrganizationsLocationsMuteConfigsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "securitycenter.organizations.locations.muteConfigs.list" call. -// Any non-2xx status code is an error. Response headers are in either -// *ListMuteConfigsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *OrganizationsLocationsMuteConfigsListCall) Do(opts ...googleapi.CallOption) (*ListMuteConfigsResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &ListMuteConfigsResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil -} - -// 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 *OrganizationsLocationsMuteConfigsListCall) Pages(ctx context.Context, f func(*ListMuteConfigsResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) - 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) + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudSecuritycenterV1MuteConfig{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err } + return ret, nil } type OrganizationsLocationsMuteConfigsPatchCall struct { @@ -29592,120 +29110,6 @@ func (c *ProjectsFindingsBulkMuteCall) Do(opts ...googleapi.CallOption) (*Operat return ret, nil } -type ProjectsLocationsMuteConfigsCreateCall struct { - s *Service - parent string - googlecloudsecuritycenterv1muteconfig *GoogleCloudSecuritycenterV1MuteConfig - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Create: Creates a mute config. -// -// - parent: Resource name of the new mute configs's parent. Its format is -// `organizations/[organization_id]`, `folders/[folder_id]`, or -// `projects/[project_id]`. -func (r *ProjectsLocationsMuteConfigsService) Create(parent string, googlecloudsecuritycenterv1muteconfig *GoogleCloudSecuritycenterV1MuteConfig) *ProjectsLocationsMuteConfigsCreateCall { - c := &ProjectsLocationsMuteConfigsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudsecuritycenterv1muteconfig = googlecloudsecuritycenterv1muteconfig - return c -} - -// MuteConfigId sets the optional parameter "muteConfigId": Required. Unique -// identifier provided by the client within the parent scope. It must consist -// of only lowercase letters, numbers, and hyphens, must start with a letter, -// must end with either a letter or a number, and must be 63 characters or -// less. -func (c *ProjectsLocationsMuteConfigsCreateCall) MuteConfigId(muteConfigId string) *ProjectsLocationsMuteConfigsCreateCall { - c.urlParams_.Set("muteConfigId", muteConfigId) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *ProjectsLocationsMuteConfigsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsMuteConfigsCreateCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsMuteConfigsCreateCall) Context(ctx context.Context) *ProjectsLocationsMuteConfigsCreateCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *ProjectsLocationsMuteConfigsCreateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsMuteConfigsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudsecuritycenterv1muteconfig) - if err != nil { - return nil, err - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/muteConfigs") - 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 "securitycenter.projects.locations.muteConfigs.create" call. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudSecuritycenterV1MuteConfig.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *ProjectsLocationsMuteConfigsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudSecuritycenterV1MuteConfig, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleCloudSecuritycenterV1MuteConfig{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil -} - type ProjectsLocationsMuteConfigsDeleteCall struct { s *Service name string @@ -29921,155 +29325,6 @@ func (c *ProjectsLocationsMuteConfigsGetCall) Do(opts ...googleapi.CallOption) ( return ret, nil } -type ProjectsLocationsMuteConfigsListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Lists mute configs. -// -// - parent: The parent, which owns the collection of mute configs. Its format -// is `organizations/[organization_id]`, `folders/[folder_id]`, -// `projects/[project_id]`. -func (r *ProjectsLocationsMuteConfigsService) List(parent string) *ProjectsLocationsMuteConfigsListCall { - c := &ProjectsLocationsMuteConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number of -// configs to return. The service may return fewer than this value. If -// unspecified, at most 10 configs will be returned. The maximum value is 1000; -// values above 1000 will be coerced to 1000. -func (c *ProjectsLocationsMuteConfigsListCall) PageSize(pageSize int64) *ProjectsLocationsMuteConfigsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": A page token, received -// from a previous `ListMuteConfigs` call. Provide this to retrieve the -// subsequent page. When paginating, all other parameters provided to -// `ListMuteConfigs` must match the call that provided the page token. -func (c *ProjectsLocationsMuteConfigsListCall) PageToken(pageToken string) *ProjectsLocationsMuteConfigsListCall { - 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 -// details. -func (c *ProjectsLocationsMuteConfigsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsMuteConfigsListCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets an 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. -func (c *ProjectsLocationsMuteConfigsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsMuteConfigsListCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsMuteConfigsListCall) Context(ctx context.Context) *ProjectsLocationsMuteConfigsListCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *ProjectsLocationsMuteConfigsListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsMuteConfigsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "securitycenter.projects.locations.muteConfigs.list" call. -// Any non-2xx status code is an error. Response headers are in either -// *ListMuteConfigsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *ProjectsLocationsMuteConfigsListCall) Do(opts ...googleapi.CallOption) (*ListMuteConfigsResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &ListMuteConfigsResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil -} - -// 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 *ProjectsLocationsMuteConfigsListCall) Pages(ctx context.Context, f func(*ListMuteConfigsResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) - 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 ProjectsLocationsMuteConfigsPatchCall struct { s *Service name string diff --git a/securitycenter/v1beta1/securitycenter-api.json b/securitycenter/v1beta1/securitycenter-api.json index ad0462c878a..875d06e6f0b 100644 --- a/securitycenter/v1beta1/securitycenter-api.json +++ b/securitycenter/v1beta1/securitycenter-api.json @@ -903,7 +903,7 @@ } } }, - "revision": "20240916", + "revision": "20240926", "rootUrl": "https://securitycenter.googleapis.com/", "schemas": { "Access": { @@ -1313,6 +1313,10 @@ "description": "Represents an Azure resource group.", "id": "AzureResourceGroup", "properties": { + "id": { + "description": "The ID of the Azure resource group.", + "type": "string" + }, "name": { "description": "The name of the Azure resource group. This is not a UUID.", "type": "string" @@ -1435,6 +1439,17 @@ "properties": {}, "type": "object" }, + "CelPolicySpec": { + "description": "YAML-based rule that uses CEL, which supports the declaration of variables and a filtering predicate. A vulnerable resource is emitted if the evaluation is false. Given: 1) the resource types as: - resource_types: \"compute.googleapis.com/Instance\" - resource_types: \"compute.googleapis.com/Firewall\" 2) the CEL policy spec as: name: bad_instance resource_filters: - name: instance resource_type: compute.googleapis.com/Instance filter: \u003e instance.status == 'RUNNING' \u0026\u0026 'public' in instance.tags.items - name: firewall resource_type: compute.googleapis.com/Firewall filter: \u003e firewall.direction == 'INGRESS' \u0026\u0026 !firewall.disabled \u0026\u0026 firewall.allowed.exists(rule, rule.IPProtocol.upperAscii() in ['TCP', 'ALL'] \u0026\u0026 rule.ports.exists(port, network.portsInRange(port, '11-256'))) rule: match: - predicate: \u003e instance.networkInterfaces.exists(net, firewall.network == net.network) output: \u003e {'message': 'Compute instance with publicly accessible ports', 'instance': instance.name} Users are able to join resource types together using the exact format as Kubernetes Validating Admission policies.", + "id": "CelPolicySpec", + "properties": { + "spec": { + "description": "The CEL policy to evaluate to produce findings. A finding is generated when the policy validation evaluates to false.", + "type": "string" + } + }, + "type": "object" + }, "CloudArmor": { "description": "Fields related to Google Cloud Armor findings.", "id": "CloudArmor", @@ -2708,6 +2723,10 @@ "description": "Defines the properties in a custom module configuration for Security Health Analytics. Use the custom module configuration to create custom detectors that generate custom findings for resources that you specify.", "id": "GoogleCloudSecuritycenterV1CustomConfig", "properties": { + "celPolicy": { + "$ref": "CelPolicySpec", + "description": "The CEL policy spec attached to the custom module." + }, "customOutput": { "$ref": "GoogleCloudSecuritycenterV1CustomOutputSpec", "description": "Custom output properties." @@ -3871,6 +3890,10 @@ "description": "Represents an Azure resource group.", "id": "GoogleCloudSecuritycenterV2AzureResourceGroup", "properties": { + "id": { + "description": "The ID of the Azure resource group.", + "type": "string" + }, "name": { "description": "The name of the Azure resource group. This is not a UUID.", "type": "string" diff --git a/securitycenter/v1beta1/securitycenter-gen.go b/securitycenter/v1beta1/securitycenter-gen.go index afb7134b686..3c8d386f1a2 100644 --- a/securitycenter/v1beta1/securitycenter-gen.go +++ b/securitycenter/v1beta1/securitycenter-gen.go @@ -803,15 +803,17 @@ func (s AzureMetadata) MarshalJSON() ([]byte, error) { // AzureResourceGroup: Represents an Azure resource group. type AzureResourceGroup struct { + // Id: The ID of the Azure resource group. + Id string `json:"id,omitempty"` // Name: The name of the Azure resource group. This is not a UUID. Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Name") to include in API requests + // NullFields is a list of field names (e.g. "Id") to include in API requests // with the JSON null value. By default, fields with empty values are omitted // from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. @@ -1047,6 +1049,44 @@ func (s Binding) MarshalJSON() ([]byte, error) { type CancelOperationRequest struct { } +// CelPolicySpec: YAML-based rule that uses CEL, which supports the declaration +// of variables and a filtering predicate. A vulnerable resource is emitted if +// the evaluation is false. Given: 1) the resource types as: - resource_types: +// "compute.googleapis.com/Instance" - resource_types: +// "compute.googleapis.com/Firewall" 2) the CEL policy spec as: name: +// bad_instance resource_filters: - name: instance resource_type: +// compute.googleapis.com/Instance filter: > instance.status == 'RUNNING' && +// 'public' in instance.tags.items - name: firewall resource_type: +// compute.googleapis.com/Firewall filter: > firewall.direction == 'INGRESS' && +// !firewall.disabled && firewall.allowed.exists(rule, +// rule.IPProtocol.upperAscii() in ['TCP', 'ALL'] && rule.ports.exists(port, +// network.portsInRange(port, '11-256'))) rule: match: - predicate: > +// instance.networkInterfaces.exists(net, firewall.network == net.network) +// output: > {'message': 'Compute instance with publicly accessible ports', +// 'instance': instance.name} Users are able to join resource types together +// using the exact format as Kubernetes Validating Admission policies. +type CelPolicySpec struct { + // Spec: The CEL policy to evaluate to produce findings. A finding is generated + // when the policy validation evaluates to false. + Spec string `json:"spec,omitempty"` + // ForceSendFields is a list of field names (e.g. "Spec") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Spec") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s CelPolicySpec) MarshalJSON() ([]byte, error) { + type NoMethod CelPolicySpec + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // CloudArmor: Fields related to Google Cloud Armor findings. type CloudArmor struct { // AdaptiveProtection: Information about potential Layer 7 DDoS attacks @@ -2497,6 +2537,8 @@ type GoogleCloudSecuritycenterV1BulkMuteFindingsResponse struct { // configuration to create custom detectors that generate custom findings for // resources that you specify. type GoogleCloudSecuritycenterV1CustomConfig struct { + // CelPolicy: The CEL policy spec attached to the custom module. + CelPolicy *CelPolicySpec `json:"celPolicy,omitempty"` // CustomOutput: Custom output properties. CustomOutput *GoogleCloudSecuritycenterV1CustomOutputSpec `json:"customOutput,omitempty"` // Description: Text that describes the vulnerability or misconfiguration that @@ -2524,13 +2566,13 @@ type GoogleCloudSecuritycenterV1CustomConfig struct { // "MEDIUM" - Medium severity. // "LOW" - Low severity. Severity string `json:"severity,omitempty"` - // ForceSendFields is a list of field names (e.g. "CustomOutput") to + // ForceSendFields is a list of field names (e.g. "CelPolicy") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CustomOutput") to include in API + // NullFields is a list of field names (e.g. "CelPolicy") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. @@ -3976,15 +4018,17 @@ func (s GoogleCloudSecuritycenterV2AzureMetadata) MarshalJSON() ([]byte, error) // GoogleCloudSecuritycenterV2AzureResourceGroup: Represents an Azure resource // group. type GoogleCloudSecuritycenterV2AzureResourceGroup struct { + // Id: The ID of the Azure resource group. + Id string `json:"id,omitempty"` // Name: The name of the Azure resource group. This is not a UUID. Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Name") to include in API requests + // NullFields is a list of field names (e.g. "Id") to include in API requests // with the JSON null value. By default, fields with empty values are omitted // from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. diff --git a/securitycenter/v1beta2/securitycenter-api.json b/securitycenter/v1beta2/securitycenter-api.json index 931046c2ed2..64e666c1e61 100644 --- a/securitycenter/v1beta2/securitycenter-api.json +++ b/securitycenter/v1beta2/securitycenter-api.json @@ -1993,7 +1993,7 @@ } } }, - "revision": "20240926", + "revision": "20240927", "rootUrl": "https://securitycenter.googleapis.com/", "schemas": { "Access": { @@ -2291,10 +2291,6 @@ "description": "Represents an Azure resource group.", "id": "AzureResourceGroup", "properties": { - "id": { - "description": "The ID of the Azure resource group.", - "type": "string" - }, "name": { "description": "The name of the Azure resource group. This is not a UUID.", "type": "string" @@ -2389,17 +2385,6 @@ }, "type": "object" }, - "CelPolicySpec": { - "description": "YAML-based rule that uses CEL, which supports the declaration of variables and a filtering predicate. A vulnerable resource is emitted if the evaluation is false. Given: 1) the resource types as: - resource_types: \"compute.googleapis.com/Instance\" - resource_types: \"compute.googleapis.com/Firewall\" 2) the CEL policy spec as: name: bad_instance resource_filters: - name: instance resource_type: compute.googleapis.com/Instance filter: \u003e instance.status == 'RUNNING' \u0026\u0026 'public' in instance.tags.items - name: firewall resource_type: compute.googleapis.com/Firewall filter: \u003e firewall.direction == 'INGRESS' \u0026\u0026 !firewall.disabled \u0026\u0026 firewall.allowed.exists(rule, rule.IPProtocol.upperAscii() in ['TCP', 'ALL'] \u0026\u0026 rule.ports.exists(port, network.portsInRange(port, '11-256'))) rule: match: - predicate: \u003e instance.networkInterfaces.exists(net, firewall.network == net.network) output: \u003e {'message': 'Compute instance with publicly accessible ports', 'instance': instance.name} Users are able to join resource types together using the exact format as Kubernetes Validating Admission policies.", - "id": "CelPolicySpec", - "properties": { - "spec": { - "description": "The CEL policy to evaluate to produce findings. A finding is generated when the policy validation evaluates to false.", - "type": "string" - } - }, - "type": "object" - }, "CloudArmor": { "description": "Fields related to Google Cloud Armor findings.", "id": "CloudArmor", @@ -3797,10 +3782,6 @@ "description": "Defines the properties in a custom module configuration for Security Health Analytics. Use the custom module configuration to create custom detectors that generate custom findings for resources that you specify.", "id": "GoogleCloudSecuritycenterV1CustomConfig", "properties": { - "celPolicy": { - "$ref": "CelPolicySpec", - "description": "The CEL policy spec attached to the custom module." - }, "customOutput": { "$ref": "GoogleCloudSecuritycenterV1CustomOutputSpec", "description": "Custom output properties." @@ -4883,10 +4864,6 @@ "description": "Represents an Azure resource group.", "id": "GoogleCloudSecuritycenterV2AzureResourceGroup", "properties": { - "id": { - "description": "The ID of the Azure resource group.", - "type": "string" - }, "name": { "description": "The name of the Azure resource group. This is not a UUID.", "type": "string" diff --git a/securitycenter/v1beta2/securitycenter-gen.go b/securitycenter/v1beta2/securitycenter-gen.go index 87a1973bff8..896ce252e27 100644 --- a/securitycenter/v1beta2/securitycenter-gen.go +++ b/securitycenter/v1beta2/securitycenter-gen.go @@ -877,17 +877,15 @@ func (s AzureMetadata) MarshalJSON() ([]byte, error) { // AzureResourceGroup: Represents an Azure resource group. type AzureResourceGroup struct { - // Id: The ID of the Azure resource group. - Id string `json:"id,omitempty"` // Name: The name of the Azure resource group. This is not a UUID. Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Id") to include in API requests + // NullFields is a list of field names (e.g. "Name") to include in API requests // with the JSON null value. By default, fields with empty values are omitted // from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. @@ -1020,44 +1018,6 @@ func (s BackupDisasterRecovery) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CelPolicySpec: YAML-based rule that uses CEL, which supports the declaration -// of variables and a filtering predicate. A vulnerable resource is emitted if -// the evaluation is false. Given: 1) the resource types as: - resource_types: -// "compute.googleapis.com/Instance" - resource_types: -// "compute.googleapis.com/Firewall" 2) the CEL policy spec as: name: -// bad_instance resource_filters: - name: instance resource_type: -// compute.googleapis.com/Instance filter: > instance.status == 'RUNNING' && -// 'public' in instance.tags.items - name: firewall resource_type: -// compute.googleapis.com/Firewall filter: > firewall.direction == 'INGRESS' && -// !firewall.disabled && firewall.allowed.exists(rule, -// rule.IPProtocol.upperAscii() in ['TCP', 'ALL'] && rule.ports.exists(port, -// network.portsInRange(port, '11-256'))) rule: match: - predicate: > -// instance.networkInterfaces.exists(net, firewall.network == net.network) -// output: > {'message': 'Compute instance with publicly accessible ports', -// 'instance': instance.name} Users are able to join resource types together -// using the exact format as Kubernetes Validating Admission policies. -type CelPolicySpec struct { - // Spec: The CEL policy to evaluate to produce findings. A finding is generated - // when the policy validation evaluates to false. - Spec string `json:"spec,omitempty"` - // ForceSendFields is a list of field names (e.g. "Spec") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Spec") to include in API requests - // with the JSON null value. By default, fields with empty values are omitted - // from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s CelPolicySpec) MarshalJSON() ([]byte, error) { - type NoMethod CelPolicySpec - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // CloudArmor: Fields related to Google Cloud Armor findings. type CloudArmor struct { // AdaptiveProtection: Information about potential Layer 7 DDoS attacks @@ -2606,8 +2566,6 @@ type GoogleCloudSecuritycenterV1BulkMuteFindingsResponse struct { // configuration to create custom detectors that generate custom findings for // resources that you specify. type GoogleCloudSecuritycenterV1CustomConfig struct { - // CelPolicy: The CEL policy spec attached to the custom module. - CelPolicy *CelPolicySpec `json:"celPolicy,omitempty"` // CustomOutput: Custom output properties. CustomOutput *GoogleCloudSecuritycenterV1CustomOutputSpec `json:"customOutput,omitempty"` // Description: Text that describes the vulnerability or misconfiguration that @@ -2635,13 +2593,13 @@ type GoogleCloudSecuritycenterV1CustomConfig struct { // "MEDIUM" - Medium severity. // "LOW" - Low severity. Severity string `json:"severity,omitempty"` - // ForceSendFields is a list of field names (e.g. "CelPolicy") to + // ForceSendFields is a list of field names (e.g. "CustomOutput") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CelPolicy") to include in API + // NullFields is a list of field names (e.g. "CustomOutput") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. @@ -3969,17 +3927,15 @@ func (s GoogleCloudSecuritycenterV2AzureMetadata) MarshalJSON() ([]byte, error) // GoogleCloudSecuritycenterV2AzureResourceGroup: Represents an Azure resource // group. type GoogleCloudSecuritycenterV2AzureResourceGroup struct { - // Id: The ID of the Azure resource group. - Id string `json:"id,omitempty"` // Name: The name of the Azure resource group. This is not a UUID. Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Id") to include in API requests + // NullFields is a list of field names (e.g. "Name") to include in API requests // with the JSON null value. By default, fields with empty values are omitted // from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. diff --git a/workflows/v1/workflows-api.json b/workflows/v1/workflows-api.json index 0c7cf710d47..3aa94f7cc1f 100644 --- a/workflows/v1/workflows-api.json +++ b/workflows/v1/workflows-api.json @@ -485,7 +485,7 @@ } } }, - "revision": "20240814", + "revision": "20240925", "rootUrl": "https://workflows.googleapis.com/", "schemas": { "Empty": { @@ -722,7 +722,7 @@ "type": "object" }, "Workflow": { - "description": "LINT.IfChange Workflow program to be executed by Workflows.", + "description": "Workflow program to be executed by Workflows.", "id": "Workflow", "properties": { "allKmsKeys": { diff --git a/workflows/v1/workflows-gen.go b/workflows/v1/workflows-gen.go index a49eb3a4ff6..66e0a78d1cf 100644 --- a/workflows/v1/workflows-gen.go +++ b/workflows/v1/workflows-gen.go @@ -501,7 +501,7 @@ func (s Status) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Workflow: LINT.IfChange Workflow program to be executed by Workflows. +// Workflow: Workflow program to be executed by Workflows. type Workflow struct { // AllKmsKeys: Output only. A list of all KMS crypto keys used to encrypt or // decrypt the data associated with the workflow.