diff --git a/api_names_out.yaml b/api_names_out.yaml index f4cbe9f610c..d81feb7b42e 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -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 @@ -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 @@ -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 diff --git a/generated/google-apis-sasportal_v1alpha1/CHANGELOG.md b/generated/google-apis-sasportal_v1alpha1/CHANGELOG.md index df35932d2a9..76097d8ed05 100644 --- a/generated/google-apis-sasportal_v1alpha1/CHANGELOG.md +++ b/generated/google-apis-sasportal_v1alpha1/CHANGELOG.md @@ -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 diff --git a/generated/google-apis-sasportal_v1alpha1/lib/google/apis/sasportal_v1alpha1/classes.rb b/generated/google-apis-sasportal_v1alpha1/lib/google/apis/sasportal_v1alpha1/classes.rb index 1a10bfe5c2e..fbfe4dd0270 100644 --- a/generated/google-apis-sasportal_v1alpha1/lib/google/apis/sasportal_v1alpha1/classes.rb +++ b/generated/google-apis-sasportal_v1alpha1/lib/google/apis/sasportal_v1alpha1/classes.rb @@ -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 @@ -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 @@ -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] + 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 diff --git a/generated/google-apis-sasportal_v1alpha1/lib/google/apis/sasportal_v1alpha1/gem_version.rb b/generated/google-apis-sasportal_v1alpha1/lib/google/apis/sasportal_v1alpha1/gem_version.rb index 921c02b4846..4829f77d3fc 100644 --- a/generated/google-apis-sasportal_v1alpha1/lib/google/apis/sasportal_v1alpha1/gem_version.rb +++ b/generated/google-apis-sasportal_v1alpha1/lib/google/apis/sasportal_v1alpha1/gem_version.rb @@ -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 diff --git a/generated/google-apis-sasportal_v1alpha1/lib/google/apis/sasportal_v1alpha1/representations.rb b/generated/google-apis-sasportal_v1alpha1/lib/google/apis/sasportal_v1alpha1/representations.rb index 505ed79eca5..330d6f77bf5 100644 --- a/generated/google-apis-sasportal_v1alpha1/lib/google/apis/sasportal_v1alpha1/representations.rb +++ b/generated/google-apis-sasportal_v1alpha1/lib/google/apis/sasportal_v1alpha1/representations.rb @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/generated/google-apis-sasportal_v1alpha1/lib/google/apis/sasportal_v1alpha1/service.rb b/generated/google-apis-sasportal_v1alpha1/lib/google/apis/sasportal_v1alpha1/service.rb index ea2d5eca03e..2e3d23ac799 100644 --- a/generated/google-apis-sasportal_v1alpha1/lib/google/apis/sasportal_v1alpha1/service.rb +++ b/generated/google-apis-sasportal_v1alpha1/lib/google/apis/sasportal_v1alpha1/service.rb @@ -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. @@ -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