Class: Google::Apis::ProdTtSasportalV1alpha1::SASPortalTestingService

Inherits:
Core::BaseService
  • Object
show all
Defined in:
generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb

Overview

SAS Portal API (Testing)

Examples:

require 'google/apis/prod_tt_sasportal_v1alpha1'

ProdTtSasportal = Google::Apis::ProdTtSasportalV1alpha1 # Alias the module
service = ProdTtSasportal::SASPortalTestingService.new

See Also:

Instance Attribute Summary collapse

Attributes inherited from Core::BaseService

#authorization, #base_path, #batch_path, #client, #client_options, #request_options, #root_url, #upload_path

Instance Method Summary collapse

Methods inherited from Core::BaseService

#batch, #batch_upload, #fetch_all, #http

Methods included from Core::Logging

#logger

Constructor Details

#initializeSASPortalTestingService

Returns a new instance of SASPortalTestingService.


45
46
47
48
# File 'generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb', line 45

def initialize
  super('https://prod-tt-sasportal.googleapis.com/', '')
  @batch_path = 'batch'
end

Instance Attribute Details

#keyString

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.

Returns:

  • (String)

    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.


38
39
40
# File 'generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb', line 38

def key
  @key
end

#quota_userString

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.

Returns:

  • (String)

    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.


43
44
45
# File 'generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb', line 43

def quota_user
  @quota_user
end

Instance Method Details

#bulk_customer_device(parent, sas_portal_bulk_create_device_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ProdTtSasportalV1alpha1::SasPortalBulkCreateDeviceResponse

Creates a device under a node or customer. Returned devices are unordered.

