diff --git a/accessapproval/v1/accessapproval-api.json b/accessapproval/v1/accessapproval-api.json index c5322fb98df..4c3d87d5284 100644 --- a/accessapproval/v1/accessapproval-api.json +++ b/accessapproval/v1/accessapproval-api.json @@ -913,7 +913,7 @@ } } }, - "revision": "20230505", + "revision": "20230915", "rootUrl": "https://accessapproval.googleapis.com/", "schemas": { "AccessApprovalServiceAccount": { @@ -972,6 +972,10 @@ }, "type": "array" }, + "notificationPubsubTopic": { + "description": "Optional. A pubsub topic to which notifications relating to approval requests should be sent.", + "type": "string" + }, "preferNoBroadApprovalRequests": { "description": "This preference is communicated to Google personnel when sending an approval request but can be overridden if necessary.", "type": "boolean" diff --git a/accessapproval/v1/accessapproval-gen.go b/accessapproval/v1/accessapproval-gen.go index e7a01a49840..1d907f6cf82 100644 --- a/accessapproval/v1/accessapproval-gen.go +++ b/accessapproval/v1/accessapproval-gen.go @@ -319,6 +319,10 @@ type AccessApprovalSettings struct { // allowed. NotificationEmails []string `json:"notificationEmails,omitempty"` + // NotificationPubsubTopic: Optional. A pubsub topic to which + // notifications relating to approval requests should be sent. + NotificationPubsubTopic string `json:"notificationPubsubTopic,omitempty"` + // PreferNoBroadApprovalRequests: This preference is communicated to // Google personnel when sending an approval request but can be // overridden if necessary. diff --git a/aiplatform/v1/aiplatform-api.json b/aiplatform/v1/aiplatform-api.json index 5121ca3fb86..89d4cd10ae6 100644 --- a/aiplatform/v1/aiplatform-api.json +++ b/aiplatform/v1/aiplatform-api.json @@ -8469,6 +8469,397 @@ } } }, + "notebookRuntimeTemplates": { + "methods": { + "create": { + "description": "Creates a NotebookRuntimeTemplate.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/notebookRuntimeTemplates", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.notebookRuntimeTemplates.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "notebookRuntimeTemplateId": { + "description": "Optional. User specified ID for the notebook runtime template.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The resource name of the Location to create the NotebookRuntimeTemplate. Format: `projects/{project}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/notebookRuntimeTemplates", + "request": { + "$ref": "GoogleCloudAiplatformV1NotebookRuntimeTemplate" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a NotebookRuntimeTemplate.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/notebookRuntimeTemplates/{notebookRuntimeTemplatesId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.notebookRuntimeTemplates.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the NotebookRuntimeTemplate resource to be deleted. Format: `projects/{project}/locations/{location}/notebookRuntimeTemplates/{notebook_runtime_template}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets a NotebookRuntimeTemplate.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/notebookRuntimeTemplates/{notebookRuntimeTemplatesId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.notebookRuntimeTemplates.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the NotebookRuntimeTemplate resource. Format: `projects/{project}/locations/{location}/notebookRuntimeTemplates/{notebook_runtime_template}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudAiplatformV1NotebookRuntimeTemplate" + }, + "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}/notebookRuntimeTemplates/{notebookRuntimeTemplatesId}:getIamPolicy", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.notebookRuntimeTemplates.getIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "options.requestedPolicyVersion": { + "description": "Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + "format": "int32", + "location": "query", + "type": "integer" + }, + "resource": { + "description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:getIamPolicy", + "response": { + "$ref": "GoogleIamV1Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists NotebookRuntimeTemplates in a Location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/notebookRuntimeTemplates", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.notebookRuntimeTemplates.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `notebookRuntimeTemplate` supports = and !=. `notebookRuntimeTemplate` represents the NotebookRuntimeTemplate ID, i.e. the last segment of the NotebookRuntimeTemplate's resource name. * `display_name` supports = and != * `labels` supports general map functions that is: * `labels.key=value` - key:value equality * `labels.key:* or labels:key - key existence * A key including a space must be quoted. `labels.\"a key\"`. Some examples: * `notebookRuntimeTemplate=notebookRuntimeTemplate123` * `displayName=\"myDisplayName\"` * `labels.myKey=\"myValue\"`", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending. Supported fields: * `display_name` * `create_time` * `update_time` Example: `display_name, create_time desc`.", + "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. Typically obtained via ListNotebookRuntimeTemplatesResponse.next_page_token of the previous NotebookService.ListNotebookRuntimeTemplates call.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The resource name of the Location from which to list the NotebookRuntimeTemplates. Format: `projects/{project}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "readMask": { + "description": "Optional. Mask specifying which fields to read.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/notebookRuntimeTemplates", + "response": { + "$ref": "GoogleCloudAiplatformV1ListNotebookRuntimeTemplatesResponse" + }, + "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}/notebookRuntimeTemplates/{notebookRuntimeTemplatesId}:setIamPolicy", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.notebookRuntimeTemplates.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/[^/]+/notebookRuntimeTemplates/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:setIamPolicy", + "request": { + "$ref": "GoogleIamV1SetIamPolicyRequest" + }, + "response": { + "$ref": "GoogleIamV1Policy" + }, + "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}/notebookRuntimeTemplates/{notebookRuntimeTemplatesId}:testIamPermissions", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.notebookRuntimeTemplates.testIamPermissions", + "parameterOrder": [ + "resource" + ], + "parameters": { + "permissions": { + "description": "The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).", + "location": "query", + "repeated": true, + "type": "string" + }, + "resource": { + "description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:testIamPermissions", + "response": { + "$ref": "GoogleIamV1TestIamPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "notebookRuntimes": { + "methods": { + "assign": { + "description": "Assigns a NotebookRuntime to a user for a particular Notebook file. This method will either returns an existing assignment or generates a new one.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/notebookRuntimes:assign", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.notebookRuntimes.assign", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The resource name of the Location to get the NotebookRuntime assignment. Format: `projects/{project}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/notebookRuntimes:assign", + "request": { + "$ref": "GoogleCloudAiplatformV1AssignNotebookRuntimeRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a NotebookRuntime.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/notebookRuntimes/{notebookRuntimesId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.notebookRuntimes.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the NotebookRuntime resource to be deleted. Instead of checking whether the name is in valid NotebookRuntime resource name format, directly throw NotFound exception if there is no such NotebookRuntime in spanner.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/notebookRuntimes/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets a NotebookRuntime.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/notebookRuntimes/{notebookRuntimesId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.notebookRuntimes.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the NotebookRuntime resource. Instead of checking whether the name is in valid NotebookRuntime resource name format, directly throw NotFound exception if there is no such NotebookRuntime in spanner.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/notebookRuntimes/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudAiplatformV1NotebookRuntime" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists NotebookRuntimes in a Location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/notebookRuntimes", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.notebookRuntimes.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `notebookRuntime` supports = and !=. `notebookRuntime` represents the NotebookRuntime ID, i.e. the last segment of the NotebookRuntime's resource name. * `displayName` supports = and != and regex. * `notebookRuntimeTemplate` supports = and !=. `notebookRuntimeTemplate` represents the NotebookRuntimeTemplate ID, i.e. the last segment of the NotebookRuntimeTemplate's resource name. * `healthState` supports = and !=. healthState enum: [HEALTHY, UNHEALTHY, HEALTH_STATE_UNSPECIFIED]. * `runtimeState` supports = and !=. runtimeState enum: [RUNTIME_STATE_UNSPECIFIED, RUNNING, BEING_STARTED, BEING_STOPPED, STOPPED, BEING_UPGRADED]. * `runtimeUser` supports = and !=. * API version is UI only: `uiState` supports = and !=. uiState enum: [UI_RESOURCE_STATE_UNSPECIFIED, UI_RESOURCE_STATE_BEING_CREATED, UI_RESOURCE_STATE_ACTIVE, UI_RESOURCE_STATE_BEING_DELETED, UI_RESOURCE_STATE_CREATION_FAILED]. Some examples: * `notebookRuntime=\"notebookRuntime123\"` * `displayName=\"myDisplayName\"` and `displayName=~\"myDisplayNameRegex\"` * `notebookRuntimeTemplate=\"notebookRuntimeTemplate321\"` * `healthState=HEALTHY` * `runtimeState=RUNNING` * `runtimeUser=\"test@google.com\"` * `uiState=UI_RESOURCE_STATE_BEING_DELETED`", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending. Supported fields: * `display_name` * `create_time` * `update_time` Example: `display_name, create_time desc`.", + "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. Typically obtained via ListNotebookRuntimesResponse.next_page_token of the previous NotebookService.ListNotebookRuntimes call.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The resource name of the Location from which to list the NotebookRuntimes. Format: `projects/{project}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "readMask": { + "description": "Optional. Mask specifying which fields to read.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/notebookRuntimes", + "response": { + "$ref": "GoogleCloudAiplatformV1ListNotebookRuntimesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "start": { + "description": "Starts a NotebookRuntime.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/notebookRuntimes/{notebookRuntimesId}:start", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.notebookRuntimes.start", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the NotebookRuntime resource to be started. Instead of checking whether the name is in valid NotebookRuntime resource name format, directly throw NotFound exception if there is no such NotebookRuntime in spanner.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/notebookRuntimes/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:start", + "request": { + "$ref": "GoogleCloudAiplatformV1StartNotebookRuntimeRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "operations": { "methods": { "cancel": { @@ -8667,7 +9058,7 @@ "type": "string" }, "pipelineJobId": { - "description": "The ID to use for the PipelineJob, which will become the final component of the PipelineJob name. If not provided, an ID will be automatically generated. This value should be less than 128 characters, and valid characters are /a-z-/.", + "description": "The ID to use for the PipelineJob, which will become the final component of the PipelineJob name. If not provided, an ID will be automatically generated. This value should be less than 128 characters, and valid characters are `/a-z-/`.", "location": "query", "type": "string" } @@ -10696,7 +11087,7 @@ "type": "string" }, "tensorboardExperimentId": { - "description": "Required. The ID to use for the Tensorboard experiment, which becomes the final component of the Tensorboard experiment's resource name. This value should be 1-128 characters, and valid characters are /a-z-/.", + "description": "Required. The ID to use for the Tensorboard experiment, which becomes the final component of the Tensorboard experiment's resource name. This value should be 1-128 characters, and valid characters are `/a-z-/`.", "location": "query", "type": "string" } @@ -11078,7 +11469,7 @@ "type": "string" }, "tensorboardRunId": { - "description": "Required. The ID to use for the Tensorboard run, which becomes the final component of the Tensorboard run's resource name. This value should be 1-128 characters, and valid characters are /a-z-/.", + "description": "Required. The ID to use for the Tensorboard run, which becomes the final component of the Tensorboard run's resource name. This value should be 1-128 characters, and valid characters are `/a-z-/`.", "location": "query", "type": "string" } @@ -12442,7 +12833,7 @@ } } }, - "revision": "20230908", + "revision": "20230914", "rootUrl": "https://aiplatform.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -12732,6 +13123,40 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1AssignNotebookRuntimeOperationMetadata": { + "description": "Metadata information for NotebookService.AssignNotebookRuntime.", + "id": "GoogleCloudAiplatformV1AssignNotebookRuntimeOperationMetadata", + "properties": { + "genericMetadata": { + "$ref": "GoogleCloudAiplatformV1GenericOperationMetadata", + "description": "The operation generic information." + }, + "progressMessage": { + "description": "A human-readable message that shows the intermediate progress details of NotebookRuntime.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1AssignNotebookRuntimeRequest": { + "description": "Request message for NotebookService.AssignNotebookRuntime.", + "id": "GoogleCloudAiplatformV1AssignNotebookRuntimeRequest", + "properties": { + "notebookRuntime": { + "$ref": "GoogleCloudAiplatformV1NotebookRuntime", + "description": "Required. Provide runtime specific information (e.g. runtime owner, notebook id) used for NotebookRuntime assignment." + }, + "notebookRuntimeId": { + "description": "Optional. User specified ID for the notebook runtime.", + "type": "string" + }, + "notebookRuntimeTemplate": { + "description": "Required. The resource name of the NotebookRuntimeTemplate based on which a NotebookRuntime will be assigned (reuse or create a new one).", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1Attribution": { "description": "Attribution that explains a particular prediction output.", "id": "GoogleCloudAiplatformV1Attribution", @@ -13879,6 +14304,17 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1CreateNotebookRuntimeTemplateOperationMetadata": { + "description": "Metadata information for NotebookService.CreateNotebookRuntimeTemplate.", + "id": "GoogleCloudAiplatformV1CreateNotebookRuntimeTemplateOperationMetadata", + "properties": { + "genericMetadata": { + "$ref": "GoogleCloudAiplatformV1GenericOperationMetadata", + "description": "The operation generic information." + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1CreatePipelineJobRequest": { "description": "Request message for PipelineService.CreatePipelineJob.", "id": "GoogleCloudAiplatformV1CreatePipelineJobRequest", @@ -13892,7 +14328,7 @@ "description": "Required. The PipelineJob to create." }, "pipelineJobId": { - "description": "The ID to use for the PipelineJob, which will become the final component of the PipelineJob name. If not provided, an ID will be automatically generated. This value should be less than 128 characters, and valid characters are /a-z-/.", + "description": "The ID to use for the PipelineJob, which will become the final component of the PipelineJob name. If not provided, an ID will be automatically generated. This value should be less than 128 characters, and valid characters are `/a-z-/`.", "type": "string" } }, @@ -13933,7 +14369,7 @@ "description": "Required. The TensorboardRun to create." }, "tensorboardRunId": { - "description": "Required. The ID to use for the Tensorboard run, which becomes the final component of the Tensorboard run's resource name. This value should be 1-128 characters, and valid characters are /a-z-/.", + "description": "Required. The ID to use for the Tensorboard run, which becomes the final component of the Tensorboard run's resource name. This value should be 1-128 characters, and valid characters are `/a-z-/`.", "type": "string" } }, @@ -14694,7 +15130,7 @@ "readOnly": true }, "reservedIpRanges": { - "description": "Optional. A list of reserved ip ranges under the VPC network that can be used for this DeployedIndex. If set, we will deploy the index within the provided ip ranges. Otherwise, the index might be deployed to any ip ranges under the provided VPC network. The value should be the name of the address (https://cloud.google.com/compute/docs/reference/rest/v1/addresses) Example: 'vertex-ai-ip-range'.", + "description": "Optional. A list of reserved ip ranges under the VPC network that can be used for this DeployedIndex. If set, we will deploy the index within the provided ip ranges. Otherwise, the index might be deployed to any ip ranges under the provided VPC network. The value should be the name of the address (https://cloud.google.com/compute/docs/reference/rest/v1/addresses) Example: ['vertex-ai-ip-range']. For more information about subnets and network IP ranges, please see https://cloud.google.com/vpc/docs/subnets#manually_created_subnet_ip_ranges.", "items": { "type": "string" }, @@ -14785,7 +15221,7 @@ "description": "Explanation configuration for this DeployedModel. When deploying a Model using EndpointService.DeployModel, this value overrides the value of Model.explanation_spec. All fields of explanation_spec are optional in the request. If a field of explanation_spec is not populated, the value of the same field of Model.explanation_spec is inherited. If the corresponding Model.explanation_spec is not populated, all fields of the explanation_spec will be used for the explanation configuration." }, "id": { - "description": "Immutable. The ID of the DeployedModel. If not provided upon deployment, Vertex AI will generate a value for this ID. This value should be 1-10 characters, and valid characters are /[0-9]/.", + "description": "Immutable. The ID of the DeployedModel. If not provided upon deployment, Vertex AI will generate a value for this ID. This value should be 1-10 characters, and valid characters are `/[0-9]/`.", "type": "string" }, "model": { @@ -17952,6 +18388,42 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1ListNotebookRuntimeTemplatesResponse": { + "description": "Response message for NotebookService.ListNotebookRuntimeTemplates.", + "id": "GoogleCloudAiplatformV1ListNotebookRuntimeTemplatesResponse", + "properties": { + "nextPageToken": { + "description": "A token to retrieve next page of results. Pass to ListNotebookRuntimeTemplatesRequest.page_token to obtain that page.", + "type": "string" + }, + "notebookRuntimeTemplates": { + "description": "List of NotebookRuntimeTemplates in the requested page.", + "items": { + "$ref": "GoogleCloudAiplatformV1NotebookRuntimeTemplate" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1ListNotebookRuntimesResponse": { + "description": "Response message for NotebookService.ListNotebookRuntimes.", + "id": "GoogleCloudAiplatformV1ListNotebookRuntimesResponse", + "properties": { + "nextPageToken": { + "description": "A token to retrieve next page of results. Pass to ListNotebookRuntimesRequest.page_token to obtain that page.", + "type": "string" + }, + "notebookRuntimes": { + "description": "List of NotebookRuntimes in the requested page.", + "items": { + "$ref": "GoogleCloudAiplatformV1NotebookRuntime" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1ListOptimalTrialsRequest": { "description": "Request message for VizierService.ListOptimalTrials.", "id": "GoogleCloudAiplatformV1ListOptimalTrialsRequest", @@ -20150,6 +20622,25 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1NetworkSpec": { + "description": "Network spec.", + "id": "GoogleCloudAiplatformV1NetworkSpec", + "properties": { + "enableInternetAccess": { + "description": "Whether to enable public internet access. Default false.", + "type": "boolean" + }, + "network": { + "description": "The full name of the Google Compute Engine [network](https://cloud.google.com//compute/docs/networks-and-firewalls#networks)", + "type": "string" + }, + "subnetwork": { + "description": "The name of the subnet that this instance is in. Format: `projects/{project_id_or_number}/regions/{region}/subnetworks/{subnetwork_id}`", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1NfsMount": { "description": "Represents a mount configuration for Network File System (NFS) to mount.", "id": "GoogleCloudAiplatformV1NfsMount", @@ -20169,6 +20660,226 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1NotebookEucConfig": { + "description": "The euc configuration of NotebookRuntimeTemplate.", + "id": "GoogleCloudAiplatformV1NotebookEucConfig", + "properties": { + "bypassActasCheck": { + "description": "Output only. Whether ActAs check is bypassed for service account attached to the VM. If false, we need ActAs check for the default Compute Engine Service account. When a Runtime is created, a VM is allocated using Default Compute Engine Service Account. Any user requesting to use this Runtime requires Service Account User (ActAs) permission over this SA. If true, Runtime owner is using EUC and does not require the above permission as VM no longer use default Compute Engine SA, but a P4SA.", + "readOnly": true, + "type": "boolean" + }, + "eucDisabled": { + "description": "Input only. Whether EUC is disabled in this NotebookRuntimeTemplate. In proto3, the default value of a boolean is false. In this way, by default EUC will be enabled for NotebookRuntimeTemplate.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1NotebookIdleShutdownConfig": { + "description": "The idle shutdown configuration of NotebookRuntimeTemplate, which contains the idle_timeout as required field.", + "id": "GoogleCloudAiplatformV1NotebookIdleShutdownConfig", + "properties": { + "idleShutdownDisabled": { + "description": "Whether Idle Shutdown is disabled in this NotebookRuntimeTemplate.", + "type": "boolean" + }, + "idleTimeout": { + "description": "Required. Duration is accurate to the second. In Notebook, Idle Timeout is accurate to minute so the range of idle_timeout (second) is: 10 * 60 ~ 1440 * 60.", + "format": "google-duration", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1NotebookRuntime": { + "description": "A runtime is a virtual machine allocated to a particular user for a particular Notebook file on temporary basis with lifetime limited to 24 hours.", + "id": "GoogleCloudAiplatformV1NotebookRuntime", + "properties": { + "createTime": { + "description": "Output only. Timestamp when this NotebookRuntime was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "description": { + "description": "The description of the NotebookRuntime.", + "type": "string" + }, + "displayName": { + "description": "Required. The display name of the NotebookRuntime. The name can be up to 128 characters long and can consist of any UTF-8 characters.", + "type": "string" + }, + "expirationTime": { + "description": "Output only. Timestamp when this NotebookRuntime will be expired: 1. System Predefined NotebookRuntime: 24 hours after creation. After expiration, system predifined runtime will be deleted. 2. User created NotebookRuntime: 6 months after last upgrade. After expiration, user created runtime will be stopped and allowed for upgrade.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "healthState": { + "description": "Output only. The health state of the NotebookRuntime.", + "enum": [ + "HEALTH_STATE_UNSPECIFIED", + "HEALTHY", + "UNHEALTHY" + ], + "enumDescriptions": [ + "Unspecified health state.", + "NotebookRuntime is in healthy state. Applies to ACTIVE state.", + "NotebookRuntime is in unhealthy state. Applies to ACTIVE state." + ], + "readOnly": true, + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "The labels with user-defined metadata to organize your NotebookRuntime. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. No more than 64 user labels can be associated with one Dataset (System labels are excluded). See https://goo.gl/xmQnxf for more information and examples of labels. System reserved label keys are prefixed with \"aiplatform.googleapis.com/\" and are immutable. Following system labels exist for NotebookRuntime: * \"aiplatform.googleapis.com/notebook_runtime_gce_instance_id\": output only, its value is the Compute Engine instance id. * \"aiplatform.googleapis.com/colab_enterprise_entry_service\": its value is either \"BigQuery\" or \"Vertex\"; if absent, it should be \"Vertex\". This is to describe the entry service, either BigQuery or Vertex.", + "type": "object" + }, + "name": { + "description": "Output only. The resource name of the NotebookRuntime.", + "readOnly": true, + "type": "string" + }, + "notebookRuntimeTemplateRef": { + "$ref": "GoogleCloudAiplatformV1NotebookRuntimeTemplateRef", + "description": "Output only. The pointer to NotebookRuntimeTemplate this NotebookRuntime is created from.", + "readOnly": true + }, + "proxyUri": { + "description": "Output only. The proxy endpoint used to access the NotebookRuntime.", + "readOnly": true, + "type": "string" + }, + "runtimeState": { + "description": "Output only. The runtime (instance) state of the NotebookRuntime.", + "enum": [ + "RUNTIME_STATE_UNSPECIFIED", + "RUNNING", + "BEING_STARTED", + "BEING_STOPPED", + "STOPPED", + "BEING_UPGRADED" + ], + "enumDescriptions": [ + "Unspecified runtime state.", + "NotebookRuntime is in running state.", + "NotebookRuntime is in starting state.", + "NotebookRuntime is in stopping state.", + "NotebookRuntime is in stopped state.", + "NotebookRuntime is in upgrading state. It is in the middle of upgrading process." + ], + "readOnly": true, + "type": "string" + }, + "runtimeUser": { + "description": "Required. The user email of the NotebookRuntime.", + "type": "string" + }, + "serviceAccount": { + "description": "Output only. The service account that the NotebookRuntime workload runs as.", + "readOnly": true, + "type": "string" + }, + "updateTime": { + "description": "Output only. Timestamp when this NotebookRuntime was most recently updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "version": { + "description": "Output only. The VM os image version of NotebookRuntime.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1NotebookRuntimeTemplate": { + "description": "A template that specifies runtime configurations such as machine type, runtime version, network configurations, etc. Multiple runtimes can be created from a runtime template.", + "id": "GoogleCloudAiplatformV1NotebookRuntimeTemplate", + "properties": { + "createTime": { + "description": "Output only. Timestamp when this NotebookRuntimeTemplate was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "dataPersistentDiskSpec": { + "$ref": "GoogleCloudAiplatformV1PersistentDiskSpec", + "description": "Optional. The specification of persistent disk attached to the runtime as data disk storage." + }, + "description": { + "description": "The description of the NotebookRuntimeTemplate.", + "type": "string" + }, + "displayName": { + "description": "Required. The display name of the NotebookRuntimeTemplate. The name can be up to 128 characters long and can consist of any UTF-8 characters.", + "type": "string" + }, + "etag": { + "description": "Used to perform consistent read-modify-write updates. If not set, a blind \"overwrite\" update happens.", + "type": "string" + }, + "eucConfig": { + "$ref": "GoogleCloudAiplatformV1NotebookEucConfig", + "description": "EUC configuration of the NotebookRuntimeTemplate." + }, + "idleShutdownConfig": { + "$ref": "GoogleCloudAiplatformV1NotebookIdleShutdownConfig", + "description": "The idle shutdown configuration of NotebookRuntimeTemplate. This config will only be set when idle shutdown is enabled." + }, + "isDefault": { + "description": "Output only. The default template to use if not specified.", + "readOnly": true, + "type": "boolean" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "The labels with user-defined metadata to organize the NotebookRuntimeTemplates. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels.", + "type": "object" + }, + "machineSpec": { + "$ref": "GoogleCloudAiplatformV1MachineSpec", + "description": "Optional. Immutable. The specification of a single machine for the template." + }, + "name": { + "description": "Output only. The resource name of the NotebookRuntimeTemplate.", + "readOnly": true, + "type": "string" + }, + "networkSpec": { + "$ref": "GoogleCloudAiplatformV1NetworkSpec", + "description": "Optional. Network spec." + }, + "serviceAccount": { + "description": "The service account that the runtime workload runs as. You can use any service account within the same project, but you must have the service account user permission to use the instance. 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" + }, + "updateTime": { + "description": "Output only. Timestamp when this NotebookRuntimeTemplate was most recently updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1NotebookRuntimeTemplateRef": { + "description": "Points to a NotebookRuntimeTemplateRef.", + "id": "GoogleCloudAiplatformV1NotebookRuntimeTemplateRef", + "properties": { + "notebookRuntimeTemplate": { + "description": "Immutable. A resource name of the NotebookRuntimeTemplate.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1PauseModelDeploymentMonitoringJobRequest": { "description": "Request message for JobService.PauseModelDeploymentMonitoringJob.", "id": "GoogleCloudAiplatformV1PauseModelDeploymentMonitoringJobRequest", @@ -20181,6 +20892,22 @@ "properties": {}, "type": "object" }, + "GoogleCloudAiplatformV1PersistentDiskSpec": { + "description": "Represents the spec of persistent disk options.", + "id": "GoogleCloudAiplatformV1PersistentDiskSpec", + "properties": { + "diskSizeGb": { + "description": "Size in GB of the disk (default is 100GB).", + "format": "int64", + "type": "string" + }, + "diskType": { + "description": "Type of the disk (default is \"pd-standard\"). Valid values: \"pd-ssd\" (Persistent Disk Solid State Drive) \"pd-standard\" (Persistent Disk Hard Disk Drive) \"pd-balanced\" (Balanced Persistent Disk) \"pd-extreme\" (Extreme Persistent Disk)", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1PipelineJob": { "description": "An instance of a machine learning PipelineJob.", "id": "GoogleCloudAiplatformV1PipelineJob", @@ -25651,6 +26378,27 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1StartNotebookRuntimeOperationMetadata": { + "description": "Metadata information for NotebookService.StartNotebookRuntime.", + "id": "GoogleCloudAiplatformV1StartNotebookRuntimeOperationMetadata", + "properties": { + "genericMetadata": { + "$ref": "GoogleCloudAiplatformV1GenericOperationMetadata", + "description": "The operation generic information." + }, + "progressMessage": { + "description": "A human-readable message that shows the intermediate progress details of NotebookRuntime.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1StartNotebookRuntimeRequest": { + "description": "Request message for NotebookService.StartNotebookRuntime.", + "id": "GoogleCloudAiplatformV1StartNotebookRuntimeRequest", + "properties": {}, + "type": "object" + }, "GoogleCloudAiplatformV1StopTrialRequest": { "description": "Request message for VizierService.StopTrial.", "id": "GoogleCloudAiplatformV1StopTrialRequest", diff --git a/aiplatform/v1/aiplatform-gen.go b/aiplatform/v1/aiplatform-gen.go index fa76b8772b9..a0533e4d55b 100644 --- a/aiplatform/v1/aiplatform-gen.go +++ b/aiplatform/v1/aiplatform-gen.go @@ -193,6 +193,8 @@ func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { rs.ModelDeploymentMonitoringJobs = NewProjectsLocationsModelDeploymentMonitoringJobsService(s) rs.Models = NewProjectsLocationsModelsService(s) rs.NasJobs = NewProjectsLocationsNasJobsService(s) + rs.NotebookRuntimeTemplates = NewProjectsLocationsNotebookRuntimeTemplatesService(s) + rs.NotebookRuntimes = NewProjectsLocationsNotebookRuntimesService(s) rs.Operations = NewProjectsLocationsOperationsService(s) rs.PipelineJobs = NewProjectsLocationsPipelineJobsService(s) rs.Publishers = NewProjectsLocationsPublishersService(s) @@ -237,6 +239,10 @@ type ProjectsLocationsService struct { NasJobs *ProjectsLocationsNasJobsService + NotebookRuntimeTemplates *ProjectsLocationsNotebookRuntimeTemplatesService + + NotebookRuntimes *ProjectsLocationsNotebookRuntimesService + Operations *ProjectsLocationsOperationsService PipelineJobs *ProjectsLocationsPipelineJobsService @@ -773,6 +779,24 @@ type ProjectsLocationsNasJobsNasTrialDetailsService struct { s *Service } +func NewProjectsLocationsNotebookRuntimeTemplatesService(s *Service) *ProjectsLocationsNotebookRuntimeTemplatesService { + rs := &ProjectsLocationsNotebookRuntimeTemplatesService{s: s} + return rs +} + +type ProjectsLocationsNotebookRuntimeTemplatesService struct { + s *Service +} + +func NewProjectsLocationsNotebookRuntimesService(s *Service) *ProjectsLocationsNotebookRuntimesService { + rs := &ProjectsLocationsNotebookRuntimesService{s: s} + return rs +} + +type ProjectsLocationsNotebookRuntimesService struct { + s *Service +} + func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService { rs := &ProjectsLocationsOperationsService{s: s} return rs @@ -1518,6 +1542,80 @@ func (s *GoogleCloudAiplatformV1Artifact) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1AssignNotebookRuntimeOperationMetadata: +// Metadata information for NotebookService.AssignNotebookRuntime. +type GoogleCloudAiplatformV1AssignNotebookRuntimeOperationMetadata struct { + // GenericMetadata: The operation generic information. + GenericMetadata *GoogleCloudAiplatformV1GenericOperationMetadata `json:"genericMetadata,omitempty"` + + // ProgressMessage: A human-readable message that shows the intermediate + // progress details of NotebookRuntime. + ProgressMessage string `json:"progressMessage,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GenericMetadata") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "GenericMetadata") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1AssignNotebookRuntimeOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1AssignNotebookRuntimeOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1AssignNotebookRuntimeRequest: Request message +// for NotebookService.AssignNotebookRuntime. +type GoogleCloudAiplatformV1AssignNotebookRuntimeRequest struct { + // NotebookRuntime: Required. Provide runtime specific information (e.g. + // runtime owner, notebook id) used for NotebookRuntime assignment. + NotebookRuntime *GoogleCloudAiplatformV1NotebookRuntime `json:"notebookRuntime,omitempty"` + + // NotebookRuntimeId: Optional. User specified ID for the notebook + // runtime. + NotebookRuntimeId string `json:"notebookRuntimeId,omitempty"` + + // NotebookRuntimeTemplate: Required. The resource name of the + // NotebookRuntimeTemplate based on which a NotebookRuntime will be + // assigned (reuse or create a new one). + NotebookRuntimeTemplate string `json:"notebookRuntimeTemplate,omitempty"` + + // ForceSendFields is a list of field names (e.g. "NotebookRuntime") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NotebookRuntime") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1AssignNotebookRuntimeRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1AssignNotebookRuntimeRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1Attribution: Attribution that explains a // particular prediction output. type GoogleCloudAiplatformV1Attribution struct { @@ -3869,6 +3967,39 @@ func (s *GoogleCloudAiplatformV1CreateMetadataStoreOperationMetadata) MarshalJSO return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1CreateNotebookRuntimeTemplateOperationMetadata: +// +// Metadata information for +// +// NotebookService.CreateNotebookRuntimeTemplate. +type GoogleCloudAiplatformV1CreateNotebookRuntimeTemplateOperationMetadata struct { + // GenericMetadata: The operation generic information. + GenericMetadata *GoogleCloudAiplatformV1GenericOperationMetadata `json:"genericMetadata,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GenericMetadata") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "GenericMetadata") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1CreateNotebookRuntimeTemplateOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1CreateNotebookRuntimeTemplateOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1CreatePipelineJobRequest: Request message for // PipelineService.CreatePipelineJob. type GoogleCloudAiplatformV1CreatePipelineJobRequest struct { @@ -3882,7 +4013,7 @@ type GoogleCloudAiplatformV1CreatePipelineJobRequest struct { // PipelineJobId: The ID to use for the PipelineJob, which will become // the final component of the PipelineJob name. If not provided, an ID // will be automatically generated. This value should be less than 128 - // characters, and valid characters are /a-z-/. + // characters, and valid characters are `/a-z-/`. PipelineJobId string `json:"pipelineJobId,omitempty"` // ForceSendFields is a list of field names (e.g. "Parent") to @@ -3983,7 +4114,7 @@ type GoogleCloudAiplatformV1CreateTensorboardRunRequest struct { // TensorboardRunId: Required. The ID to use for the Tensorboard run, // which becomes the final component of the Tensorboard run's resource // name. This value should be 1-128 characters, and valid characters are - // /a-z-/. + // `/a-z-/`. TensorboardRunId string `json:"tensorboardRunId,omitempty"` // ForceSendFields is a list of field names (e.g. "Parent") to @@ -5357,7 +5488,9 @@ type GoogleCloudAiplatformV1DeployedIndex struct { // might be deployed to any ip ranges under the provided VPC network. // The value should be the name of the address // (https://cloud.google.com/compute/docs/reference/rest/v1/addresses) - // Example: 'vertex-ai-ip-range'. + // Example: ['vertex-ai-ip-range']. For more information about subnets + // and network IP ranges, please see + // https://cloud.google.com/vpc/docs/subnets#manually_created_subnet_ip_ranges. ReservedIpRanges []string `json:"reservedIpRanges,omitempty"` // ForceSendFields is a list of field names (e.g. "AutomaticResources") @@ -5536,7 +5669,7 @@ type GoogleCloudAiplatformV1DeployedModel struct { // Id: Immutable. The ID of the DeployedModel. If not provided upon // deployment, Vertex AI will generate a value for this ID. This value - // should be 1-10 characters, and valid characters are /[0-9]/. + // should be 1-10 characters, and valid characters are `/[0-9]/`. Id string `json:"id,omitempty"` // Model: Required. The resource name of the Model that this is the @@ -11488,56 +11621,16 @@ func (s *GoogleCloudAiplatformV1ListNasTrialDetailsResponse) MarshalJSON() ([]by return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudAiplatformV1ListOptimalTrialsRequest: Request message for -// VizierService.ListOptimalTrials. -type GoogleCloudAiplatformV1ListOptimalTrialsRequest struct { -} - -// GoogleCloudAiplatformV1ListOptimalTrialsResponse: Response message -// for VizierService.ListOptimalTrials. -type GoogleCloudAiplatformV1ListOptimalTrialsResponse struct { - // OptimalTrials: The pareto-optimal Trials for multiple objective Study - // or the optimal trial for single objective Study. The definition of - // pareto-optimal can be checked in wiki page. - // https://en.wikipedia.org/wiki/Pareto_efficiency - OptimalTrials []*GoogleCloudAiplatformV1Trial `json:"optimalTrials,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "OptimalTrials") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "OptimalTrials") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudAiplatformV1ListOptimalTrialsResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudAiplatformV1ListOptimalTrialsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudAiplatformV1ListPipelineJobsResponse: Response message for -// PipelineService.ListPipelineJobs -type GoogleCloudAiplatformV1ListPipelineJobsResponse struct { - // NextPageToken: A token to retrieve the next page of results. Pass to - // ListPipelineJobsRequest.page_token to obtain that page. +// GoogleCloudAiplatformV1ListNotebookRuntimeTemplatesResponse: Response +// message for NotebookService.ListNotebookRuntimeTemplates. +type GoogleCloudAiplatformV1ListNotebookRuntimeTemplatesResponse struct { + // NextPageToken: A token to retrieve next page of results. Pass to + // ListNotebookRuntimeTemplatesRequest.page_token to obtain that page. NextPageToken string `json:"nextPageToken,omitempty"` - // PipelineJobs: List of PipelineJobs in the requested page. - PipelineJobs []*GoogleCloudAiplatformV1PipelineJob `json:"pipelineJobs,omitempty"` + // NotebookRuntimeTemplates: List of NotebookRuntimeTemplates in the + // requested page. + NotebookRuntimeTemplates []*GoogleCloudAiplatformV1NotebookRuntimeTemplate `json:"notebookRuntimeTemplates,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. @@ -11560,21 +11653,21 @@ type GoogleCloudAiplatformV1ListPipelineJobsResponse struct { NullFields []string `json:"-"` } -func (s *GoogleCloudAiplatformV1ListPipelineJobsResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudAiplatformV1ListPipelineJobsResponse +func (s *GoogleCloudAiplatformV1ListNotebookRuntimeTemplatesResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1ListNotebookRuntimeTemplatesResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudAiplatformV1ListSavedQueriesResponse: Response message for -// DatasetService.ListSavedQueries. -type GoogleCloudAiplatformV1ListSavedQueriesResponse struct { - // NextPageToken: The standard List next-page token. +// GoogleCloudAiplatformV1ListNotebookRuntimesResponse: Response message +// for NotebookService.ListNotebookRuntimes. +type GoogleCloudAiplatformV1ListNotebookRuntimesResponse struct { + // NextPageToken: A token to retrieve next page of results. Pass to + // ListNotebookRuntimesRequest.page_token to obtain that page. NextPageToken string `json:"nextPageToken,omitempty"` - // SavedQueries: A list of SavedQueries that match the specified filter - // in the request. - SavedQueries []*GoogleCloudAiplatformV1SavedQuery `json:"savedQueries,omitempty"` + // NotebookRuntimes: List of NotebookRuntimes in the requested page. + NotebookRuntimes []*GoogleCloudAiplatformV1NotebookRuntime `json:"notebookRuntimes,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. @@ -11597,64 +11690,31 @@ type GoogleCloudAiplatformV1ListSavedQueriesResponse struct { NullFields []string `json:"-"` } -func (s *GoogleCloudAiplatformV1ListSavedQueriesResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudAiplatformV1ListSavedQueriesResponse +func (s *GoogleCloudAiplatformV1ListNotebookRuntimesResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1ListNotebookRuntimesResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudAiplatformV1ListSchedulesResponse: Response message for -// ScheduleService.ListSchedules -type GoogleCloudAiplatformV1ListSchedulesResponse struct { - // NextPageToken: A token to retrieve the next page of results. Pass to - // ListSchedulesRequest.page_token to obtain that page. - NextPageToken string `json:"nextPageToken,omitempty"` - - // Schedules: List of Schedules in the requested page. - Schedules []*GoogleCloudAiplatformV1Schedule `json:"schedules,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudAiplatformV1ListSchedulesResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudAiplatformV1ListSchedulesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +// GoogleCloudAiplatformV1ListOptimalTrialsRequest: Request message for +// VizierService.ListOptimalTrials. +type GoogleCloudAiplatformV1ListOptimalTrialsRequest struct { } -// GoogleCloudAiplatformV1ListSpecialistPoolsResponse: Response message -// for SpecialistPoolService.ListSpecialistPools. -type GoogleCloudAiplatformV1ListSpecialistPoolsResponse struct { - // NextPageToken: The standard List next-page token. - NextPageToken string `json:"nextPageToken,omitempty"` - - // SpecialistPools: A list of SpecialistPools that matches the specified - // filter in the request. - SpecialistPools []*GoogleCloudAiplatformV1SpecialistPool `json:"specialistPools,omitempty"` +// GoogleCloudAiplatformV1ListOptimalTrialsResponse: Response message +// for VizierService.ListOptimalTrials. +type GoogleCloudAiplatformV1ListOptimalTrialsResponse struct { + // OptimalTrials: The pareto-optimal Trials for multiple objective Study + // or the optimal trial for single objective Study. The definition of + // pareto-optimal can be checked in wiki page. + // https://en.wikipedia.org/wiki/Pareto_efficiency + OptimalTrials []*GoogleCloudAiplatformV1Trial `json:"optimalTrials,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // ForceSendFields is a list of field names (e.g. "OptimalTrials") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -11662,7 +11722,7 @@ type GoogleCloudAiplatformV1ListSpecialistPoolsResponse struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "NextPageToken") to include + // NullFields is a list of field names (e.g. "OptimalTrials") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as @@ -11671,22 +11731,21 @@ type GoogleCloudAiplatformV1ListSpecialistPoolsResponse struct { NullFields []string `json:"-"` } -func (s *GoogleCloudAiplatformV1ListSpecialistPoolsResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudAiplatformV1ListSpecialistPoolsResponse +func (s *GoogleCloudAiplatformV1ListOptimalTrialsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1ListOptimalTrialsResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudAiplatformV1ListStudiesResponse: Response message for -// VizierService.ListStudies. -type GoogleCloudAiplatformV1ListStudiesResponse struct { - // NextPageToken: Passes this token as the `page_token` field of the - // request for a subsequent call. If this field is omitted, there are no - // subsequent pages. +// GoogleCloudAiplatformV1ListPipelineJobsResponse: Response message for +// PipelineService.ListPipelineJobs +type GoogleCloudAiplatformV1ListPipelineJobsResponse struct { + // NextPageToken: A token to retrieve the next page of results. Pass to + // ListPipelineJobsRequest.page_token to obtain that page. NextPageToken string `json:"nextPageToken,omitempty"` - // Studies: The studies associated with the project. - Studies []*GoogleCloudAiplatformV1Study `json:"studies,omitempty"` + // PipelineJobs: List of PipelineJobs in the requested page. + PipelineJobs []*GoogleCloudAiplatformV1PipelineJob `json:"pipelineJobs,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. @@ -11709,23 +11768,21 @@ type GoogleCloudAiplatformV1ListStudiesResponse struct { NullFields []string `json:"-"` } -func (s *GoogleCloudAiplatformV1ListStudiesResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudAiplatformV1ListStudiesResponse +func (s *GoogleCloudAiplatformV1ListPipelineJobsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1ListPipelineJobsResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudAiplatformV1ListTensorboardExperimentsResponse: Response -// message for TensorboardService.ListTensorboardExperiments. -type GoogleCloudAiplatformV1ListTensorboardExperimentsResponse struct { - // NextPageToken: A token, which can be sent as - // ListTensorboardExperimentsRequest.page_token to retrieve the next - // page. If this field is omitted, there are no subsequent pages. +// GoogleCloudAiplatformV1ListSavedQueriesResponse: Response message for +// DatasetService.ListSavedQueries. +type GoogleCloudAiplatformV1ListSavedQueriesResponse struct { + // NextPageToken: The standard List next-page token. NextPageToken string `json:"nextPageToken,omitempty"` - // TensorboardExperiments: The TensorboardExperiments mathching the - // request. - TensorboardExperiments []*GoogleCloudAiplatformV1TensorboardExperiment `json:"tensorboardExperiments,omitempty"` + // SavedQueries: A list of SavedQueries that match the specified filter + // in the request. + SavedQueries []*GoogleCloudAiplatformV1SavedQuery `json:"savedQueries,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. @@ -11748,22 +11805,173 @@ type GoogleCloudAiplatformV1ListTensorboardExperimentsResponse struct { NullFields []string `json:"-"` } -func (s *GoogleCloudAiplatformV1ListTensorboardExperimentsResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudAiplatformV1ListTensorboardExperimentsResponse +func (s *GoogleCloudAiplatformV1ListSavedQueriesResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1ListSavedQueriesResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudAiplatformV1ListTensorboardRunsResponse: Response message -// for TensorboardService.ListTensorboardRuns. -type GoogleCloudAiplatformV1ListTensorboardRunsResponse struct { - // NextPageToken: A token, which can be sent as - // ListTensorboardRunsRequest.page_token to retrieve the next page. If - // this field is omitted, there are no subsequent pages. +// GoogleCloudAiplatformV1ListSchedulesResponse: Response message for +// ScheduleService.ListSchedules +type GoogleCloudAiplatformV1ListSchedulesResponse struct { + // NextPageToken: A token to retrieve the next page of results. Pass to + // ListSchedulesRequest.page_token to obtain that page. NextPageToken string `json:"nextPageToken,omitempty"` - // TensorboardRuns: The TensorboardRuns mathching the request. - TensorboardRuns []*GoogleCloudAiplatformV1TensorboardRun `json:"tensorboardRuns,omitempty"` + // Schedules: List of Schedules in the requested page. + Schedules []*GoogleCloudAiplatformV1Schedule `json:"schedules,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1ListSchedulesResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1ListSchedulesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1ListSpecialistPoolsResponse: Response message +// for SpecialistPoolService.ListSpecialistPools. +type GoogleCloudAiplatformV1ListSpecialistPoolsResponse struct { + // NextPageToken: The standard List next-page token. + NextPageToken string `json:"nextPageToken,omitempty"` + + // SpecialistPools: A list of SpecialistPools that matches the specified + // filter in the request. + SpecialistPools []*GoogleCloudAiplatformV1SpecialistPool `json:"specialistPools,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1ListSpecialistPoolsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1ListSpecialistPoolsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1ListStudiesResponse: Response message for +// VizierService.ListStudies. +type GoogleCloudAiplatformV1ListStudiesResponse struct { + // NextPageToken: Passes this token as the `page_token` field of the + // request for a subsequent call. If this field is omitted, there are no + // subsequent pages. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Studies: The studies associated with the project. + Studies []*GoogleCloudAiplatformV1Study `json:"studies,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1ListStudiesResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1ListStudiesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1ListTensorboardExperimentsResponse: Response +// message for TensorboardService.ListTensorboardExperiments. +type GoogleCloudAiplatformV1ListTensorboardExperimentsResponse struct { + // NextPageToken: A token, which can be sent as + // ListTensorboardExperimentsRequest.page_token to retrieve the next + // page. If this field is omitted, there are no subsequent pages. + NextPageToken string `json:"nextPageToken,omitempty"` + + // TensorboardExperiments: The TensorboardExperiments mathching the + // request. + TensorboardExperiments []*GoogleCloudAiplatformV1TensorboardExperiment `json:"tensorboardExperiments,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1ListTensorboardExperimentsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1ListTensorboardExperimentsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1ListTensorboardRunsResponse: Response message +// for TensorboardService.ListTensorboardRuns. +type GoogleCloudAiplatformV1ListTensorboardRunsResponse struct { + // NextPageToken: A token, which can be sent as + // ListTensorboardRunsRequest.page_token to retrieve the next page. If + // this field is omitted, there are no subsequent pages. + NextPageToken string `json:"nextPageToken,omitempty"` + + // TensorboardRuns: The TensorboardRuns mathching the request. + TensorboardRuns []*GoogleCloudAiplatformV1TensorboardRun `json:"tensorboardRuns,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. @@ -15440,6 +15648,46 @@ func (s *GoogleCloudAiplatformV1Neighbor) UnmarshalJSON(data []byte) error { return nil } +// GoogleCloudAiplatformV1NetworkSpec: Network spec. +type GoogleCloudAiplatformV1NetworkSpec struct { + // EnableInternetAccess: Whether to enable public internet access. + // Default false. + EnableInternetAccess bool `json:"enableInternetAccess,omitempty"` + + // Network: The full name of the Google Compute Engine network + // (https://cloud.google.com//compute/docs/networks-and-firewalls#networks) + Network string `json:"network,omitempty"` + + // Subnetwork: The name of the subnet that this instance is in. Format: + // `projects/{project_id_or_number}/regions/{region}/subnetworks/{subnetw + // ork_id}` + Subnetwork string `json:"subnetwork,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "EnableInternetAccess") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "EnableInternetAccess") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1NetworkSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1NetworkSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1NfsMount: Represents a mount configuration for // Network File System (NFS) to mount. type GoogleCloudAiplatformV1NfsMount struct { @@ -15478,128 +15726,484 @@ func (s *GoogleCloudAiplatformV1NfsMount) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudAiplatformV1PauseModelDeploymentMonitoringJobRequest: -// Request message for JobService.PauseModelDeploymentMonitoringJob. -type GoogleCloudAiplatformV1PauseModelDeploymentMonitoringJobRequest struct { -} +// GoogleCloudAiplatformV1NotebookEucConfig: The euc configuration of +// NotebookRuntimeTemplate. +type GoogleCloudAiplatformV1NotebookEucConfig struct { + // BypassActasCheck: Output only. Whether ActAs check is bypassed for + // service account attached to the VM. If false, we need ActAs check for + // the default Compute Engine Service account. When a Runtime is + // created, a VM is allocated using Default Compute Engine Service + // Account. Any user requesting to use this Runtime requires Service + // Account User (ActAs) permission over this SA. If true, Runtime owner + // is using EUC and does not require the above permission as VM no + // longer use default Compute Engine SA, but a P4SA. + BypassActasCheck bool `json:"bypassActasCheck,omitempty"` -// GoogleCloudAiplatformV1PauseScheduleRequest: Request message for -// ScheduleService.PauseSchedule. -type GoogleCloudAiplatformV1PauseScheduleRequest struct { + // EucDisabled: Input only. Whether EUC is disabled in this + // NotebookRuntimeTemplate. In proto3, the default value of a boolean is + // false. In this way, by default EUC will be enabled for + // NotebookRuntimeTemplate. + EucDisabled bool `json:"eucDisabled,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BypassActasCheck") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BypassActasCheck") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` } -// GoogleCloudAiplatformV1PipelineJob: An instance of a machine learning -// PipelineJob. -type GoogleCloudAiplatformV1PipelineJob struct { - // CreateTime: Output only. Pipeline creation time. - CreateTime string `json:"createTime,omitempty"` +func (s *GoogleCloudAiplatformV1NotebookEucConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1NotebookEucConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} - // DisplayName: The display name of the Pipeline. The name can be up to - // 128 characters long and can consist of any UTF-8 characters. - DisplayName string `json:"displayName,omitempty"` +// GoogleCloudAiplatformV1NotebookIdleShutdownConfig: The idle shutdown +// configuration of NotebookRuntimeTemplate, which contains the +// idle_timeout as required field. +type GoogleCloudAiplatformV1NotebookIdleShutdownConfig struct { + // IdleShutdownDisabled: Whether Idle Shutdown is disabled in this + // NotebookRuntimeTemplate. + IdleShutdownDisabled bool `json:"idleShutdownDisabled,omitempty"` - // EncryptionSpec: Customer-managed encryption key spec for a - // pipelineJob. If set, this PipelineJob and all of its sub-resources - // will be secured by this key. - EncryptionSpec *GoogleCloudAiplatformV1EncryptionSpec `json:"encryptionSpec,omitempty"` + // IdleTimeout: Required. Duration is accurate to the second. In + // Notebook, Idle Timeout is accurate to minute so the range of + // idle_timeout (second) is: 10 * 60 ~ 1440 * 60. + IdleTimeout string `json:"idleTimeout,omitempty"` - // EndTime: Output only. Pipeline end time. - EndTime string `json:"endTime,omitempty"` + // ForceSendFields is a list of field names (e.g. + // "IdleShutdownDisabled") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` - // Error: Output only. The error that occurred during pipeline - // execution. Only populated when the pipeline's state is FAILED or - // CANCELLED. - Error *GoogleRpcStatus `json:"error,omitempty"` + // NullFields is a list of field names (e.g. "IdleShutdownDisabled") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} - // JobDetail: Output only. The details of pipeline run. Not available in - // the list view. - JobDetail *GoogleCloudAiplatformV1PipelineJobDetail `json:"jobDetail,omitempty"` +func (s *GoogleCloudAiplatformV1NotebookIdleShutdownConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1NotebookIdleShutdownConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} - // Labels: The labels with user-defined metadata to organize - // PipelineJob. Label keys and values can be no longer than 64 - // characters (Unicode codepoints), can only contain lowercase letters, - // numeric characters, underscores and dashes. International characters - // are allowed. See https://goo.gl/xmQnxf for more information and - // examples of labels. Note there is some reserved label key for Vertex - // AI Pipelines. - `vertex-ai-pipelines-run-billing-id`, user set value - // will get overrided. - Labels map[string]string `json:"labels,omitempty"` +// GoogleCloudAiplatformV1NotebookRuntime: A runtime is a virtual +// machine allocated to a particular user for a particular Notebook file +// on temporary basis with lifetime limited to 24 hours. +type GoogleCloudAiplatformV1NotebookRuntime struct { + // CreateTime: Output only. Timestamp when this NotebookRuntime was + // created. + CreateTime string `json:"createTime,omitempty"` - // Name: Output only. The resource name of the PipelineJob. - Name string `json:"name,omitempty"` + // Description: The description of the NotebookRuntime. + Description string `json:"description,omitempty"` - // Network: The full name of the Compute Engine network - // (/compute/docs/networks-and-firewalls#networks) to which the Pipeline - // Job's workload should be peered. For example, - // `projects/12345/global/networks/myVPC`. Format - // (/compute/docs/reference/rest/v1/networks/insert) is of the form - // `projects/{project}/global/networks/{network}`. Where {project} is a - // project number, as in `12345`, and {network} is a network name. - // Private services access must already be configured for the network. - // Pipeline job will apply the network configuration to the Google Cloud - // resources being launched, if applied, such as Vertex AI Training or - // Dataflow job. If left unspecified, the workload is not peered with - // any network. - Network string `json:"network,omitempty"` + // DisplayName: Required. The display name of the NotebookRuntime. The + // name can be up to 128 characters long and can consist of any UTF-8 + // characters. + DisplayName string `json:"displayName,omitempty"` - // PipelineSpec: The spec of the pipeline. - PipelineSpec googleapi.RawMessage `json:"pipelineSpec,omitempty"` + // ExpirationTime: Output only. Timestamp when this NotebookRuntime will + // be expired: 1. System Predefined NotebookRuntime: 24 hours after + // creation. After expiration, system predifined runtime will be + // deleted. 2. User created NotebookRuntime: 6 months after last + // upgrade. After expiration, user created runtime will be stopped and + // allowed for upgrade. + ExpirationTime string `json:"expirationTime,omitempty"` - // ReservedIpRanges: A list of names for the reserved ip ranges under - // the VPC network that can be used for this Pipeline Job's workload. If - // set, we will deploy the Pipeline Job's workload within the provided - // ip ranges. Otherwise, the job will be deployed to any ip ranges under - // the provided VPC network. Example: ['vertex-ai-ip-range']. - ReservedIpRanges []string `json:"reservedIpRanges,omitempty"` + // HealthState: Output only. The health state of the NotebookRuntime. + // + // Possible values: + // "HEALTH_STATE_UNSPECIFIED" - Unspecified health state. + // "HEALTHY" - NotebookRuntime is in healthy state. Applies to ACTIVE + // state. + // "UNHEALTHY" - NotebookRuntime is in unhealthy state. Applies to + // ACTIVE state. + HealthState string `json:"healthState,omitempty"` - // RuntimeConfig: Runtime config of the pipeline. - RuntimeConfig *GoogleCloudAiplatformV1PipelineJobRuntimeConfig `json:"runtimeConfig,omitempty"` + // Labels: The labels with user-defined metadata to organize your + // NotebookRuntime. Label keys and values can be no longer than 64 + // characters (Unicode codepoints), can only contain lowercase letters, + // numeric characters, underscores and dashes. International characters + // are allowed. No more than 64 user labels can be associated with one + // Dataset (System labels are excluded). See https://goo.gl/xmQnxf for + // more information and examples of labels. System reserved label keys + // are prefixed with "aiplatform.googleapis.com/" and are immutable. + // Following system labels exist for NotebookRuntime: * + // "aiplatform.googleapis.com/notebook_runtime_gce_instance_id": output + // only, its value is the Compute Engine instance id. * + // "aiplatform.googleapis.com/colab_enterprise_entry_service": its value + // is either "BigQuery" or "Vertex"; if absent, it should be "Vertex". + // This is to describe the entry service, either BigQuery or Vertex. + Labels map[string]string `json:"labels,omitempty"` - // ScheduleName: Output only. The schedule resource name. Only returned - // if the Pipeline is created by Schedule API. - ScheduleName string `json:"scheduleName,omitempty"` + // Name: Output only. The resource name of the NotebookRuntime. + Name string `json:"name,omitempty"` - // ServiceAccount: The service account that the pipeline workload runs - // as. If not specified, the Compute Engine default service account in - // the project will be used. See - // https://cloud.google.com/compute/docs/access/service-accounts#default_service_account - // Users starting the pipeline must have the `iam.serviceAccounts.actAs` - // permission on this service account. - ServiceAccount string `json:"serviceAccount,omitempty"` + // NotebookRuntimeTemplateRef: Output only. The pointer to + // NotebookRuntimeTemplate this NotebookRuntime is created from. + NotebookRuntimeTemplateRef *GoogleCloudAiplatformV1NotebookRuntimeTemplateRef `json:"notebookRuntimeTemplateRef,omitempty"` - // StartTime: Output only. Pipeline start time. - StartTime string `json:"startTime,omitempty"` + // ProxyUri: Output only. The proxy endpoint used to access the + // NotebookRuntime. + ProxyUri string `json:"proxyUri,omitempty"` - // State: Output only. The detailed state of the job. + // RuntimeState: Output only. The runtime (instance) state of the + // NotebookRuntime. // // Possible values: - // "PIPELINE_STATE_UNSPECIFIED" - The pipeline state is unspecified. - // "PIPELINE_STATE_QUEUED" - The pipeline has been created or resumed, - // and processing has not yet begun. - // "PIPELINE_STATE_PENDING" - The service is preparing to run the - // pipeline. - // "PIPELINE_STATE_RUNNING" - The pipeline is in progress. - // "PIPELINE_STATE_SUCCEEDED" - The pipeline completed successfully. - // "PIPELINE_STATE_FAILED" - The pipeline failed. - // "PIPELINE_STATE_CANCELLING" - The pipeline is being cancelled. From - // this state, the pipeline may only go to either - // PIPELINE_STATE_SUCCEEDED, PIPELINE_STATE_FAILED or - // PIPELINE_STATE_CANCELLED. - // "PIPELINE_STATE_CANCELLED" - The pipeline has been cancelled. - // "PIPELINE_STATE_PAUSED" - The pipeline has been stopped, and can be - // resumed. - State string `json:"state,omitempty"` - - // TemplateMetadata: Output only. Pipeline template metadata. Will fill - // up fields if PipelineJob.template_uri is from supported template - // registry. - TemplateMetadata *GoogleCloudAiplatformV1PipelineTemplateMetadata `json:"templateMetadata,omitempty"` - - // TemplateUri: A template uri from where the PipelineJob.pipeline_spec, - // if empty, will be downloaded. - TemplateUri string `json:"templateUri,omitempty"` + // "RUNTIME_STATE_UNSPECIFIED" - Unspecified runtime state. + // "RUNNING" - NotebookRuntime is in running state. + // "BEING_STARTED" - NotebookRuntime is in starting state. + // "BEING_STOPPED" - NotebookRuntime is in stopping state. + // "STOPPED" - NotebookRuntime is in stopped state. + // "BEING_UPGRADED" - NotebookRuntime is in upgrading state. It is in + // the middle of upgrading process. + RuntimeState string `json:"runtimeState,omitempty"` + + // RuntimeUser: Required. The user email of the NotebookRuntime. + RuntimeUser string `json:"runtimeUser,omitempty"` + + // ServiceAccount: Output only. The service account that the + // NotebookRuntime workload runs as. + ServiceAccount string `json:"serviceAccount,omitempty"` - // UpdateTime: Output only. Timestamp when this PipelineJob was most + // UpdateTime: Output only. Timestamp when this NotebookRuntime was most + // recently updated. + UpdateTime string `json:"updateTime,omitempty"` + + // Version: Output only. The VM os image version of NotebookRuntime. + Version string `json:"version,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreateTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1NotebookRuntime) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1NotebookRuntime + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1NotebookRuntimeTemplate: A template that +// specifies runtime configurations such as machine type, runtime +// version, network configurations, etc. Multiple runtimes can be +// created from a runtime template. +type GoogleCloudAiplatformV1NotebookRuntimeTemplate struct { + // CreateTime: Output only. Timestamp when this NotebookRuntimeTemplate + // was created. + CreateTime string `json:"createTime,omitempty"` + + // DataPersistentDiskSpec: Optional. The specification of persistent + // disk attached to the runtime as data disk storage. + DataPersistentDiskSpec *GoogleCloudAiplatformV1PersistentDiskSpec `json:"dataPersistentDiskSpec,omitempty"` + + // Description: The description of the NotebookRuntimeTemplate. + Description string `json:"description,omitempty"` + + // DisplayName: Required. The display name of the + // NotebookRuntimeTemplate. The name can be up to 128 characters long + // and can consist of any UTF-8 characters. + DisplayName string `json:"displayName,omitempty"` + + // Etag: Used to perform consistent read-modify-write updates. If not + // set, a blind "overwrite" update happens. + Etag string `json:"etag,omitempty"` + + // EucConfig: EUC configuration of the NotebookRuntimeTemplate. + EucConfig *GoogleCloudAiplatformV1NotebookEucConfig `json:"eucConfig,omitempty"` + + // IdleShutdownConfig: The idle shutdown configuration of + // NotebookRuntimeTemplate. This config will only be set when idle + // shutdown is enabled. + IdleShutdownConfig *GoogleCloudAiplatformV1NotebookIdleShutdownConfig `json:"idleShutdownConfig,omitempty"` + + // IsDefault: Output only. The default template to use if not specified. + IsDefault bool `json:"isDefault,omitempty"` + + // Labels: The labels with user-defined metadata to organize the + // NotebookRuntimeTemplates. Label keys and values can be no longer than + // 64 characters (Unicode codepoints), can only contain lowercase + // letters, numeric characters, underscores and dashes. International + // characters are allowed. See https://goo.gl/xmQnxf for more + // information and examples of labels. + Labels map[string]string `json:"labels,omitempty"` + + // MachineSpec: Optional. Immutable. The specification of a single + // machine for the template. + MachineSpec *GoogleCloudAiplatformV1MachineSpec `json:"machineSpec,omitempty"` + + // Name: Output only. The resource name of the NotebookRuntimeTemplate. + Name string `json:"name,omitempty"` + + // NetworkSpec: Optional. Network spec. + NetworkSpec *GoogleCloudAiplatformV1NetworkSpec `json:"networkSpec,omitempty"` + + // ServiceAccount: The service account that the runtime workload runs + // as. You can use any service account within the same project, but you + // must have the service account user permission to use the instance. 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"` + + // UpdateTime: Output only. Timestamp when this NotebookRuntimeTemplate + // was most recently updated. + UpdateTime string `json:"updateTime,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreateTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1NotebookRuntimeTemplate) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1NotebookRuntimeTemplate + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1NotebookRuntimeTemplateRef: Points to a +// NotebookRuntimeTemplateRef. +type GoogleCloudAiplatformV1NotebookRuntimeTemplateRef struct { + // NotebookRuntimeTemplate: Immutable. A resource name of the + // NotebookRuntimeTemplate. + NotebookRuntimeTemplate string `json:"notebookRuntimeTemplate,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "NotebookRuntimeTemplate") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NotebookRuntimeTemplate") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1NotebookRuntimeTemplateRef) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1NotebookRuntimeTemplateRef + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1PauseModelDeploymentMonitoringJobRequest: +// Request message for JobService.PauseModelDeploymentMonitoringJob. +type GoogleCloudAiplatformV1PauseModelDeploymentMonitoringJobRequest struct { +} + +// GoogleCloudAiplatformV1PauseScheduleRequest: Request message for +// ScheduleService.PauseSchedule. +type GoogleCloudAiplatformV1PauseScheduleRequest struct { +} + +// GoogleCloudAiplatformV1PersistentDiskSpec: Represents the spec of +// persistent disk options. +type GoogleCloudAiplatformV1PersistentDiskSpec struct { + // DiskSizeGb: Size in GB of the disk (default is 100GB). + DiskSizeGb int64 `json:"diskSizeGb,omitempty,string"` + + // DiskType: Type of the disk (default is "pd-standard"). Valid values: + // "pd-ssd" (Persistent Disk Solid State Drive) "pd-standard" + // (Persistent Disk Hard Disk Drive) "pd-balanced" (Balanced Persistent + // Disk) "pd-extreme" (Extreme Persistent Disk) + DiskType string `json:"diskType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DiskSizeGb") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DiskSizeGb") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1PersistentDiskSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1PersistentDiskSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1PipelineJob: An instance of a machine learning +// PipelineJob. +type GoogleCloudAiplatformV1PipelineJob struct { + // CreateTime: Output only. Pipeline creation time. + CreateTime string `json:"createTime,omitempty"` + + // DisplayName: The display name of the Pipeline. The name can be up to + // 128 characters long and can consist of any UTF-8 characters. + DisplayName string `json:"displayName,omitempty"` + + // EncryptionSpec: Customer-managed encryption key spec for a + // pipelineJob. If set, this PipelineJob and all of its sub-resources + // will be secured by this key. + EncryptionSpec *GoogleCloudAiplatformV1EncryptionSpec `json:"encryptionSpec,omitempty"` + + // EndTime: Output only. Pipeline end time. + EndTime string `json:"endTime,omitempty"` + + // Error: Output only. The error that occurred during pipeline + // execution. Only populated when the pipeline's state is FAILED or + // CANCELLED. + Error *GoogleRpcStatus `json:"error,omitempty"` + + // JobDetail: Output only. The details of pipeline run. Not available in + // the list view. + JobDetail *GoogleCloudAiplatformV1PipelineJobDetail `json:"jobDetail,omitempty"` + + // Labels: The labels with user-defined metadata to organize + // PipelineJob. Label keys and values can be no longer than 64 + // characters (Unicode codepoints), can only contain lowercase letters, + // numeric characters, underscores and dashes. International characters + // are allowed. See https://goo.gl/xmQnxf for more information and + // examples of labels. Note there is some reserved label key for Vertex + // AI Pipelines. - `vertex-ai-pipelines-run-billing-id`, user set value + // will get overrided. + Labels map[string]string `json:"labels,omitempty"` + + // Name: Output only. The resource name of the PipelineJob. + Name string `json:"name,omitempty"` + + // Network: The full name of the Compute Engine network + // (/compute/docs/networks-and-firewalls#networks) to which the Pipeline + // Job's workload should be peered. For example, + // `projects/12345/global/networks/myVPC`. Format + // (/compute/docs/reference/rest/v1/networks/insert) is of the form + // `projects/{project}/global/networks/{network}`. Where {project} is a + // project number, as in `12345`, and {network} is a network name. + // Private services access must already be configured for the network. + // Pipeline job will apply the network configuration to the Google Cloud + // resources being launched, if applied, such as Vertex AI Training or + // Dataflow job. If left unspecified, the workload is not peered with + // any network. + Network string `json:"network,omitempty"` + + // PipelineSpec: The spec of the pipeline. + PipelineSpec googleapi.RawMessage `json:"pipelineSpec,omitempty"` + + // ReservedIpRanges: A list of names for the reserved ip ranges under + // the VPC network that can be used for this Pipeline Job's workload. If + // set, we will deploy the Pipeline Job's workload within the provided + // ip ranges. Otherwise, the job will be deployed to any ip ranges under + // the provided VPC network. Example: ['vertex-ai-ip-range']. + ReservedIpRanges []string `json:"reservedIpRanges,omitempty"` + + // RuntimeConfig: Runtime config of the pipeline. + RuntimeConfig *GoogleCloudAiplatformV1PipelineJobRuntimeConfig `json:"runtimeConfig,omitempty"` + + // ScheduleName: Output only. The schedule resource name. Only returned + // if the Pipeline is created by Schedule API. + ScheduleName string `json:"scheduleName,omitempty"` + + // ServiceAccount: The service account that the pipeline workload runs + // as. If not specified, the Compute Engine default service account in + // the project will be used. See + // https://cloud.google.com/compute/docs/access/service-accounts#default_service_account + // Users starting the pipeline must have the `iam.serviceAccounts.actAs` + // permission on this service account. + ServiceAccount string `json:"serviceAccount,omitempty"` + + // StartTime: Output only. Pipeline start time. + StartTime string `json:"startTime,omitempty"` + + // State: Output only. The detailed state of the job. + // + // Possible values: + // "PIPELINE_STATE_UNSPECIFIED" - The pipeline state is unspecified. + // "PIPELINE_STATE_QUEUED" - The pipeline has been created or resumed, + // and processing has not yet begun. + // "PIPELINE_STATE_PENDING" - The service is preparing to run the + // pipeline. + // "PIPELINE_STATE_RUNNING" - The pipeline is in progress. + // "PIPELINE_STATE_SUCCEEDED" - The pipeline completed successfully. + // "PIPELINE_STATE_FAILED" - The pipeline failed. + // "PIPELINE_STATE_CANCELLING" - The pipeline is being cancelled. From + // this state, the pipeline may only go to either + // PIPELINE_STATE_SUCCEEDED, PIPELINE_STATE_FAILED or + // PIPELINE_STATE_CANCELLED. + // "PIPELINE_STATE_CANCELLED" - The pipeline has been cancelled. + // "PIPELINE_STATE_PAUSED" - The pipeline has been stopped, and can be + // resumed. + State string `json:"state,omitempty"` + + // TemplateMetadata: Output only. Pipeline template metadata. Will fill + // up fields if PipelineJob.template_uri is from supported template + // registry. + TemplateMetadata *GoogleCloudAiplatformV1PipelineTemplateMetadata `json:"templateMetadata,omitempty"` + + // TemplateUri: A template uri from where the PipelineJob.pipeline_spec, + // if empty, will be downloaded. + TemplateUri string `json:"templateUri,omitempty"` + + // UpdateTime: Output only. Timestamp when this PipelineJob was most // recently updated. UpdateTime string `json:"updateTime,omitempty"` @@ -26417,6 +27021,45 @@ func (s *GoogleCloudAiplatformV1SpecialistPool) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1StartNotebookRuntimeOperationMetadata: +// Metadata information for NotebookService.StartNotebookRuntime. +type GoogleCloudAiplatformV1StartNotebookRuntimeOperationMetadata struct { + // GenericMetadata: The operation generic information. + GenericMetadata *GoogleCloudAiplatformV1GenericOperationMetadata `json:"genericMetadata,omitempty"` + + // ProgressMessage: A human-readable message that shows the intermediate + // progress details of NotebookRuntime. + ProgressMessage string `json:"progressMessage,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GenericMetadata") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "GenericMetadata") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1StartNotebookRuntimeOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1StartNotebookRuntimeOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1StartNotebookRuntimeRequest: Request message +// for NotebookService.StartNotebookRuntime. +type GoogleCloudAiplatformV1StartNotebookRuntimeRequest struct { +} + // GoogleCloudAiplatformV1StopTrialRequest: Request message for // VizierService.StopTrial. type GoogleCloudAiplatformV1StopTrialRequest struct { @@ -71962,6 +72605,1996 @@ func (c *ProjectsLocationsNasJobsNasTrialDetailsListCall) Pages(ctx context.Cont } } +// method id "aiplatform.projects.locations.notebookRuntimeTemplates.create": + +type ProjectsLocationsNotebookRuntimeTemplatesCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1notebookruntimetemplate *GoogleCloudAiplatformV1NotebookRuntimeTemplate + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a NotebookRuntimeTemplate. +// +// - parent: The resource name of the Location to create the +// NotebookRuntimeTemplate. Format: +// `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsNotebookRuntimeTemplatesService) Create(parent string, googlecloudaiplatformv1notebookruntimetemplate *GoogleCloudAiplatformV1NotebookRuntimeTemplate) *ProjectsLocationsNotebookRuntimeTemplatesCreateCall { + c := &ProjectsLocationsNotebookRuntimeTemplatesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1notebookruntimetemplate = googlecloudaiplatformv1notebookruntimetemplate + return c +} + +// NotebookRuntimeTemplateId sets the optional parameter +// "notebookRuntimeTemplateId": User specified ID for the notebook +// runtime template. +func (c *ProjectsLocationsNotebookRuntimeTemplatesCreateCall) NotebookRuntimeTemplateId(notebookRuntimeTemplateId string) *ProjectsLocationsNotebookRuntimeTemplatesCreateCall { + c.urlParams_.Set("notebookRuntimeTemplateId", notebookRuntimeTemplateId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsNotebookRuntimeTemplatesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsNotebookRuntimeTemplatesCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsNotebookRuntimeTemplatesCreateCall) Context(ctx context.Context) *ProjectsLocationsNotebookRuntimeTemplatesCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsNotebookRuntimeTemplatesCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsNotebookRuntimeTemplatesCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1notebookruntimetemplate) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/notebookRuntimeTemplates") + 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 "aiplatform.projects.locations.notebookRuntimeTemplates.create" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsNotebookRuntimeTemplatesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a NotebookRuntimeTemplate.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/notebookRuntimeTemplates", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.notebookRuntimeTemplates.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "notebookRuntimeTemplateId": { + // "description": "Optional. User specified ID for the notebook runtime template.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name of the Location to create the NotebookRuntimeTemplate. Format: `projects/{project}/locations/{location}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/notebookRuntimeTemplates", + // "request": { + // "$ref": "GoogleCloudAiplatformV1NotebookRuntimeTemplate" + // }, + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.notebookRuntimeTemplates.delete": + +type ProjectsLocationsNotebookRuntimeTemplatesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a NotebookRuntimeTemplate. +// +// - name: The name of the NotebookRuntimeTemplate resource to be +// deleted. Format: +// `projects/{project}/locations/{location}/notebookRuntimeTemplates/{n +// otebook_runtime_template}`. +func (r *ProjectsLocationsNotebookRuntimeTemplatesService) Delete(name string) *ProjectsLocationsNotebookRuntimeTemplatesDeleteCall { + c := &ProjectsLocationsNotebookRuntimeTemplatesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsNotebookRuntimeTemplatesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsNotebookRuntimeTemplatesDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsNotebookRuntimeTemplatesDeleteCall) Context(ctx context.Context) *ProjectsLocationsNotebookRuntimeTemplatesDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsNotebookRuntimeTemplatesDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsNotebookRuntimeTemplatesDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.notebookRuntimeTemplates.delete" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsNotebookRuntimeTemplatesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a NotebookRuntimeTemplate.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/notebookRuntimeTemplates/{notebookRuntimeTemplatesId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.notebookRuntimeTemplates.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the NotebookRuntimeTemplate resource to be deleted. Format: `projects/{project}/locations/{location}/notebookRuntimeTemplates/{notebook_runtime_template}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.notebookRuntimeTemplates.get": + +type ProjectsLocationsNotebookRuntimeTemplatesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets a NotebookRuntimeTemplate. +// +// - name: The name of the NotebookRuntimeTemplate resource. Format: +// `projects/{project}/locations/{location}/notebookRuntimeTemplates/{n +// otebook_runtime_template}`. +func (r *ProjectsLocationsNotebookRuntimeTemplatesService) Get(name string) *ProjectsLocationsNotebookRuntimeTemplatesGetCall { + c := &ProjectsLocationsNotebookRuntimeTemplatesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsNotebookRuntimeTemplatesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsNotebookRuntimeTemplatesGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsNotebookRuntimeTemplatesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsNotebookRuntimeTemplatesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsNotebookRuntimeTemplatesGetCall) Context(ctx context.Context) *ProjectsLocationsNotebookRuntimeTemplatesGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsNotebookRuntimeTemplatesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsNotebookRuntimeTemplatesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.notebookRuntimeTemplates.get" call. +// Exactly one of *GoogleCloudAiplatformV1NotebookRuntimeTemplate or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1NotebookRuntimeTemplate.ServerResponse.Header +// or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsNotebookRuntimeTemplatesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1NotebookRuntimeTemplate, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudAiplatformV1NotebookRuntimeTemplate{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets a NotebookRuntimeTemplate.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/notebookRuntimeTemplates/{notebookRuntimeTemplatesId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.notebookRuntimeTemplates.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the NotebookRuntimeTemplate resource. Format: `projects/{project}/locations/{location}/notebookRuntimeTemplates/{notebook_runtime_template}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleCloudAiplatformV1NotebookRuntimeTemplate" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.notebookRuntimeTemplates.getIamPolicy": + +type ProjectsLocationsNotebookRuntimeTemplatesGetIamPolicyCall struct { + s *Service + resource string + 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 *ProjectsLocationsNotebookRuntimeTemplatesService) GetIamPolicy(resource string) *ProjectsLocationsNotebookRuntimeTemplatesGetIamPolicyCall { + c := &ProjectsLocationsNotebookRuntimeTemplatesGetIamPolicyCall{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 *ProjectsLocationsNotebookRuntimeTemplatesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsNotebookRuntimeTemplatesGetIamPolicyCall { + c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsNotebookRuntimeTemplatesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsNotebookRuntimeTemplatesGetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsNotebookRuntimeTemplatesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsNotebookRuntimeTemplatesGetIamPolicyCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsNotebookRuntimeTemplatesGetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsNotebookRuntimeTemplatesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+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 "aiplatform.projects.locations.notebookRuntimeTemplates.getIamPolicy" call. +// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleIamV1Policy.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsNotebookRuntimeTemplatesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleIamV1Policy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/notebookRuntimeTemplates/{notebookRuntimeTemplatesId}:getIamPolicy", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.notebookRuntimeTemplates.getIamPolicy", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "options.requestedPolicyVersion": { + // "description": "Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+resource}:getIamPolicy", + // "response": { + // "$ref": "GoogleIamV1Policy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.notebookRuntimeTemplates.list": + +type ProjectsLocationsNotebookRuntimeTemplatesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists NotebookRuntimeTemplates in a Location. +// +// - parent: The resource name of the Location from which to list the +// NotebookRuntimeTemplates. Format: +// `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsNotebookRuntimeTemplatesService) List(parent string) *ProjectsLocationsNotebookRuntimeTemplatesListCall { + c := &ProjectsLocationsNotebookRuntimeTemplatesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": An expression for +// filtering the results of the request. For field names both snake_case +// and camelCase are supported. * `notebookRuntimeTemplate` supports = +// and !=. `notebookRuntimeTemplate` represents the +// NotebookRuntimeTemplate ID, i.e. the last segment of the +// NotebookRuntimeTemplate's resource name. * `display_name` supports = +// and != * `labels` supports general map functions that is: * +// `labels.key=value` - key:value equality * `labels.key:* or labels:key +// - key existence * A key including a space must be quoted. `labels."a +// key". Some examples: * +// `notebookRuntimeTemplate=notebookRuntimeTemplate123` * +// `displayName="myDisplayName" * `labels.myKey="myValue" +func (c *ProjectsLocationsNotebookRuntimeTemplatesListCall) Filter(filter string) *ProjectsLocationsNotebookRuntimeTemplatesListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": A comma-separated list +// of fields to order by, sorted in ascending order. Use "desc" after a +// field name for descending. Supported fields: * `display_name` * +// `create_time` * `update_time` Example: `display_name, create_time +// desc`. +func (c *ProjectsLocationsNotebookRuntimeTemplatesListCall) OrderBy(orderBy string) *ProjectsLocationsNotebookRuntimeTemplatesListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsNotebookRuntimeTemplatesListCall) PageSize(pageSize int64) *ProjectsLocationsNotebookRuntimeTemplatesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. Typically obtained via +// ListNotebookRuntimeTemplatesResponse.next_page_token of the previous +// NotebookService.ListNotebookRuntimeTemplates call. +func (c *ProjectsLocationsNotebookRuntimeTemplatesListCall) PageToken(pageToken string) *ProjectsLocationsNotebookRuntimeTemplatesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReadMask sets the optional parameter "readMask": Mask specifying +// which fields to read. +func (c *ProjectsLocationsNotebookRuntimeTemplatesListCall) ReadMask(readMask string) *ProjectsLocationsNotebookRuntimeTemplatesListCall { + c.urlParams_.Set("readMask", readMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsNotebookRuntimeTemplatesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsNotebookRuntimeTemplatesListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsNotebookRuntimeTemplatesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsNotebookRuntimeTemplatesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsNotebookRuntimeTemplatesListCall) Context(ctx context.Context) *ProjectsLocationsNotebookRuntimeTemplatesListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsNotebookRuntimeTemplatesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsNotebookRuntimeTemplatesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/notebookRuntimeTemplates") + 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 "aiplatform.projects.locations.notebookRuntimeTemplates.list" call. +// Exactly one of +// *GoogleCloudAiplatformV1ListNotebookRuntimeTemplatesResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1ListNotebookRuntimeTemplatesResponse.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 *ProjectsLocationsNotebookRuntimeTemplatesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListNotebookRuntimeTemplatesResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudAiplatformV1ListNotebookRuntimeTemplatesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists NotebookRuntimeTemplates in a Location.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/notebookRuntimeTemplates", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.notebookRuntimeTemplates.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "Optional. An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `notebookRuntimeTemplate` supports = and !=. `notebookRuntimeTemplate` represents the NotebookRuntimeTemplate ID, i.e. the last segment of the NotebookRuntimeTemplate's resource name. * `display_name` supports = and != * `labels` supports general map functions that is: * `labels.key=value` - key:value equality * `labels.key:* or labels:key - key existence * A key including a space must be quoted. `labels.\"a key\"`. Some examples: * `notebookRuntimeTemplate=notebookRuntimeTemplate123` * `displayName=\"myDisplayName\"` * `labels.myKey=\"myValue\"`", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "Optional. A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending. Supported fields: * `display_name` * `create_time` * `update_time` Example: `display_name, create_time desc`.", + // "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. Typically obtained via ListNotebookRuntimeTemplatesResponse.next_page_token of the previous NotebookService.ListNotebookRuntimeTemplates call.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name of the Location from which to list the NotebookRuntimeTemplates. Format: `projects/{project}/locations/{location}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "readMask": { + // "description": "Optional. Mask specifying which fields to read.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/notebookRuntimeTemplates", + // "response": { + // "$ref": "GoogleCloudAiplatformV1ListNotebookRuntimeTemplatesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsNotebookRuntimeTemplatesListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListNotebookRuntimeTemplatesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "aiplatform.projects.locations.notebookRuntimeTemplates.setIamPolicy": + +type ProjectsLocationsNotebookRuntimeTemplatesSetIamPolicyCall 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 *ProjectsLocationsNotebookRuntimeTemplatesService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsNotebookRuntimeTemplatesSetIamPolicyCall { + c := &ProjectsLocationsNotebookRuntimeTemplatesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsNotebookRuntimeTemplatesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsNotebookRuntimeTemplatesSetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsNotebookRuntimeTemplatesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsNotebookRuntimeTemplatesSetIamPolicyCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsNotebookRuntimeTemplatesSetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsNotebookRuntimeTemplatesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "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 "aiplatform.projects.locations.notebookRuntimeTemplates.setIamPolicy" call. +// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleIamV1Policy.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsNotebookRuntimeTemplatesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleIamV1Policy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/notebookRuntimeTemplates/{notebookRuntimeTemplatesId}:setIamPolicy", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.notebookRuntimeTemplates.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/[^/]+/notebookRuntimeTemplates/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+resource}:setIamPolicy", + // "request": { + // "$ref": "GoogleIamV1SetIamPolicyRequest" + // }, + // "response": { + // "$ref": "GoogleIamV1Policy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.notebookRuntimeTemplates.testIamPermissions": + +type ProjectsLocationsNotebookRuntimeTemplatesTestIamPermissionsCall struct { + s *Service + resource 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. +// +// - 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 *ProjectsLocationsNotebookRuntimeTemplatesService) TestIamPermissions(resource string) *ProjectsLocationsNotebookRuntimeTemplatesTestIamPermissionsCall { + c := &ProjectsLocationsNotebookRuntimeTemplatesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + return c +} + +// Permissions sets the optional parameter "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). +func (c *ProjectsLocationsNotebookRuntimeTemplatesTestIamPermissionsCall) Permissions(permissions ...string) *ProjectsLocationsNotebookRuntimeTemplatesTestIamPermissionsCall { + c.urlParams_.SetMulti("permissions", append([]string{}, permissions...)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsNotebookRuntimeTemplatesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsNotebookRuntimeTemplatesTestIamPermissionsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsNotebookRuntimeTemplatesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsNotebookRuntimeTemplatesTestIamPermissionsCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsNotebookRuntimeTemplatesTestIamPermissionsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsNotebookRuntimeTemplatesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+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 "aiplatform.projects.locations.notebookRuntimeTemplates.testIamPermissions" call. +// Exactly one of *GoogleIamV1TestIamPermissionsResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleIamV1TestIamPermissionsResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsNotebookRuntimeTemplatesTestIamPermissionsCall) 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 + // { + // "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}/notebookRuntimeTemplates/{notebookRuntimeTemplatesId}:testIamPermissions", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.notebookRuntimeTemplates.testIamPermissions", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "permissions": { + // "description": "The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).", + // "location": "query", + // "repeated": true, + // "type": "string" + // }, + // "resource": { + // "description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+resource}:testIamPermissions", + // "response": { + // "$ref": "GoogleIamV1TestIamPermissionsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.notebookRuntimes.assign": + +type ProjectsLocationsNotebookRuntimesAssignCall struct { + s *Service + parent string + googlecloudaiplatformv1assignnotebookruntimerequest *GoogleCloudAiplatformV1AssignNotebookRuntimeRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Assign: Assigns a NotebookRuntime to a user for a particular Notebook +// file. This method will either returns an existing assignment or +// generates a new one. +// +// - parent: The resource name of the Location to get the +// NotebookRuntime assignment. Format: +// `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsNotebookRuntimesService) Assign(parent string, googlecloudaiplatformv1assignnotebookruntimerequest *GoogleCloudAiplatformV1AssignNotebookRuntimeRequest) *ProjectsLocationsNotebookRuntimesAssignCall { + c := &ProjectsLocationsNotebookRuntimesAssignCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1assignnotebookruntimerequest = googlecloudaiplatformv1assignnotebookruntimerequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsNotebookRuntimesAssignCall) Fields(s ...googleapi.Field) *ProjectsLocationsNotebookRuntimesAssignCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsNotebookRuntimesAssignCall) Context(ctx context.Context) *ProjectsLocationsNotebookRuntimesAssignCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsNotebookRuntimesAssignCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsNotebookRuntimesAssignCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1assignnotebookruntimerequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/notebookRuntimes:assign") + 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 "aiplatform.projects.locations.notebookRuntimes.assign" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsNotebookRuntimesAssignCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Assigns a NotebookRuntime to a user for a particular Notebook file. This method will either returns an existing assignment or generates a new one.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/notebookRuntimes:assign", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.notebookRuntimes.assign", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The resource name of the Location to get the NotebookRuntime assignment. Format: `projects/{project}/locations/{location}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/notebookRuntimes:assign", + // "request": { + // "$ref": "GoogleCloudAiplatformV1AssignNotebookRuntimeRequest" + // }, + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.notebookRuntimes.delete": + +type ProjectsLocationsNotebookRuntimesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a NotebookRuntime. +// +// - name: The name of the NotebookRuntime resource to be deleted. +// Instead of checking whether the name is in valid NotebookRuntime +// resource name format, directly throw NotFound exception if there is +// no such NotebookRuntime in spanner. +func (r *ProjectsLocationsNotebookRuntimesService) Delete(name string) *ProjectsLocationsNotebookRuntimesDeleteCall { + c := &ProjectsLocationsNotebookRuntimesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsNotebookRuntimesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsNotebookRuntimesDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsNotebookRuntimesDeleteCall) Context(ctx context.Context) *ProjectsLocationsNotebookRuntimesDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsNotebookRuntimesDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsNotebookRuntimesDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.notebookRuntimes.delete" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsNotebookRuntimesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a NotebookRuntime.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/notebookRuntimes/{notebookRuntimesId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.notebookRuntimes.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the NotebookRuntime resource to be deleted. Instead of checking whether the name is in valid NotebookRuntime resource name format, directly throw NotFound exception if there is no such NotebookRuntime in spanner.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/notebookRuntimes/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.notebookRuntimes.get": + +type ProjectsLocationsNotebookRuntimesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets a NotebookRuntime. +// +// - name: The name of the NotebookRuntime resource. Instead of checking +// whether the name is in valid NotebookRuntime resource name format, +// directly throw NotFound exception if there is no such +// NotebookRuntime in spanner. +func (r *ProjectsLocationsNotebookRuntimesService) Get(name string) *ProjectsLocationsNotebookRuntimesGetCall { + c := &ProjectsLocationsNotebookRuntimesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsNotebookRuntimesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsNotebookRuntimesGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsNotebookRuntimesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsNotebookRuntimesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsNotebookRuntimesGetCall) Context(ctx context.Context) *ProjectsLocationsNotebookRuntimesGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsNotebookRuntimesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsNotebookRuntimesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.notebookRuntimes.get" call. +// Exactly one of *GoogleCloudAiplatformV1NotebookRuntime or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudAiplatformV1NotebookRuntime.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsNotebookRuntimesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1NotebookRuntime, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudAiplatformV1NotebookRuntime{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets a NotebookRuntime.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/notebookRuntimes/{notebookRuntimesId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.notebookRuntimes.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the NotebookRuntime resource. Instead of checking whether the name is in valid NotebookRuntime resource name format, directly throw NotFound exception if there is no such NotebookRuntime in spanner.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/notebookRuntimes/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleCloudAiplatformV1NotebookRuntime" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.notebookRuntimes.list": + +type ProjectsLocationsNotebookRuntimesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists NotebookRuntimes in a Location. +// +// - parent: The resource name of the Location from which to list the +// NotebookRuntimes. Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsNotebookRuntimesService) List(parent string) *ProjectsLocationsNotebookRuntimesListCall { + c := &ProjectsLocationsNotebookRuntimesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": An expression for +// filtering the results of the request. For field names both snake_case +// and camelCase are supported. * `notebookRuntime` supports = and !=. +// `notebookRuntime` represents the NotebookRuntime ID, i.e. the last +// segment of the NotebookRuntime's resource name. * `displayName` +// supports = and != and regex. * `notebookRuntimeTemplate` supports = +// and !=. `notebookRuntimeTemplate` represents the +// NotebookRuntimeTemplate ID, i.e. the last segment of the +// NotebookRuntimeTemplate's resource name. * `healthState` supports = +// and !=. healthState enum: [HEALTHY, UNHEALTHY, +// HEALTH_STATE_UNSPECIFIED]. * `runtimeState` supports = and !=. +// runtimeState enum: [RUNTIME_STATE_UNSPECIFIED, RUNNING, +// BEING_STARTED, BEING_STOPPED, STOPPED, BEING_UPGRADED]. * +// `runtimeUser` supports = and !=. * API version is UI only: `uiState` +// supports = and !=. uiState enum: [UI_RESOURCE_STATE_UNSPECIFIED, +// UI_RESOURCE_STATE_BEING_CREATED, UI_RESOURCE_STATE_ACTIVE, +// UI_RESOURCE_STATE_BEING_DELETED, UI_RESOURCE_STATE_CREATION_FAILED]. +// Some examples: * `notebookRuntime="notebookRuntime123" * +// `displayName="myDisplayName" and `displayName=~"myDisplayNameRegex" +// * `notebookRuntimeTemplate="notebookRuntimeTemplate321" * +// `healthState=HEALTHY` * `runtimeState=RUNNING` * +// `runtimeUser="test@google.com" * +// `uiState=UI_RESOURCE_STATE_BEING_DELETED` +func (c *ProjectsLocationsNotebookRuntimesListCall) Filter(filter string) *ProjectsLocationsNotebookRuntimesListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": A comma-separated list +// of fields to order by, sorted in ascending order. Use "desc" after a +// field name for descending. Supported fields: * `display_name` * +// `create_time` * `update_time` Example: `display_name, create_time +// desc`. +func (c *ProjectsLocationsNotebookRuntimesListCall) OrderBy(orderBy string) *ProjectsLocationsNotebookRuntimesListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsNotebookRuntimesListCall) PageSize(pageSize int64) *ProjectsLocationsNotebookRuntimesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. Typically obtained via +// ListNotebookRuntimesResponse.next_page_token of the previous +// NotebookService.ListNotebookRuntimes call. +func (c *ProjectsLocationsNotebookRuntimesListCall) PageToken(pageToken string) *ProjectsLocationsNotebookRuntimesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReadMask sets the optional parameter "readMask": Mask specifying +// which fields to read. +func (c *ProjectsLocationsNotebookRuntimesListCall) ReadMask(readMask string) *ProjectsLocationsNotebookRuntimesListCall { + c.urlParams_.Set("readMask", readMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsNotebookRuntimesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsNotebookRuntimesListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsNotebookRuntimesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsNotebookRuntimesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsNotebookRuntimesListCall) Context(ctx context.Context) *ProjectsLocationsNotebookRuntimesListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsNotebookRuntimesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsNotebookRuntimesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/notebookRuntimes") + 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 "aiplatform.projects.locations.notebookRuntimes.list" call. +// Exactly one of *GoogleCloudAiplatformV1ListNotebookRuntimesResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudAiplatformV1ListNotebookRuntimesResponse.ServerResponse.He +// ader or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsNotebookRuntimesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListNotebookRuntimesResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudAiplatformV1ListNotebookRuntimesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists NotebookRuntimes in a Location.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/notebookRuntimes", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.notebookRuntimes.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "Optional. An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `notebookRuntime` supports = and !=. `notebookRuntime` represents the NotebookRuntime ID, i.e. the last segment of the NotebookRuntime's resource name. * `displayName` supports = and != and regex. * `notebookRuntimeTemplate` supports = and !=. `notebookRuntimeTemplate` represents the NotebookRuntimeTemplate ID, i.e. the last segment of the NotebookRuntimeTemplate's resource name. * `healthState` supports = and !=. healthState enum: [HEALTHY, UNHEALTHY, HEALTH_STATE_UNSPECIFIED]. * `runtimeState` supports = and !=. runtimeState enum: [RUNTIME_STATE_UNSPECIFIED, RUNNING, BEING_STARTED, BEING_STOPPED, STOPPED, BEING_UPGRADED]. * `runtimeUser` supports = and !=. * API version is UI only: `uiState` supports = and !=. uiState enum: [UI_RESOURCE_STATE_UNSPECIFIED, UI_RESOURCE_STATE_BEING_CREATED, UI_RESOURCE_STATE_ACTIVE, UI_RESOURCE_STATE_BEING_DELETED, UI_RESOURCE_STATE_CREATION_FAILED]. Some examples: * `notebookRuntime=\"notebookRuntime123\"` * `displayName=\"myDisplayName\"` and `displayName=~\"myDisplayNameRegex\"` * `notebookRuntimeTemplate=\"notebookRuntimeTemplate321\"` * `healthState=HEALTHY` * `runtimeState=RUNNING` * `runtimeUser=\"test@google.com\"` * `uiState=UI_RESOURCE_STATE_BEING_DELETED`", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "Optional. A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending. Supported fields: * `display_name` * `create_time` * `update_time` Example: `display_name, create_time desc`.", + // "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. Typically obtained via ListNotebookRuntimesResponse.next_page_token of the previous NotebookService.ListNotebookRuntimes call.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name of the Location from which to list the NotebookRuntimes. Format: `projects/{project}/locations/{location}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "readMask": { + // "description": "Optional. Mask specifying which fields to read.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/notebookRuntimes", + // "response": { + // "$ref": "GoogleCloudAiplatformV1ListNotebookRuntimesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsNotebookRuntimesListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListNotebookRuntimesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "aiplatform.projects.locations.notebookRuntimes.start": + +type ProjectsLocationsNotebookRuntimesStartCall struct { + s *Service + name string + googlecloudaiplatformv1startnotebookruntimerequest *GoogleCloudAiplatformV1StartNotebookRuntimeRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Start: Starts a NotebookRuntime. +// +// - name: The name of the NotebookRuntime resource to be started. +// Instead of checking whether the name is in valid NotebookRuntime +// resource name format, directly throw NotFound exception if there is +// no such NotebookRuntime in spanner. +func (r *ProjectsLocationsNotebookRuntimesService) Start(name string, googlecloudaiplatformv1startnotebookruntimerequest *GoogleCloudAiplatformV1StartNotebookRuntimeRequest) *ProjectsLocationsNotebookRuntimesStartCall { + c := &ProjectsLocationsNotebookRuntimesStartCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudaiplatformv1startnotebookruntimerequest = googlecloudaiplatformv1startnotebookruntimerequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsNotebookRuntimesStartCall) Fields(s ...googleapi.Field) *ProjectsLocationsNotebookRuntimesStartCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsNotebookRuntimesStartCall) Context(ctx context.Context) *ProjectsLocationsNotebookRuntimesStartCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsNotebookRuntimesStartCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsNotebookRuntimesStartCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1startnotebookruntimerequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:start") + 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 "aiplatform.projects.locations.notebookRuntimes.start" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsNotebookRuntimesStartCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Starts a NotebookRuntime.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/notebookRuntimes/{notebookRuntimesId}:start", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.notebookRuntimes.start", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the NotebookRuntime resource to be started. Instead of checking whether the name is in valid NotebookRuntime resource name format, directly throw NotFound exception if there is no such NotebookRuntime in spanner.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/notebookRuntimes/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:start", + // "request": { + // "$ref": "GoogleCloudAiplatformV1StartNotebookRuntimeRequest" + // }, + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "aiplatform.projects.locations.operations.cancel": type ProjectsLocationsOperationsCancelCall struct { @@ -72928,7 +75561,7 @@ func (r *ProjectsLocationsPipelineJobsService) Create(parent string, googlecloud // use for the PipelineJob, which will become the final component of the // PipelineJob name. If not provided, an ID will be automatically // generated. This value should be less than 128 characters, and valid -// characters are /a-z-/. +// characters are `/a-z-/`. func (c *ProjectsLocationsPipelineJobsCreateCall) PipelineJobId(pipelineJobId string) *ProjectsLocationsPipelineJobsCreateCall { c.urlParams_.Set("pipelineJobId", pipelineJobId) return c @@ -73042,7 +75675,7 @@ func (c *ProjectsLocationsPipelineJobsCreateCall) Do(opts ...googleapi.CallOptio // "type": "string" // }, // "pipelineJobId": { - // "description": "The ID to use for the PipelineJob, which will become the final component of the PipelineJob name. If not provided, an ID will be automatically generated. This value should be less than 128 characters, and valid characters are /a-z-/.", + // "description": "The ID to use for the PipelineJob, which will become the final component of the PipelineJob name. If not provided, an ID will be automatically generated. This value should be less than 128 characters, and valid characters are `/a-z-/`.", // "location": "query", // "type": "string" // } @@ -83331,7 +85964,7 @@ func (r *ProjectsLocationsTensorboardsExperimentsService) Create(parent string, // "tensorboardExperimentId": Required. The ID to use for the // Tensorboard experiment, which becomes the final component of the // Tensorboard experiment's resource name. This value should be 1-128 -// characters, and valid characters are /a-z-/. +// characters, and valid characters are `/a-z-/`. func (c *ProjectsLocationsTensorboardsExperimentsCreateCall) TensorboardExperimentId(tensorboardExperimentId string) *ProjectsLocationsTensorboardsExperimentsCreateCall { c.urlParams_.Set("tensorboardExperimentId", tensorboardExperimentId) return c @@ -83446,7 +86079,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsCreateCall) Do(opts ...googleap // "type": "string" // }, // "tensorboardExperimentId": { - // "description": "Required. The ID to use for the Tensorboard experiment, which becomes the final component of the Tensorboard experiment's resource name. This value should be 1-128 characters, and valid characters are /a-z-/.", + // "description": "Required. The ID to use for the Tensorboard experiment, which becomes the final component of the Tensorboard experiment's resource name. This value should be 1-128 characters, and valid characters are `/a-z-/`.", // "location": "query", // "type": "string" // } @@ -85269,7 +87902,7 @@ func (r *ProjectsLocationsTensorboardsExperimentsRunsService) Create(parent stri // TensorboardRunId sets the optional parameter "tensorboardRunId": // Required. The ID to use for the Tensorboard run, which becomes the // final component of the Tensorboard run's resource name. This value -// should be 1-128 characters, and valid characters are /a-z-/. +// should be 1-128 characters, and valid characters are `/a-z-/`. func (c *ProjectsLocationsTensorboardsExperimentsRunsCreateCall) TensorboardRunId(tensorboardRunId string) *ProjectsLocationsTensorboardsExperimentsRunsCreateCall { c.urlParams_.Set("tensorboardRunId", tensorboardRunId) return c @@ -85383,7 +88016,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsRunsCreateCall) Do(opts ...goog // "type": "string" // }, // "tensorboardRunId": { - // "description": "Required. The ID to use for the Tensorboard run, which becomes the final component of the Tensorboard run's resource name. This value should be 1-128 characters, and valid characters are /a-z-/.", + // "description": "Required. The ID to use for the Tensorboard run, which becomes the final component of the Tensorboard run's resource name. This value should be 1-128 characters, and valid characters are `/a-z-/`.", // "location": "query", // "type": "string" // } diff --git a/aiplatform/v1beta1/aiplatform-api.json b/aiplatform/v1beta1/aiplatform-api.json index b6827d708cc..358fa800875 100644 --- a/aiplatform/v1beta1/aiplatform-api.json +++ b/aiplatform/v1beta1/aiplatform-api.json @@ -10785,7 +10785,7 @@ "type": "string" }, "persistentResourceId": { - "description": "Required. The ID to use for the PersistentResource, which become the final component of the PersistentResource's resource name. The maximum length is 63 characters, and valid characters are /^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/.", + "description": "Required. The ID to use for the PersistentResource, which become the final component of the PersistentResource's resource name. The maximum length is 63 characters, and valid characters are `/^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/`.", "location": "query", "type": "string" } @@ -11123,7 +11123,7 @@ "type": "string" }, "pipelineJobId": { - "description": "The ID to use for the PipelineJob, which will become the final component of the PipelineJob name. If not provided, an ID will be automatically generated. This value should be less than 128 characters, and valid characters are /a-z-/.", + "description": "The ID to use for the PipelineJob, which will become the final component of the PipelineJob name. If not provided, an ID will be automatically generated. This value should be less than 128 characters, and valid characters are `/a-z-/`.", "location": "query", "type": "string" } @@ -13277,7 +13277,7 @@ "type": "string" }, "tensorboardExperimentId": { - "description": "Required. The ID to use for the Tensorboard experiment, which becomes the final component of the Tensorboard experiment's resource name. This value should be 1-128 characters, and valid characters are /a-z-/.", + "description": "Required. The ID to use for the Tensorboard experiment, which becomes the final component of the Tensorboard experiment's resource name. This value should be 1-128 characters, and valid characters are `/a-z-/`.", "location": "query", "type": "string" } @@ -13657,7 +13657,7 @@ "type": "string" }, "tensorboardRunId": { - "description": "Required. The ID to use for the Tensorboard run, which becomes the final component of the Tensorboard run's resource name. This value should be 1-128 characters, and valid characters are /a-z-/.", + "description": "Required. The ID to use for the Tensorboard run, which becomes the final component of the Tensorboard run's resource name. This value should be 1-128 characters, and valid characters are `/a-z-/`.", "location": "query", "type": "string" } @@ -15015,7 +15015,7 @@ } } }, - "revision": "20230908", + "revision": "20230914", "rootUrl": "https://aiplatform.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -16616,7 +16616,7 @@ "description": "Required. The PipelineJob to create." }, "pipelineJobId": { - "description": "The ID to use for the PipelineJob, which will become the final component of the PipelineJob name. If not provided, an ID will be automatically generated. This value should be less than 128 characters, and valid characters are /a-z-/.", + "description": "The ID to use for the PipelineJob, which will become the final component of the PipelineJob name. If not provided, an ID will be automatically generated. This value should be less than 128 characters, and valid characters are `/a-z-/`.", "type": "string" } }, @@ -16668,7 +16668,7 @@ "description": "Required. The TensorboardRun to create." }, "tensorboardRunId": { - "description": "Required. The ID to use for the Tensorboard run, which becomes the final component of the Tensorboard run's resource name. This value should be 1-128 characters, and valid characters are /a-z-/.", + "description": "Required. The ID to use for the Tensorboard run, which becomes the final component of the Tensorboard run's resource name. This value should be 1-128 characters, and valid characters are `/a-z-/`.", "type": "string" } }, @@ -17444,7 +17444,7 @@ "readOnly": true }, "reservedIpRanges": { - "description": "Optional. A list of reserved ip ranges under the VPC network that can be used for this DeployedIndex. If set, we will deploy the index within the provided ip ranges. Otherwise, the index might be deployed to any ip ranges under the provided VPC network. The value should be the name of the address (https://cloud.google.com/compute/docs/reference/rest/v1/addresses) Example: 'vertex-ai-ip-range'.", + "description": "Optional. A list of reserved ip ranges under the VPC network that can be used for this DeployedIndex. If set, we will deploy the index within the provided ip ranges. Otherwise, the index might be deployed to any ip ranges under the provided VPC network. The value should be the name of the address (https://cloud.google.com/compute/docs/reference/rest/v1/addresses) Example: ['vertex-ai-ip-range']. For more information about subnets and network IP ranges, please see https://cloud.google.com/vpc/docs/subnets#manually_created_subnet_ip_ranges.", "items": { "type": "string" }, @@ -17539,7 +17539,7 @@ "description": "Explanation configuration for this DeployedModel. When deploying a Model using EndpointService.DeployModel, this value overrides the value of Model.explanation_spec. All fields of explanation_spec are optional in the request. If a field of explanation_spec is not populated, the value of the same field of Model.explanation_spec is inherited. If the corresponding Model.explanation_spec is not populated, all fields of the explanation_spec will be used for the explanation configuration." }, "id": { - "description": "Immutable. The ID of the DeployedModel. If not provided upon deployment, Vertex AI will generate a value for this ID. This value should be 1-10 characters, and valid characters are /[0-9]/.", + "description": "Immutable. The ID of the DeployedModel. If not provided upon deployment, Vertex AI will generate a value for this ID. This value should be 1-10 characters, and valid characters are `/[0-9]/`.", "type": "string" }, "model": { @@ -23258,6 +23258,13 @@ "readOnly": true, "type": "string" }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "The labels with user-defined metadata to organize your NotebookRuntime. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. No more than 64 user labels can be associated with one Dataset (System labels are excluded). See https://goo.gl/xmQnxf for more information and examples of labels. System reserved label keys are prefixed with \"aiplatform.googleapis.com/\" and are immutable. Following system labels exist for NotebookRuntime: * \"aiplatform.googleapis.com/notebook_runtime_gce_instance_id\": output only, its value is the Compute Engine instance id. * \"aiplatform.googleapis.com/colab_enterprise_entry_service\": its value is either \"BigQuery\" or \"Vertex\"; if absent, it should be \"Vertex\". This is to describe the entry service, either BigQuery or Vertex.", + "type": "object" + }, "name": { "description": "Output only. The resource name of the NotebookRuntime.", "readOnly": true, @@ -23365,7 +23372,7 @@ }, "machineSpec": { "$ref": "GoogleCloudAiplatformV1beta1MachineSpec", - "description": "Required. Immutable. The specification of a single machine used by the prediction." + "description": "Optional. Immutable. The specification of a single machine for the template." }, "name": { "description": "Output only. The resource name of the NotebookRuntimeTemplate.", diff --git a/aiplatform/v1beta1/aiplatform-gen.go b/aiplatform/v1beta1/aiplatform-gen.go index 48c1482f609..0a878a1c848 100644 --- a/aiplatform/v1beta1/aiplatform-gen.go +++ b/aiplatform/v1beta1/aiplatform-gen.go @@ -4538,7 +4538,7 @@ type GoogleCloudAiplatformV1beta1CreatePipelineJobRequest struct { // PipelineJobId: The ID to use for the PipelineJob, which will become // the final component of the PipelineJob name. If not provided, an ID // will be automatically generated. This value should be less than 128 - // characters, and valid characters are /a-z-/. + // characters, and valid characters are `/a-z-/`. PipelineJobId string `json:"pipelineJobId,omitempty"` // ForceSendFields is a list of field names (e.g. "Parent") to @@ -4670,7 +4670,7 @@ type GoogleCloudAiplatformV1beta1CreateTensorboardRunRequest struct { // TensorboardRunId: Required. The ID to use for the Tensorboard run, // which becomes the final component of the Tensorboard run's resource // name. This value should be 1-128 characters, and valid characters are - // /a-z-/. + // `/a-z-/`. TensorboardRunId string `json:"tensorboardRunId,omitempty"` // ForceSendFields is a list of field names (e.g. "Parent") to @@ -6083,7 +6083,9 @@ type GoogleCloudAiplatformV1beta1DeployedIndex struct { // might be deployed to any ip ranges under the provided VPC network. // The value should be the name of the address // (https://cloud.google.com/compute/docs/reference/rest/v1/addresses) - // Example: 'vertex-ai-ip-range'. + // Example: ['vertex-ai-ip-range']. For more information about subnets + // and network IP ranges, please see + // https://cloud.google.com/vpc/docs/subnets#manually_created_subnet_ip_ranges. ReservedIpRanges []string `json:"reservedIpRanges,omitempty"` // ForceSendFields is a list of field names (e.g. "AutomaticResources") @@ -6265,7 +6267,7 @@ type GoogleCloudAiplatformV1beta1DeployedModel struct { // Id: Immutable. The ID of the DeployedModel. If not provided upon // deployment, Vertex AI will generate a value for this ID. This value - // should be 1-10 characters, and valid characters are /[0-9]/. + // should be 1-10 characters, and valid characters are `/[0-9]/`. Id string `json:"id,omitempty"` // Model: Required. The resource name of the Model that this is the @@ -16885,6 +16887,22 @@ type GoogleCloudAiplatformV1beta1NotebookRuntime struct { // ACTIVE state. HealthState string `json:"healthState,omitempty"` + // Labels: The labels with user-defined metadata to organize your + // NotebookRuntime. Label keys and values can be no longer than 64 + // characters (Unicode codepoints), can only contain lowercase letters, + // numeric characters, underscores and dashes. International characters + // are allowed. No more than 64 user labels can be associated with one + // Dataset (System labels are excluded). See https://goo.gl/xmQnxf for + // more information and examples of labels. System reserved label keys + // are prefixed with "aiplatform.googleapis.com/" and are immutable. + // Following system labels exist for NotebookRuntime: * + // "aiplatform.googleapis.com/notebook_runtime_gce_instance_id": output + // only, its value is the Compute Engine instance id. * + // "aiplatform.googleapis.com/colab_enterprise_entry_service": its value + // is either "BigQuery" or "Vertex"; if absent, it should be "Vertex". + // This is to describe the entry service, either BigQuery or Vertex. + Labels map[string]string `json:"labels,omitempty"` + // Name: Output only. The resource name of the NotebookRuntime. Name string `json:"name,omitempty"` @@ -16994,8 +17012,8 @@ type GoogleCloudAiplatformV1beta1NotebookRuntimeTemplate struct { // information and examples of labels. Labels map[string]string `json:"labels,omitempty"` - // MachineSpec: Required. Immutable. The specification of a single - // machine used by the prediction. + // MachineSpec: Optional. Immutable. The specification of a single + // machine for the template. MachineSpec *GoogleCloudAiplatformV1beta1MachineSpec `json:"machineSpec,omitempty"` // Name: Output only. The resource name of the NotebookRuntimeTemplate. @@ -86262,8 +86280,8 @@ func (r *ProjectsLocationsPersistentResourcesService) Create(parent string, goog // "persistentResourceId": Required. The ID to use for the // PersistentResource, which become the final component of the // PersistentResource's resource name. The maximum length is 63 -// characters, and valid characters are /^a-z -// ([a-z0-9-]{0,61}[a-z0-9])?$/. +// characters, and valid characters are `/^a-z +// ([a-z0-9-]{0,61}[a-z0-9])?$/`. func (c *ProjectsLocationsPersistentResourcesCreateCall) PersistentResourceId(persistentResourceId string) *ProjectsLocationsPersistentResourcesCreateCall { c.urlParams_.Set("persistentResourceId", persistentResourceId) return c @@ -86376,7 +86394,7 @@ func (c *ProjectsLocationsPersistentResourcesCreateCall) Do(opts ...googleapi.Ca // "type": "string" // }, // "persistentResourceId": { - // "description": "Required. The ID to use for the PersistentResource, which become the final component of the PersistentResource's resource name. The maximum length is 63 characters, and valid characters are /^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/.", + // "description": "Required. The ID to use for the PersistentResource, which become the final component of the PersistentResource's resource name. The maximum length is 63 characters, and valid characters are `/^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/`.", // "location": "query", // "type": "string" // } @@ -88000,7 +88018,7 @@ func (r *ProjectsLocationsPipelineJobsService) Create(parent string, googlecloud // use for the PipelineJob, which will become the final component of the // PipelineJob name. If not provided, an ID will be automatically // generated. This value should be less than 128 characters, and valid -// characters are /a-z-/. +// characters are `/a-z-/`. func (c *ProjectsLocationsPipelineJobsCreateCall) PipelineJobId(pipelineJobId string) *ProjectsLocationsPipelineJobsCreateCall { c.urlParams_.Set("pipelineJobId", pipelineJobId) return c @@ -88114,7 +88132,7 @@ func (c *ProjectsLocationsPipelineJobsCreateCall) Do(opts ...googleapi.CallOptio // "type": "string" // }, // "pipelineJobId": { - // "description": "The ID to use for the PipelineJob, which will become the final component of the PipelineJob name. If not provided, an ID will be automatically generated. This value should be less than 128 characters, and valid characters are /a-z-/.", + // "description": "The ID to use for the PipelineJob, which will become the final component of the PipelineJob name. If not provided, an ID will be automatically generated. This value should be less than 128 characters, and valid characters are `/a-z-/`.", // "location": "query", // "type": "string" // } @@ -99051,7 +99069,7 @@ func (r *ProjectsLocationsTensorboardsExperimentsService) Create(parent string, // "tensorboardExperimentId": Required. The ID to use for the // Tensorboard experiment, which becomes the final component of the // Tensorboard experiment's resource name. This value should be 1-128 -// characters, and valid characters are /a-z-/. +// characters, and valid characters are `/a-z-/`. func (c *ProjectsLocationsTensorboardsExperimentsCreateCall) TensorboardExperimentId(tensorboardExperimentId string) *ProjectsLocationsTensorboardsExperimentsCreateCall { c.urlParams_.Set("tensorboardExperimentId", tensorboardExperimentId) return c @@ -99166,7 +99184,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsCreateCall) Do(opts ...googleap // "type": "string" // }, // "tensorboardExperimentId": { - // "description": "Required. The ID to use for the Tensorboard experiment, which becomes the final component of the Tensorboard experiment's resource name. This value should be 1-128 characters, and valid characters are /a-z-/.", + // "description": "Required. The ID to use for the Tensorboard experiment, which becomes the final component of the Tensorboard experiment's resource name. This value should be 1-128 characters, and valid characters are `/a-z-/`.", // "location": "query", // "type": "string" // } @@ -100987,7 +101005,7 @@ func (r *ProjectsLocationsTensorboardsExperimentsRunsService) Create(parent stri // TensorboardRunId sets the optional parameter "tensorboardRunId": // Required. The ID to use for the Tensorboard run, which becomes the // final component of the Tensorboard run's resource name. This value -// should be 1-128 characters, and valid characters are /a-z-/. +// should be 1-128 characters, and valid characters are `/a-z-/`. func (c *ProjectsLocationsTensorboardsExperimentsRunsCreateCall) TensorboardRunId(tensorboardRunId string) *ProjectsLocationsTensorboardsExperimentsRunsCreateCall { c.urlParams_.Set("tensorboardRunId", tensorboardRunId) return c @@ -101102,7 +101120,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsRunsCreateCall) Do(opts ...goog // "type": "string" // }, // "tensorboardRunId": { - // "description": "Required. The ID to use for the Tensorboard run, which becomes the final component of the Tensorboard run's resource name. This value should be 1-128 characters, and valid characters are /a-z-/.", + // "description": "Required. The ID to use for the Tensorboard run, which becomes the final component of the Tensorboard run's resource name. This value should be 1-128 characters, and valid characters are `/a-z-/`.", // "location": "query", // "type": "string" // } diff --git a/analyticsadmin/v1alpha/analyticsadmin-api.json b/analyticsadmin/v1alpha/analyticsadmin-api.json index 9e39bfa4e5a..fbf6e42e029 100644 --- a/analyticsadmin/v1alpha/analyticsadmin-api.json +++ b/analyticsadmin/v1alpha/analyticsadmin-api.json @@ -1718,7 +1718,10 @@ }, "response": { "$ref": "GoogleAnalyticsAdminV1alphaAdSenseLink" - } + }, + "scopes": [ + "https://www.googleapis.com/auth/analytics.edit" + ] }, "delete": { "description": "Deletes an AdSenseLink.", @@ -1740,7 +1743,10 @@ "path": "v1alpha/{+name}", "response": { "$ref": "GoogleProtobufEmpty" - } + }, + "scopes": [ + "https://www.googleapis.com/auth/analytics.edit" + ] }, "get": { "description": "Looks up a single AdSenseLink.", @@ -1762,7 +1768,11 @@ "path": "v1alpha/{+name}", "response": { "$ref": "GoogleAnalyticsAdminV1alphaAdSenseLink" - } + }, + "scopes": [ + "https://www.googleapis.com/auth/analytics.edit", + "https://www.googleapis.com/auth/analytics.readonly" + ] }, "list": { "description": "Lists AdSenseLinks on a property.", @@ -1795,7 +1805,11 @@ "path": "v1alpha/{+parent}/adSenseLinks", "response": { "$ref": "GoogleAnalyticsAdminV1alphaListAdSenseLinksResponse" - } + }, + "scopes": [ + "https://www.googleapis.com/auth/analytics.edit", + "https://www.googleapis.com/auth/analytics.readonly" + ] } } }, @@ -4510,7 +4524,7 @@ } } }, - "revision": "20230906", + "revision": "20230917", "rootUrl": "https://analyticsadmin.googleapis.com/", "schemas": { "GoogleAnalyticsAdminV1alphaAccessBetweenFilter": { diff --git a/analyticsadmin/v1alpha/analyticsadmin-gen.go b/analyticsadmin/v1alpha/analyticsadmin-gen.go index 44214e365d7..e2bc63c9944 100644 --- a/analyticsadmin/v1alpha/analyticsadmin-gen.go +++ b/analyticsadmin/v1alpha/analyticsadmin-gen.go @@ -15987,7 +15987,10 @@ func (c *PropertiesAdSenseLinksCreateCall) Do(opts ...googleapi.CallOption) (*Go // }, // "response": { // "$ref": "GoogleAnalyticsAdminV1alphaAdSenseLink" - // } + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/analytics.edit" + // ] // } } @@ -16118,7 +16121,10 @@ func (c *PropertiesAdSenseLinksDeleteCall) Do(opts ...googleapi.CallOption) (*Go // "path": "v1alpha/{+name}", // "response": { // "$ref": "GoogleProtobufEmpty" - // } + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/analytics.edit" + // ] // } } @@ -16264,7 +16270,11 @@ func (c *PropertiesAdSenseLinksGetCall) Do(opts ...googleapi.CallOption) (*Googl // "path": "v1alpha/{+name}", // "response": { // "$ref": "GoogleAnalyticsAdminV1alphaAdSenseLink" - // } + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/analytics.edit", + // "https://www.googleapis.com/auth/analytics.readonly" + // ] // } } @@ -16440,7 +16450,11 @@ func (c *PropertiesAdSenseLinksListCall) Do(opts ...googleapi.CallOption) (*Goog // "path": "v1alpha/{+parent}/adSenseLinks", // "response": { // "$ref": "GoogleAnalyticsAdminV1alphaListAdSenseLinksResponse" - // } + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/analytics.edit", + // "https://www.googleapis.com/auth/analytics.readonly" + // ] // } } diff --git a/analyticsdata/v1beta/analyticsdata-api.json b/analyticsdata/v1beta/analyticsdata-api.json index b78cebaeece..680731830b8 100644 --- a/analyticsdata/v1beta/analyticsdata-api.json +++ b/analyticsdata/v1beta/analyticsdata-api.json @@ -313,7 +313,7 @@ } } }, - "revision": "20230906", + "revision": "20230917", "rootUrl": "https://analyticsdata.googleapis.com/", "schemas": { "ActiveMetricRestriction": { @@ -851,7 +851,7 @@ "type": "object" }, "Metadata": { - "description": "The dimensions and metrics currently accepted in reporting methods.", + "description": "The dimensions, metrics and comparisons currently accepted in reporting methods.", "id": "Metadata", "properties": { "dimensions": { diff --git a/analyticsdata/v1beta/analyticsdata-gen.go b/analyticsdata/v1beta/analyticsdata-gen.go index 3001805a3ec..f92f454e44d 100644 --- a/analyticsdata/v1beta/analyticsdata-gen.go +++ b/analyticsdata/v1beta/analyticsdata-gen.go @@ -1225,8 +1225,8 @@ func (s *InListFilter) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Metadata: The dimensions and metrics currently accepted in reporting -// methods. +// Metadata: The dimensions, metrics and comparisons currently accepted +// in reporting methods. type Metadata struct { // Dimensions: The dimension descriptions. Dimensions []*DimensionMetadata `json:"dimensions,omitempty"` diff --git a/androidmanagement/v1/androidmanagement-api.json b/androidmanagement/v1/androidmanagement-api.json index da8c62cceaa..5f5ff52d7c0 100644 --- a/androidmanagement/v1/androidmanagement-api.json +++ b/androidmanagement/v1/androidmanagement-api.json @@ -1095,7 +1095,7 @@ } } }, - "revision": "20230828", + "revision": "20230911", "rootUrl": "https://androidmanagement.googleapis.com/", "schemas": { "AdbShellCommandEvent": { @@ -2251,17 +2251,23 @@ ], "type": "string" }, + "exemptionsToShowWorkContactsInPersonalProfile": { + "$ref": "PackageNameList", + "description": "List of apps which are excluded from the ShowWorkContactsInPersonalProfile setting. For this to be set, ShowWorkContactsInPersonalProfile must be set to one of the following values: * SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_ALLOWED. In this case, these exemptions act as a blocklist. * SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_DISALLOWED. In this case, these exemptions act as an allowlist. * SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_DISALLOWED_EXCEPT_SYSTEM. In this case, these exemptions act as an allowlist, in addition to the already allowlisted system apps. Supported on Android 14 and above. A nonComplianceDetail with API_LEVEL is reported if the Android version is less than 14." + }, "showWorkContactsInPersonalProfile": { "description": "Whether contacts stored in the work profile can be shown in personal profile contact searches and incoming calls.", "enum": [ "SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_UNSPECIFIED", "SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_DISALLOWED", - "SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_ALLOWED" + "SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_ALLOWED", + "SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_DISALLOWED_EXCEPT_SYSTEM" ], "enumDescriptions": [ "Unspecified. Defaults to SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_ALLOWED.", "Prevents work profile contacts from appearing in personal profile contact searches and incoming calls", - "Default. Allows work profile contacts to appear in personal profile contact searches and incoming calls" + "Default. Allows work profile contacts to appear in personal profile contact searches and incoming calls", + "Prevents most personal apps from accessing work profile contacts including contact searches and incoming calls, except for the OEM default Dialer, Messages, and Contacts apps. Neither user-configured Dialer, Messages, and Contacts apps, nor any other system or play installed apps, will be able to query work contacts directly. When this is set, personal apps specified in exemptions_to_show_work_contacts_in_personal_profile are allowlisted and can access work profile contacts. Supported on Android 14 and above. If this is set on a device with Android version less than 14, the behaviour falls back to SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_DISALLOWED and a nonComplianceDetail with API_LEVEL is reported." ], "type": "string" }, diff --git a/androidmanagement/v1/androidmanagement-gen.go b/androidmanagement/v1/androidmanagement-gen.go index e43e0826a5a..b52a699d43f 100644 --- a/androidmanagement/v1/androidmanagement-gen.go +++ b/androidmanagement/v1/androidmanagement-gen.go @@ -1912,6 +1912,21 @@ type CrossProfilePolicies struct { // be shared with the other profile. CrossProfileDataSharing string `json:"crossProfileDataSharing,omitempty"` + // ExemptionsToShowWorkContactsInPersonalProfile: List of apps which are + // excluded from the ShowWorkContactsInPersonalProfile setting. For this + // to be set, ShowWorkContactsInPersonalProfile must be set to one of + // the following values: * + // SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_ALLOWED. In this case, these + // exemptions act as a blocklist. * + // SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_DISALLOWED. In this case, + // these exemptions act as an allowlist. * + // SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_DISALLOWED_EXCEPT_SYSTEM. In + // this case, these exemptions act as an allowlist, in addition to the + // already allowlisted system apps. Supported on Android 14 and above. A + // nonComplianceDetail with API_LEVEL is reported if the Android version + // is less than 14. + ExemptionsToShowWorkContactsInPersonalProfile *PackageNameList `json:"exemptionsToShowWorkContactsInPersonalProfile,omitempty"` + // ShowWorkContactsInPersonalProfile: Whether contacts stored in the // work profile can be shown in personal profile contact searches and // incoming calls. @@ -1925,6 +1940,19 @@ type CrossProfilePolicies struct { // "SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_ALLOWED" - Default. Allows // work profile contacts to appear in personal profile contact searches // and incoming calls + // "SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_DISALLOWED_EXCEPT_SYSTEM" - + // Prevents most personal apps from accessing work profile contacts + // including contact searches and incoming calls, except for the OEM + // default Dialer, Messages, and Contacts apps. Neither user-configured + // Dialer, Messages, and Contacts apps, nor any other system or play + // installed apps, will be able to query work contacts directly. When + // this is set, personal apps specified in + // exemptions_to_show_work_contacts_in_personal_profile are allowlisted + // and can access work profile contacts. Supported on Android 14 and + // above. If this is set on a device with Android version less than 14, + // the behaviour falls back to + // SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_DISALLOWED and a + // nonComplianceDetail with API_LEVEL is reported. ShowWorkContactsInPersonalProfile string `json:"showWorkContactsInPersonalProfile,omitempty"` // WorkProfileWidgetsDefault: Specifies the default behaviour for work diff --git a/androidpublisher/v3/androidpublisher-api.json b/androidpublisher/v3/androidpublisher-api.json index bf9fe11d38e..0c6120200af 100644 --- a/androidpublisher/v3/androidpublisher-api.json +++ b/androidpublisher/v3/androidpublisher-api.json @@ -4047,7 +4047,7 @@ } } }, - "revision": "20230907", + "revision": "20230917", "rootUrl": "https://androidpublisher.googleapis.com/", "schemas": { "Abi": { @@ -4062,7 +4062,8 @@ "ARMEABI_V7A", "ARM64_V8A", "X86", - "X86_64" + "X86_64", + "RISCV64" ], "enumDescriptions": [ "Unspecified abi.", @@ -4070,7 +4071,8 @@ "ARMEABI_V7A abi.", "ARM64_V8A abi.", "X86 abi.", - "X86_64 abi." + "X86_64 abi.", + "RISCV64 abi." ], "type": "string" } diff --git a/androidpublisher/v3/androidpublisher-gen.go b/androidpublisher/v3/androidpublisher-gen.go index b0fdc502554..e92690d270e 100644 --- a/androidpublisher/v3/androidpublisher-gen.go +++ b/androidpublisher/v3/androidpublisher-gen.go @@ -542,6 +542,7 @@ type Abi struct { // "ARM64_V8A" - ARM64_V8A abi. // "X86" - X86 abi. // "X86_64" - X86_64 abi. + // "RISCV64" - RISCV64 abi. Alias string `json:"alias,omitempty"` // ForceSendFields is a list of field names (e.g. "Alias") to diff --git a/api-list.json b/api-list.json index b0c88f17b92..cdd6ab4a744 100644 --- a/api-list.json +++ b/api-list.json @@ -4228,7 +4228,7 @@ "name": "orgpolicy", "version": "v2", "title": "Organization Policy API", - "description": "The Org Policy API allows users to configure governance rules on their GCP resources across the Cloud Resource Hierarchy.", + "description": "The Organization Policy API allows users to configure governance rules on their Google Cloud resources across the resource hierarchy.", "discoveryRestUrl": "https://orgpolicy.googleapis.com/$discovery/rest?version=v2", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", diff --git a/content/v2.1/content-api.json b/content/v2.1/content-api.json index cbde141ff8f..d58925a8c5d 100644 --- a/content/v2.1/content-api.json +++ b/content/v2.1/content-api.json @@ -2559,6 +2559,55 @@ "https://www.googleapis.com/auth/content" ] }, + "setomnichannelexperience": { + "description": "Sets the omnichannel experience for the specified country.", + "flatPath": "{merchantId}/liasettings/{accountId}/setomnichannelexperience", + "httpMethod": "POST", + "id": "content.liasettings.setomnichannelexperience", + "parameterOrder": [ + "merchantId", + "accountId" + ], + "parameters": { + "accountId": { + "description": "The ID of the account for which to retrieve accessible Business Profiles.", + "format": "uint64", + "location": "path", + "required": true, + "type": "string" + }, + "country": { + "description": "The CLDR country code (for example, \"US\") for which the omnichannel experience is selected.", + "location": "query", + "type": "string" + }, + "lsfType": { + "description": "The Local Store Front (LSF) type for this country. Acceptable values are: - \"`ghlsf`\" (Google-Hosted Local Store Front) - \"`mhlsfBasic`\" (Merchant-Hosted Local Store Front Basic) - \"`mhlsfFull`\" (Merchant-Hosted Local Store Front Full) More details about these types can be found here.", + "location": "query", + "type": "string" + }, + "merchantId": { + "description": "The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account.", + "format": "uint64", + "location": "path", + "required": true, + "type": "string" + }, + "pickupTypes": { + "description": "The Pickup types for this country. Acceptable values are: - \"`pickupToday`\" - \"`pickupLater`\" ", + "location": "query", + "repeated": true, + "type": "string" + } + }, + "path": "{merchantId}/liasettings/{accountId}/setomnichannelexperience", + "response": { + "$ref": "LiaOmnichannelExperience" + }, + "scopes": [ + "https://www.googleapis.com/auth/content" + ] + }, "setposdataprovider": { "description": "Sets the POS data provider for the specified country.", "flatPath": "{merchantId}/liasettings/{accountId}/setposdataprovider", @@ -6439,7 +6488,7 @@ } } }, - "revision": "20230905", + "revision": "20230914", "rootUrl": "https://shoppingcontent.googleapis.com/", "schemas": { "Account": { @@ -10021,6 +10070,10 @@ "$ref": "LiaInventorySettings", "description": "LIA inventory verification settings." }, + "omnichannelExperience": { + "$ref": "LiaOmnichannelExperience", + "description": "The omnichannel experience configured for this country." + }, "onDisplayToOrder": { "$ref": "LiaOnDisplayToOrderSettings", "description": "LIA \"On Display To Order\" settings." @@ -10058,6 +10111,28 @@ }, "type": "object" }, + "LiaOmnichannelExperience": { + "description": "Omnichannel experience details.", + "id": "LiaOmnichannelExperience", + "properties": { + "country": { + "description": "The CLDR country code (for example, \"US\").", + "type": "string" + }, + "lsfType": { + "description": "The Local Store Front (LSF) type for this country. Acceptable values are: - \"`ghlsf`\" (Google-Hosted Local Store Front) - \"`mhlsfBasic`\" (Merchant-Hosted Local Store Front Basic) - \"`mhlsfFull`\" (Merchant-Hosted Local Store Front Full) More details about these types can be found here.", + "type": "string" + }, + "pickupTypes": { + "description": "The Pickup types for this country. Acceptable values are: - \"`pickupToday`\" - \"`pickupLater`\" ", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "LiaOnDisplayToOrderSettings": { "id": "LiaOnDisplayToOrderSettings", "properties": { @@ -10165,6 +10240,10 @@ "description": "The method of the batch entry. Acceptable values are: - \"`get`\" - \"`getAccessibleGmbAccounts`\" - \"`requestGmbAccess`\" - \"`requestInventoryVerification`\" - \"`setInventoryVerificationContact`\" - \"`update`\" ", "type": "string" }, + "omnichannelExperience": { + "$ref": "LiaOmnichannelExperience", + "description": "The omnichannel experience for a country. Required only for SetOmnichannelExperience." + }, "posDataProviderId": { "description": "The ID of POS data provider. Required only for SetPosProvider.", "format": "uint64", @@ -10218,6 +10297,10 @@ "$ref": "LiaSettings", "description": "The retrieved or updated Lia settings." }, + "omnichannelExperience": { + "$ref": "LiaOmnichannelExperience", + "description": "The updated omnichannel experience for a country." + }, "posDataProviders": { "description": "The list of POS data providers.", "items": { diff --git a/content/v2.1/content-gen.go b/content/v2.1/content-gen.go index 9c1b3cd169b..18f2dbab9be 100644 --- a/content/v2.1/content-gen.go +++ b/content/v2.1/content-gen.go @@ -6650,6 +6650,10 @@ type LiaCountrySettings struct { // Inventory: LIA inventory verification settings. Inventory *LiaInventorySettings `json:"inventory,omitempty"` + // OmnichannelExperience: The omnichannel experience configured for this + // country. + OmnichannelExperience *LiaOmnichannelExperience `json:"omnichannelExperience,omitempty"` + // OnDisplayToOrder: LIA "On Display To Order" settings. OnDisplayToOrder *LiaOnDisplayToOrderSettings `json:"onDisplayToOrder,omitempty"` @@ -6725,6 +6729,49 @@ func (s *LiaInventorySettings) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// LiaOmnichannelExperience: Omnichannel experience details. +type LiaOmnichannelExperience struct { + // Country: The CLDR country code (for example, "US"). + Country string `json:"country,omitempty"` + + // LsfType: The Local Store Front (LSF) type for this country. + // Acceptable values are: - "ghlsf" (Google-Hosted Local Store Front) + // - "mhlsfBasic" (Merchant-Hosted Local Store Front Basic) - + // "mhlsfFull" (Merchant-Hosted Local Store Front Full) More details + // about these types can be found here. + LsfType string `json:"lsfType,omitempty"` + + // PickupTypes: The Pickup types for this country. Acceptable values + // are: - "pickupToday" - "pickupLater" + PickupTypes []string `json:"pickupTypes,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Country") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Country") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *LiaOmnichannelExperience) MarshalJSON() ([]byte, error) { + type NoMethod LiaOmnichannelExperience + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + type LiaOnDisplayToOrderSettings struct { // ShippingCostPolicyUrl: Shipping cost and policy URL. ShippingCostPolicyUrl string `json:"shippingCostPolicyUrl,omitempty"` @@ -6894,6 +6941,10 @@ type LiasettingsCustomBatchRequestEntry struct { // "setInventoryVerificationContact" - "update" Method string `json:"method,omitempty"` + // OmnichannelExperience: The omnichannel experience for a country. + // Required only for SetOmnichannelExperience. + OmnichannelExperience *LiaOmnichannelExperience `json:"omnichannelExperience,omitempty"` + // PosDataProviderId: The ID of POS data provider. Required only for // SetPosProvider. PosDataProviderId uint64 `json:"posDataProviderId,omitempty,string"` @@ -6977,6 +7028,10 @@ type LiasettingsCustomBatchResponseEntry struct { // LiaSettings: The retrieved or updated Lia settings. LiaSettings *LiaSettings `json:"liaSettings,omitempty"` + // OmnichannelExperience: The updated omnichannel experience for a + // country. + OmnichannelExperience *LiaOmnichannelExperience `json:"omnichannelExperience,omitempty"` + // PosDataProviders: The list of POS data providers. PosDataProviders []*PosDataProviders `json:"posDataProviders,omitempty"` @@ -32986,6 +33041,196 @@ func (c *LiasettingsSetinventoryverificationcontactCall) Do(opts ...googleapi.Ca } +// method id "content.liasettings.setomnichannelexperience": + +type LiasettingsSetomnichannelexperienceCall struct { + s *APIService + merchantId uint64 + accountId uint64 + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Setomnichannelexperience: Sets the omnichannel experience for the +// specified country. +// +// - accountId: The ID of the account for which to retrieve accessible +// Business Profiles. +// - merchantId: The ID of the managing account. If this parameter is +// not the same as accountId, then this account must be a multi-client +// account and `accountId` must be the ID of a sub-account of this +// account. +func (r *LiasettingsService) Setomnichannelexperience(merchantId uint64, accountId uint64) *LiasettingsSetomnichannelexperienceCall { + c := &LiasettingsSetomnichannelexperienceCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.merchantId = merchantId + c.accountId = accountId + return c +} + +// Country sets the optional parameter "country": The CLDR country code +// (for example, "US") for which the omnichannel experience is selected. +func (c *LiasettingsSetomnichannelexperienceCall) Country(country string) *LiasettingsSetomnichannelexperienceCall { + c.urlParams_.Set("country", country) + return c +} + +// LsfType sets the optional parameter "lsfType": The Local Store Front +// (LSF) type for this country. Acceptable values are: - "ghlsf" +// (Google-Hosted Local Store Front) - "mhlsfBasic" (Merchant-Hosted +// Local Store Front Basic) - "mhlsfFull" (Merchant-Hosted Local Store +// Front Full) More details about these types can be found here. +func (c *LiasettingsSetomnichannelexperienceCall) LsfType(lsfType string) *LiasettingsSetomnichannelexperienceCall { + c.urlParams_.Set("lsfType", lsfType) + return c +} + +// PickupTypes sets the optional parameter "pickupTypes": The Pickup +// types for this country. Acceptable values are: - "pickupToday" - +// "pickupLater" +func (c *LiasettingsSetomnichannelexperienceCall) PickupTypes(pickupTypes ...string) *LiasettingsSetomnichannelexperienceCall { + c.urlParams_.SetMulti("pickupTypes", append([]string{}, pickupTypes...)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *LiasettingsSetomnichannelexperienceCall) Fields(s ...googleapi.Field) *LiasettingsSetomnichannelexperienceCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *LiasettingsSetomnichannelexperienceCall) Context(ctx context.Context) *LiasettingsSetomnichannelexperienceCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *LiasettingsSetomnichannelexperienceCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *LiasettingsSetomnichannelexperienceCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/liasettings/{accountId}/setomnichannelexperience") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "merchantId": strconv.FormatUint(c.merchantId, 10), + "accountId": strconv.FormatUint(c.accountId, 10), + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "content.liasettings.setomnichannelexperience" call. +// Exactly one of *LiaOmnichannelExperience or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *LiaOmnichannelExperience.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *LiasettingsSetomnichannelexperienceCall) Do(opts ...googleapi.CallOption) (*LiaOmnichannelExperience, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &LiaOmnichannelExperience{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Sets the omnichannel experience for the specified country.", + // "flatPath": "{merchantId}/liasettings/{accountId}/setomnichannelexperience", + // "httpMethod": "POST", + // "id": "content.liasettings.setomnichannelexperience", + // "parameterOrder": [ + // "merchantId", + // "accountId" + // ], + // "parameters": { + // "accountId": { + // "description": "The ID of the account for which to retrieve accessible Business Profiles.", + // "format": "uint64", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "country": { + // "description": "The CLDR country code (for example, \"US\") for which the omnichannel experience is selected.", + // "location": "query", + // "type": "string" + // }, + // "lsfType": { + // "description": "The Local Store Front (LSF) type for this country. Acceptable values are: - \"`ghlsf`\" (Google-Hosted Local Store Front) - \"`mhlsfBasic`\" (Merchant-Hosted Local Store Front Basic) - \"`mhlsfFull`\" (Merchant-Hosted Local Store Front Full) More details about these types can be found here.", + // "location": "query", + // "type": "string" + // }, + // "merchantId": { + // "description": "The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account.", + // "format": "uint64", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "pickupTypes": { + // "description": "The Pickup types for this country. Acceptable values are: - \"`pickupToday`\" - \"`pickupLater`\" ", + // "location": "query", + // "repeated": true, + // "type": "string" + // } + // }, + // "path": "{merchantId}/liasettings/{accountId}/setomnichannelexperience", + // "response": { + // "$ref": "LiaOmnichannelExperience" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/content" + // ] + // } + +} + // method id "content.liasettings.setposdataprovider": type LiasettingsSetposdataproviderCall struct { diff --git a/mybusinessbusinessinformation/v1/mybusinessbusinessinformation-api.json b/mybusinessbusinessinformation/v1/mybusinessbusinessinformation-api.json index 2e3a3525be6..c0ba995b0c2 100644 --- a/mybusinessbusinessinformation/v1/mybusinessbusinessinformation-api.json +++ b/mybusinessbusinessinformation/v1/mybusinessbusinessinformation-api.json @@ -612,7 +612,7 @@ } } }, - "revision": "20230531", + "revision": "20230917", "rootUrl": "https://mybusinessbusinessinformation.googleapis.com/", "schemas": { "AdWordsLocationExtensions": { @@ -1155,7 +1155,7 @@ }, "storefrontAddress": { "$ref": "PostalAddress", - "description": "Optional. A precise, accurate address to describe your business location. PO boxes or mailboxes located at remote locations are not acceptable. At this time, you can specify a maximum of five `address_lines` values in the address. This field should only be set for businesses that have a storefront. This field should not be set for locations of type `CUSTOMER_LOCATION_ONLY`." + "description": "Optional. A precise, accurate address to describe your business location. PO boxes or mailboxes located at remote locations are not acceptable. At this time, you can specify a maximum of five `address_lines` values in the address. This field should only be set for businesses that have a storefront. This field should not be set for locations of type `CUSTOMER_LOCATION_ONLY` but if set, any value provided will be discarded." }, "title": { "description": "Required. Location name should reflect your business's real-world name, as used consistently on your storefront, website, and stationery, and as known to customers. Any additional information, when relevant, can be included in other fields of the resource (for example, `Address`, `Categories`). Don't add unnecessary information to your name (for example, prefer \"Google\" over \"Google Inc. - Mountain View Corporate Headquarters\"). Don't include marketing taglines, store codes, special characters, hours or closed/open status, phone numbers, website URLs, service/product information, location/address or directions, or containment information (for example, \"Chase ATM in Duane Reade\").", diff --git a/mybusinessbusinessinformation/v1/mybusinessbusinessinformation-gen.go b/mybusinessbusinessinformation/v1/mybusinessbusinessinformation-gen.go index 3dd0f6b93c0..f61198ef6c2 100644 --- a/mybusinessbusinessinformation/v1/mybusinessbusinessinformation-gen.go +++ b/mybusinessbusinessinformation/v1/mybusinessbusinessinformation-gen.go @@ -1202,7 +1202,8 @@ type Location struct { // locations are not acceptable. At this time, you can specify a maximum // of five `address_lines` values in the address. This field should only // be set for businesses that have a storefront. This field should not - // be set for locations of type `CUSTOMER_LOCATION_ONLY`. + // be set for locations of type `CUSTOMER_LOCATION_ONLY` but if set, any + // value provided will be discarded. StorefrontAddress *PostalAddress `json:"storefrontAddress,omitempty"` // Title: Required. Location name should reflect your business's diff --git a/paymentsresellersubscription/v1/paymentsresellersubscription-api.json b/paymentsresellersubscription/v1/paymentsresellersubscription-api.json index 64461fc9901..4be34e53e84 100644 --- a/paymentsresellersubscription/v1/paymentsresellersubscription-api.json +++ b/paymentsresellersubscription/v1/paymentsresellersubscription-api.json @@ -396,7 +396,7 @@ } } }, - "revision": "20230913", + "revision": "20230917", "rootUrl": "https://paymentsresellersubscription.googleapis.com/", "schemas": { "GoogleCloudPaymentsResellerSubscriptionV1Amount": { @@ -716,7 +716,7 @@ "id": "GoogleCloudPaymentsResellerSubscriptionV1Product", "properties": { "bundleDetails": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetails", + "$ref": "ProductBundleDetails", "description": "Output only. Output Only. Specifies the details for a bundle product.", "readOnly": true }, @@ -776,34 +776,6 @@ }, "type": "object" }, - "GoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetails": { - "description": "Details for a bundle product.", - "id": "GoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetails", - "properties": { - "bundleElements": { - "description": "The individual products that are included in the bundle.", - "items": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetailsBundleElement" - }, - "type": "array" - }, - "entitlementMode": { - "description": "The entitlement mode of the bundle product.", - "enum": [ - "ENTITLEMENT_MODE_UNSPECIFIED", - "ENTITLEMENT_MODE_FULL", - "ENTITLEMENT_MODE_INCREMENTAL" - ], - "enumDescriptions": [ - "Unspecified. It's reserved as an unexpected value, should not be used.", - "All the bundle elements must be fully activated in a single request.", - "The bundle elements could be incrementally activated." - ], - "type": "string" - } - }, - "type": "object" - }, "GoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetailsBundleElement": { "description": "The individual product that is included in the bundle.", "id": "GoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetailsBundleElement", @@ -1157,6 +1129,11 @@ "description": "Output only. The price of the product/service in this line item. The amount could be the wholesale price, or it can include a cost of sale based on the contract.", "readOnly": true }, + "bundleDetails": { + "$ref": "SubscriptionLineItemBundleDetails", + "description": "Output only. The bundle details for the line item. Only populated if the line item corresponds to a hard bundle.", + "readOnly": true + }, "description": { "description": "Output only. Description of this line item.", "readOnly": true, @@ -1241,6 +1218,24 @@ }, "type": "object" }, + "GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemBundleDetailsBundleElementDetails": { + "description": "The details for an element in the hard bundle.", + "id": "GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemBundleDetailsBundleElementDetails", + "properties": { + "product": { + "description": "Output only. Product resource name that identifies the bundle element. The format is 'partners/{partner_id}/products/{product_id}'.", + "readOnly": true, + "type": "string" + }, + "userAccountLinkedTime": { + "description": "Output only. The time when this product is linked to an end user.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails": { "description": "Details for a ONE_TIME recurrence line item.", "id": "GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails", @@ -1364,6 +1359,48 @@ } }, "type": "object" + }, + "ProductBundleDetails": { + "description": "Details for a bundle product.", + "id": "ProductBundleDetails", + "properties": { + "bundleElements": { + "description": "The individual products that are included in the bundle.", + "items": { + "$ref": "GoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetailsBundleElement" + }, + "type": "array" + }, + "entitlementMode": { + "description": "The entitlement mode of the bundle product.", + "enum": [ + "ENTITLEMENT_MODE_UNSPECIFIED", + "ENTITLEMENT_MODE_FULL", + "ENTITLEMENT_MODE_INCREMENTAL" + ], + "enumDescriptions": [ + "Unspecified. It's reserved as an unexpected value, should not be used.", + "All the bundle elements must be fully activated in a single request.", + "The bundle elements could be incrementally activated." + ], + "type": "string" + } + }, + "type": "object" + }, + "SubscriptionLineItemBundleDetails": { + "description": "The bundle details for a line item corresponding to a hard bundle.", + "id": "SubscriptionLineItemBundleDetails", + "properties": { + "bundleElementDetails": { + "description": "The details for each element in the hard bundle.", + "items": { + "$ref": "GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemBundleDetailsBundleElementDetails" + }, + "type": "array" + } + }, + "type": "object" } }, "servicePath": "", diff --git a/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go b/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go index 5e9068792c3..1f915718bd5 100644 --- a/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go +++ b/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go @@ -790,7 +790,7 @@ func (s *GoogleCloudPaymentsResellerSubscriptionV1Location) MarshalJSON() ([]byt type GoogleCloudPaymentsResellerSubscriptionV1Product struct { // BundleDetails: Output only. Output Only. Specifies the details for a // bundle product. - BundleDetails *GoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetails `json:"bundleDetails,omitempty"` + BundleDetails *ProductBundleDetails `json:"bundleDetails,omitempty"` // FiniteBillingCycleDetails: Optional. Details for a subscription line // item with finite billing cycles. If unset, the line item will be @@ -851,48 +851,6 @@ func (s *GoogleCloudPaymentsResellerSubscriptionV1Product) MarshalJSON() ([]byte return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetails: -// Details for a bundle product. -type GoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetails struct { - // BundleElements: The individual products that are included in the - // bundle. - BundleElements []*GoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetailsBundleElement `json:"bundleElements,omitempty"` - - // EntitlementMode: The entitlement mode of the bundle product. - // - // Possible values: - // "ENTITLEMENT_MODE_UNSPECIFIED" - Unspecified. It's reserved as an - // unexpected value, should not be used. - // "ENTITLEMENT_MODE_FULL" - All the bundle elements must be fully - // activated in a single request. - // "ENTITLEMENT_MODE_INCREMENTAL" - The bundle elements could be - // incrementally activated. - EntitlementMode string `json:"entitlementMode,omitempty"` - - // ForceSendFields is a list of field names (e.g. "BundleElements") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BundleElements") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetails) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetailsBundleEle // ment: The individual product that is included in the bundle. type GoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetailsBundleElement struct { @@ -1377,6 +1335,10 @@ type GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem struct { // cost of sale based on the contract. Amount *GoogleCloudPaymentsResellerSubscriptionV1Amount `json:"amount,omitempty"` + // BundleDetails: Output only. The bundle details for the line item. + // Only populated if the line item corresponds to a hard bundle. + BundleDetails *SubscriptionLineItemBundleDetails `json:"bundleDetails,omitempty"` + // Description: Output only. Description of this line item. Description string `json:"description,omitempty"` @@ -1472,6 +1434,42 @@ func (s *GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem) MarshalJ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemBundleDet +// ailsBundleElementDetails: The details for an element in the hard +// bundle. +type GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemBundleDetailsBundleElementDetails struct { + // Product: Output only. Product resource name that identifies the + // bundle element. The format is + // 'partners/{partner_id}/products/{product_id}'. + Product string `json:"product,omitempty"` + + // UserAccountLinkedTime: Output only. The time when this product is + // linked to an end user. + UserAccountLinkedTime string `json:"userAccountLinkedTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Product") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Product") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemBundleDetailsBundleElementDetails) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemBundleDetailsBundleElementDetails + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRe // currenceDetails: Details for a ONE_TIME recurrence line item. type GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails struct { @@ -1704,6 +1702,79 @@ func (s *GoogleTypeLocalizedText) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ProductBundleDetails: Details for a bundle product. +type ProductBundleDetails struct { + // BundleElements: The individual products that are included in the + // bundle. + BundleElements []*GoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetailsBundleElement `json:"bundleElements,omitempty"` + + // EntitlementMode: The entitlement mode of the bundle product. + // + // Possible values: + // "ENTITLEMENT_MODE_UNSPECIFIED" - Unspecified. It's reserved as an + // unexpected value, should not be used. + // "ENTITLEMENT_MODE_FULL" - All the bundle elements must be fully + // activated in a single request. + // "ENTITLEMENT_MODE_INCREMENTAL" - The bundle elements could be + // incrementally activated. + EntitlementMode string `json:"entitlementMode,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BundleElements") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BundleElements") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *ProductBundleDetails) MarshalJSON() ([]byte, error) { + type NoMethod ProductBundleDetails + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SubscriptionLineItemBundleDetails: The bundle details for a line item +// corresponding to a hard bundle. +type SubscriptionLineItemBundleDetails struct { + // BundleElementDetails: The details for each element in the hard + // bundle. + BundleElementDetails []*GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemBundleDetailsBundleElementDetails `json:"bundleElementDetails,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "BundleElementDetails") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BundleElementDetails") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *SubscriptionLineItemBundleDetails) MarshalJSON() ([]byte, error) { + type NoMethod SubscriptionLineItemBundleDetails + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // method id "paymentsresellersubscription.partners.products.list": type PartnersProductsListCall struct { diff --git a/spanner/v1/spanner-api.json b/spanner/v1/spanner-api.json index 9cbe0a1d42a..71160da5bc5 100644 --- a/spanner/v1/spanner-api.json +++ b/spanner/v1/spanner-api.json @@ -1830,35 +1830,6 @@ "https://www.googleapis.com/auth/spanner.data" ] }, - "batchWrite": { - "description": "Batches the supplied mutation groups in a collection of efficient transactions. All mutations in a group are committed atomically. However, mutations across groups can be committed non-atomically in an unspecified order and thus, they must be independent of each other. Partial failure is possible, i.e., some groups may have been committed successfully, while some may have failed. The results of individual batches are streamed into the response as the batches are applied. BatchWrite requests are not replay protected, meaning that each mutation group may be applied more than once. Replays of non-idempotent mutations may have undesirable effects. For example, replays of an insert mutation may produce an already exists error or result in additional rows if using generated or commit timestamp-based keys. We recommend structuring your mutation groups to be idempotent to avoid this issue.", - "flatPath": "v1/projects/{projectsId}/instances/{instancesId}/databases/{databasesId}/sessions/{sessionsId}:batchWrite", - "httpMethod": "POST", - "id": "spanner.projects.instances.databases.sessions.batchWrite", - "parameterOrder": [ - "session" - ], - "parameters": { - "session": { - "description": "Required. The session in which the batch request is to be run.", - "location": "path", - "pattern": "^projects/[^/]+/instances/[^/]+/databases/[^/]+/sessions/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+session}:batchWrite", - "request": { - "$ref": "BatchWriteRequest" - }, - "response": { - "$ref": "BatchWriteResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/spanner.data" - ] - }, "beginTransaction": { "description": "Begins a new transaction. This step can often be skipped: Read, ExecuteSql and Commit can begin a new transaction as a side-effect.", "flatPath": "v1/projects/{projectsId}/instances/{instancesId}/databases/{databasesId}/sessions/{sessionsId}:beginTransaction", @@ -2594,7 +2565,7 @@ } } }, - "revision": "20230909", + "revision": "20230918", "rootUrl": "https://spanner.googleapis.com/", "schemas": { "Backup": { @@ -2746,48 +2717,6 @@ }, "type": "object" }, - "BatchWriteRequest": { - "description": "The request for BatchWrite.", - "id": "BatchWriteRequest", - "properties": { - "mutationGroups": { - "description": "Required. The groups of mutations to be applied.", - "items": { - "$ref": "MutationGroup" - }, - "type": "array" - }, - "requestOptions": { - "$ref": "RequestOptions", - "description": "Common options for this request." - } - }, - "type": "object" - }, - "BatchWriteResponse": { - "description": "The result of applying a batch of mutations.", - "id": "BatchWriteResponse", - "properties": { - "commitTimestamp": { - "description": "The commit timestamp of the transaction that applied this batch. Present if `status` is `OK`, absent otherwise.", - "format": "google-datetime", - "type": "string" - }, - "indexes": { - "description": "The mutation groups applied in this batch. The values index into the `mutation_groups` field in the corresponding `BatchWriteRequest`.", - "items": { - "format": "int32", - "type": "integer" - }, - "type": "array" - }, - "status": { - "$ref": "Status", - "description": "An `OK` status indicates success. Any other status indicates a failure." - } - }, - "type": "object" - }, "BeginTransactionRequest": { "description": "The request for BeginTransaction.", "id": "BeginTransactionRequest", @@ -4391,20 +4320,6 @@ }, "type": "object" }, - "MutationGroup": { - "description": "A group of mutations to be committed together. Related mutations should be placed in a group. For example, two mutations inserting rows with the same primary key prefix in both parent and child tables are related.", - "id": "MutationGroup", - "properties": { - "mutations": { - "description": "Required. The mutations in this group.", - "items": { - "$ref": "Mutation" - }, - "type": "array" - } - }, - "type": "object" - }, "Operation": { "description": "This resource represents a long-running operation that is the result of a network API call.", "id": "Operation", diff --git a/spanner/v1/spanner-gen.go b/spanner/v1/spanner-gen.go index c9bbeac43e8..c60ed6d1dff 100644 --- a/spanner/v1/spanner-gen.go +++ b/spanner/v1/spanner-gen.go @@ -589,81 +589,6 @@ func (s *BatchCreateSessionsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// BatchWriteRequest: The request for BatchWrite. -type BatchWriteRequest struct { - // MutationGroups: Required. The groups of mutations to be applied. - MutationGroups []*MutationGroup `json:"mutationGroups,omitempty"` - - // RequestOptions: Common options for this request. - RequestOptions *RequestOptions `json:"requestOptions,omitempty"` - - // ForceSendFields is a list of field names (e.g. "MutationGroups") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "MutationGroups") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *BatchWriteRequest) MarshalJSON() ([]byte, error) { - type NoMethod BatchWriteRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// BatchWriteResponse: The result of applying a batch of mutations. -type BatchWriteResponse struct { - // CommitTimestamp: The commit timestamp of the transaction that applied - // this batch. Present if `status` is `OK`, absent otherwise. - CommitTimestamp string `json:"commitTimestamp,omitempty"` - - // Indexes: The mutation groups applied in this batch. The values index - // into the `mutation_groups` field in the corresponding - // `BatchWriteRequest`. - Indexes []int64 `json:"indexes,omitempty"` - - // Status: An `OK` status indicates success. Any other status indicates - // a failure. - Status *Status `json:"status,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "CommitTimestamp") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CommitTimestamp") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *BatchWriteResponse) MarshalJSON() ([]byte, error) { - type NoMethod BatchWriteResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // BeginTransactionRequest: The request for BeginTransaction. type BeginTransactionRequest struct { // Options: Required. Options for the new transaction. @@ -3621,37 +3546,6 @@ func (s *Mutation) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// MutationGroup: A group of mutations to be committed together. Related -// mutations should be placed in a group. For example, two mutations -// inserting rows with the same primary key prefix in both parent and -// child tables are related. -type MutationGroup struct { - // Mutations: Required. The mutations in this group. - Mutations []*Mutation `json:"mutations,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Mutations") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Mutations") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *MutationGroup) MarshalJSON() ([]byte, error) { - type NoMethod MutationGroup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // Operation: This resource represents a long-running operation that is // the result of a network API call. type Operation struct { @@ -15130,162 +15024,6 @@ func (c *ProjectsInstancesDatabasesSessionsBatchCreateCall) Do(opts ...googleapi } -// method id "spanner.projects.instances.databases.sessions.batchWrite": - -type ProjectsInstancesDatabasesSessionsBatchWriteCall struct { - s *Service - session string - batchwriterequest *BatchWriteRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// BatchWrite: Batches the supplied mutation groups in a collection of -// efficient transactions. All mutations in a group are committed -// atomically. However, mutations across groups can be committed -// non-atomically in an unspecified order and thus, they must be -// independent of each other. Partial failure is possible, i.e., some -// groups may have been committed successfully, while some may have -// failed. The results of individual batches are streamed into the -// response as the batches are applied. BatchWrite requests are not -// replay protected, meaning that each mutation group may be applied -// more than once. Replays of non-idempotent mutations may have -// undesirable effects. For example, replays of an insert mutation may -// produce an already exists error or result in additional rows if using -// generated or commit timestamp-based keys. We recommend structuring -// your mutation groups to be idempotent to avoid this issue. -// -// - session: The session in which the batch request is to be run. -func (r *ProjectsInstancesDatabasesSessionsService) BatchWrite(session string, batchwriterequest *BatchWriteRequest) *ProjectsInstancesDatabasesSessionsBatchWriteCall { - c := &ProjectsInstancesDatabasesSessionsBatchWriteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.session = session - c.batchwriterequest = batchwriterequest - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsInstancesDatabasesSessionsBatchWriteCall) Fields(s ...googleapi.Field) *ProjectsInstancesDatabasesSessionsBatchWriteCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsInstancesDatabasesSessionsBatchWriteCall) Context(ctx context.Context) *ProjectsInstancesDatabasesSessionsBatchWriteCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsInstancesDatabasesSessionsBatchWriteCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsInstancesDatabasesSessionsBatchWriteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.batchwriterequest) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+session}:batchWrite") - 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{ - "session": c.session, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "spanner.projects.instances.databases.sessions.batchWrite" call. -// Exactly one of *BatchWriteResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *BatchWriteResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *ProjectsInstancesDatabasesSessionsBatchWriteCall) Do(opts ...googleapi.CallOption) (*BatchWriteResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &BatchWriteResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Batches the supplied mutation groups in a collection of efficient transactions. All mutations in a group are committed atomically. However, mutations across groups can be committed non-atomically in an unspecified order and thus, they must be independent of each other. Partial failure is possible, i.e., some groups may have been committed successfully, while some may have failed. The results of individual batches are streamed into the response as the batches are applied. BatchWrite requests are not replay protected, meaning that each mutation group may be applied more than once. Replays of non-idempotent mutations may have undesirable effects. For example, replays of an insert mutation may produce an already exists error or result in additional rows if using generated or commit timestamp-based keys. We recommend structuring your mutation groups to be idempotent to avoid this issue.", - // "flatPath": "v1/projects/{projectsId}/instances/{instancesId}/databases/{databasesId}/sessions/{sessionsId}:batchWrite", - // "httpMethod": "POST", - // "id": "spanner.projects.instances.databases.sessions.batchWrite", - // "parameterOrder": [ - // "session" - // ], - // "parameters": { - // "session": { - // "description": "Required. The session in which the batch request is to be run.", - // "location": "path", - // "pattern": "^projects/[^/]+/instances/[^/]+/databases/[^/]+/sessions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+session}:batchWrite", - // "request": { - // "$ref": "BatchWriteRequest" - // }, - // "response": { - // "$ref": "BatchWriteResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/spanner.data" - // ] - // } - -} - // method id "spanner.projects.instances.databases.sessions.beginTransaction": type ProjectsInstancesDatabasesSessionsBeginTransactionCall struct {