google-apis-prod_tt_sasportal_v1alpha1 0.33.0 → 0.34.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/prod_tt_sasportal_v1alpha1/classes.rb +108 -0
- data/lib/google/apis/prod_tt_sasportal_v1alpha1/gem_version.rb +2 -2
- data/lib/google/apis/prod_tt_sasportal_v1alpha1/representations.rb +67 -0
- data/lib/google/apis/prod_tt_sasportal_v1alpha1/service.rb +59 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f97c1cae53aa2ab95754e7ab29aed529c0e330a39e148d8ede48e6d6d692cecd
|
4
|
+
data.tar.gz: 7d8520f77fb1d0d0a15cc58615df6ed78aa812472df3fac7f98d925ca688dfb4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec6c34608cf129327b3d05d11dd1f8798cdef8cc66309017185878b24ba3d73f21170d4f904f2bffa2b9cc11fa090eee05c926843d8b478dba929b29cfea250a
|
7
|
+
data.tar.gz: 46aa24f138100ff60885f32fdcab3388f1ae546f967fc8d54ee11d63563ec25037401cb2009e858b62d0aa9be78e9f0bc743b7661f4e413865dfe9a87447f16f
|
data/CHANGELOG.md
CHANGED
@@ -75,6 +75,27 @@ module Google
|
|
75
75
|
end
|
76
76
|
end
|
77
77
|
|
78
|
+
# Response for [CheckHasProvisionedDeployment]. [spectrum.sas.portal.v1alpha1.
|
79
|
+
# Provisioning.CheckHasProvisionedDeployment].
|
80
|
+
class SasPortalCheckHasProvisionedDeploymentResponse
|
81
|
+
include Google::Apis::Core::Hashable
|
82
|
+
|
83
|
+
# Whether a SAS deployment for the authentication context exists.
|
84
|
+
# Corresponds to the JSON property `hasProvisionedDeployment`
|
85
|
+
# @return [Boolean]
|
86
|
+
attr_accessor :has_provisioned_deployment
|
87
|
+
alias_method :has_provisioned_deployment?, :has_provisioned_deployment
|
88
|
+
|
89
|
+
def initialize(**args)
|
90
|
+
update!(**args)
|
91
|
+
end
|
92
|
+
|
93
|
+
# Update properties of this object
|
94
|
+
def update!(**args)
|
95
|
+
@has_provisioned_deployment = args[:has_provisioned_deployment] if args.key?(:has_provisioned_deployment)
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
78
99
|
# Request for CreateSignedDevice.
|
79
100
|
class SasPortalCreateSignedDeviceRequest
|
80
101
|
include Google::Apis::Core::Hashable
|
@@ -172,6 +193,31 @@ module Google
|
|
172
193
|
end
|
173
194
|
end
|
174
195
|
|
196
|
+
# Association between a gcp project and a SAS user id.
|
197
|
+
class SasPortalDeploymentAssociation
|
198
|
+
include Google::Apis::Core::Hashable
|
199
|
+
|
200
|
+
# GCP project id of the associated project.
|
201
|
+
# Corresponds to the JSON property `gcpProjectId`
|
202
|
+
# @return [String]
|
203
|
+
attr_accessor :gcp_project_id
|
204
|
+
|
205
|
+
# User id of the deployment.
|
206
|
+
# Corresponds to the JSON property `userId`
|
207
|
+
# @return [String]
|
208
|
+
attr_accessor :user_id
|
209
|
+
|
210
|
+
def initialize(**args)
|
211
|
+
update!(**args)
|
212
|
+
end
|
213
|
+
|
214
|
+
# Update properties of this object
|
215
|
+
def update!(**args)
|
216
|
+
@gcp_project_id = args[:gcp_project_id] if args.key?(:gcp_project_id)
|
217
|
+
@user_id = args[:user_id] if args.key?(:user_id)
|
218
|
+
end
|
219
|
+
end
|
220
|
+
|
175
221
|
#
|
176
222
|
class SasPortalDevice
|
177
223
|
include Google::Apis::Core::Hashable
|
@@ -882,6 +928,68 @@ module Google
|
|
882
928
|
end
|
883
929
|
end
|
884
930
|
|
931
|
+
# Long-running operation metadata message returned by the MigrateOrganization.
|
932
|
+
class SasPortalMigrateOrganizationMetadata
|
933
|
+
include Google::Apis::Core::Hashable
|
934
|
+
|
935
|
+
# Output only. Current operation state
|
936
|
+
# Corresponds to the JSON property `operationState`
|
937
|
+
# @return [String]
|
938
|
+
attr_accessor :operation_state
|
939
|
+
|
940
|
+
def initialize(**args)
|
941
|
+
update!(**args)
|
942
|
+
end
|
943
|
+
|
944
|
+
# Update properties of this object
|
945
|
+
def update!(**args)
|
946
|
+
@operation_state = args[:operation_state] if args.key?(:operation_state)
|
947
|
+
end
|
948
|
+
end
|
949
|
+
|
950
|
+
# Request for [MigrateOrganization]. [spectrum.sas.portal.v1alpha1.Provisioning.
|
951
|
+
# MigrateOrganization]. GCP Project, Organization Info, and caller's GAIA ID
|
952
|
+
# should be retrieved from the RPC handler, and used to check authorization on
|
953
|
+
# SAS Portal organization and to create GCP Projects.
|
954
|
+
class SasPortalMigrateOrganizationRequest
|
955
|
+
include Google::Apis::Core::Hashable
|
956
|
+
|
957
|
+
# Required. Id of the SAS organization to be migrated.
|
958
|
+
# Corresponds to the JSON property `organizationId`
|
959
|
+
# @return [Fixnum]
|
960
|
+
attr_accessor :organization_id
|
961
|
+
|
962
|
+
def initialize(**args)
|
963
|
+
update!(**args)
|
964
|
+
end
|
965
|
+
|
966
|
+
# Update properties of this object
|
967
|
+
def update!(**args)
|
968
|
+
@organization_id = args[:organization_id] if args.key?(:organization_id)
|
969
|
+
end
|
970
|
+
end
|
971
|
+
|
972
|
+
# Response for [MigrateOrganization]. [spectrum.sas.portal.v1alpha1.Provisioning.
|
973
|
+
# MigrateOrganization].
|
974
|
+
class SasPortalMigrateOrganizationResponse
|
975
|
+
include Google::Apis::Core::Hashable
|
976
|
+
|
977
|
+
# Optional. A list of deployment association that were created for the migration,
|
978
|
+
# or current associations if they already exist.
|
979
|
+
# Corresponds to the JSON property `deploymentAssociation`
|
980
|
+
# @return [Array<Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeploymentAssociation>]
|
981
|
+
attr_accessor :deployment_association
|
982
|
+
|
983
|
+
def initialize(**args)
|
984
|
+
update!(**args)
|
985
|
+
end
|
986
|
+
|
987
|
+
# Update properties of this object
|
988
|
+
def update!(**args)
|
989
|
+
@deployment_association = args[:deployment_association] if args.key?(:deployment_association)
|
990
|
+
end
|
991
|
+
end
|
992
|
+
|
885
993
|
# Request for MoveDeployment.
|
886
994
|
class SasPortalMoveDeploymentRequest
|
887
995
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module ProdTtSasportalV1alpha1
|
18
18
|
# Version of the google-apis-prod_tt_sasportal_v1alpha1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.34.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230625"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -34,6 +34,12 @@ module Google
|
|
34
34
|
include Google::Apis::Core::JsonObjectSupport
|
35
35
|
end
|
36
36
|
|
37
|
+
class SasPortalCheckHasProvisionedDeploymentResponse
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
37
43
|
class SasPortalCreateSignedDeviceRequest
|
38
44
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
45
|
|
@@ -52,6 +58,12 @@ module Google
|
|
52
58
|
include Google::Apis::Core::JsonObjectSupport
|
53
59
|
end
|
54
60
|
|
61
|
+
class SasPortalDeploymentAssociation
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
66
|
+
|
55
67
|
class SasPortalDevice
|
56
68
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
69
|
|
@@ -154,6 +166,24 @@ module Google
|
|
154
166
|
include Google::Apis::Core::JsonObjectSupport
|
155
167
|
end
|
156
168
|
|
169
|
+
class SasPortalMigrateOrganizationMetadata
|
170
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
171
|
+
|
172
|
+
include Google::Apis::Core::JsonObjectSupport
|
173
|
+
end
|
174
|
+
|
175
|
+
class SasPortalMigrateOrganizationRequest
|
176
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
177
|
+
|
178
|
+
include Google::Apis::Core::JsonObjectSupport
|
179
|
+
end
|
180
|
+
|
181
|
+
class SasPortalMigrateOrganizationResponse
|
182
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
183
|
+
|
184
|
+
include Google::Apis::Core::JsonObjectSupport
|
185
|
+
end
|
186
|
+
|
157
187
|
class SasPortalMoveDeploymentRequest
|
158
188
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
159
189
|
|
@@ -273,6 +303,13 @@ module Google
|
|
273
303
|
end
|
274
304
|
end
|
275
305
|
|
306
|
+
class SasPortalCheckHasProvisionedDeploymentResponse
|
307
|
+
# @private
|
308
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
309
|
+
property :has_provisioned_deployment, as: 'hasProvisionedDeployment'
|
310
|
+
end
|
311
|
+
end
|
312
|
+
|
276
313
|
class SasPortalCreateSignedDeviceRequest
|
277
314
|
# @private
|
278
315
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -300,6 +337,14 @@ module Google
|
|
300
337
|
end
|
301
338
|
end
|
302
339
|
|
340
|
+
class SasPortalDeploymentAssociation
|
341
|
+
# @private
|
342
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
343
|
+
property :gcp_project_id, as: 'gcpProjectId'
|
344
|
+
property :user_id, as: 'userId'
|
345
|
+
end
|
346
|
+
end
|
347
|
+
|
303
348
|
class SasPortalDevice
|
304
349
|
# @private
|
305
350
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -491,6 +536,28 @@ module Google
|
|
491
536
|
end
|
492
537
|
end
|
493
538
|
|
539
|
+
class SasPortalMigrateOrganizationMetadata
|
540
|
+
# @private
|
541
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
542
|
+
property :operation_state, as: 'operationState'
|
543
|
+
end
|
544
|
+
end
|
545
|
+
|
546
|
+
class SasPortalMigrateOrganizationRequest
|
547
|
+
# @private
|
548
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
549
|
+
property :organization_id, :numeric_string => true, as: 'organizationId'
|
550
|
+
end
|
551
|
+
end
|
552
|
+
|
553
|
+
class SasPortalMigrateOrganizationResponse
|
554
|
+
# @private
|
555
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
556
|
+
collection :deployment_association, as: 'deploymentAssociation', class: Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeploymentAssociation, decorator: Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeploymentAssociation::Representation
|
557
|
+
|
558
|
+
end
|
559
|
+
end
|
560
|
+
|
494
561
|
class SasPortalMoveDeploymentRequest
|
495
562
|
# @private
|
496
563
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -49,6 +49,33 @@ module Google
|
|
49
49
|
@batch_path = 'batch'
|
50
50
|
end
|
51
51
|
|
52
|
+
# Checks whether a SAS deployment for the authentication context exists.
|
53
|
+
# @param [String] fields
|
54
|
+
# Selector specifying which fields to include in a partial response.
|
55
|
+
# @param [String] quota_user
|
56
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
57
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
58
|
+
# @param [Google::Apis::RequestOptions] options
|
59
|
+
# Request-specific options
|
60
|
+
#
|
61
|
+
# @yield [result, err] Result & error if block supplied
|
62
|
+
# @yieldparam result [Google::Apis::ProdTtSasportalV1alpha1::SasPortalCheckHasProvisionedDeploymentResponse] parsed result object
|
63
|
+
# @yieldparam err [StandardError] error object if request failed
|
64
|
+
#
|
65
|
+
# @return [Google::Apis::ProdTtSasportalV1alpha1::SasPortalCheckHasProvisionedDeploymentResponse]
|
66
|
+
#
|
67
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
68
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
69
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
70
|
+
def check_customer_has_provisioned_deployment(fields: nil, quota_user: nil, options: nil, &block)
|
71
|
+
command = make_simple_command(:get, 'v1alpha1/customers:checkHasProvisionedDeployment', options)
|
72
|
+
command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalCheckHasProvisionedDeploymentResponse::Representation
|
73
|
+
command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalCheckHasProvisionedDeploymentResponse
|
74
|
+
command.query['fields'] = fields unless fields.nil?
|
75
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
76
|
+
execute_or_queue_command(command, &block)
|
77
|
+
end
|
78
|
+
|
52
79
|
# Returns a requested customer.
|
53
80
|
# @param [String] name
|
54
81
|
# Required. The name of the customer.
|
@@ -113,6 +140,38 @@ module Google
|
|
113
140
|
execute_or_queue_command(command, &block)
|
114
141
|
end
|
115
142
|
|
143
|
+
# Migrates a SAS organization to the cloud. This will create GCP projects for
|
144
|
+
# each deployment and associate them. The SAS Organization is linked to the gcp
|
145
|
+
# project that called the command. go/sas-legacy-customer-migration
|
146
|
+
# @param [Google::Apis::ProdTtSasportalV1alpha1::SasPortalMigrateOrganizationRequest] sas_portal_migrate_organization_request_object
|
147
|
+
# @param [String] fields
|
148
|
+
# Selector specifying which fields to include in a partial response.
|
149
|
+
# @param [String] quota_user
|
150
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
151
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
152
|
+
# @param [Google::Apis::RequestOptions] options
|
153
|
+
# Request-specific options
|
154
|
+
#
|
155
|
+
# @yield [result, err] Result & error if block supplied
|
156
|
+
# @yieldparam result [Google::Apis::ProdTtSasportalV1alpha1::SasPortalOperation] parsed result object
|
157
|
+
# @yieldparam err [StandardError] error object if request failed
|
158
|
+
#
|
159
|
+
# @return [Google::Apis::ProdTtSasportalV1alpha1::SasPortalOperation]
|
160
|
+
#
|
161
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
162
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
163
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
164
|
+
def migrate_customer_organization(sas_portal_migrate_organization_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
165
|
+
command = make_simple_command(:post, 'v1alpha1/customers:migrateOrganization', options)
|
166
|
+
command.request_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalMigrateOrganizationRequest::Representation
|
167
|
+
command.request_object = sas_portal_migrate_organization_request_object
|
168
|
+
command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalOperation::Representation
|
169
|
+
command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalOperation
|
170
|
+
command.query['fields'] = fields unless fields.nil?
|
171
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
172
|
+
execute_or_queue_command(command, &block)
|
173
|
+
end
|
174
|
+
|
116
175
|
# Updates an existing customer.
|
117
176
|
# @param [String] name
|
118
177
|
# Output only. Resource name of the customer.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-prod_tt_sasportal_v1alpha1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.34.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-07-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-prod_tt_sasportal_v1alpha1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-prod_tt_sasportal_v1alpha1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-prod_tt_sasportal_v1alpha1/v0.34.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-prod_tt_sasportal_v1alpha1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|