google-api-client 0.17.2 → 0.17.3
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 +8 -0
- data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
- data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +52 -29
- data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +1 -1
- data/generated/google/apis/dlp_v2beta1.rb +1 -1
- data/generated/google/apis/dlp_v2beta1/classes.rb +268 -0
- data/generated/google/apis/dlp_v2beta1/representations.rb +119 -0
- data/generated/google/apis/oslogin_v1.rb +37 -0
- data/generated/google/apis/oslogin_v1/classes.rb +207 -0
- data/generated/google/apis/oslogin_v1/representations.rb +106 -0
- data/generated/google/apis/oslogin_v1/service.rb +263 -0
- data/generated/google/apis/tpu_v1alpha1.rb +1 -1
- data/generated/google/apis/tpu_v1alpha1/classes.rb +32 -0
- data/generated/google/apis/tpu_v1alpha1/representations.rb +25 -0
- data/generated/google/apis/tpu_v1alpha1/service.rb +8 -5
- data/generated/google/apis/vault_v1.rb +9 -3
- data/generated/google/apis/vault_v1/classes.rb +4 -4
- data/generated/google/apis/vault_v1/service.rb +10 -4
- data/lib/google/apis/version.rb +1 -1
- metadata +6 -2
@@ -46,6 +46,12 @@ module Google
|
|
46
46
|
include Google::Apis::Core::JsonObjectSupport
|
47
47
|
end
|
48
48
|
|
49
|
+
class GooglePrivacyDlpV2beta1AuxiliaryTable
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
49
55
|
class GooglePrivacyDlpV2beta1BigQueryOptions
|
50
56
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
57
|
|
@@ -370,6 +376,30 @@ module Google
|
|
370
376
|
include Google::Apis::Core::JsonObjectSupport
|
371
377
|
end
|
372
378
|
|
379
|
+
class GooglePrivacyDlpV2beta1KMapEstimationConfig
|
380
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
381
|
+
|
382
|
+
include Google::Apis::Core::JsonObjectSupport
|
383
|
+
end
|
384
|
+
|
385
|
+
class GooglePrivacyDlpV2beta1KMapEstimationHistogramBucket
|
386
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
387
|
+
|
388
|
+
include Google::Apis::Core::JsonObjectSupport
|
389
|
+
end
|
390
|
+
|
391
|
+
class GooglePrivacyDlpV2beta1KMapEstimationQuasiIdValues
|
392
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
393
|
+
|
394
|
+
include Google::Apis::Core::JsonObjectSupport
|
395
|
+
end
|
396
|
+
|
397
|
+
class GooglePrivacyDlpV2beta1KMapEstimationResult
|
398
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
399
|
+
|
400
|
+
include Google::Apis::Core::JsonObjectSupport
|
401
|
+
end
|
402
|
+
|
373
403
|
class GooglePrivacyDlpV2beta1Key
|
374
404
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
375
405
|
|
@@ -496,6 +526,12 @@ module Google
|
|
496
526
|
include Google::Apis::Core::JsonObjectSupport
|
497
527
|
end
|
498
528
|
|
529
|
+
class GooglePrivacyDlpV2beta1QuasiIdField
|
530
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
531
|
+
|
532
|
+
include Google::Apis::Core::JsonObjectSupport
|
533
|
+
end
|
534
|
+
|
499
535
|
class GooglePrivacyDlpV2beta1Range
|
500
536
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
501
537
|
|
@@ -604,6 +640,12 @@ module Google
|
|
604
640
|
include Google::Apis::Core::JsonObjectSupport
|
605
641
|
end
|
606
642
|
|
643
|
+
class GooglePrivacyDlpV2beta1TaggedField
|
644
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
645
|
+
|
646
|
+
include Google::Apis::Core::JsonObjectSupport
|
647
|
+
end
|
648
|
+
|
607
649
|
class GooglePrivacyDlpV2beta1TimePartConfig
|
608
650
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
609
651
|
|
@@ -707,6 +749,18 @@ module Google
|
|
707
749
|
end
|
708
750
|
end
|
709
751
|
|
752
|
+
class GooglePrivacyDlpV2beta1AuxiliaryTable
|
753
|
+
# @private
|
754
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
755
|
+
collection :quasi_ids, as: 'quasiIds', class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1QuasiIdField, decorator: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1QuasiIdField::Representation
|
756
|
+
|
757
|
+
property :relative_frequency, as: 'relativeFrequency', class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1FieldId, decorator: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1FieldId::Representation
|
758
|
+
|
759
|
+
property :table, as: 'table', class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1BigQueryTable, decorator: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1BigQueryTable::Representation
|
760
|
+
|
761
|
+
end
|
762
|
+
end
|
763
|
+
|
710
764
|
class GooglePrivacyDlpV2beta1BigQueryOptions
|
711
765
|
# @private
|
712
766
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1236,6 +1290,45 @@ module Google
|
|
1236
1290
|
end
|
1237
1291
|
end
|
1238
1292
|
|
1293
|
+
class GooglePrivacyDlpV2beta1KMapEstimationConfig
|
1294
|
+
# @private
|
1295
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1296
|
+
collection :auxiliary_tables, as: 'auxiliaryTables', class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1AuxiliaryTable, decorator: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1AuxiliaryTable::Representation
|
1297
|
+
|
1298
|
+
collection :quasi_ids, as: 'quasiIds', class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1TaggedField, decorator: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1TaggedField::Representation
|
1299
|
+
|
1300
|
+
property :region_code, as: 'regionCode'
|
1301
|
+
end
|
1302
|
+
end
|
1303
|
+
|
1304
|
+
class GooglePrivacyDlpV2beta1KMapEstimationHistogramBucket
|
1305
|
+
# @private
|
1306
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1307
|
+
property :bucket_size, :numeric_string => true, as: 'bucketSize'
|
1308
|
+
collection :bucket_values, as: 'bucketValues', class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1KMapEstimationQuasiIdValues, decorator: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1KMapEstimationQuasiIdValues::Representation
|
1309
|
+
|
1310
|
+
property :max_anonymity, :numeric_string => true, as: 'maxAnonymity'
|
1311
|
+
property :min_anonymity, :numeric_string => true, as: 'minAnonymity'
|
1312
|
+
end
|
1313
|
+
end
|
1314
|
+
|
1315
|
+
class GooglePrivacyDlpV2beta1KMapEstimationQuasiIdValues
|
1316
|
+
# @private
|
1317
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1318
|
+
property :estimated_anonymity, :numeric_string => true, as: 'estimatedAnonymity'
|
1319
|
+
collection :quasi_ids_values, as: 'quasiIdsValues', class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1Value, decorator: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1Value::Representation
|
1320
|
+
|
1321
|
+
end
|
1322
|
+
end
|
1323
|
+
|
1324
|
+
class GooglePrivacyDlpV2beta1KMapEstimationResult
|
1325
|
+
# @private
|
1326
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1327
|
+
collection :k_map_estimation_histogram, as: 'kMapEstimationHistogram', class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1KMapEstimationHistogramBucket, decorator: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1KMapEstimationHistogramBucket::Representation
|
1328
|
+
|
1329
|
+
end
|
1330
|
+
end
|
1331
|
+
|
1239
1332
|
class GooglePrivacyDlpV2beta1Key
|
1240
1333
|
# @private
|
1241
1334
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1430,6 +1523,8 @@ module Google
|
|
1430
1523
|
|
1431
1524
|
property :k_anonymity_config, as: 'kAnonymityConfig', class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1KAnonymityConfig, decorator: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1KAnonymityConfig::Representation
|
1432
1525
|
|
1526
|
+
property :k_map_estimation_config, as: 'kMapEstimationConfig', class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1KMapEstimationConfig, decorator: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1KMapEstimationConfig::Representation
|
1527
|
+
|
1433
1528
|
property :l_diversity_config, as: 'lDiversityConfig', class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1LDiversityConfig, decorator: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1LDiversityConfig::Representation
|
1434
1529
|
|
1435
1530
|
property :numerical_stats_config, as: 'numericalStatsConfig', class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1NumericalStatsConfig, decorator: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1NumericalStatsConfig::Representation
|
@@ -1452,6 +1547,15 @@ module Google
|
|
1452
1547
|
end
|
1453
1548
|
end
|
1454
1549
|
|
1550
|
+
class GooglePrivacyDlpV2beta1QuasiIdField
|
1551
|
+
# @private
|
1552
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1553
|
+
property :custom_tag, as: 'customTag'
|
1554
|
+
property :field, as: 'field', class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1FieldId, decorator: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1FieldId::Representation
|
1555
|
+
|
1556
|
+
end
|
1557
|
+
end
|
1558
|
+
|
1455
1559
|
class GooglePrivacyDlpV2beta1Range
|
1456
1560
|
# @private
|
1457
1561
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1565,6 +1669,8 @@ module Google
|
|
1565
1669
|
|
1566
1670
|
property :k_anonymity_result, as: 'kAnonymityResult', class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1KAnonymityResult, decorator: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1KAnonymityResult::Representation
|
1567
1671
|
|
1672
|
+
property :k_map_estimation_result, as: 'kMapEstimationResult', class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1KMapEstimationResult, decorator: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1KMapEstimationResult::Representation
|
1673
|
+
|
1568
1674
|
property :l_diversity_result, as: 'lDiversityResult', class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1LDiversityResult, decorator: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1LDiversityResult::Representation
|
1569
1675
|
|
1570
1676
|
property :numerical_stats_result, as: 'numericalStatsResult', class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1NumericalStatsResult, decorator: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1NumericalStatsResult::Representation
|
@@ -1618,6 +1724,19 @@ module Google
|
|
1618
1724
|
end
|
1619
1725
|
end
|
1620
1726
|
|
1727
|
+
class GooglePrivacyDlpV2beta1TaggedField
|
1728
|
+
# @private
|
1729
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1730
|
+
property :custom_tag, as: 'customTag'
|
1731
|
+
property :field, as: 'field', class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1FieldId, decorator: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1FieldId::Representation
|
1732
|
+
|
1733
|
+
property :inferred, as: 'inferred', class: Google::Apis::DlpV2beta1::GoogleProtobufEmpty, decorator: Google::Apis::DlpV2beta1::GoogleProtobufEmpty::Representation
|
1734
|
+
|
1735
|
+
property :info_type, as: 'infoType', class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1InfoType, decorator: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1InfoType::Representation
|
1736
|
+
|
1737
|
+
end
|
1738
|
+
end
|
1739
|
+
|
1621
1740
|
class GooglePrivacyDlpV2beta1TimePartConfig
|
1622
1741
|
# @private
|
1623
1742
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -0,0 +1,37 @@
|
|
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_v1/service.rb'
|
16
|
+
require 'google/apis/oslogin_v1/classes.rb'
|
17
|
+
require 'google/apis/oslogin_v1/representations.rb'
|
18
|
+
|
19
|
+
module Google
|
20
|
+
module Apis
|
21
|
+
# Google Cloud OS Login API
|
22
|
+
#
|
23
|
+
# Manages OS login configuration for Google account users.
|
24
|
+
#
|
25
|
+
# @see https://cloud.google.com/compute/docs/oslogin/rest/
|
26
|
+
module OsloginV1
|
27
|
+
VERSION = 'V1'
|
28
|
+
REVISION = '20171120'
|
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 and manage your Google Compute Engine resources
|
34
|
+
AUTH_COMPUTE = 'https://www.googleapis.com/auth/compute'
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,207 @@
|
|
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 OsloginV1
|
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::OsloginV1::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::OsloginV1::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::OsloginV1::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 Google account.
|
105
|
+
class PosixAccount
|
106
|
+
include Google::Apis::Core::Hashable
|
107
|
+
|
108
|
+
# Output only. A POSIX account identifier.
|
109
|
+
# Corresponds to the JSON property `accountId`
|
110
|
+
# @return [String]
|
111
|
+
attr_accessor :account_id
|
112
|
+
|
113
|
+
# The GECOS (user information) entry for this account.
|
114
|
+
# Corresponds to the JSON property `gecos`
|
115
|
+
# @return [String]
|
116
|
+
attr_accessor :gecos
|
117
|
+
|
118
|
+
# The default group ID.
|
119
|
+
# Corresponds to the JSON property `gid`
|
120
|
+
# @return [Fixnum]
|
121
|
+
attr_accessor :gid
|
122
|
+
|
123
|
+
# The path to the home directory for this account.
|
124
|
+
# Corresponds to the JSON property `homeDirectory`
|
125
|
+
# @return [String]
|
126
|
+
attr_accessor :home_directory
|
127
|
+
|
128
|
+
# Only one POSIX account can be marked as primary.
|
129
|
+
# Corresponds to the JSON property `primary`
|
130
|
+
# @return [Boolean]
|
131
|
+
attr_accessor :primary
|
132
|
+
alias_method :primary?, :primary
|
133
|
+
|
134
|
+
# The path to the logic shell for this account.
|
135
|
+
# Corresponds to the JSON property `shell`
|
136
|
+
# @return [String]
|
137
|
+
attr_accessor :shell
|
138
|
+
|
139
|
+
# System identifier for which account the username or uid applies to.
|
140
|
+
# By default, the empty value is used.
|
141
|
+
# Corresponds to the JSON property `systemId`
|
142
|
+
# @return [String]
|
143
|
+
attr_accessor :system_id
|
144
|
+
|
145
|
+
# The user ID.
|
146
|
+
# Corresponds to the JSON property `uid`
|
147
|
+
# @return [Fixnum]
|
148
|
+
attr_accessor :uid
|
149
|
+
|
150
|
+
# The username of the POSIX account.
|
151
|
+
# Corresponds to the JSON property `username`
|
152
|
+
# @return [String]
|
153
|
+
attr_accessor :username
|
154
|
+
|
155
|
+
def initialize(**args)
|
156
|
+
update!(**args)
|
157
|
+
end
|
158
|
+
|
159
|
+
# Update properties of this object
|
160
|
+
def update!(**args)
|
161
|
+
@account_id = args[:account_id] if args.key?(:account_id)
|
162
|
+
@gecos = args[:gecos] if args.key?(:gecos)
|
163
|
+
@gid = args[:gid] if args.key?(:gid)
|
164
|
+
@home_directory = args[:home_directory] if args.key?(:home_directory)
|
165
|
+
@primary = args[:primary] if args.key?(:primary)
|
166
|
+
@shell = args[:shell] if args.key?(:shell)
|
167
|
+
@system_id = args[:system_id] if args.key?(:system_id)
|
168
|
+
@uid = args[:uid] if args.key?(:uid)
|
169
|
+
@username = args[:username] if args.key?(:username)
|
170
|
+
end
|
171
|
+
end
|
172
|
+
|
173
|
+
# The SSH public key information associated with a Google account.
|
174
|
+
class SshPublicKey
|
175
|
+
include Google::Apis::Core::Hashable
|
176
|
+
|
177
|
+
# An expiration time in microseconds since epoch.
|
178
|
+
# Corresponds to the JSON property `expirationTimeUsec`
|
179
|
+
# @return [Fixnum]
|
180
|
+
attr_accessor :expiration_time_usec
|
181
|
+
|
182
|
+
# Output only. The SHA-256 fingerprint of the SSH public key.
|
183
|
+
# Corresponds to the JSON property `fingerprint`
|
184
|
+
# @return [String]
|
185
|
+
attr_accessor :fingerprint
|
186
|
+
|
187
|
+
# Public key text in SSH format, defined by
|
188
|
+
# <a href="https://www.ietf.org/rfc/rfc4253.txt" target="_blank">RFC4253</a>
|
189
|
+
# section 6.6.
|
190
|
+
# Corresponds to the JSON property `key`
|
191
|
+
# @return [String]
|
192
|
+
attr_accessor :key
|
193
|
+
|
194
|
+
def initialize(**args)
|
195
|
+
update!(**args)
|
196
|
+
end
|
197
|
+
|
198
|
+
# Update properties of this object
|
199
|
+
def update!(**args)
|
200
|
+
@expiration_time_usec = args[:expiration_time_usec] if args.key?(:expiration_time_usec)
|
201
|
+
@fingerprint = args[:fingerprint] if args.key?(:fingerprint)
|
202
|
+
@key = args[:key] if args.key?(:key)
|
203
|
+
end
|
204
|
+
end
|
205
|
+
end
|
206
|
+
end
|
207
|
+
end
|
@@ -0,0 +1,106 @@
|
|
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 OsloginV1
|
24
|
+
|
25
|
+
class Empty
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
31
|
+
class ImportSshPublicKeyResponse
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
37
|
+
class LoginProfile
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
43
|
+
class PosixAccount
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
49
|
+
class SshPublicKey
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
55
|
+
class Empty
|
56
|
+
# @private
|
57
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
class ImportSshPublicKeyResponse
|
62
|
+
# @private
|
63
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
64
|
+
property :login_profile, as: 'loginProfile', class: Google::Apis::OsloginV1::LoginProfile, decorator: Google::Apis::OsloginV1::LoginProfile::Representation
|
65
|
+
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
class LoginProfile
|
70
|
+
# @private
|
71
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
72
|
+
property :name, as: 'name'
|
73
|
+
collection :posix_accounts, as: 'posixAccounts', class: Google::Apis::OsloginV1::PosixAccount, decorator: Google::Apis::OsloginV1::PosixAccount::Representation
|
74
|
+
|
75
|
+
hash :ssh_public_keys, as: 'sshPublicKeys', class: Google::Apis::OsloginV1::SshPublicKey, decorator: Google::Apis::OsloginV1::SshPublicKey::Representation
|
76
|
+
|
77
|
+
property :suspended, as: 'suspended'
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
class PosixAccount
|
82
|
+
# @private
|
83
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
84
|
+
property :account_id, as: 'accountId'
|
85
|
+
property :gecos, as: 'gecos'
|
86
|
+
property :gid, :numeric_string => true, as: 'gid'
|
87
|
+
property :home_directory, as: 'homeDirectory'
|
88
|
+
property :primary, as: 'primary'
|
89
|
+
property :shell, as: 'shell'
|
90
|
+
property :system_id, as: 'systemId'
|
91
|
+
property :uid, :numeric_string => true, as: 'uid'
|
92
|
+
property :username, as: 'username'
|
93
|
+
end
|
94
|
+
end
|
95
|
+
|
96
|
+
class SshPublicKey
|
97
|
+
# @private
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
99
|
+
property :expiration_time_usec, :numeric_string => true, as: 'expirationTimeUsec'
|
100
|
+
property :fingerprint, as: 'fingerprint'
|
101
|
+
property :key, as: 'key'
|
102
|
+
end
|
103
|
+
end
|
104
|
+
end
|
105
|
+
end
|
106
|
+
end
|