diff --git a/generated/google-apis-prod_tt_sasportal_v1alpha1/CHANGELOG.md b/generated/google-apis-prod_tt_sasportal_v1alpha1/CHANGELOG.md index d7fc5357b..2dcfc7e7a 100644 --- a/generated/google-apis-prod_tt_sasportal_v1alpha1/CHANGELOG.md +++ b/generated/google-apis-prod_tt_sasportal_v1alpha1/CHANGELOG.md @@ -1,5 +1,9 @@ # Release history for google-apis-prod_tt_sasportal_v1alpha1 +### v0.2.0 (2021-01-15) + +* Regenerated from discovery document revision 20210113 + ### v0.1.0 (2021-01-07) * Regenerated using generator version 0.1.1 diff --git a/generated/google-apis-prod_tt_sasportal_v1alpha1/lib/google/apis/prod_tt_sasportal_v1alpha1/classes.rb b/generated/google-apis-prod_tt_sasportal_v1alpha1/lib/google/apis/prod_tt_sasportal_v1alpha1/classes.rb index 1d864810f..3f160ef36 100644 --- a/generated/google-apis-prod_tt_sasportal_v1alpha1/lib/google/apis/prod_tt_sasportal_v1alpha1/classes.rb +++ b/generated/google-apis-prod_tt_sasportal_v1alpha1/lib/google/apis/prod_tt_sasportal_v1alpha1/classes.rb @@ -50,45 +50,6 @@ module Google end end - # Request for BulkCreateDevice method. - class SasPortalBulkCreateDeviceRequest - include Google::Apis::Core::Hashable - - # Required. A csv with each row representing a [device]. Each row must conform - # to the regulations described on CreateDeviceRequest's device field. - # Corresponds to the JSON property `csv` - # @return [String] - attr_accessor :csv - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @csv = args[:csv] if args.key?(:csv) - end - end - - # Response for BulkCreateDevice method. - class SasPortalBulkCreateDeviceResponse - include Google::Apis::Core::Hashable - - # Required. The devices that were imported. - # Corresponds to the JSON property `devices` - # @return [Array] - attr_accessor :devices - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @devices = args[:devices] if args.key?(:devices) - end - end - # Request for CreateSignedDevice method. class SasPortalCreateSignedDeviceRequest include Google::Apis::Core::Hashable @@ -148,6 +109,50 @@ module Google end end + # The Deployment. + class SasPortalDeployment + include Google::Apis::Core::Hashable + + # The allowed billing modes under this deployment. + # Corresponds to the JSON property `allowedBillingModes` + # @return [Array] + attr_accessor :allowed_billing_modes + + # Default billing mode for the deployment and devices under it. + # Corresponds to the JSON property `defaultBillingMode` + # @return [String] + attr_accessor :default_billing_mode + + # The deployment's display name. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Output only. Resource name. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # User id used by the devices belonging to this deployment. Each deployment + # should be associated with one unique user_id. + # Corresponds to the JSON property `sasUserIds` + # @return [Array] + attr_accessor :sas_user_ids + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @allowed_billing_modes = args[:allowed_billing_modes] if args.key?(:allowed_billing_modes) + @default_billing_mode = args[:default_billing_mode] if args.key?(:default_billing_mode) + @display_name = args[:display_name] if args.key?(:display_name) + @name = args[:name] if args.key?(:name) + @sas_user_ids = args[:sas_user_ids] if args.key?(:sas_user_ids) + end + end + # class SasPortalDevice include Google::Apis::Core::Hashable @@ -710,6 +715,33 @@ module Google end end + # Response for ListDeployments method. + class SasPortalListDeploymentsResponse + include Google::Apis::Core::Hashable + + # The deployments that match the request. + # Corresponds to the JSON property `deployments` + # @return [Array] + attr_accessor :deployments + + # A pagination token returned from a previous call to ListDeployments method + # that indicates from where listing should continue. If the field is missing or + # empty, it means there is no more deployments. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @deployments = args[:deployments] if args.key?(:deployments) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + # Response for ListDevices method. class SasPortalListDevicesResponse include Google::Apis::Core::Hashable diff --git a/generated/google-apis-prod_tt_sasportal_v1alpha1/lib/google/apis/prod_tt_sasportal_v1alpha1/gem_version.rb b/generated/google-apis-prod_tt_sasportal_v1alpha1/lib/google/apis/prod_tt_sasportal_v1alpha1/gem_version.rb index 22e51666b..6b2690a9a 100644 --- a/generated/google-apis-prod_tt_sasportal_v1alpha1/lib/google/apis/prod_tt_sasportal_v1alpha1/gem_version.rb +++ b/generated/google-apis-prod_tt_sasportal_v1alpha1/lib/google/apis/prod_tt_sasportal_v1alpha1/gem_version.rb @@ -16,13 +16,13 @@ module Google module Apis module ProdTtSasportalV1alpha1 # Version of the google-apis-prod_tt_sasportal_v1alpha1 gem - GEM_VERSION = "0.1.0" + GEM_VERSION = "0.2.0" # Version of the code generator used to generate this client GENERATOR_VERSION = "0.1.1" # Revision of the discovery document this client was generated from - REVISION = "20201211" + REVISION = "20210113" end end end diff --git a/generated/google-apis-prod_tt_sasportal_v1alpha1/lib/google/apis/prod_tt_sasportal_v1alpha1/representations.rb b/generated/google-apis-prod_tt_sasportal_v1alpha1/lib/google/apis/prod_tt_sasportal_v1alpha1/representations.rb index 4105ed743..1fb77fc3e 100644 --- a/generated/google-apis-prod_tt_sasportal_v1alpha1/lib/google/apis/prod_tt_sasportal_v1alpha1/representations.rb +++ b/generated/google-apis-prod_tt_sasportal_v1alpha1/lib/google/apis/prod_tt_sasportal_v1alpha1/representations.rb @@ -28,18 +28,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class SasPortalBulkCreateDeviceRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class SasPortalBulkCreateDeviceResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class SasPortalCreateSignedDeviceRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -52,6 +40,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class SasPortalDeployment + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class SasPortalDevice class Representation < Google::Apis::Core::JsonRepresentation; end @@ -136,6 +130,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class SasPortalListDeploymentsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class SasPortalListDevicesResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -240,21 +240,6 @@ module Google end end - class SasPortalBulkCreateDeviceRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :csv, as: 'csv' - end - end - - class SasPortalBulkCreateDeviceResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :devices, as: 'devices', class: Google::Apis::ProdTtSasportalV1alpha1::SasPortalDevice, decorator: Google::Apis::ProdTtSasportalV1alpha1::SasPortalDevice::Representation - - end - end - class SasPortalCreateSignedDeviceRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -272,6 +257,17 @@ module Google end end + class SasPortalDeployment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :allowed_billing_modes, as: 'allowedBillingModes' + property :default_billing_mode, as: 'defaultBillingMode' + property :display_name, as: 'displayName' + property :name, as: 'name' + collection :sas_user_ids, as: 'sasUserIds' + end + end + class SasPortalDevice # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -423,6 +419,15 @@ module Google end end + class SasPortalListDeploymentsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :deployments, as: 'deployments', class: Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment, decorator: Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + class SasPortalListDevicesResponse # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google-apis-prod_tt_sasportal_v1alpha1/lib/google/apis/prod_tt_sasportal_v1alpha1/service.rb b/generated/google-apis-prod_tt_sasportal_v1alpha1/lib/google/apis/prod_tt_sasportal_v1alpha1/service.rb index 1987b4731..fe7066514 100644 --- a/generated/google-apis-prod_tt_sasportal_v1alpha1/lib/google/apis/prod_tt_sasportal_v1alpha1/service.rb +++ b/generated/google-apis-prod_tt_sasportal_v1alpha1/lib/google/apis/prod_tt_sasportal_v1alpha1/service.rb @@ -149,6 +149,136 @@ module Google execute_or_queue_command(command, &block) end + # Creates a new deployment. + # @param [String] parent + # Required. The parent resource name where the deployment is to be created. + # @param [Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment] sas_portal_deployment_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # 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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_customer_deployment(parent, sas_portal_deployment_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1alpha1/{+parent}/deployments', options) + command.request_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment::Representation + command.request_object = sas_portal_deployment_object + command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment::Representation + command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment + 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 + + # Deletes a deployment. + # @param [String] name + # Required. The name of the deployment. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # 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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ProdTtSasportalV1alpha1::SasPortalEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ProdTtSasportalV1alpha1::SasPortalEmpty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_customer_deployment(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 + + # Returns a requested deployment. + # @param [String] name + # Required. The name of the deployment. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # 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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_customer_deployment(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1alpha1/{+name}', options) + command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment::Representation + command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment + 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 + + # Lists deployments. + # @param [String] parent + # Required. The parent resource name, for example, "nodes/1", customer/1/nodes/2. + # @param [Fixnum] page_size + # The maximum number of deployments to return in the response. + # @param [String] page_token + # A pagination token returned from a previous call to ListDeployments method + # that indicates where this listing should continue from. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # 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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ProdTtSasportalV1alpha1::SasPortalListDeploymentsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ProdTtSasportalV1alpha1::SasPortalListDeploymentsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_customer_deployments(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1alpha1/{+parent}/deployments', options) + command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalListDeploymentsResponse::Representation + command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalListDeploymentsResponse + 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 + # Moves a deployment under another node or customer. # @param [String] name # Required. The name of the deployment to move. @@ -182,6 +312,42 @@ module Google execute_or_queue_command(command, &block) end + # Updates an existing deployment. + # @param [String] name + # Output only. Resource name. + # @param [Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment] sas_portal_deployment_object + # @param [String] update_mask + # Fields to be updated. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # 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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_customer_deployment(name, sas_portal_deployment_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::SasPortalDeployment::Representation + command.request_object = sas_portal_deployment_object + command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment::Representation + command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment + 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 + # Creates a device under a node or customer. # @param [String] parent # Required. The name of the parent resource. @@ -291,39 +457,6 @@ module Google execute_or_queue_command(command, &block) end - # Creates a device under a node or customer. Returned devices are unordered. - # @param [String] parent - # Required. The name of the parent resource. - # @param [Google::Apis::ProdTtSasportalV1alpha1::SasPortalBulkCreateDeviceRequest] sas_portal_bulk_create_device_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # 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. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ProdTtSasportalV1alpha1::SasPortalBulkCreateDeviceResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ProdTtSasportalV1alpha1::SasPortalBulkCreateDeviceResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - 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 - # Creates a device under a node or customer. # @param [String] parent # Required. The name of the parent resource. @@ -827,6 +960,76 @@ module Google execute_or_queue_command(command, &block) end + # Creates a new deployment. + # @param [String] parent + # Required. The parent resource name where the deployment is to be created. + # @param [Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment] sas_portal_deployment_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # 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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_customer_node_deployment(parent, sas_portal_deployment_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1alpha1/{+parent}/deployments', options) + command.request_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment::Representation + command.request_object = sas_portal_deployment_object + command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment::Representation + command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment + 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 + + # Lists deployments. + # @param [String] parent + # Required. The parent resource name, for example, "nodes/1", customer/1/nodes/2. + # @param [Fixnum] page_size + # The maximum number of deployments to return in the response. + # @param [String] page_token + # A pagination token returned from a previous call to ListDeployments method + # that indicates where this listing should continue from. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # 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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ProdTtSasportalV1alpha1::SasPortalListDeploymentsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ProdTtSasportalV1alpha1::SasPortalListDeploymentsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_customer_node_deployments(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1alpha1/{+parent}/deployments', options) + command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalListDeploymentsResponse::Representation + command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalListDeploymentsResponse + 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 + # Creates a device under a node or customer. # @param [String] parent # Required. The name of the parent resource. @@ -1006,6 +1209,36 @@ module Google execute_or_queue_command(command, &block) end + # Returns a requested deployment. + # @param [String] name + # Required. The name of the deployment. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # 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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_deployment(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1alpha1/{+name}', options) + command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment::Representation + command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment + 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 + # Deletes a device. # @param [String] name # Required. The name of the device. @@ -1291,6 +1524,103 @@ module Google execute_or_queue_command(command, &block) end + # Deletes a deployment. + # @param [String] name + # Required. The name of the deployment. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # 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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ProdTtSasportalV1alpha1::SasPortalEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ProdTtSasportalV1alpha1::SasPortalEmpty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_node_deployment(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 + + # Returns a requested deployment. + # @param [String] name + # Required. The name of the deployment. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # 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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_node_deployment(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1alpha1/{+name}', options) + command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment::Representation + command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment + 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 + + # Lists deployments. + # @param [String] parent + # Required. The parent resource name, for example, "nodes/1", customer/1/nodes/2. + # @param [Fixnum] page_size + # The maximum number of deployments to return in the response. + # @param [String] page_token + # A pagination token returned from a previous call to ListDeployments method + # that indicates where this listing should continue from. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # 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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ProdTtSasportalV1alpha1::SasPortalListDeploymentsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ProdTtSasportalV1alpha1::SasPortalListDeploymentsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_node_deployments(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1alpha1/{+parent}/deployments', options) + command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalListDeploymentsResponse::Representation + command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalListDeploymentsResponse + 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 + # Moves a deployment under another node or customer. # @param [String] name # Required. The name of the deployment to move. @@ -1324,6 +1654,42 @@ module Google execute_or_queue_command(command, &block) end + # Updates an existing deployment. + # @param [String] name + # Output only. Resource name. + # @param [Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment] sas_portal_deployment_object + # @param [String] update_mask + # Fields to be updated. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # 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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_node_deployment(name, sas_portal_deployment_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::SasPortalDeployment::Representation + command.request_object = sas_portal_deployment_object + command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment::Representation + command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment + 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 + # Creates a device under a node or customer. # @param [String] parent # Required. The name of the parent resource. @@ -1433,39 +1799,6 @@ module Google execute_or_queue_command(command, &block) end - # Creates a device under a node or customer. Returned devices are unordered. - # @param [String] parent - # Required. The name of the parent resource. - # @param [Google::Apis::ProdTtSasportalV1alpha1::SasPortalBulkCreateDeviceRequest] sas_portal_bulk_create_device_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # 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. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ProdTtSasportalV1alpha1::SasPortalBulkCreateDeviceResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ProdTtSasportalV1alpha1::SasPortalBulkCreateDeviceResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - 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 - # Creates a device under a node or customer. # @param [String] parent # Required. The name of the parent resource. @@ -1969,10 +2302,10 @@ module Google execute_or_queue_command(command, &block) end - # Creates a device under a node or customer. Returned devices are unordered. + # Creates a new deployment. # @param [String] parent - # Required. The name of the parent resource. - # @param [Google::Apis::ProdTtSasportalV1alpha1::SasPortalBulkCreateDeviceRequest] sas_portal_bulk_create_device_request_object + # Required. The parent resource name where the deployment is to be created. + # @param [Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment] sas_portal_deployment_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1982,26 +2315,63 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ProdTtSasportalV1alpha1::SasPortalBulkCreateDeviceResponse] parsed result object + # @yieldparam result [Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::ProdTtSasportalV1alpha1::SasPortalBulkCreateDeviceResponse] + # @return [Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def bulk_node_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 + def create_node_node_deployment(parent, sas_portal_deployment_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1alpha1/{+parent}/deployments', options) + command.request_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment::Representation + command.request_object = sas_portal_deployment_object + command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment::Representation + command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment 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 + # Lists deployments. + # @param [String] parent + # Required. The parent resource name, for example, "nodes/1", customer/1/nodes/2. + # @param [Fixnum] page_size + # The maximum number of deployments to return in the response. + # @param [String] page_token + # A pagination token returned from a previous call to ListDeployments method + # that indicates where this listing should continue from. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # 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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ProdTtSasportalV1alpha1::SasPortalListDeploymentsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ProdTtSasportalV1alpha1::SasPortalListDeploymentsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_node_node_deployments(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1alpha1/{+parent}/deployments', options) + command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalListDeploymentsResponse::Representation + command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalListDeploymentsResponse + 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 + # Creates a device under a node or customer. # @param [String] parent # Required. The name of the parent resource. diff --git a/generated/google-apis-prod_tt_sasportal_v1alpha1/synth.metadata b/generated/google-apis-prod_tt_sasportal_v1alpha1/synth.metadata index ef1a40d70..937788b1c 100644 --- a/generated/google-apis-prod_tt_sasportal_v1alpha1/synth.metadata +++ b/generated/google-apis-prod_tt_sasportal_v1alpha1/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/google-api-ruby-client.git", - "sha": "91887ca1afd59dd431938c4aa38f5a22c8144658" + "sha": "53d02b66e8feff6d168399ca7bd7b013cc8ad9fc" } } ]