google-api-client 0.14.1 → 0.14.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +33 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +0 -18
- data/generated/google/apis/adexperiencereport_v1.rb +1 -1
- data/generated/google/apis/adexperiencereport_v1/classes.rb +0 -6
- data/generated/google/apis/adexperiencereport_v1/representations.rb +0 -1
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +46 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +19 -2
- data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
- data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +14 -12
- data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +7 -5
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +8 -9
- data/generated/google/apis/androidpublisher_v2/service.rb +1 -1
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +4 -2
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +3 -0
- data/generated/google/apis/cloudtrace_v2.rb +1 -1
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +93 -0
- data/generated/google/apis/container_v1/representations.rb +58 -0
- data/generated/google/apis/container_v1/service.rb +42 -0
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +119 -0
- data/generated/google/apis/container_v1beta1/representations.rb +62 -0
- data/generated/google/apis/container_v1beta1/service.rb +77 -0
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +184 -0
- data/generated/google/apis/dataproc_v1beta2/representations.rb +70 -0
- data/generated/google/apis/dataproc_v1beta2/service.rb +105 -0
- data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
- data/generated/google/apis/deploymentmanager_alpha/classes.rb +63 -64
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +51 -50
- data/generated/google/apis/deploymentmanager_v2/service.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2beta/classes.rb +62 -62
- data/generated/google/apis/dlp_v2beta1.rb +1 -1
- data/generated/google/apis/dlp_v2beta1/classes.rb +23 -17
- data/generated/google/apis/dlp_v2beta1/service.rb +10 -10
- data/generated/google/apis/dns_v1/service.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/genomics_v1/classes.rb +1 -1
- data/generated/google/apis/genomics_v1alpha2.rb +1 -1
- data/generated/google/apis/genomics_v1alpha2/classes.rb +1 -1
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/oauth2_v2/service.rb +1 -1
- data/generated/google/apis/oslogin_v1alpha.rb +7 -1
- data/generated/google/apis/oslogin_v1alpha/classes.rb +2 -1
- data/generated/google/apis/oslogin_v1alpha/representations.rb +2 -2
- data/generated/google/apis/oslogin_v1beta.rb +43 -0
- data/generated/google/apis/oslogin_v1beta/classes.rb +202 -0
- data/generated/google/apis/oslogin_v1beta/representations.rb +105 -0
- data/generated/google/apis/oslogin_v1beta/service.rb +228 -0
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +906 -0
- data/generated/google/apis/sheets_v4/representations.rb +389 -0
- data/generated/google/apis/sheets_v4/service.rb +230 -0
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +73 -2
- data/generated/google/apis/spanner_v1/representations.rb +32 -0
- data/generated/google/apis/spanner_v1/service.rb +52 -1
- data/generated/google/apis/sqladmin_v1beta4/service.rb +1 -1
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/service.rb +15 -13
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +0 -1
- data/generated/google/apis/streetviewpublish_v1.rb +1 -1
- data/generated/google/apis/streetviewpublish_v1/classes.rb +1 -1
- data/generated/google/apis/tagmanager_v2.rb +1 -1
- data/generated/google/apis/tagmanager_v2/classes.rb +181 -0
- data/generated/google/apis/tagmanager_v2/representations.rb +75 -0
- data/generated/google/apis/testing_v1.rb +38 -0
- data/generated/google/apis/testing_v1/classes.rb +1616 -0
- data/generated/google/apis/testing_v1/representations.rb +688 -0
- data/generated/google/apis/testing_v1/service.rb +221 -0
- data/generated/google/apis/videointelligence_v1beta1.rb +3 -3
- data/generated/google/apis/videointelligence_v1beta1/service.rb +2 -2
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +9 -0
- data/generated/google/apis/youtube_v3/representations.rb +1 -0
- data/generated/google/apis/youtube_v3/service.rb +1 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +11 -3
|
@@ -27,7 +27,7 @@ module Google
|
|
|
27
27
|
# @see https://cloud.google.com/dlp/docs/
|
|
28
28
|
module DlpV2beta1
|
|
29
29
|
VERSION = 'V2beta1'
|
|
30
|
-
REVISION = '
|
|
30
|
+
REVISION = '20170918'
|
|
31
31
|
|
|
32
32
|
# View and manage your data across Google Cloud Platform services
|
|
33
33
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
@@ -116,19 +116,22 @@ module Google
|
|
|
116
116
|
# @return [Google::Apis::DlpV2beta1::GoogleRpcStatus]
|
|
117
117
|
attr_accessor :error
|
|
118
118
|
|
|
119
|
-
# This field will contain an InspectOperationMetadata object
|
|
120
|
-
#
|
|
119
|
+
# This field will contain an InspectOperationMetadata object for `inspect.
|
|
120
|
+
# operations.create` or a RiskAnalysisOperationMetadata object for `dataSource.
|
|
121
|
+
# analyze`. This will always be returned with the Operation.
|
|
121
122
|
# Corresponds to the JSON property `metadata`
|
|
122
123
|
# @return [Hash<String,Object>]
|
|
123
124
|
attr_accessor :metadata
|
|
124
125
|
|
|
125
|
-
# The server-assigned name
|
|
126
|
+
# The server-assigned name. The `name` should have the format of `inspect/
|
|
126
127
|
# operations/<identifier>`.
|
|
127
128
|
# Corresponds to the JSON property `name`
|
|
128
129
|
# @return [String]
|
|
129
130
|
attr_accessor :name
|
|
130
131
|
|
|
131
|
-
# This field will contain an InspectOperationResult object.
|
|
132
|
+
# This field will contain an InspectOperationResult object for `inspect.
|
|
133
|
+
# operations.create` or a RiskAnalysisOperationResult object for `dataSource.
|
|
134
|
+
# analyze`.
|
|
132
135
|
# Corresponds to the JSON property `response`
|
|
133
136
|
# @return [Hash<String,Object>]
|
|
134
137
|
attr_accessor :response
|
|
@@ -320,7 +323,7 @@ module Google
|
|
|
320
323
|
end
|
|
321
324
|
end
|
|
322
325
|
|
|
323
|
-
#
|
|
326
|
+
# Histogram bucket of value frequencies in the column.
|
|
324
327
|
class GooglePrivacyDlpV2beta1CategoricalStatsHistogramBucket
|
|
325
328
|
include Google::Apis::Core::Hashable
|
|
326
329
|
|
|
@@ -722,7 +725,6 @@ module Google
|
|
|
722
725
|
|
|
723
726
|
# Pseudonymization method that generates surrogates via cryptographic hashing.
|
|
724
727
|
# Uses SHA-256.
|
|
725
|
-
# The key size must be either 32 or 64 bytes.
|
|
726
728
|
# Outputs a 32 byte digest as an uppercase hex string
|
|
727
729
|
# (for example, 41D1567F7F99F1DC2A5FAB886DEE5BEE).
|
|
728
730
|
# Currently, only string and integer values can be hashed.
|
|
@@ -1322,21 +1324,21 @@ module Google
|
|
|
1322
1324
|
end
|
|
1323
1325
|
end
|
|
1324
1326
|
|
|
1325
|
-
#
|
|
1327
|
+
# Description of the information type (infoType).
|
|
1326
1328
|
class GooglePrivacyDlpV2beta1InfoTypeDescription
|
|
1327
1329
|
include Google::Apis::Core::Hashable
|
|
1328
1330
|
|
|
1329
|
-
# List of categories this
|
|
1331
|
+
# List of categories this infoType belongs to.
|
|
1330
1332
|
# Corresponds to the JSON property `categories`
|
|
1331
1333
|
# @return [Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1CategoryDescription>]
|
|
1332
1334
|
attr_accessor :categories
|
|
1333
1335
|
|
|
1334
|
-
# Human readable form of the
|
|
1336
|
+
# Human readable form of the infoType name.
|
|
1335
1337
|
# Corresponds to the JSON property `displayName`
|
|
1336
1338
|
# @return [String]
|
|
1337
1339
|
attr_accessor :display_name
|
|
1338
1340
|
|
|
1339
|
-
# Internal name of the
|
|
1341
|
+
# Internal name of the infoType.
|
|
1340
1342
|
# Corresponds to the JSON property `name`
|
|
1341
1343
|
# @return [String]
|
|
1342
1344
|
attr_accessor :name
|
|
@@ -1701,7 +1703,7 @@ module Google
|
|
|
1701
1703
|
end
|
|
1702
1704
|
end
|
|
1703
1705
|
|
|
1704
|
-
# The set of columns' values that share the same
|
|
1706
|
+
# The set of columns' values that share the same k-anonymity value.
|
|
1705
1707
|
class GooglePrivacyDlpV2beta1KAnonymityEquivalenceClass
|
|
1706
1708
|
include Google::Apis::Core::Hashable
|
|
1707
1709
|
|
|
@@ -1729,7 +1731,7 @@ module Google
|
|
|
1729
1731
|
end
|
|
1730
1732
|
end
|
|
1731
1733
|
|
|
1732
|
-
#
|
|
1734
|
+
# Histogram bucket of equivalence class sizes in the table.
|
|
1733
1735
|
class GooglePrivacyDlpV2beta1KAnonymityHistogramBucket
|
|
1734
1736
|
include Google::Apis::Core::Hashable
|
|
1735
1737
|
|
|
@@ -1900,7 +1902,7 @@ module Google
|
|
|
1900
1902
|
end
|
|
1901
1903
|
end
|
|
1902
1904
|
|
|
1903
|
-
# The set of columns' values that share the same
|
|
1905
|
+
# The set of columns' values that share the same l-diversity value.
|
|
1904
1906
|
class GooglePrivacyDlpV2beta1LDiversityEquivalenceClass
|
|
1905
1907
|
include Google::Apis::Core::Hashable
|
|
1906
1908
|
|
|
@@ -1938,7 +1940,7 @@ module Google
|
|
|
1938
1940
|
end
|
|
1939
1941
|
end
|
|
1940
1942
|
|
|
1941
|
-
#
|
|
1943
|
+
# Histogram bucket of sensitive value frequencies in the table.
|
|
1942
1944
|
class GooglePrivacyDlpV2beta1LDiversityHistogramBucket
|
|
1943
1945
|
include Google::Apis::Core::Hashable
|
|
1944
1946
|
|
|
@@ -2308,7 +2310,6 @@ module Google
|
|
|
2308
2310
|
|
|
2309
2311
|
# Pseudonymization method that generates surrogates via cryptographic hashing.
|
|
2310
2312
|
# Uses SHA-256.
|
|
2311
|
-
# The key size must be either 32 or 64 bytes.
|
|
2312
2313
|
# Outputs a 32 byte digest as an uppercase hex string
|
|
2313
2314
|
# (for example, 41D1567F7F99F1DC2A5FAB886DEE5BEE).
|
|
2314
2315
|
# Currently, only string and integer values can be hashed.
|
|
@@ -2710,7 +2711,10 @@ module Google
|
|
|
2710
2711
|
end
|
|
2711
2712
|
end
|
|
2712
2713
|
|
|
2713
|
-
# Metadata returned within
|
|
2714
|
+
# Metadata returned within the
|
|
2715
|
+
# [`riskAnalysis.operations.get`](/dlp/docs/reference/rest/v2beta1/riskAnalysis.
|
|
2716
|
+
# operations/get)
|
|
2717
|
+
# for risk analysis.
|
|
2714
2718
|
class GooglePrivacyDlpV2beta1RiskAnalysisOperationMetadata
|
|
2715
2719
|
include Google::Apis::Core::Hashable
|
|
2716
2720
|
|
|
@@ -2745,7 +2749,9 @@ module Google
|
|
|
2745
2749
|
end
|
|
2746
2750
|
end
|
|
2747
2751
|
|
|
2748
|
-
# Result of a risk analysis
|
|
2752
|
+
# Result of a risk analysis
|
|
2753
|
+
# [`Operation`](/dlp/docs/reference/rest/v2beta1/inspect.operations)
|
|
2754
|
+
# request.
|
|
2749
2755
|
class GooglePrivacyDlpV2beta1RiskAnalysisOperationResult
|
|
2750
2756
|
include Google::Apis::Core::Hashable
|
|
2751
2757
|
|
|
@@ -173,8 +173,8 @@ module Google
|
|
|
173
173
|
execute_or_queue_command(command, &block)
|
|
174
174
|
end
|
|
175
175
|
|
|
176
|
-
# Cancels an operation. Use the get
|
|
177
|
-
# succeeded or
|
|
176
|
+
# Cancels an operation. Use the `inspect.operations.get` to check whether the
|
|
177
|
+
# cancellation succeeded or the operation completed despite cancellation.
|
|
178
178
|
# @param [String] name
|
|
179
179
|
# The name of the operation resource to be cancelled.
|
|
180
180
|
# @param [Google::Apis::DlpV2beta1::GoogleLongrunningCancelOperationRequest] google_longrunning_cancel_operation_request_object
|
|
@@ -300,13 +300,13 @@ module Google
|
|
|
300
300
|
execute_or_queue_command(command, &block)
|
|
301
301
|
end
|
|
302
302
|
|
|
303
|
-
#
|
|
303
|
+
# Fetches the list of long running operations.
|
|
304
304
|
# @param [String] name
|
|
305
305
|
# The name of the operation's parent resource.
|
|
306
306
|
# @param [String] filter
|
|
307
|
-
#
|
|
307
|
+
# Filters by `done`. That is, `done=true` or `done=false`.
|
|
308
308
|
# @param [Fixnum] page_size
|
|
309
|
-
# The list page size. The
|
|
309
|
+
# The list page size. The maximum allowed value is 256 and the default is 100.
|
|
310
310
|
# @param [String] page_token
|
|
311
311
|
# The standard list page token.
|
|
312
312
|
# @param [String] fields
|
|
@@ -389,8 +389,8 @@ module Google
|
|
|
389
389
|
execute_or_queue_command(command, &block)
|
|
390
390
|
end
|
|
391
391
|
|
|
392
|
-
# Cancels an operation. Use the get
|
|
393
|
-
# succeeded or
|
|
392
|
+
# Cancels an operation. Use the `inspect.operations.get` to check whether the
|
|
393
|
+
# cancellation succeeded or the operation completed despite cancellation.
|
|
394
394
|
# @param [String] name
|
|
395
395
|
# The name of the operation resource to be cancelled.
|
|
396
396
|
# @param [Google::Apis::DlpV2beta1::GoogleLongrunningCancelOperationRequest] google_longrunning_cancel_operation_request_object
|
|
@@ -485,13 +485,13 @@ module Google
|
|
|
485
485
|
execute_or_queue_command(command, &block)
|
|
486
486
|
end
|
|
487
487
|
|
|
488
|
-
#
|
|
488
|
+
# Fetches the list of long running operations.
|
|
489
489
|
# @param [String] name
|
|
490
490
|
# The name of the operation's parent resource.
|
|
491
491
|
# @param [String] filter
|
|
492
|
-
#
|
|
492
|
+
# Filters by `done`. That is, `done=true` or `done=false`.
|
|
493
493
|
# @param [Fixnum] page_size
|
|
494
|
-
# The list page size. The
|
|
494
|
+
# The list page size. The maximum allowed value is 256 and the default is 100.
|
|
495
495
|
# @param [String] page_token
|
|
496
496
|
# The standard list page token.
|
|
497
497
|
# @param [String] fields
|
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://cloud.google.com/genomics
|
|
26
26
|
module GenomicsV1
|
|
27
27
|
VERSION = 'V1'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20170916'
|
|
29
29
|
|
|
30
30
|
# View and manage your data in Google BigQuery
|
|
31
31
|
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
|
|
@@ -1262,7 +1262,7 @@ module Google
|
|
|
1262
1262
|
|
|
1263
1263
|
# If importing ReadGroupSets, an ImportReadGroupSetsResponse is returned. If
|
|
1264
1264
|
# importing Variants, an ImportVariantsResponse is returned. For pipelines and
|
|
1265
|
-
# exports, an
|
|
1265
|
+
# exports, an Empty response is returned.
|
|
1266
1266
|
# Corresponds to the JSON property `response`
|
|
1267
1267
|
# @return [Hash<String,Object>]
|
|
1268
1268
|
attr_accessor :response
|
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://cloud.google.com/genomics
|
|
26
26
|
module GenomicsV1alpha2
|
|
27
27
|
VERSION = 'V1alpha2'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20170916'
|
|
29
29
|
|
|
30
30
|
# View and manage your data across Google Cloud Platform services
|
|
31
31
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
@@ -478,7 +478,7 @@ module Google
|
|
|
478
478
|
|
|
479
479
|
# If importing ReadGroupSets, an ImportReadGroupSetsResponse is returned. If
|
|
480
480
|
# importing Variants, an ImportVariantsResponse is returned. For pipelines and
|
|
481
|
-
# exports, an
|
|
481
|
+
# exports, an Empty response is returned.
|
|
482
482
|
# Corresponds to the JSON property `response`
|
|
483
483
|
# @return [Hash<String,Object>]
|
|
484
484
|
attr_accessor :response
|
|
@@ -45,7 +45,7 @@ module Google
|
|
|
45
45
|
# View and modify but not delete your email
|
|
46
46
|
AUTH_GMAIL_MODIFY = 'https://www.googleapis.com/auth/gmail.modify'
|
|
47
47
|
|
|
48
|
-
# View your
|
|
48
|
+
# View your email messages and settings
|
|
49
49
|
AUTH_GMAIL_READONLY = 'https://www.googleapis.com/auth/gmail.readonly'
|
|
50
50
|
|
|
51
51
|
# Send email on your behalf
|
|
@@ -25,13 +25,19 @@ module Google
|
|
|
25
25
|
# @see https://cloud.google.com/compute/docs/oslogin/rest/
|
|
26
26
|
module OsloginV1alpha
|
|
27
27
|
VERSION = 'V1alpha'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20170920'
|
|
29
29
|
|
|
30
30
|
# View and manage your data across Google Cloud Platform services
|
|
31
31
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
32
32
|
|
|
33
33
|
# View your data across Google Cloud Platform services
|
|
34
34
|
AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
|
|
35
|
+
|
|
36
|
+
# View and manage your Google Compute Engine resources
|
|
37
|
+
AUTH_COMPUTE = 'https://www.googleapis.com/auth/compute'
|
|
38
|
+
|
|
39
|
+
# View your Google Compute Engine resources
|
|
40
|
+
AUTH_COMPUTE_READONLY = 'https://www.googleapis.com/auth/compute.readonly'
|
|
35
41
|
end
|
|
36
42
|
end
|
|
37
43
|
end
|
|
@@ -172,7 +172,8 @@ module Google
|
|
|
172
172
|
# @return [Fixnum]
|
|
173
173
|
attr_accessor :expiration_time_usec
|
|
174
174
|
|
|
175
|
-
#
|
|
175
|
+
# The SHA-256 fingerprint of the SSH public key.
|
|
176
|
+
# Output only.
|
|
176
177
|
# Corresponds to the JSON property `fingerprint`
|
|
177
178
|
# @return [String]
|
|
178
179
|
attr_accessor :fingerprint
|
|
@@ -82,12 +82,12 @@ module Google
|
|
|
82
82
|
# @private
|
|
83
83
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
84
84
|
property :gecos, as: 'gecos'
|
|
85
|
-
property :gid, as: 'gid'
|
|
85
|
+
property :gid, :numeric_string => true, as: 'gid'
|
|
86
86
|
property :home_directory, as: 'homeDirectory'
|
|
87
87
|
property :primary, as: 'primary'
|
|
88
88
|
property :shell, as: 'shell'
|
|
89
89
|
property :system_id, as: 'systemId'
|
|
90
|
-
property :uid, as: 'uid'
|
|
90
|
+
property :uid, :numeric_string => true, as: 'uid'
|
|
91
91
|
property :username, as: 'username'
|
|
92
92
|
end
|
|
93
93
|
end
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Copyright 2015 Google Inc.
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
require 'google/apis/oslogin_v1beta/service.rb'
|
|
16
|
+
require 'google/apis/oslogin_v1beta/classes.rb'
|
|
17
|
+
require 'google/apis/oslogin_v1beta/representations.rb'
|
|
18
|
+
|
|
19
|
+
module Google
|
|
20
|
+
module Apis
|
|
21
|
+
# Google Cloud OS Login API
|
|
22
|
+
#
|
|
23
|
+
# Manages OS login configuration for Directory API users.
|
|
24
|
+
#
|
|
25
|
+
# @see https://cloud.google.com/compute/docs/oslogin/rest/
|
|
26
|
+
module OsloginV1beta
|
|
27
|
+
VERSION = 'V1beta'
|
|
28
|
+
REVISION = '20170920'
|
|
29
|
+
|
|
30
|
+
# View and manage your data across Google Cloud Platform services
|
|
31
|
+
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
32
|
+
|
|
33
|
+
# View your data across Google Cloud Platform services
|
|
34
|
+
AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
|
|
35
|
+
|
|
36
|
+
# View and manage your Google Compute Engine resources
|
|
37
|
+
AUTH_COMPUTE = 'https://www.googleapis.com/auth/compute'
|
|
38
|
+
|
|
39
|
+
# View your Google Compute Engine resources
|
|
40
|
+
AUTH_COMPUTE_READONLY = 'https://www.googleapis.com/auth/compute.readonly'
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
# Copyright 2015 Google Inc.
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
require 'date'
|
|
16
|
+
require 'google/apis/core/base_service'
|
|
17
|
+
require 'google/apis/core/json_representation'
|
|
18
|
+
require 'google/apis/core/hashable'
|
|
19
|
+
require 'google/apis/errors'
|
|
20
|
+
|
|
21
|
+
module Google
|
|
22
|
+
module Apis
|
|
23
|
+
module OsloginV1beta
|
|
24
|
+
|
|
25
|
+
# A generic empty message that you can re-use to avoid defining duplicated
|
|
26
|
+
# empty messages in your APIs. A typical example is to use it as the request
|
|
27
|
+
# or the response type of an API method. For instance:
|
|
28
|
+
# service Foo `
|
|
29
|
+
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
|
30
|
+
# `
|
|
31
|
+
# The JSON representation for `Empty` is empty JSON object ````.
|
|
32
|
+
class Empty
|
|
33
|
+
include Google::Apis::Core::Hashable
|
|
34
|
+
|
|
35
|
+
def initialize(**args)
|
|
36
|
+
update!(**args)
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# Update properties of this object
|
|
40
|
+
def update!(**args)
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# A response message for importing an SSH public key.
|
|
45
|
+
class ImportSshPublicKeyResponse
|
|
46
|
+
include Google::Apis::Core::Hashable
|
|
47
|
+
|
|
48
|
+
# The user profile information used for logging in to a virtual machine on
|
|
49
|
+
# Google Compute Engine.
|
|
50
|
+
# Corresponds to the JSON property `loginProfile`
|
|
51
|
+
# @return [Google::Apis::OsloginV1beta::LoginProfile]
|
|
52
|
+
attr_accessor :login_profile
|
|
53
|
+
|
|
54
|
+
def initialize(**args)
|
|
55
|
+
update!(**args)
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# Update properties of this object
|
|
59
|
+
def update!(**args)
|
|
60
|
+
@login_profile = args[:login_profile] if args.key?(:login_profile)
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
# The user profile information used for logging in to a virtual machine on
|
|
65
|
+
# Google Compute Engine.
|
|
66
|
+
class LoginProfile
|
|
67
|
+
include Google::Apis::Core::Hashable
|
|
68
|
+
|
|
69
|
+
# The primary email address that uniquely identifies the user.
|
|
70
|
+
# Corresponds to the JSON property `name`
|
|
71
|
+
# @return [String]
|
|
72
|
+
attr_accessor :name
|
|
73
|
+
|
|
74
|
+
# The list of POSIX accounts associated with the user.
|
|
75
|
+
# Corresponds to the JSON property `posixAccounts`
|
|
76
|
+
# @return [Array<Google::Apis::OsloginV1beta::PosixAccount>]
|
|
77
|
+
attr_accessor :posix_accounts
|
|
78
|
+
|
|
79
|
+
# A map from SSH public key fingerprint to the associated key object.
|
|
80
|
+
# Corresponds to the JSON property `sshPublicKeys`
|
|
81
|
+
# @return [Hash<String,Google::Apis::OsloginV1beta::SshPublicKey>]
|
|
82
|
+
attr_accessor :ssh_public_keys
|
|
83
|
+
|
|
84
|
+
# Indicates if the user is suspended. A suspended user cannot log in but
|
|
85
|
+
# their profile information is retained.
|
|
86
|
+
# Corresponds to the JSON property `suspended`
|
|
87
|
+
# @return [Boolean]
|
|
88
|
+
attr_accessor :suspended
|
|
89
|
+
alias_method :suspended?, :suspended
|
|
90
|
+
|
|
91
|
+
def initialize(**args)
|
|
92
|
+
update!(**args)
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# Update properties of this object
|
|
96
|
+
def update!(**args)
|
|
97
|
+
@name = args[:name] if args.key?(:name)
|
|
98
|
+
@posix_accounts = args[:posix_accounts] if args.key?(:posix_accounts)
|
|
99
|
+
@ssh_public_keys = args[:ssh_public_keys] if args.key?(:ssh_public_keys)
|
|
100
|
+
@suspended = args[:suspended] if args.key?(:suspended)
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# The POSIX account information associated with a Directory API User.
|
|
105
|
+
class PosixAccount
|
|
106
|
+
include Google::Apis::Core::Hashable
|
|
107
|
+
|
|
108
|
+
# The GECOS (user information) entry for this account.
|
|
109
|
+
# Corresponds to the JSON property `gecos`
|
|
110
|
+
# @return [String]
|
|
111
|
+
attr_accessor :gecos
|
|
112
|
+
|
|
113
|
+
# The default group ID.
|
|
114
|
+
# Corresponds to the JSON property `gid`
|
|
115
|
+
# @return [Fixnum]
|
|
116
|
+
attr_accessor :gid
|
|
117
|
+
|
|
118
|
+
# The path to the home directory for this account.
|
|
119
|
+
# Corresponds to the JSON property `homeDirectory`
|
|
120
|
+
# @return [String]
|
|
121
|
+
attr_accessor :home_directory
|
|
122
|
+
|
|
123
|
+
# Only one POSIX account can be marked as primary.
|
|
124
|
+
# Corresponds to the JSON property `primary`
|
|
125
|
+
# @return [Boolean]
|
|
126
|
+
attr_accessor :primary
|
|
127
|
+
alias_method :primary?, :primary
|
|
128
|
+
|
|
129
|
+
# The path to the logic shell for this account.
|
|
130
|
+
# Corresponds to the JSON property `shell`
|
|
131
|
+
# @return [String]
|
|
132
|
+
attr_accessor :shell
|
|
133
|
+
|
|
134
|
+
# System identifier for which account the username or uid applies to.
|
|
135
|
+
# By default, the empty value is used.
|
|
136
|
+
# Corresponds to the JSON property `systemId`
|
|
137
|
+
# @return [String]
|
|
138
|
+
attr_accessor :system_id
|
|
139
|
+
|
|
140
|
+
# The user ID.
|
|
141
|
+
# Corresponds to the JSON property `uid`
|
|
142
|
+
# @return [Fixnum]
|
|
143
|
+
attr_accessor :uid
|
|
144
|
+
|
|
145
|
+
# The username of the POSIX account.
|
|
146
|
+
# Corresponds to the JSON property `username`
|
|
147
|
+
# @return [String]
|
|
148
|
+
attr_accessor :username
|
|
149
|
+
|
|
150
|
+
def initialize(**args)
|
|
151
|
+
update!(**args)
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
# Update properties of this object
|
|
155
|
+
def update!(**args)
|
|
156
|
+
@gecos = args[:gecos] if args.key?(:gecos)
|
|
157
|
+
@gid = args[:gid] if args.key?(:gid)
|
|
158
|
+
@home_directory = args[:home_directory] if args.key?(:home_directory)
|
|
159
|
+
@primary = args[:primary] if args.key?(:primary)
|
|
160
|
+
@shell = args[:shell] if args.key?(:shell)
|
|
161
|
+
@system_id = args[:system_id] if args.key?(:system_id)
|
|
162
|
+
@uid = args[:uid] if args.key?(:uid)
|
|
163
|
+
@username = args[:username] if args.key?(:username)
|
|
164
|
+
end
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
# The SSH public key information associated with a Directory API User.
|
|
168
|
+
class SshPublicKey
|
|
169
|
+
include Google::Apis::Core::Hashable
|
|
170
|
+
|
|
171
|
+
# An expiration time in microseconds since epoch.
|
|
172
|
+
# Corresponds to the JSON property `expirationTimeUsec`
|
|
173
|
+
# @return [Fixnum]
|
|
174
|
+
attr_accessor :expiration_time_usec
|
|
175
|
+
|
|
176
|
+
# The SHA-256 fingerprint of the SSH public key.
|
|
177
|
+
# Output only.
|
|
178
|
+
# Corresponds to the JSON property `fingerprint`
|
|
179
|
+
# @return [String]
|
|
180
|
+
attr_accessor :fingerprint
|
|
181
|
+
|
|
182
|
+
# Public key text in SSH format, defined by
|
|
183
|
+
# <a href="https://www.ietf.org/rfc/rfc4253.txt" target="_blank">RFC4253</a>
|
|
184
|
+
# section 6.6.
|
|
185
|
+
# Corresponds to the JSON property `key`
|
|
186
|
+
# @return [String]
|
|
187
|
+
attr_accessor :key
|
|
188
|
+
|
|
189
|
+
def initialize(**args)
|
|
190
|
+
update!(**args)
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
# Update properties of this object
|
|
194
|
+
def update!(**args)
|
|
195
|
+
@expiration_time_usec = args[:expiration_time_usec] if args.key?(:expiration_time_usec)
|
|
196
|
+
@fingerprint = args[:fingerprint] if args.key?(:fingerprint)
|
|
197
|
+
@key = args[:key] if args.key?(:key)
|
|
198
|
+
end
|
|
199
|
+
end
|
|
200
|
+
end
|
|
201
|
+
end
|
|
202
|
+
end
|