Class: Google::Apis::WorkstationsV1beta::CloudWorkstationsService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::WorkstationsV1beta::CloudWorkstationsService
- Defined in:
- lib/google/apis/workstations_v1beta/service.rb
Overview
Cloud Workstations API
Allows administrators to create managed developer environments in the cloud.
Constant Summary collapse
- DEFAULT_ENDPOINT_TEMPLATE =
"https://workstations.$UNIVERSE_DOMAIN$/"
Instance Attribute Summary collapse
-
#key ⇒ String
API key.
-
#quota_user ⇒ String
Available to use for quota purposes for server-side applications.
Instance Method Summary collapse
-
#cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkstationsV1beta::GoogleProtobufEmpty
Starts asynchronous cancellation on a long-running operation.
-
#create_project_location_workstation_cluster(parent, workstation_cluster_object = nil, validate_only: nil, workstation_cluster_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkstationsV1beta::Operation
Creates a new workstation cluster.
-
#create_project_location_workstation_cluster_workstation_config(parent, workstation_config_object = nil, validate_only: nil, workstation_config_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkstationsV1beta::Operation
Creates a new workstation configuration.
-
#create_project_location_workstation_cluster_workstation_config_workstation(parent, workstation_object = nil, validate_only: nil, workstation_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkstationsV1beta::Operation
Creates a new workstation.
-
#delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkstationsV1beta::GoogleProtobufEmpty
Deletes a long-running operation.
-
#delete_project_location_workstation_cluster(name, etag: nil, force: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkstationsV1beta::Operation
Deletes the specified workstation cluster.
-
#delete_project_location_workstation_cluster_workstation_config(name, etag: nil, force: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkstationsV1beta::Operation
Deletes the specified workstation configuration.
-
#delete_project_location_workstation_cluster_workstation_config_workstation(name, etag: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkstationsV1beta::Operation
Deletes the specified workstation.
-
#generate_workstation_access_token(workstation, generate_access_token_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkstationsV1beta::GenerateAccessTokenResponse
Returns a short-lived credential that can be used to send authenticated and authorized traffic to a workstation.
-
#get_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkstationsV1beta::Operation
Gets the latest state of a long-running operation.
-
#get_project_location_workstation_cluster(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkstationsV1beta::WorkstationCluster
Returns the requested workstation cluster.
-
#get_project_location_workstation_cluster_workstation_config(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkstationsV1beta::WorkstationConfig
Returns the requested workstation configuration.
-
#get_project_location_workstation_cluster_workstation_config_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkstationsV1beta::Policy
Gets the access control policy for a resource.
-
#get_project_location_workstation_cluster_workstation_config_workstation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkstationsV1beta::Workstation
Returns the requested workstation.
-
#get_project_location_workstation_cluster_workstation_config_workstation_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkstationsV1beta::Policy
Gets the access control policy for a resource.
-
#initialize ⇒ CloudWorkstationsService
constructor
A new instance of CloudWorkstationsService.
-
#list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkstationsV1beta::ListOperationsResponse
Lists operations that match the specified filter in the request.
-
#list_project_location_workstation_cluster_workstation_config_usable(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkstationsV1beta::ListUsableWorkstationConfigsResponse
Returns all workstation configurations in the specified cluster on which the caller has the "workstations.workstation.create" permission.
-
#list_project_location_workstation_cluster_workstation_config_workstation_usable(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkstationsV1beta::ListUsableWorkstationsResponse
Returns all workstations using the specified workstation configuration on which the caller has the "workstations.workstations.use" permission.
-
#list_project_location_workstation_cluster_workstation_config_workstations(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkstationsV1beta::ListWorkstationsResponse
Returns all Workstations using the specified workstation configuration.
-
#list_project_location_workstation_cluster_workstation_configs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkstationsV1beta::ListWorkstationConfigsResponse
Returns all workstation configurations in the specified cluster.
-
#list_project_location_workstation_clusters(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkstationsV1beta::ListWorkstationClustersResponse
Returns all workstation clusters in the specified location.
-
#patch_project_location_workstation_cluster(name, workstation_cluster_object = nil, allow_missing: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkstationsV1beta::Operation
Updates an existing workstation cluster.
-
#patch_project_location_workstation_cluster_workstation_config(name, workstation_config_object = nil, allow_missing: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkstationsV1beta::Operation
Updates an existing workstation configuration.
-
#patch_project_location_workstation_cluster_workstation_config_workstation(name, workstation_object = nil, allow_missing: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkstationsV1beta::Operation
Updates an existing workstation.
-
#set_workstation_config_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkstationsV1beta::Policy
Sets the access control policy on the specified resource.
-
#set_workstation_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkstationsV1beta::Policy
Sets the access control policy on the specified resource.
-
#start_workstation(name, start_workstation_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkstationsV1beta::Operation
Starts running a workstation so that users can connect to it.
-
#stop_workstation(name, stop_workstation_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkstationsV1beta::Operation
Stops running a workstation, reducing costs.
-
#test_workstation_config_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkstationsV1beta::TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource.
-
#test_workstation_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkstationsV1beta::TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource.
Constructor Details
#initialize ⇒ CloudWorkstationsService
Returns a new instance of CloudWorkstationsService.
47 48 49 50 51 52 |
# File 'lib/google/apis/workstations_v1beta/service.rb', line 47 def initialize super(DEFAULT_ENDPOINT_TEMPLATE, '', client_name: 'google-apis-workstations_v1beta', client_version: Google::Apis::WorkstationsV1beta::GEM_VERSION) @batch_path = 'batch' end |
Instance Attribute Details
#key ⇒ String
Returns API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
40 41 42 |
# File 'lib/google/apis/workstations_v1beta/service.rb', line 40 def key @key end |
#quota_user ⇒ String
Returns Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
45 46 47 |
# File 'lib/google/apis/workstations_v1beta/service.rb', line 45 def quota_user @quota_user end |
Instance Method Details
#cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkstationsV1beta::GoogleProtobufEmpty
Starts asynchronous cancellation on a long-running operation. The server makes
a best effort to cancel the operation, but success is not guaranteed. If the
server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED
.
Clients can use Operations.GetOperation or other methods to check whether the
cancellation succeeded or whether the operation completed despite cancellation.
On successful cancellation, the operation is not deleted; instead, it becomes
an operation with an Operation.error value with a google.rpc.Status.code of 1,
corresponding to Code.CANCELLED
.
82 83 84 85 86 87 88 89 90 91 92 |
# File 'lib/google/apis/workstations_v1beta/service.rb', line 82 def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta/{+name}:cancel', ) command.request_representation = Google::Apis::WorkstationsV1beta::CancelOperationRequest::Representation command.request_object = cancel_operation_request_object command.response_representation = Google::Apis::WorkstationsV1beta::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::WorkstationsV1beta::GoogleProtobufEmpty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_workstation_cluster(parent, workstation_cluster_object = nil, validate_only: nil, workstation_cluster_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkstationsV1beta::Operation
Creates a new workstation cluster.
224 225 226 227 228 229 230 231 232 233 234 235 236 |
# File 'lib/google/apis/workstations_v1beta/service.rb', line 224 def create_project_location_workstation_cluster(parent, workstation_cluster_object = nil, validate_only: nil, workstation_cluster_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta/{+parent}/workstationClusters', ) command.request_representation = Google::Apis::WorkstationsV1beta::WorkstationCluster::Representation command.request_object = workstation_cluster_object command.response_representation = Google::Apis::WorkstationsV1beta::Operation::Representation command.response_class = Google::Apis::WorkstationsV1beta::Operation command.params['parent'] = parent unless parent.nil? command.query['validateOnly'] = validate_only unless validate_only.nil? command.query['workstationClusterId'] = workstation_cluster_id unless workstation_cluster_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_workstation_cluster_workstation_config(parent, workstation_config_object = nil, validate_only: nil, workstation_config_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkstationsV1beta::Operation
Creates a new workstation configuration.
418 419 420 421 422 423 424 425 426 427 428 429 430 |
# File 'lib/google/apis/workstations_v1beta/service.rb', line 418 def create_project_location_workstation_cluster_workstation_config(parent, workstation_config_object = nil, validate_only: nil, workstation_config_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta/{+parent}/workstationConfigs', ) command.request_representation = Google::Apis::WorkstationsV1beta::WorkstationConfig::Representation command.request_object = workstation_config_object command.response_representation = Google::Apis::WorkstationsV1beta::Operation::Representation command.response_class = Google::Apis::WorkstationsV1beta::Operation command.params['parent'] = parent unless parent.nil? command.query['validateOnly'] = validate_only unless validate_only.nil? command.query['workstationConfigId'] = workstation_config_id unless workstation_config_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_workstation_cluster_workstation_config_workstation(parent, workstation_object = nil, validate_only: nil, workstation_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkstationsV1beta::Operation
Creates a new workstation.
771 772 773 774 775 776 777 778 779 780 781 782 783 |
# File 'lib/google/apis/workstations_v1beta/service.rb', line 771 def create_project_location_workstation_cluster_workstation_config_workstation(parent, workstation_object = nil, validate_only: nil, workstation_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta/{+parent}/workstations', ) command.request_representation = Google::Apis::WorkstationsV1beta::Workstation::Representation command.request_object = workstation_object command.response_representation = Google::Apis::WorkstationsV1beta::Operation::Representation command.response_class = Google::Apis::WorkstationsV1beta::Operation command.params['parent'] = parent unless parent.nil? command.query['validateOnly'] = validate_only unless validate_only.nil? command.query['workstationId'] = workstation_id unless workstation_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkstationsV1beta::GoogleProtobufEmpty
Deletes a long-running operation. This method indicates that the client is no
longer interested in the operation result. It does not cancel the operation.
If the server doesn't support this method, it returns google.rpc.Code.
UNIMPLEMENTED
.
117 118 119 120 121 122 123 124 125 |
# File 'lib/google/apis/workstations_v1beta/service.rb', line 117 def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta/{+name}', ) command.response_representation = Google::Apis::WorkstationsV1beta::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::WorkstationsV1beta::GoogleProtobufEmpty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_workstation_cluster(name, etag: nil, force: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkstationsV1beta::Operation
Deletes the specified workstation cluster.
268 269 270 271 272 273 274 275 276 277 278 279 |
# File 'lib/google/apis/workstations_v1beta/service.rb', line 268 def delete_project_location_workstation_cluster(name, etag: nil, force: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta/{+name}', ) command.response_representation = Google::Apis::WorkstationsV1beta::Operation::Representation command.response_class = Google::Apis::WorkstationsV1beta::Operation command.params['name'] = name unless name.nil? command.query['etag'] = etag unless etag.nil? command.query['force'] = force unless force.nil? command.query['validateOnly'] = validate_only unless validate_only.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_workstation_cluster_workstation_config(name, etag: nil, force: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkstationsV1beta::Operation
Deletes the specified workstation configuration.
462 463 464 465 466 467 468 469 470 471 472 473 |
# File 'lib/google/apis/workstations_v1beta/service.rb', line 462 def delete_project_location_workstation_cluster_workstation_config(name, etag: nil, force: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta/{+name}', ) command.response_representation = Google::Apis::WorkstationsV1beta::Operation::Representation command.response_class = Google::Apis::WorkstationsV1beta::Operation command.params['name'] = name unless name.nil? command.query['etag'] = etag unless etag.nil? command.query['force'] = force unless force.nil? command.query['validateOnly'] = validate_only unless validate_only.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_workstation_cluster_workstation_config_workstation(name, etag: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkstationsV1beta::Operation
Deletes the specified workstation.
811 812 813 814 815 816 817 818 819 820 821 |
# File 'lib/google/apis/workstations_v1beta/service.rb', line 811 def delete_project_location_workstation_cluster_workstation_config_workstation(name, etag: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta/{+name}', ) command.response_representation = Google::Apis::WorkstationsV1beta::Operation::Representation command.response_class = Google::Apis::WorkstationsV1beta::Operation command.params['name'] = name unless name.nil? command.query['etag'] = etag unless etag.nil? command.query['validateOnly'] = validate_only unless validate_only.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#generate_workstation_access_token(workstation, generate_access_token_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkstationsV1beta::GenerateAccessTokenResponse
Returns a short-lived credential that can be used to send authenticated and authorized traffic to a workstation.
846 847 848 849 850 851 852 853 854 855 856 |
# File 'lib/google/apis/workstations_v1beta/service.rb', line 846 def generate_workstation_access_token(workstation, generate_access_token_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta/{+workstation}:generateAccessToken', ) command.request_representation = Google::Apis::WorkstationsV1beta::GenerateAccessTokenRequest::Representation command.request_object = generate_access_token_request_object command.response_representation = Google::Apis::WorkstationsV1beta::GenerateAccessTokenResponse::Representation command.response_class = Google::Apis::WorkstationsV1beta::GenerateAccessTokenResponse command.params['workstation'] = workstation unless workstation.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkstationsV1beta::Operation
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
148 149 150 151 152 153 154 155 156 |
# File 'lib/google/apis/workstations_v1beta/service.rb', line 148 def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta/{+name}', ) command.response_representation = Google::Apis::WorkstationsV1beta::Operation::Representation command.response_class = Google::Apis::WorkstationsV1beta::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_workstation_cluster(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkstationsV1beta::WorkstationCluster
Returns the requested workstation cluster.
301 302 303 304 305 306 307 308 309 |
# File 'lib/google/apis/workstations_v1beta/service.rb', line 301 def get_project_location_workstation_cluster(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta/{+name}', ) command.response_representation = Google::Apis::WorkstationsV1beta::WorkstationCluster::Representation command.response_class = Google::Apis::WorkstationsV1beta::WorkstationCluster command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_workstation_cluster_workstation_config(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkstationsV1beta::WorkstationConfig
Returns the requested workstation configuration.
495 496 497 498 499 500 501 502 503 |
# File 'lib/google/apis/workstations_v1beta/service.rb', line 495 def get_project_location_workstation_cluster_workstation_config(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta/{+name}', ) command.response_representation = Google::Apis::WorkstationsV1beta::WorkstationConfig::Representation command.response_class = Google::Apis::WorkstationsV1beta::WorkstationConfig command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_workstation_cluster_workstation_config_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkstationsV1beta::Policy
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
539 540 541 542 543 544 545 546 547 548 |
# File 'lib/google/apis/workstations_v1beta/service.rb', line 539 def get_project_location_workstation_cluster_workstation_config_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta/{+resource}:getIamPolicy', ) command.response_representation = Google::Apis::WorkstationsV1beta::Policy::Representation command.response_class = Google::Apis::WorkstationsV1beta::Policy command.params['resource'] = resource unless resource.nil? command.query['options.requestedPolicyVersion'] = unless .nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_workstation_cluster_workstation_config_workstation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkstationsV1beta::Workstation
Returns the requested workstation.
878 879 880 881 882 883 884 885 886 |
# File 'lib/google/apis/workstations_v1beta/service.rb', line 878 def get_project_location_workstation_cluster_workstation_config_workstation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta/{+name}', ) command.response_representation = Google::Apis::WorkstationsV1beta::Workstation::Representation command.response_class = Google::Apis::WorkstationsV1beta::Workstation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_workstation_cluster_workstation_config_workstation_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkstationsV1beta::Policy
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
922 923 924 925 926 927 928 929 930 931 |
# File 'lib/google/apis/workstations_v1beta/service.rb', line 922 def get_project_location_workstation_cluster_workstation_config_workstation_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta/{+resource}:getIamPolicy', ) command.response_representation = Google::Apis::WorkstationsV1beta::Policy::Representation command.response_class = Google::Apis::WorkstationsV1beta::Policy command.params['resource'] = resource unless resource.nil? command.query['options.requestedPolicyVersion'] = unless .nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkstationsV1beta::ListOperationsResponse
Lists operations that match the specified filter in the request. If the server
doesn't support this method, it returns UNIMPLEMENTED
.
185 186 187 188 189 190 191 192 193 194 195 196 |
# File 'lib/google/apis/workstations_v1beta/service.rb', line 185 def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta/{+name}/operations', ) command.response_representation = Google::Apis::WorkstationsV1beta::ListOperationsResponse::Representation command.response_class = Google::Apis::WorkstationsV1beta::ListOperationsResponse command.params['name'] = name unless name.nil? command.query['filter'] = filter unless filter.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_workstation_cluster_workstation_config_usable(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkstationsV1beta::ListUsableWorkstationConfigsResponse
Returns all workstation configurations in the specified cluster on which the caller has the "workstations.workstation.create" permission.
611 612 613 614 615 616 617 618 619 620 621 |
# File 'lib/google/apis/workstations_v1beta/service.rb', line 611 def list_project_location_workstation_cluster_workstation_config_usable(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta/{+parent}/workstationConfigs:listUsable', ) command.response_representation = Google::Apis::WorkstationsV1beta::ListUsableWorkstationConfigsResponse::Representation command.response_class = Google::Apis::WorkstationsV1beta::ListUsableWorkstationConfigsResponse command.params['parent'] = parent unless parent.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_workstation_cluster_workstation_config_workstation_usable(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkstationsV1beta::ListUsableWorkstationsResponse
Returns all workstations using the specified workstation configuration on which the caller has the "workstations.workstations.use" permission.
994 995 996 997 998 999 1000 1001 1002 1003 1004 |
# File 'lib/google/apis/workstations_v1beta/service.rb', line 994 def list_project_location_workstation_cluster_workstation_config_workstation_usable(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta/{+parent}/workstations:listUsable', ) command.response_representation = Google::Apis::WorkstationsV1beta::ListUsableWorkstationsResponse::Representation command.response_class = Google::Apis::WorkstationsV1beta::ListUsableWorkstationsResponse command.params['parent'] = parent unless parent.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_workstation_cluster_workstation_config_workstations(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkstationsV1beta::ListWorkstationsResponse
Returns all Workstations using the specified workstation configuration.
957 958 959 960 961 962 963 964 965 966 967 |
# File 'lib/google/apis/workstations_v1beta/service.rb', line 957 def list_project_location_workstation_cluster_workstation_config_workstations(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta/{+parent}/workstations', ) command.response_representation = Google::Apis::WorkstationsV1beta::ListWorkstationsResponse::Representation command.response_class = Google::Apis::WorkstationsV1beta::ListWorkstationsResponse command.params['parent'] = parent unless parent.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_workstation_cluster_workstation_configs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkstationsV1beta::ListWorkstationConfigsResponse
Returns all workstation configurations in the specified cluster.
574 575 576 577 578 579 580 581 582 583 584 |
# File 'lib/google/apis/workstations_v1beta/service.rb', line 574 def list_project_location_workstation_cluster_workstation_configs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta/{+parent}/workstationConfigs', ) command.response_representation = Google::Apis::WorkstationsV1beta::ListWorkstationConfigsResponse::Representation command.response_class = Google::Apis::WorkstationsV1beta::ListWorkstationConfigsResponse command.params['parent'] = parent unless parent.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_workstation_clusters(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkstationsV1beta::ListWorkstationClustersResponse
Returns all workstation clusters in the specified location.
335 336 337 338 339 340 341 342 343 344 345 |
# File 'lib/google/apis/workstations_v1beta/service.rb', line 335 def list_project_location_workstation_clusters(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta/{+parent}/workstationClusters', ) command.response_representation = Google::Apis::WorkstationsV1beta::ListWorkstationClustersResponse::Representation command.response_class = Google::Apis::WorkstationsV1beta::ListWorkstationClustersResponse command.params['parent'] = parent unless parent.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_workstation_cluster(name, workstation_cluster_object = nil, allow_missing: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkstationsV1beta::Operation
Updates an existing workstation cluster.
377 378 379 380 381 382 383 384 385 386 387 388 389 390 |
# File 'lib/google/apis/workstations_v1beta/service.rb', line 377 def patch_project_location_workstation_cluster(name, workstation_cluster_object = nil, allow_missing: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1beta/{+name}', ) command.request_representation = Google::Apis::WorkstationsV1beta::WorkstationCluster::Representation command.request_object = workstation_cluster_object command.response_representation = Google::Apis::WorkstationsV1beta::Operation::Representation command.response_class = Google::Apis::WorkstationsV1beta::Operation command.params['name'] = name unless name.nil? command.query['allowMissing'] = allow_missing unless allow_missing.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['validateOnly'] = validate_only unless validate_only.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_workstation_cluster_workstation_config(name, workstation_config_object = nil, allow_missing: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkstationsV1beta::Operation
Updates an existing workstation configuration.
654 655 656 657 658 659 660 661 662 663 664 665 666 667 |
# File 'lib/google/apis/workstations_v1beta/service.rb', line 654 def patch_project_location_workstation_cluster_workstation_config(name, workstation_config_object = nil, allow_missing: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1beta/{+name}', ) command.request_representation = Google::Apis::WorkstationsV1beta::WorkstationConfig::Representation command.request_object = workstation_config_object command.response_representation = Google::Apis::WorkstationsV1beta::Operation::Representation command.response_class = Google::Apis::WorkstationsV1beta::Operation command.params['name'] = name unless name.nil? command.query['allowMissing'] = allow_missing unless allow_missing.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['validateOnly'] = validate_only unless validate_only.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_workstation_cluster_workstation_config_workstation(name, workstation_object = nil, allow_missing: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkstationsV1beta::Operation
Updates an existing workstation.
1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 |
# File 'lib/google/apis/workstations_v1beta/service.rb', line 1037 def patch_project_location_workstation_cluster_workstation_config_workstation(name, workstation_object = nil, allow_missing: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1beta/{+name}', ) command.request_representation = Google::Apis::WorkstationsV1beta::Workstation::Representation command.request_object = workstation_object command.response_representation = Google::Apis::WorkstationsV1beta::Operation::Representation command.response_class = Google::Apis::WorkstationsV1beta::Operation command.params['name'] = name unless name.nil? command.query['allowMissing'] = allow_missing unless allow_missing.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['validateOnly'] = validate_only unless validate_only.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#set_workstation_config_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkstationsV1beta::Policy
Sets the access control policy on the specified resource. Replaces any
existing policy. Can return NOT_FOUND
, INVALID_ARGUMENT
, and
PERMISSION_DENIED
errors.
694 695 696 697 698 699 700 701 702 703 704 |
# File 'lib/google/apis/workstations_v1beta/service.rb', line 694 def set_workstation_config_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta/{+resource}:setIamPolicy', ) command.request_representation = Google::Apis::WorkstationsV1beta::SetIamPolicyRequest::Representation command.request_object = set_iam_policy_request_object command.response_representation = Google::Apis::WorkstationsV1beta::Policy::Representation command.response_class = Google::Apis::WorkstationsV1beta::Policy command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#set_workstation_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkstationsV1beta::Policy
Sets the access control policy on the specified resource. Replaces any
existing policy. Can return NOT_FOUND
, INVALID_ARGUMENT
, and
PERMISSION_DENIED
errors.
1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 |
# File 'lib/google/apis/workstations_v1beta/service.rb', line 1077 def set_workstation_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta/{+resource}:setIamPolicy', ) command.request_representation = Google::Apis::WorkstationsV1beta::SetIamPolicyRequest::Representation command.request_object = set_iam_policy_request_object command.response_representation = Google::Apis::WorkstationsV1beta::Policy::Representation command.response_class = Google::Apis::WorkstationsV1beta::Policy command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#start_workstation(name, start_workstation_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkstationsV1beta::Operation
Starts running a workstation so that users can connect to it.
1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 |
# File 'lib/google/apis/workstations_v1beta/service.rb', line 1110 def start_workstation(name, start_workstation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta/{+name}:start', ) command.request_representation = Google::Apis::WorkstationsV1beta::StartWorkstationRequest::Representation command.request_object = start_workstation_request_object command.response_representation = Google::Apis::WorkstationsV1beta::Operation::Representation command.response_class = Google::Apis::WorkstationsV1beta::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#stop_workstation(name, stop_workstation_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkstationsV1beta::Operation
Stops running a workstation, reducing costs.
1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 |
# File 'lib/google/apis/workstations_v1beta/service.rb', line 1143 def stop_workstation(name, stop_workstation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta/{+name}:stop', ) command.request_representation = Google::Apis::WorkstationsV1beta::StopWorkstationRequest::Representation command.request_object = stop_workstation_request_object command.response_representation = Google::Apis::WorkstationsV1beta::Operation::Representation command.response_class = Google::Apis::WorkstationsV1beta::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#test_workstation_config_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkstationsV1beta::TestIamPermissionsResponse
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.
733 734 735 736 737 738 739 740 741 742 743 |
# File 'lib/google/apis/workstations_v1beta/service.rb', line 733 def (resource, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta/{+resource}:testIamPermissions', ) command.request_representation = Google::Apis::WorkstationsV1beta::TestIamPermissionsRequest::Representation command.request_object = command.response_representation = Google::Apis::WorkstationsV1beta::TestIamPermissionsResponse::Representation command.response_class = Google::Apis::WorkstationsV1beta::TestIamPermissionsResponse command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#test_workstation_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkstationsV1beta::TestIamPermissionsResponse
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.
1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 |
# File 'lib/google/apis/workstations_v1beta/service.rb', line 1182 def (resource, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta/{+resource}:testIamPermissions', ) command.request_representation = Google::Apis::WorkstationsV1beta::TestIamPermissionsRequest::Representation command.request_object = command.response_representation = Google::Apis::WorkstationsV1beta::TestIamPermissionsResponse::Representation command.response_class = Google::Apis::WorkstationsV1beta::TestIamPermissionsResponse command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |