Class: Aws::WorkSpacesThinClient::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::WorkSpacesThinClient::Client
- Includes:
- ClientStubs
- Defined in:
- lib/aws-sdk-workspacesthinclient/client.rb
Overview
An API client for WorkSpacesThinClient. To construct a client, you need to configure a ‘:region` and `:credentials`.
client = Aws::WorkSpacesThinClient::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
See #initialize for a full list of supported configuration options.
Class Attribute Summary collapse
- .identifier ⇒ Object readonly private
API Operations collapse
-
#create_environment(params = {}) ⇒ Types::CreateEnvironmentResponse
Creates an environment for your thin client devices.
-
#delete_device(params = {}) ⇒ Struct
Deletes a thin client device.
-
#delete_environment(params = {}) ⇒ Struct
Deletes an environment.
-
#deregister_device(params = {}) ⇒ Struct
Deregisters a thin client device.
-
#get_device(params = {}) ⇒ Types::GetDeviceResponse
Returns information for a thin client device.
-
#get_environment(params = {}) ⇒ Types::GetEnvironmentResponse
Returns information for an environment.
-
#get_software_set(params = {}) ⇒ Types::GetSoftwareSetResponse
Returns information for a software set.
-
#list_devices(params = {}) ⇒ Types::ListDevicesResponse
Returns a list of thin client devices.
-
#list_environments(params = {}) ⇒ Types::ListEnvironmentsResponse
Returns a list of environments.
-
#list_software_sets(params = {}) ⇒ Types::ListSoftwareSetsResponse
Returns a list of software sets.
-
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Returns a list of tags for a resource.
-
#tag_resource(params = {}) ⇒ Struct
Assigns one or more tags (key-value pairs) to the specified resource.
-
#untag_resource(params = {}) ⇒ Struct
Removes a tag or tags from a resource.
-
#update_device(params = {}) ⇒ Types::UpdateDeviceResponse
Updates a thin client device.
-
#update_environment(params = {}) ⇒ Types::UpdateEnvironmentResponse
Updates an environment.
-
#update_software_set(params = {}) ⇒ Struct
Updates a software set.
Class Method Summary collapse
- .errors_module ⇒ Object private
Instance Method Summary collapse
- #build_request(operation_name, params = {}) ⇒ Object private
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
- #waiter_names ⇒ Object deprecated private Deprecated.
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
473 474 475 |
# File 'lib/aws-sdk-workspacesthinclient/client.rb', line 473 def initialize(*args) super end |
Class Attribute Details
.identifier ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1352 1353 1354 |
# File 'lib/aws-sdk-workspacesthinclient/client.rb', line 1352 def identifier @identifier end |
Class Method Details
.errors_module ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1355 1356 1357 |
# File 'lib/aws-sdk-workspacesthinclient/client.rb', line 1355 def errors_module Errors end |
Instance Method Details
#build_request(operation_name, params = {}) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 |
# File 'lib/aws-sdk-workspacesthinclient/client.rb', line 1325 def build_request(operation_name, params = {}) handlers = @handlers.for(operation_name) tracer = config.telemetry_provider.tracer_provider.tracer( Aws::Telemetry.module_to_tracer_name('Aws::WorkSpacesThinClient') ) context = Seahorse::Client::RequestContext.new( operation_name: operation_name, operation: config.api.operation(operation_name), client: self, params: params, config: config, tracer: tracer ) context[:gem_name] = 'aws-sdk-workspacesthinclient' context[:gem_version] = '1.37.0' Seahorse::Client::Request.new(handlers, context) end |
#create_environment(params = {}) ⇒ Types::CreateEnvironmentResponse
Creates an environment for your thin client devices.
599 600 601 602 |
# File 'lib/aws-sdk-workspacesthinclient/client.rb', line 599 def create_environment(params = {}, = {}) req = build_request(:create_environment, params) req.send_request() end |
#delete_device(params = {}) ⇒ Struct
Deletes a thin client device.
644 645 646 647 |
# File 'lib/aws-sdk-workspacesthinclient/client.rb', line 644 def delete_device(params = {}, = {}) req = build_request(:delete_device, params) req.send_request() end |
#delete_environment(params = {}) ⇒ Struct
Deletes an environment.
689 690 691 692 |
# File 'lib/aws-sdk-workspacesthinclient/client.rb', line 689 def delete_environment(params = {}, = {}) req = build_request(:delete_environment, params) req.send_request() end |
#deregister_device(params = {}) ⇒ Struct
Deregisters a thin client device.
738 739 740 741 |
# File 'lib/aws-sdk-workspacesthinclient/client.rb', line 738 def deregister_device(params = {}, = {}) req = build_request(:deregister_device, params) req.send_request() end |
#get_device(params = {}) ⇒ Types::GetDeviceResponse
Returns information for a thin client device.
786 787 788 789 |
# File 'lib/aws-sdk-workspacesthinclient/client.rb', line 786 def get_device(params = {}, = {}) req = build_request(:get_device, params) req.send_request() end |
#get_environment(params = {}) ⇒ Types::GetEnvironmentResponse
Returns information for an environment.
840 841 842 843 |
# File 'lib/aws-sdk-workspacesthinclient/client.rb', line 840 def get_environment(params = {}, = {}) req = build_request(:get_environment, params) req.send_request() end |
#get_software_set(params = {}) ⇒ Types::GetSoftwareSetResponse
Returns information for a software set.
876 877 878 879 |
# File 'lib/aws-sdk-workspacesthinclient/client.rb', line 876 def get_software_set(params = {}, = {}) req = build_request(:get_software_set, params) req.send_request() end |
#list_devices(params = {}) ⇒ Types::ListDevicesResponse
Returns a list of thin client devices.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
937 938 939 940 |
# File 'lib/aws-sdk-workspacesthinclient/client.rb', line 937 def list_devices(params = {}, = {}) req = build_request(:list_devices, params) req.send_request() end |
#list_environments(params = {}) ⇒ Types::ListEnvironmentsResponse
Returns a list of environments.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1003 1004 1005 1006 |
# File 'lib/aws-sdk-workspacesthinclient/client.rb', line 1003 def list_environments(params = {}, = {}) req = build_request(:list_environments, params) req.send_request() end |
#list_software_sets(params = {}) ⇒ Types::ListSoftwareSetsResponse
Returns a list of software sets.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1054 1055 1056 1057 |
# File 'lib/aws-sdk-workspacesthinclient/client.rb', line 1054 def list_software_sets(params = {}, = {}) req = build_request(:list_software_sets, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Returns a list of tags for a resource.
1084 1085 1086 1087 |
# File 'lib/aws-sdk-workspacesthinclient/client.rb', line 1084 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
Assigns one or more tags (key-value pairs) to the specified resource.
1113 1114 1115 1116 |
# File 'lib/aws-sdk-workspacesthinclient/client.rb', line 1113 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Removes a tag or tags from a resource.
1140 1141 1142 1143 |
# File 'lib/aws-sdk-workspacesthinclient/client.rb', line 1140 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#update_device(params = {}) ⇒ Types::UpdateDeviceResponse
Updates a thin client device.
1196 1197 1198 1199 |
# File 'lib/aws-sdk-workspacesthinclient/client.rb', line 1196 def update_device(params = {}, = {}) req = build_request(:update_device, params) req.send_request() end |
#update_environment(params = {}) ⇒ Types::UpdateEnvironmentResponse
Updates an environment.
1290 1291 1292 1293 |
# File 'lib/aws-sdk-workspacesthinclient/client.rb', line 1290 def update_environment(params = {}, = {}) req = build_request(:update_environment, params) req.send_request() end |
#update_software_set(params = {}) ⇒ Struct
Updates a software set.
1316 1317 1318 1319 |
# File 'lib/aws-sdk-workspacesthinclient/client.rb', line 1316 def update_software_set(params = {}, = {}) req = build_request(:update_software_set, params) req.send_request() end |
#waiter_names ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1345 1346 1347 |
# File 'lib/aws-sdk-workspacesthinclient/client.rb', line 1345 def waiter_names [] end |