Parameters:

  • parent (String)

    Required. The name of the parent resource.

  • sas_portal_bulk_create_device_request_object (Google::Apis::ProdTtSasportalV1alpha1::SasPortalBulkCreateDeviceRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


173
174
175
176
177
178
179
180
181
182
183
# File 'generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb', line 173

def bulk_customer_device(parent, sas_portal_bulk_create_device_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v1alpha1/{+parent}/devices:bulk', options)
  command.request_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalBulkCreateDeviceRequest::Representation
  command.request_object = sas_portal_bulk_create_device_request_object
  command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalBulkCreateDeviceResponse::Representation
  command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalBulkCreateDeviceResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#bulk_node_device(parent, sas_portal_bulk_create_device_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ProdTtSasportalV1alpha1::SasPortalBulkCreateDeviceResponse

Creates a device under a node or customer. Returned devices are unordered.

Parameters:

  • parent (String)

    Required. The name of the parent resource.

  • sas_portal_bulk_create_device_request_object (Google::Apis::ProdTtSasportalV1alpha1::SasPortalBulkCreateDeviceRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


770
771
772
773
774
775
776
777
778
779
780
# File 'generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb', line 770

def bulk_node_device(parent, sas_portal_bulk_create_device_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v1alpha1/{+parent}/devices:bulk', options)
  command.request_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalBulkCreateDeviceRequest::Representation
  command.request_object = sas_portal_bulk_create_device_request_object
  command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalBulkCreateDeviceResponse::Representation
  command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalBulkCreateDeviceResponse
  command.params['parent'] = parent unless parent.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_customer_device(parent, sas_portal_device_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ProdTtSasportalV1alpha1::SasPortalDevice

Creates a device under a node or customer.

Parameters:

  • parent (String)

    Required. The name of the parent resource.

  • sas_portal_device_object (Google::Apis::ProdTtSasportalV1alpha1::SasPortalDevice) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


206
207
208
209
210
211
212
213
214
215
216
# File 'generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb', line 206

def create_customer_device(parent, sas_portal_device_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v1alpha1/{+parent}/devices', options)
  command.request_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDevice::Representation
  command.request_object = sas_portal_device_object
  command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDevice::Representation
  command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDevice
  command.params['parent'] = parent unless parent.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_customer_device_signed(parent, sas_portal_create_signed_device_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ProdTtSasportalV1alpha1::SasPortalDevice

Creates a signed device under a node or customer.

Parameters:

  • parent (String)

    Required. The name of the parent resource.

  • sas_portal_create_signed_device_request_object (Google::Apis::ProdTtSasportalV1alpha1::SasPortalCreateSignedDeviceRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


240
241
242
243
244
245
246
247
248
249
250
# File 'generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb', line 240

def create_customer_device_signed(parent, sas_portal_create_signed_device_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v1alpha1/{+parent}/devices:createSigned', options)
  command.request_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalCreateSignedDeviceRequest::Representation
  command.request_object = sas_portal_create_signed_device_request_object
  command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDevice::Representation
  command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDevice
  command.params['parent'] = parent unless parent.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_customer_node(parent, sas_portal_node_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ProdTtSasportalV1alpha1::SasPortalNode

Creates a new node.

Parameters:

  • parent (String)

    Required. The parent resource name where the node is to be created.

  • sas_portal_node_object (Google::Apis::ProdTtSasportalV1alpha1::SasPortalNode) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


510
511
512
513
514
515
516
517
518
519
520
# File 'generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb', line 510

def create_customer_node(parent, sas_portal_node_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v1alpha1/{+parent}/nodes', options)
  command.request_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalNode::Representation
  command.request_object = sas_portal_node_object
  command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalNode::Representation
  command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalNode
  command.params['parent'] = parent unless parent.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_node_device(parent, sas_portal_device_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ProdTtSasportalV1alpha1::SasPortalDevice

Creates a device under a node or customer.

Parameters:

  • parent (String)

    Required. The name of the parent resource.

  • sas_portal_device_object (Google::Apis::ProdTtSasportalV1alpha1::SasPortalDevice) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


803
804
805
806
807
808
809
810
811
812
813
# File 'generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb', line 803

def create_node_device(parent, sas_portal_device_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v1alpha1/{+parent}/devices', options)
  command.request_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDevice::Representation
  command.request_object = sas_portal_device_object
  command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDevice::Representation
  command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDevice
  command.params['parent'] = parent unless parent.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_node_device_signed(parent, sas_portal_create_signed_device_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ProdTtSasportalV1alpha1::SasPortalDevice

Creates a signed device under a node or customer.

Parameters:

  • parent (String)

    Required. The name of the parent resource.

  • sas_portal_create_signed_device_request_object (Google::Apis::ProdTtSasportalV1alpha1::SasPortalCreateSignedDeviceRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


837
838
839
840
841
842
843
844
845
846
847
# File 'generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb', line 837

def create_node_device_signed(parent, sas_portal_create_signed_device_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v1alpha1/{+parent}/devices:createSigned', options)
  command.request_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalCreateSignedDeviceRequest::Representation
  command.request_object = sas_portal_create_signed_device_request_object
  command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDevice::Representation
  command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDevice
  command.params['parent'] = parent unless parent.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_node_node(parent, sas_portal_node_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ProdTtSasportalV1alpha1::SasPortalNode

Creates a new node.

Parameters:

  • parent (String)

    Required. The parent resource name where the node is to be created.

  • sas_portal_node_object (Google::Apis::ProdTtSasportalV1alpha1::SasPortalNode) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
# File 'generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb', line 1107

def create_node_node(parent, sas_portal_node_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v1alpha1/{+parent}/nodes', options)
  command.request_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalNode::Representation
  command.request_object = sas_portal_node_object
  command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalNode::Representation
  command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalNode
  command.params['parent'] = parent unless parent.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_customer_device(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ProdTtSasportalV1alpha1::SasPortalEmpty

Deletes a device.

Parameters:

  • name (String)

    Required. The name of the device.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


272
273
274
275
276
277
278
279
280
# File 'generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb', line 272

def delete_customer_device(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
  command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalEmpty::Representation
  command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalEmpty
  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_customer_node(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ProdTtSasportalV1alpha1::SasPortalEmpty

Deletes a node.

Parameters:

  • name (String)

    Required. The name of the node.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


542
543
544
545
546
547
548
549
550
# File 'generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb', line 542

def delete_customer_node(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
  command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalEmpty::Representation
  command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalEmpty
  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_node_device(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ProdTtSasportalV1alpha1::SasPortalEmpty

Deletes a device.

Parameters:

  • name (String)

    Required. The name of the device.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


869
870
871
872
873
874
875
876
877
# File 'generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb', line 869

def delete_node_device(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
  command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalEmpty::Representation
  command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalEmpty
  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_node_node(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ProdTtSasportalV1alpha1::SasPortalEmpty

Deletes a node.

Parameters:

  • name (String)

    Required. The name of the node.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


1139
1140
1141
1142
1143
1144
1145
1146
1147
# File 'generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb', line 1139

def delete_node_node(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
  command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalEmpty::Representation
  command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalEmpty
  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

#generate_installer_secret(sas_portal_generate_secret_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ProdTtSasportalV1alpha1::SasPortalGenerateSecretResponse

Generates a secret to be used with the ValidateInstaller method

Parameters:

  • sas_portal_generate_secret_request_object (Google::Apis::ProdTtSasportalV1alpha1::SasPortalGenerateSecretRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


708
709
710
711
712
713
714
715
716
717
# File 'generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb', line 708

def generate_installer_secret(sas_portal_generate_secret_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v1alpha1/installer:generateSecret', options)
  command.request_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalGenerateSecretRequest::Representation
  command.request_object = sas_portal_generate_secret_request_object
  command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalGenerateSecretResponse::Representation
  command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalGenerateSecretResponse
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_customer(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ProdTtSasportalV1alpha1::SasPortalCustomer

Returns a requested customer.

Parameters:

  • name (String)

    Required. The name of the customer.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


70
71
72
73
74
75
76
77
78
# File 'generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb', line 70

def get_customer(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1alpha1/{+name}', options)
  command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalCustomer::Representation
  command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalCustomer
  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_customer_device(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ProdTtSasportalV1alpha1::SasPortalDevice

Gets details about a device.

Parameters:

  • name (String)

    Required. The name of the device.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


302
303
304
305
306
307
308
309
310
# File 'generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb', line 302

def get_customer_device(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1alpha1/{+name}', options)
  command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDevice::Representation
  command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDevice
  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_customer_node(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ProdTtSasportalV1alpha1::SasPortalNode

Returns a requested node.

Parameters:

  • name (String)

    Required. The name of the node.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


572
573
574
575
576
577
578
579
580
# File 'generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb', line 572

def get_customer_node(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1alpha1/{+name}', options)
  command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalNode::Representation
  command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalNode
  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_node_device(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ProdTtSasportalV1alpha1::SasPortalDevice

Gets details about a device.

Parameters:

  • name (String)

    Required. The name of the device.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


899
900
901
902
903
904
905
906
907
# File 'generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb', line 899

def get_node_device(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1alpha1/{+name}', options)
  command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDevice::Representation
  command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDevice
  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_node_node(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ProdTtSasportalV1alpha1::SasPortalNode

Returns a requested node.

Parameters:

  • name (String)

    Required. The name of the node.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


1169
1170
1171
1172
1173
1174
1175
1176
1177
# File 'generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb', line 1169

def get_node_node(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1alpha1/{+name}', options)
  command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalNode::Representation
  command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalNode
  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_policy(sas_portal_get_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ProdTtSasportalV1alpha1::SasPortalPolicy

Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.

Parameters:

  • sas_portal_get_policy_request_object (Google::Apis::ProdTtSasportalV1alpha1::SasPortalGetPolicyRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
# File 'generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb', line 1307

def get_policy(sas_portal_get_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v1alpha1/policies:get', options)
  command.request_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalGetPolicyRequest::Representation
  command.request_object = sas_portal_get_policy_request_object
  command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalPolicy::Representation
  command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalPolicy
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_customer_devices(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ProdTtSasportalV1alpha1::SasPortalListDevicesResponse

Lists devices under a node or customer.

Parameters:

  • parent (String)

    Required. The name of the parent resource.

  • filter (String) (defaults to: nil)

    The filter expression. The filter should have one of the following formats: "sn=123454" or "display_name=MyDevice". sn corresponds to serial_number of the device. The filter is case insensitive.

  • page_size (Fixnum) (defaults to: nil)

    The maximum number of devices to return in the response.

  • page_token (String) (defaults to: nil)

    A pagination token returned from a previous call to ListDevices that indicates where this listing should continue from.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


341
342
343
344
345
346
347
348
349
350
351
352
# File 'generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb', line 341

def list_customer_devices(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1alpha1/{+parent}/devices', options)
  command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalListDevicesResponse::Representation
  command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalListDevicesResponse
  command.params['parent'] = parent unless parent.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_customer_nodes(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ProdTtSasportalV1alpha1::SasPortalListNodesResponse

Lists nodes.

Parameters:

  • parent (String)

    Required. The parent resource name, for example, "nodes/1".

  • page_size (Fixnum) (defaults to: nil)

    The maximum number of nodes to return in the response.

  • page_token (String) (defaults to: nil)

    A pagination token returned from a previous call to ListNodes method that indicates where this listing should continue from.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


607
608
609
610
611
612
613
614
615
616
617
# File 'generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb', line 607

def list_customer_nodes(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1alpha1/{+parent}/nodes', options)
  command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalListNodesResponse::Representation
  command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalListNodesResponse
  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_customers(page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ProdTtSasportalV1alpha1::SasPortalListCustomersResponse

Returns a list of requested customers.

Parameters:

  • page_size (Fixnum) (defaults to: nil)

    The maximum number of customers to return in the response.

  • page_token (String) (defaults to: nil)

    A pagination token returned from a previous call to ListCustomers method that indicates where this listing should continue from.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


105
106
107
108
109
110
111
112
113
114
# File 'generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb', line 105

def list_customers(page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1alpha1/customers', options)
  command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalListCustomersResponse::Representation
  command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalListCustomersResponse
  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_node_devices(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ProdTtSasportalV1alpha1::SasPortalListDevicesResponse

Lists devices under a node or customer.

Parameters:

  • parent (String)

    Required. The name of the parent resource.

  • filter (String) (defaults to: nil)

    The filter expression. The filter should have one of the following formats: "sn=123454" or "display_name=MyDevice". sn corresponds to serial_number of the device. The filter is case insensitive.

  • page_size (Fixnum) (defaults to: nil)

    The maximum number of devices to return in the response.

  • page_token (String) (defaults to: nil)

    A pagination token returned from a previous call to ListDevices that indicates where this listing should continue from.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


938
939
940
941
942
943
944
945
946
947
948
949
# File 'generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb', line 938

def list_node_devices(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1alpha1/{+parent}/devices', options)
  command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalListDevicesResponse::Representation
  command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalListDevicesResponse
  command.params['parent'] = parent unless parent.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_node_nodes(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ProdTtSasportalV1alpha1::SasPortalListNodesResponse

Lists nodes.

Parameters:

  • parent (String)

    Required. The parent resource name, for example, "nodes/1".

  • page_size (Fixnum) (defaults to: nil)

    The maximum number of nodes to return in the response.

  • page_token (String) (defaults to: nil)

    A pagination token returned from a previous call to ListNodes method that indicates where this listing should continue from.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
# File 'generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb', line 1204

def list_node_nodes(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1alpha1/{+parent}/nodes', options)
  command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalListNodesResponse::Representation
  command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalListNodesResponse
  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

#move_customer_device(name, sas_portal_move_device_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ProdTtSasportalV1alpha1::SasPortalOperation

Moves a device under another node or customer.

Parameters:

  • name (String)

    Required. The name of the device to move.

  • sas_portal_move_device_request_object (Google::Apis::ProdTtSasportalV1alpha1::SasPortalMoveDeviceRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


375
376
377
378
379
380
381
382
383
384
385
# File 'generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb', line 375

def move_customer_device(name, sas_portal_move_device_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v1alpha1/{+name}:move', options)
  command.request_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalMoveDeviceRequest::Representation
  command.request_object = sas_portal_move_device_request_object
  command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalOperation::Representation
  command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalOperation
  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

#move_customer_node(name, sas_portal_move_node_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ProdTtSasportalV1alpha1::SasPortalOperation

Moves a node under another node or customer.

Parameters:

  • name (String)

    Required. The name of the node to move.

  • sas_portal_move_node_request_object (Google::Apis::ProdTtSasportalV1alpha1::SasPortalMoveNodeRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


641
642
643
644
645
646
647
648
649
650
651
# File 'generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb', line 641

def move_customer_node(name, sas_portal_move_node_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v1alpha1/{+name}:move', options)
  command.request_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalMoveNodeRequest::Representation
  command.request_object = sas_portal_move_node_request_object
  command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalOperation::Representation
  command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalOperation
  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

#move_node_device(name, sas_portal_move_device_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ProdTtSasportalV1alpha1::SasPortalOperation

Moves a device under another node or customer.

Parameters:

  • name (String)

    Required. The name of the device to move.

  • sas_portal_move_device_request_object (Google::Apis::ProdTtSasportalV1alpha1::SasPortalMoveDeviceRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


972
973
974
975
976
977
978
979
980
981
982
# File 'generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb', line 972

def move_node_device(name, sas_portal_move_device_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v1alpha1/{+name}:move', options)
  command.request_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalMoveDeviceRequest::Representation
  command.request_object = sas_portal_move_device_request_object
  command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalOperation::Representation
  command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalOperation
  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

#move_node_node(name, sas_portal_move_node_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ProdTtSasportalV1alpha1::SasPortalOperation

Moves a node under another node or customer.

Parameters:

  • name (String)

    Required. The name of the node to move.

  • sas_portal_move_node_request_object (Google::Apis::ProdTtSasportalV1alpha1::SasPortalMoveNodeRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
# File 'generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb', line 1238

def move_node_node(name, sas_portal_move_node_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v1alpha1/{+name}:move', options)
  command.request_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalMoveNodeRequest::Representation
  command.request_object = sas_portal_move_node_request_object
  command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalOperation::Representation
  command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalOperation
  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

#patch_customer(name, sas_portal_customer_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ProdTtSasportalV1alpha1::SasPortalCustomer

Updates an existing customer.

Parameters:

  • name (String)

    Output only. Resource name of the customer.

  • sas_portal_customer_object (Google::Apis::ProdTtSasportalV1alpha1::SasPortalCustomer) (defaults to: nil)
  • update_mask (String) (defaults to: nil)

    Fields to be updated.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


139
140
141
142
143
144
145
146
147
148
149
150
# File 'generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb', line 139

def patch_customer(name, sas_portal_customer_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'v1alpha1/{+name}', options)
  command.request_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalCustomer::Representation
  command.request_object = sas_portal_customer_object
  command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalCustomer::Representation
  command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalCustomer
  command.params['name'] = name unless name.nil?
  command.query['updateMask'] = update_mask unless update_mask.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_customer_device(name, sas_portal_device_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ProdTtSasportalV1alpha1::SasPortalDevice

Updates a device.

Parameters:

  • name (String)

    Output only. The resource path name.

  • sas_portal_device_object (Google::Apis::ProdTtSasportalV1alpha1::SasPortalDevice) (defaults to: nil)
  • update_mask (String) (defaults to: nil)

    Fields to be updated.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


410
411
412
413
414
415
416
417
418
419
420
421
# File 'generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb', line 410

def patch_customer_device(name, sas_portal_device_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'v1alpha1/{+name}', options)
  command.request_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDevice::Representation
  command.request_object = sas_portal_device_object
  command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDevice::Representation
  command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDevice
  command.params['name'] = name unless name.nil?
  command.query['updateMask'] = update_mask unless update_mask.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_customer_node(name, sas_portal_node_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ProdTtSasportalV1alpha1::SasPortalNode

Updates an existing node.

Parameters:

  • name (String)

    Output only. Resource name.

  • sas_portal_node_object (Google::Apis::ProdTtSasportalV1alpha1::SasPortalNode) (defaults to: nil)
  • update_mask (String) (defaults to: nil)

    Fields to be updated.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


676
677
678
679
680
681
682
683
684
685
686
687
# File 'generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb', line 676

def patch_customer_node(name, sas_portal_node_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'v1alpha1/{+name}', options)
  command.request_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalNode::Representation
  command.request_object = sas_portal_node_object
  command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalNode::Representation
  command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalNode
  command.params['name'] = name unless name.nil?
  command.query['updateMask'] = update_mask unless update_mask.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_node_device(name, sas_portal_device_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ProdTtSasportalV1alpha1::SasPortalDevice

Updates a device.

Parameters:

  • name (String)

    Output only. The resource path name.

  • sas_portal_device_object (Google::Apis::ProdTtSasportalV1alpha1::SasPortalDevice) (defaults to: nil)
  • update_mask (String) (defaults to: nil)

    Fields to be updated.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
# File 'generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb', line 1007

def patch_node_device(name, sas_portal_device_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'v1alpha1/{+name}', options)
  command.request_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDevice::Representation
  command.request_object = sas_portal_device_object
  command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDevice::Representation
  command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDevice
  command.params['name'] = name unless name.nil?
  command.query['updateMask'] = update_mask unless update_mask.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_node_node(name, sas_portal_node_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ProdTtSasportalV1alpha1::SasPortalNode

Updates an existing node.

Parameters:

  • name (String)

    Output only. Resource name.

  • sas_portal_node_object (Google::Apis::ProdTtSasportalV1alpha1::SasPortalNode) (defaults to: nil)
  • update_mask (String) (defaults to: nil)

    Fields to be updated.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
# File 'generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb', line 1273

def patch_node_node(name, sas_portal_node_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'v1alpha1/{+name}', options)
  command.request_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalNode::Representation
  command.request_object = sas_portal_node_object
  command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalNode::Representation
  command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalNode
  command.params['name'] = name unless name.nil?
  command.query['updateMask'] = update_mask unless update_mask.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_policy(sas_portal_set_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ProdTtSasportalV1alpha1::SasPortalPolicy

Sets the access control policy on the specified resource. Replaces any existing policy.

Parameters:

  • sas_portal_set_policy_request_object (Google::Apis::ProdTtSasportalV1alpha1::SasPortalSetPolicyRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
# File 'generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb', line 1338

def set_policy(sas_portal_set_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v1alpha1/policies:set', options)
  command.request_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalSetPolicyRequest::Representation
  command.request_object = sas_portal_set_policy_request_object
  command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalPolicy::Representation
  command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalPolicy
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#sign_customer_device_device(name, sas_portal_sign_device_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ProdTtSasportalV1alpha1::SasPortalEmpty

Signs a device.

Parameters:

  • name (String)

    Output only. The resource path name.

  • sas_portal_sign_device_request_object (Google::Apis::ProdTtSasportalV1alpha1::SasPortalSignDeviceRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


444
445
446
447
448
449
450
451
452
453
454
# File 'generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb', line 444

def sign_customer_device_device(name, sas_portal_sign_device_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v1alpha1/{+name}:signDevice', options)
  command.request_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalSignDeviceRequest::Representation
  command.request_object = sas_portal_sign_device_request_object
  command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalEmpty::Representation
  command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalEmpty
  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

#sign_node_device_device(name, sas_portal_sign_device_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ProdTtSasportalV1alpha1::SasPortalEmpty

Signs a device.

Parameters:

  • name (String)

    Output only. The resource path name.

  • sas_portal_sign_device_request_object (Google::Apis::ProdTtSasportalV1alpha1::SasPortalSignDeviceRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
# File 'generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb', line 1041

def sign_node_device_device(name, sas_portal_sign_device_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v1alpha1/{+name}:signDevice', options)
  command.request_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalSignDeviceRequest::Representation
  command.request_object = sas_portal_sign_device_request_object
  command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalEmpty::Representation
  command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalEmpty
  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_policy(sas_portal_test_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ProdTtSasportalV1alpha1::SasPortalTestPermissionsResponse

Returns permissions that a caller has on the specified resource.

Parameters:

  • sas_portal_test_permissions_request_object (Google::Apis::ProdTtSasportalV1alpha1::SasPortalTestPermissionsRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
# File 'generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb', line 1368

def test_policy(sas_portal_test_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v1alpha1/policies:test', options)
  command.request_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalTestPermissionsRequest::Representation
  command.request_object = sas_portal_test_permissions_request_object
  command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalTestPermissionsResponse::Representation
  command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalTestPermissionsResponse
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#update_customer_device_signed(name, sas_portal_update_signed_device_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ProdTtSasportalV1alpha1::SasPortalDevice

Updates a signed device.

Parameters:

  • name (String)

    Required. The name of the device to update.

  • sas_portal_update_signed_device_request_object (Google::Apis::ProdTtSasportalV1alpha1::SasPortalUpdateSignedDeviceRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


477
478
479
480
481
482
483
484
485
486
487
# File 'generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb', line 477

def update_customer_device_signed(name, sas_portal_update_signed_device_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'v1alpha1/{+name}:updateSigned', options)
  command.request_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalUpdateSignedDeviceRequest::Representation
  command.request_object = sas_portal_update_signed_device_request_object
  command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDevice::Representation
  command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDevice
  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

#update_node_device_signed(name, sas_portal_update_signed_device_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ProdTtSasportalV1alpha1::SasPortalDevice

Updates a signed device.

Parameters:

  • name (String)

    Required. The name of the device to update.

  • sas_portal_update_signed_device_request_object (Google::Apis::ProdTtSasportalV1alpha1::SasPortalUpdateSignedDeviceRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
# File 'generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb', line 1074

def update_node_device_signed(name, sas_portal_update_signed_device_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'v1alpha1/{+name}:updateSigned', options)
  command.request_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalUpdateSignedDeviceRequest::Representation
  command.request_object = sas_portal_update_signed_device_request_object
  command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDevice::Representation
  command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDevice
  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

#validate_installer(sas_portal_validate_installer_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ProdTtSasportalV1alpha1::SasPortalValidateInstallerResponse

Validates the identity of a Certified Professional Installer (CPI).

Parameters:

  • sas_portal_validate_installer_request_object (Google::Apis::ProdTtSasportalV1alpha1::SasPortalValidateInstallerRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


738
739
740
741
742
743
744
745
746
747
# File 'generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb', line 738

def validate_installer(sas_portal_validate_installer_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v1alpha1/installer:validate', options)
  command.request_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalValidateInstallerRequest::Representation
  command.request_object = sas_portal_validate_installer_request_object
  command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalValidateInstallerResponse::Representation
  command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalValidateInstallerResponse
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end