Skip to content

Commit

Permalink
feat: Automated regeneration of sasportal v1alpha1 client (#17768)
Browse files Browse the repository at this point in the history
Auto-created at 2024-02-11 09:15:48 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored Feb 11, 2024
1 parent bc2b724 commit c4b954c
Show file tree
Hide file tree
Showing 6 changed files with 119 additions and 65 deletions.
7 changes: 7 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -281787,6 +281787,9 @@
"/sasportal:v1alpha1/SasPortalFrequencyRange": sas_portal_frequency_range
"/sasportal:v1alpha1/SasPortalFrequencyRange/highFrequencyMhz": high_frequency_mhz
"/sasportal:v1alpha1/SasPortalFrequencyRange/lowFrequencyMhz": low_frequency_mhz
"/sasportal:v1alpha1/SasPortalGcpProjectDeployment": sas_portal_gcp_project_deployment
"/sasportal:v1alpha1/SasPortalGcpProjectDeployment/deployment": deployment
"/sasportal:v1alpha1/SasPortalGcpProjectDeployment/hasEnabledAnalytics": has_enabled_analytics
"/sasportal:v1alpha1/SasPortalGenerateSecretRequest": sas_portal_generate_secret_request
"/sasportal:v1alpha1/SasPortalGenerateSecretResponse": sas_portal_generate_secret_response
"/sasportal:v1alpha1/SasPortalGenerateSecretResponse/secret": secret
Expand Down Expand Up @@ -281821,6 +281824,9 @@
"/sasportal:v1alpha1/SasPortalListDevicesResponse/devices": devices
"/sasportal:v1alpha1/SasPortalListDevicesResponse/devices/device": device
"/sasportal:v1alpha1/SasPortalListDevicesResponse/nextPageToken": next_page_token
"/sasportal:v1alpha1/SasPortalListGcpProjectDeploymentsResponse": sas_portal_list_gcp_project_deployments_response
"/sasportal:v1alpha1/SasPortalListGcpProjectDeploymentsResponse/deployments": deployments
"/sasportal:v1alpha1/SasPortalListGcpProjectDeploymentsResponse/deployments/deployment": deployment
"/sasportal:v1alpha1/SasPortalListLegacyOrganizationsResponse": sas_portal_list_legacy_organizations_response
"/sasportal:v1alpha1/SasPortalListLegacyOrganizationsResponse/organizationIds": organization_ids
"/sasportal:v1alpha1/SasPortalListLegacyOrganizationsResponse/organizationIds/organization_id": organization_id
Expand Down Expand Up @@ -281964,6 +281970,7 @@
"/sasportal:v1alpha1/sasportal.customers.list": list_customers
"/sasportal:v1alpha1/sasportal.customers.list/pageSize": page_size
"/sasportal:v1alpha1/sasportal.customers.list/pageToken": page_token
"/sasportal:v1alpha1/sasportal.customers.listGcpProjectDeployments": list_customer_gcp_project_deployments
"/sasportal:v1alpha1/sasportal.customers.listLegacyOrganizations": list_customer_legacy_organizations
"/sasportal:v1alpha1/sasportal.customers.migrateOrganization": migrate_customer_organization
"/sasportal:v1alpha1/sasportal.customers.nodes.create": create_customer_node
Expand Down
5 changes: 5 additions & 0 deletions generated/google-apis-sasportal_v1alpha1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Release history for google-apis-sasportal_v1alpha1

### v0.40.0 (2024-02-11)

* Regenerated from discovery document revision 20240201
* Regenerated using generator version 0.13.1

### v0.39.0 (2024-01-23)

* Regenerated from discovery document revision 20240110
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,27 +75,6 @@ def update!(**args)
end
end

# Response for [CheckHasProvisionedDeployment]. [spectrum.sas.portal.v1alpha1.
# Provisioning.CheckHasProvisionedDeployment].
class SasPortalCheckHasProvisionedDeploymentResponse
include Google::Apis::Core::Hashable

# Whether a SAS deployment for the authentication context exists.
# Corresponds to the JSON property `hasProvisionedDeployment`
# @return [Boolean]
attr_accessor :has_provisioned_deployment
alias_method :has_provisioned_deployment?, :has_provisioned_deployment

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@has_provisioned_deployment = args[:has_provisioned_deployment] if args.key?(:has_provisioned_deployment)
end
end

# Request for CreateSignedDevice.
class SasPortalCreateSignedDeviceRequest
include Google::Apis::Core::Hashable
Expand Down Expand Up @@ -633,6 +612,33 @@ def update!(**args)
end
end

# Deployment associated with the GCP project. Includes whether SAS analytics has
# been enabled or not.
class SasPortalGcpProjectDeployment
include Google::Apis::Core::Hashable

# The Deployment.
# Corresponds to the JSON property `deployment`
# @return [Google::Apis::SasportalV1alpha1::SasPortalDeployment]
attr_accessor :deployment

# Whether SAS analytics has been enabled.
# Corresponds to the JSON property `hasEnabledAnalytics`
# @return [Boolean]
attr_accessor :has_enabled_analytics
alias_method :has_enabled_analytics?, :has_enabled_analytics

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@deployment = args[:deployment] if args.key?(:deployment)
@has_enabled_analytics = args[:has_enabled_analytics] if args.key?(:has_enabled_analytics)
end
end

# Request for GenerateSecret.
class SasPortalGenerateSecretRequest
include Google::Apis::Core::Hashable
Expand Down Expand Up @@ -890,6 +896,25 @@ def update!(**args)
end
end

# Response for [ListGcpProjectDeployments].
class SasPortalListGcpProjectDeploymentsResponse
include Google::Apis::Core::Hashable

# Optional. Deployments associated with the GCP project
# Corresponds to the JSON property `deployments`
# @return [Array<Google::Apis::SasportalV1alpha1::SasPortalGcpProjectDeployment>]
attr_accessor :deployments

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@deployments = args[:deployments] if args.key?(:deployments)
end
end

# Response for [ListLegacyOrganizations]. [spectrum.sas.portal.v1alpha1.
# Provisioning.ListLegacyOrganizations].
class SasPortalListLegacyOrganizationsResponse
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module SasportalV1alpha1
# Version of the google-apis-sasportal_v1alpha1 gem
GEM_VERSION = "0.39.0"
GEM_VERSION = "0.40.0"

# Version of the code generator used to generate this client
GENERATOR_VERSION = "0.13.0"
GENERATOR_VERSION = "0.13.1"

# Revision of the discovery document this client was generated from
REVISION = "20240110"
REVISION = "20240201"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,6 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

class SasPortalCheckHasProvisionedDeploymentResponse
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class SasPortalCreateSignedDeviceRequest
class Representation < Google::Apis::Core::JsonRepresentation; end

Expand Down Expand Up @@ -118,6 +112,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

class SasPortalGcpProjectDeployment
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class SasPortalGenerateSecretRequest
class Representation < Google::Apis::Core::JsonRepresentation; end

Expand Down Expand Up @@ -160,6 +160,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

class SasPortalListGcpProjectDeploymentsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class SasPortalListLegacyOrganizationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end

Expand Down Expand Up @@ -333,13 +339,6 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class SasPortalCheckHasProvisionedDeploymentResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :has_provisioned_deployment, as: 'hasProvisionedDeployment'
end
end

class SasPortalCreateSignedDeviceRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down Expand Up @@ -488,6 +487,15 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class SasPortalGcpProjectDeployment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :deployment, as: 'deployment', class: Google::Apis::SasportalV1alpha1::SasPortalDeployment, decorator: Google::Apis::SasportalV1alpha1::SasPortalDeployment::Representation

property :has_enabled_analytics, as: 'hasEnabledAnalytics'
end
end

class SasPortalGenerateSecretRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down Expand Up @@ -555,6 +563,14 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class SasPortalListGcpProjectDeploymentsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :deployments, as: 'deployments', class: Google::Apis::SasportalV1alpha1::SasPortalGcpProjectDeployment, decorator: Google::Apis::SasportalV1alpha1::SasPortalGcpProjectDeployment::Representation

end
end

class SasPortalListLegacyOrganizationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,33 +51,6 @@ def initialize
@batch_path = 'batch'
end

# Checks whether a SAS deployment for the authentication context exists.
# @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::SasportalV1alpha1::SasPortalCheckHasProvisionedDeploymentResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SasportalV1alpha1::SasPortalCheckHasProvisionedDeploymentResponse]
#
# @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 check_customer_has_provisioned_deployment(fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1alpha1/customers:checkHasProvisionedDeployment', options)
command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalCheckHasProvisionedDeploymentResponse::Representation
command.response_class = Google::Apis::SasportalV1alpha1::SasPortalCheckHasProvisionedDeploymentResponse
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 customer.
# @param [String] name
# Required. The name of the customer.
Expand Down Expand Up @@ -142,7 +115,35 @@ def list_customers(page_size: nil, page_token: nil, fields: nil, quota_user: nil
execute_or_queue_command(command, &block)
end

# Checks whether account is legacy.
# Returns a list of SAS deployments associated with current GCP project.
# Includes whether SAS analytics has been enabled or not.
# @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::SasportalV1alpha1::SasPortalListGcpProjectDeploymentsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SasportalV1alpha1::SasPortalListGcpProjectDeploymentsResponse]
#
# @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_gcp_project_deployments(fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1alpha1/customers:listGcpProjectDeployments', options)
command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalListGcpProjectDeploymentsResponse::Representation
command.response_class = Google::Apis::SasportalV1alpha1::SasPortalListGcpProjectDeploymentsResponse
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 list of legacy organizations.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
Expand Down

0 comments on commit c4b954c

Please sign in to comment.