google-api-client 0.13.0 → 0.13.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +6 -2
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +46 -46
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +15 -15
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +4 -4
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +404 -435
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +107 -121
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +657 -713
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +45 -5
- data/generated/google/apis/admin_directory_v1/representations.rb +16 -0
- data/generated/google/apis/admin_directory_v1/service.rb +4 -1
- data/generated/google/apis/admin_reports_v1.rb +1 -1
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +399 -399
- data/generated/google/apis/analyticsreporting_v4/representations.rb +101 -101
- data/generated/google/apis/analyticsreporting_v4/service.rb +10 -10
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/appengine_v1.rb +4 -4
- data/generated/google/apis/appengine_v1/classes.rb +747 -747
- data/generated/google/apis/appengine_v1/representations.rb +158 -158
- data/generated/google/apis/appengine_v1/service.rb +214 -214
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +6 -0
- data/generated/google/apis/bigquery_v2/representations.rb +2 -0
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/classroom_v1.rb +7 -7
- data/generated/google/apis/classroom_v1/classes.rb +517 -515
- data/generated/google/apis/classroom_v1/representations.rb +147 -147
- data/generated/google/apis/classroom_v1/service.rb +1144 -1143
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +435 -386
- data/generated/google/apis/cloudbuild_v1/representations.rb +133 -115
- data/generated/google/apis/cloudbuild_v1/service.rb +148 -148
- data/generated/google/apis/clouddebugger_v2.rb +1 -1
- data/generated/google/apis/clouddebugger_v2/classes.rb +708 -708
- data/generated/google/apis/clouddebugger_v2/representations.rb +146 -146
- data/generated/google/apis/clouddebugger_v2/service.rb +124 -124
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +142 -142
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +29 -29
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +87 -87
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/service.rb +6 -6
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +692 -675
- data/generated/google/apis/cloudkms_v1/representations.rb +144 -144
- data/generated/google/apis/cloudkms_v1/service.rb +276 -276
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1168 -1168
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +190 -190
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +311 -288
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +406 -406
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +95 -95
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +242 -234
- data/generated/google/apis/cloudtrace_v1.rb +4 -4
- data/generated/google/apis/cloudtrace_v1/classes.rb +68 -68
- data/generated/google/apis/cloudtrace_v1/representations.rb +22 -22
- data/generated/google/apis/cloudtrace_v1/service.rb +48 -48
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +82 -6
- data/generated/google/apis/compute_beta/representations.rb +4 -0
- data/generated/google/apis/compute_beta/service.rb +1177 -834
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +371 -1
- data/generated/google/apis/compute_v1/representations.rb +139 -0
- data/generated/google/apis/compute_v1/service.rb +257 -9
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +1122 -826
- data/generated/google/apis/container_v1/representations.rb +279 -135
- data/generated/google/apis/container_v1/service.rb +440 -98
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/service.rb +3 -1
- data/generated/google/apis/customsearch_v1.rb +1 -1
- data/generated/google/apis/dataflow_v1b3.rb +4 -4
- data/generated/google/apis/dataflow_v1b3/classes.rb +3423 -3423
- data/generated/google/apis/dataflow_v1b3/representations.rb +813 -813
- data/generated/google/apis/dataflow_v1b3/service.rb +410 -410
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +450 -431
- data/generated/google/apis/dataproc_v1/representations.rb +92 -92
- data/generated/google/apis/dataproc_v1/service.rb +200 -200
- data/generated/google/apis/datastore_v1.rb +4 -4
- data/generated/google/apis/datastore_v1/classes.rb +397 -397
- data/generated/google/apis/datastore_v1/representations.rb +100 -100
- data/generated/google/apis/datastore_v1/service.rb +62 -62
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +79 -3
- data/generated/google/apis/deploymentmanager_v2/representations.rb +33 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +15 -20
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +2 -2
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/service.rb +1 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/service.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +87 -87
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +27 -27
- data/generated/google/apis/firebaserules_v1/classes.rb +271 -271
- data/generated/google/apis/firebaserules_v1/representations.rb +82 -82
- data/generated/google/apis/firebaserules_v1/service.rb +151 -151
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +9 -9
- data/generated/google/apis/genomics_v1/classes.rb +2242 -2242
- data/generated/google/apis/genomics_v1/representations.rb +306 -306
- data/generated/google/apis/genomics_v1/service.rb +1172 -1172
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +243 -243
- data/generated/google/apis/iam_v1/representations.rb +79 -79
- data/generated/google/apis/iam_v1/service.rb +137 -137
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +18 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +3 -0
- data/generated/google/apis/kgsearch_v1/classes.rb +9 -9
- data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
- data/generated/google/apis/kgsearch_v1/service.rb +4 -4
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1/classes.rb +451 -451
- data/generated/google/apis/language_v1/representations.rb +103 -103
- data/generated/google/apis/language_v1/service.rb +49 -49
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +459 -459
- data/generated/google/apis/language_v1beta1/representations.rb +110 -110
- data/generated/google/apis/language_v1beta1/service.rb +43 -43
- data/generated/google/apis/logging_v2.rb +8 -8
- data/generated/google/apis/logging_v2/classes.rb +915 -915
- data/generated/google/apis/logging_v2/representations.rb +142 -142
- data/generated/google/apis/logging_v2/service.rb +415 -415
- data/generated/google/apis/logging_v2beta1.rb +8 -8
- data/generated/google/apis/logging_v2beta1/classes.rb +905 -905
- data/generated/google/apis/logging_v2beta1/representations.rb +150 -150
- data/generated/google/apis/logging_v2beta1/service.rb +221 -221
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/manufacturers_v1/classes.rb +334 -315
- data/generated/google/apis/manufacturers_v1/representations.rb +99 -87
- data/generated/google/apis/manufacturers_v1/service.rb +101 -4
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +709 -673
- data/generated/google/apis/ml_v1/representations.rb +154 -151
- data/generated/google/apis/ml_v1/service.rb +341 -354
- data/generated/google/apis/monitoring_v3.rb +6 -6
- data/generated/google/apis/monitoring_v3/classes.rb +869 -869
- data/generated/google/apis/monitoring_v3/representations.rb +171 -171
- data/generated/google/apis/monitoring_v3/service.rb +340 -340
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +1569 -1569
- data/generated/google/apis/partners_v2/representations.rb +256 -256
- data/generated/google/apis/partners_v2/service.rb +530 -530
- data/generated/google/apis/people_v1.rb +7 -7
- data/generated/google/apis/people_v1/classes.rb +1287 -946
- data/generated/google/apis/people_v1/representations.rb +355 -203
- data/generated/google/apis/people_v1/service.rb +409 -32
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +445 -445
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +104 -104
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +241 -241
- data/generated/google/apis/pubsub_v1.rb +4 -4
- data/generated/google/apis/pubsub_v1/classes.rb +286 -287
- data/generated/google/apis/pubsub_v1/representations.rb +80 -80
- data/generated/google/apis/pubsub_v1/service.rb +178 -178
- data/generated/google/apis/runtimeconfig_v1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1/classes.rb +52 -52
- data/generated/google/apis/runtimeconfig_v1/representations.rb +15 -15
- data/generated/google/apis/runtimeconfig_v1/service.rb +21 -21
- data/generated/google/apis/script_v1.rb +4 -4
- data/generated/google/apis/script_v1/classes.rb +172 -172
- data/generated/google/apis/script_v1/representations.rb +41 -41
- data/generated/google/apis/script_v1/service.rb +6 -6
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +6 -6
- data/generated/google/apis/searchconsole_v1/representations.rb +1 -1
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +1110 -1110
- data/generated/google/apis/servicecontrol_v1/representations.rb +215 -215
- data/generated/google/apis/servicecontrol_v1/service.rb +65 -65
- data/generated/google/apis/servicemanagement_v1.rb +6 -6
- data/generated/google/apis/servicemanagement_v1/classes.rb +3594 -3562
- data/generated/google/apis/servicemanagement_v1/representations.rb +564 -562
- data/generated/google/apis/servicemanagement_v1/service.rb +253 -253
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +2678 -2670
- data/generated/google/apis/serviceuser_v1/representations.rb +269 -268
- data/generated/google/apis/serviceuser_v1/service.rb +59 -59
- data/generated/google/apis/sheets_v4.rb +5 -5
- data/generated/google/apis/sheets_v4/classes.rb +5155 -5104
- data/generated/google/apis/sheets_v4/representations.rb +957 -940
- data/generated/google/apis/sheets_v4/service.rb +175 -175
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +2932 -2905
- data/generated/google/apis/slides_v1/representations.rb +709 -694
- data/generated/google/apis/slides_v1/service.rb +50 -50
- data/generated/google/apis/sourcerepo_v1/classes.rb +139 -139
- data/generated/google/apis/sourcerepo_v1/representations.rb +40 -40
- data/generated/google/apis/sourcerepo_v1/service.rb +61 -61
- data/generated/google/apis/spanner_v1.rb +7 -1
- data/generated/google/apis/spanner_v1/classes.rb +2362 -2299
- data/generated/google/apis/spanner_v1/representations.rb +342 -323
- data/generated/google/apis/spanner_v1/service.rb +502 -492
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +244 -244
- data/generated/google/apis/speech_v1beta1/representations.rb +52 -52
- data/generated/google/apis/speech_v1beta1/service.rb +91 -91
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +784 -781
- data/generated/google/apis/storagetransfer_v1/representations.rb +88 -88
- data/generated/google/apis/storagetransfer_v1/service.rb +154 -154
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +90 -1
- data/generated/google/apis/toolresults_v1beta3/representations.rb +18 -0
- data/generated/google/apis/translate_v2/classes.rb +107 -107
- data/generated/google/apis/translate_v2/representations.rb +49 -49
- data/generated/google/apis/translate_v2/service.rb +81 -81
- data/generated/google/apis/vision_v1.rb +4 -1
- data/generated/google/apis/vision_v1/classes.rb +527 -527
- data/generated/google/apis/vision_v1/representations.rb +115 -115
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +124 -124
- data/generated/google/apis/youtubereporting_v1/representations.rb +30 -30
- data/generated/google/apis/youtubereporting_v1/service.rb +113 -113
- data/lib/google/apis/version.rb +1 -1
- data/samples/cli/lib/samples/analytics.rb +2 -2
- metadata +2 -2
@@ -27,7 +27,7 @@ module Google
|
|
27
27
|
# @see https://cloud.google.com/iam/
|
28
28
|
module IamV1
|
29
29
|
VERSION = 'V1'
|
30
|
-
REVISION = '
|
30
|
+
REVISION = '20170622'
|
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'
|
@@ -22,6 +22,200 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module IamV1
|
24
24
|
|
25
|
+
# The service account create request.
|
26
|
+
class CreateServiceAccountRequest
|
27
|
+
include Google::Apis::Core::Hashable
|
28
|
+
|
29
|
+
# Required. The account id that is used to generate the service account
|
30
|
+
# email address and a stable unique id. It is unique within a project,
|
31
|
+
# must be 6-30 characters long, and match the regular expression
|
32
|
+
# `[a-z]([-a-z0-9]*[a-z0-9])` to comply with RFC1035.
|
33
|
+
# Corresponds to the JSON property `accountId`
|
34
|
+
# @return [String]
|
35
|
+
attr_accessor :account_id
|
36
|
+
|
37
|
+
# A service account in the Identity and Access Management API.
|
38
|
+
# To create a service account, specify the `project_id` and the `account_id`
|
39
|
+
# for the account. The `account_id` is unique within the project, and is used
|
40
|
+
# to generate the service account email address and a stable
|
41
|
+
# `unique_id`.
|
42
|
+
# If the account already exists, the account's resource name is returned
|
43
|
+
# in util::Status's ResourceInfo.resource_name in the format of
|
44
|
+
# projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL`. The caller can
|
45
|
+
# use the name in other methods to access the account.
|
46
|
+
# All other methods can identify the service account using the format
|
47
|
+
# `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
|
48
|
+
# Using `-` as a wildcard for the project will infer the project from
|
49
|
+
# the account. The `account` value can be the `email` address or the
|
50
|
+
# `unique_id` of the service account.
|
51
|
+
# Corresponds to the JSON property `serviceAccount`
|
52
|
+
# @return [Google::Apis::IamV1::ServiceAccount]
|
53
|
+
attr_accessor :service_account
|
54
|
+
|
55
|
+
def initialize(**args)
|
56
|
+
update!(**args)
|
57
|
+
end
|
58
|
+
|
59
|
+
# Update properties of this object
|
60
|
+
def update!(**args)
|
61
|
+
@account_id = args[:account_id] if args.key?(:account_id)
|
62
|
+
@service_account = args[:service_account] if args.key?(:service_account)
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
# The service account list response.
|
67
|
+
class ListServiceAccountsResponse
|
68
|
+
include Google::Apis::Core::Hashable
|
69
|
+
|
70
|
+
# To retrieve the next page of results, set
|
71
|
+
# ListServiceAccountsRequest.page_token
|
72
|
+
# to this value.
|
73
|
+
# Corresponds to the JSON property `nextPageToken`
|
74
|
+
# @return [String]
|
75
|
+
attr_accessor :next_page_token
|
76
|
+
|
77
|
+
# The list of matching service accounts.
|
78
|
+
# Corresponds to the JSON property `accounts`
|
79
|
+
# @return [Array<Google::Apis::IamV1::ServiceAccount>]
|
80
|
+
attr_accessor :accounts
|
81
|
+
|
82
|
+
def initialize(**args)
|
83
|
+
update!(**args)
|
84
|
+
end
|
85
|
+
|
86
|
+
# Update properties of this object
|
87
|
+
def update!(**args)
|
88
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
89
|
+
@accounts = args[:accounts] if args.key?(:accounts)
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
93
|
+
# The grantable role query response.
|
94
|
+
class QueryGrantableRolesResponse
|
95
|
+
include Google::Apis::Core::Hashable
|
96
|
+
|
97
|
+
# To retrieve the next page of results, set
|
98
|
+
# `QueryGrantableRolesRequest.page_token` to this value.
|
99
|
+
# Corresponds to the JSON property `nextPageToken`
|
100
|
+
# @return [String]
|
101
|
+
attr_accessor :next_page_token
|
102
|
+
|
103
|
+
# The list of matching roles.
|
104
|
+
# Corresponds to the JSON property `roles`
|
105
|
+
# @return [Array<Google::Apis::IamV1::Role>]
|
106
|
+
attr_accessor :roles
|
107
|
+
|
108
|
+
def initialize(**args)
|
109
|
+
update!(**args)
|
110
|
+
end
|
111
|
+
|
112
|
+
# Update properties of this object
|
113
|
+
def update!(**args)
|
114
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
115
|
+
@roles = args[:roles] if args.key?(:roles)
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
119
|
+
# The service account sign blob request.
|
120
|
+
class SignBlobRequest
|
121
|
+
include Google::Apis::Core::Hashable
|
122
|
+
|
123
|
+
# The bytes to sign.
|
124
|
+
# Corresponds to the JSON property `bytesToSign`
|
125
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
126
|
+
# @return [String]
|
127
|
+
attr_accessor :bytes_to_sign
|
128
|
+
|
129
|
+
def initialize(**args)
|
130
|
+
update!(**args)
|
131
|
+
end
|
132
|
+
|
133
|
+
# Update properties of this object
|
134
|
+
def update!(**args)
|
135
|
+
@bytes_to_sign = args[:bytes_to_sign] if args.key?(:bytes_to_sign)
|
136
|
+
end
|
137
|
+
end
|
138
|
+
|
139
|
+
# A role in the Identity and Access Management API.
|
140
|
+
class Role
|
141
|
+
include Google::Apis::Core::Hashable
|
142
|
+
|
143
|
+
# Optional. A human-readable title for the role. Typically this
|
144
|
+
# is limited to 100 UTF-8 bytes.
|
145
|
+
# Corresponds to the JSON property `title`
|
146
|
+
# @return [String]
|
147
|
+
attr_accessor :title
|
148
|
+
|
149
|
+
# The name of the role.
|
150
|
+
# When Role is used in CreateRole, the role name must not be set.
|
151
|
+
# When Role is used in output and other input such as UpdateRole, the role
|
152
|
+
# name is the complete path, e.g., roles/logging.viewer for curated roles
|
153
|
+
# and organizations/`ORGANIZATION_ID`/roles/logging.viewer for custom roles.
|
154
|
+
# Corresponds to the JSON property `name`
|
155
|
+
# @return [String]
|
156
|
+
attr_accessor :name
|
157
|
+
|
158
|
+
# Optional. A human-readable description for the role.
|
159
|
+
# Corresponds to the JSON property `description`
|
160
|
+
# @return [String]
|
161
|
+
attr_accessor :description
|
162
|
+
|
163
|
+
def initialize(**args)
|
164
|
+
update!(**args)
|
165
|
+
end
|
166
|
+
|
167
|
+
# Update properties of this object
|
168
|
+
def update!(**args)
|
169
|
+
@title = args[:title] if args.key?(:title)
|
170
|
+
@name = args[:name] if args.key?(:name)
|
171
|
+
@description = args[:description] if args.key?(:description)
|
172
|
+
end
|
173
|
+
end
|
174
|
+
|
175
|
+
# Request message for `SetIamPolicy` method.
|
176
|
+
class SetIamPolicyRequest
|
177
|
+
include Google::Apis::Core::Hashable
|
178
|
+
|
179
|
+
# Defines an Identity and Access Management (IAM) policy. It is used to
|
180
|
+
# specify access control policies for Cloud Platform resources.
|
181
|
+
# A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
|
182
|
+
# `members` to a `role`, where the members can be user accounts, Google groups,
|
183
|
+
# Google domains, and service accounts. A `role` is a named list of permissions
|
184
|
+
# defined by IAM.
|
185
|
+
# **Example**
|
186
|
+
# `
|
187
|
+
# "bindings": [
|
188
|
+
# `
|
189
|
+
# "role": "roles/owner",
|
190
|
+
# "members": [
|
191
|
+
# "user:mike@example.com",
|
192
|
+
# "group:admins@example.com",
|
193
|
+
# "domain:google.com",
|
194
|
+
# "serviceAccount:my-other-app@appspot.gserviceaccount.com",
|
195
|
+
# ]
|
196
|
+
# `,
|
197
|
+
# `
|
198
|
+
# "role": "roles/viewer",
|
199
|
+
# "members": ["user:sean@example.com"]
|
200
|
+
# `
|
201
|
+
# ]
|
202
|
+
# `
|
203
|
+
# For a description of IAM and its features, see the
|
204
|
+
# [IAM developer's guide](https://cloud.google.com/iam).
|
205
|
+
# Corresponds to the JSON property `policy`
|
206
|
+
# @return [Google::Apis::IamV1::Policy]
|
207
|
+
attr_accessor :policy
|
208
|
+
|
209
|
+
def initialize(**args)
|
210
|
+
update!(**args)
|
211
|
+
end
|
212
|
+
|
213
|
+
# Update properties of this object
|
214
|
+
def update!(**args)
|
215
|
+
@policy = args[:policy] if args.key?(:policy)
|
216
|
+
end
|
217
|
+
end
|
218
|
+
|
25
219
|
# Associates `members` with a `role`.
|
26
220
|
class Binding
|
27
221
|
include Google::Apis::Core::Hashable
|
@@ -79,6 +273,11 @@ module Google
|
|
79
273
|
class ServiceAccount
|
80
274
|
include Google::Apis::Core::Hashable
|
81
275
|
|
276
|
+
# @OutputOnly The unique and stable id of the service account.
|
277
|
+
# Corresponds to the JSON property `uniqueId`
|
278
|
+
# @return [String]
|
279
|
+
attr_accessor :unique_id
|
280
|
+
|
82
281
|
# @OutputOnly. The OAuth2 client id for the service account.
|
83
282
|
# This is used in conjunction with the OAuth2 clientconfig API to make
|
84
283
|
# three legged OAuth2 (3LO) flows to access the data of Google users.
|
@@ -86,11 +285,6 @@ module Google
|
|
86
285
|
# @return [String]
|
87
286
|
attr_accessor :oauth2_client_id
|
88
287
|
|
89
|
-
# @OutputOnly The unique and stable id of the service account.
|
90
|
-
# Corresponds to the JSON property `uniqueId`
|
91
|
-
# @return [String]
|
92
|
-
attr_accessor :unique_id
|
93
|
-
|
94
288
|
# Optional. A user-specified description of the service account. Must be
|
95
289
|
# fewer than 100 UTF-8 bytes.
|
96
290
|
# Corresponds to the JSON property `displayName`
|
@@ -103,6 +297,11 @@ module Google
|
|
103
297
|
# @return [String]
|
104
298
|
attr_accessor :etag
|
105
299
|
|
300
|
+
# @OutputOnly The email address of the service account.
|
301
|
+
# Corresponds to the JSON property `email`
|
302
|
+
# @return [String]
|
303
|
+
attr_accessor :email
|
304
|
+
|
106
305
|
# The resource name of the service account in the following format:
|
107
306
|
# `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
|
108
307
|
# Requests using `-` as a wildcard for the project will infer the project
|
@@ -114,11 +313,6 @@ module Google
|
|
114
313
|
# @return [String]
|
115
314
|
attr_accessor :name
|
116
315
|
|
117
|
-
# @OutputOnly The email address of the service account.
|
118
|
-
# Corresponds to the JSON property `email`
|
119
|
-
# @return [String]
|
120
|
-
attr_accessor :email
|
121
|
-
|
122
316
|
# @OutputOnly The id of the project that owns the service account.
|
123
317
|
# Corresponds to the JSON property `projectId`
|
124
318
|
# @return [String]
|
@@ -130,12 +324,12 @@ module Google
|
|
130
324
|
|
131
325
|
# Update properties of this object
|
132
326
|
def update!(**args)
|
133
|
-
@oauth2_client_id = args[:oauth2_client_id] if args.key?(:oauth2_client_id)
|
134
327
|
@unique_id = args[:unique_id] if args.key?(:unique_id)
|
328
|
+
@oauth2_client_id = args[:oauth2_client_id] if args.key?(:oauth2_client_id)
|
135
329
|
@display_name = args[:display_name] if args.key?(:display_name)
|
136
330
|
@etag = args[:etag] if args.key?(:etag)
|
137
|
-
@name = args[:name] if args.key?(:name)
|
138
331
|
@email = args[:email] if args.key?(:email)
|
332
|
+
@name = args[:name] if args.key?(:name)
|
139
333
|
@project_id = args[:project_id] if args.key?(:project_id)
|
140
334
|
end
|
141
335
|
end
|
@@ -194,15 +388,14 @@ module Google
|
|
194
388
|
end
|
195
389
|
end
|
196
390
|
|
197
|
-
#
|
198
|
-
class
|
391
|
+
# The service account keys list response.
|
392
|
+
class ListServiceAccountKeysResponse
|
199
393
|
include Google::Apis::Core::Hashable
|
200
394
|
|
201
|
-
#
|
202
|
-
#
|
203
|
-
#
|
204
|
-
|
205
|
-
attr_accessor :permissions
|
395
|
+
# The public keys for the service account.
|
396
|
+
# Corresponds to the JSON property `keys`
|
397
|
+
# @return [Array<Google::Apis::IamV1::ServiceAccountKey>]
|
398
|
+
attr_accessor :keys
|
206
399
|
|
207
400
|
def initialize(**args)
|
208
401
|
update!(**args)
|
@@ -210,18 +403,19 @@ module Google
|
|
210
403
|
|
211
404
|
# Update properties of this object
|
212
405
|
def update!(**args)
|
213
|
-
@
|
406
|
+
@keys = args[:keys] if args.key?(:keys)
|
214
407
|
end
|
215
408
|
end
|
216
409
|
|
217
|
-
#
|
218
|
-
class
|
410
|
+
# Response message for `TestIamPermissions` method.
|
411
|
+
class TestIamPermissionsResponse
|
219
412
|
include Google::Apis::Core::Hashable
|
220
413
|
|
221
|
-
#
|
222
|
-
#
|
223
|
-
#
|
224
|
-
|
414
|
+
# A subset of `TestPermissionsRequest.permissions` that the caller is
|
415
|
+
# allowed.
|
416
|
+
# Corresponds to the JSON property `permissions`
|
417
|
+
# @return [Array<String>]
|
418
|
+
attr_accessor :permissions
|
225
419
|
|
226
420
|
def initialize(**args)
|
227
421
|
update!(**args)
|
@@ -229,7 +423,7 @@ module Google
|
|
229
423
|
|
230
424
|
# Update properties of this object
|
231
425
|
def update!(**args)
|
232
|
-
@
|
426
|
+
@permissions = args[:permissions] if args.key?(:permissions)
|
233
427
|
end
|
234
428
|
end
|
235
429
|
|
@@ -285,7 +479,8 @@ module Google
|
|
285
479
|
attr_accessor :private_key_type
|
286
480
|
|
287
481
|
# The private key data. Only provided in `CreateServiceAccountKey`
|
288
|
-
# responses.
|
482
|
+
# responses. Make sure to keep the private key data secure because it
|
483
|
+
# allows for the assertion of the service account identity.
|
289
484
|
# Corresponds to the JSON property `privateKeyData`
|
290
485
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
291
486
|
# @return [String]
|
@@ -311,12 +506,6 @@ module Google
|
|
311
506
|
class CreateServiceAccountKeyRequest
|
312
507
|
include Google::Apis::Core::Hashable
|
313
508
|
|
314
|
-
# The output format of the private key. `GOOGLE_CREDENTIALS_FILE` is the
|
315
|
-
# default output format.
|
316
|
-
# Corresponds to the JSON property `privateKeyType`
|
317
|
-
# @return [String]
|
318
|
-
attr_accessor :private_key_type
|
319
|
-
|
320
509
|
#
|
321
510
|
# Corresponds to the JSON property `includePublicKeyData`
|
322
511
|
# @return [Boolean]
|
@@ -330,15 +519,21 @@ module Google
|
|
330
519
|
# @return [String]
|
331
520
|
attr_accessor :key_algorithm
|
332
521
|
|
522
|
+
# The output format of the private key. `GOOGLE_CREDENTIALS_FILE` is the
|
523
|
+
# default output format.
|
524
|
+
# Corresponds to the JSON property `privateKeyType`
|
525
|
+
# @return [String]
|
526
|
+
attr_accessor :private_key_type
|
527
|
+
|
333
528
|
def initialize(**args)
|
334
529
|
update!(**args)
|
335
530
|
end
|
336
531
|
|
337
532
|
# Update properties of this object
|
338
533
|
def update!(**args)
|
339
|
-
@private_key_type = args[:private_key_type] if args.key?(:private_key_type)
|
340
534
|
@include_public_key_data = args[:include_public_key_data] if args.key?(:include_public_key_data)
|
341
535
|
@key_algorithm = args[:key_algorithm] if args.key?(:key_algorithm)
|
536
|
+
@private_key_type = args[:private_key_type] if args.key?(:private_key_type)
|
342
537
|
end
|
343
538
|
end
|
344
539
|
|
@@ -394,24 +589,24 @@ module Google
|
|
394
589
|
class SignJwtResponse
|
395
590
|
include Google::Apis::Core::Hashable
|
396
591
|
|
397
|
-
# The id of the key used to sign the JWT.
|
398
|
-
# Corresponds to the JSON property `keyId`
|
399
|
-
# @return [String]
|
400
|
-
attr_accessor :key_id
|
401
|
-
|
402
592
|
# The signed JWT.
|
403
593
|
# Corresponds to the JSON property `signedJwt`
|
404
594
|
# @return [String]
|
405
595
|
attr_accessor :signed_jwt
|
406
596
|
|
597
|
+
# The id of the key used to sign the JWT.
|
598
|
+
# Corresponds to the JSON property `keyId`
|
599
|
+
# @return [String]
|
600
|
+
attr_accessor :key_id
|
601
|
+
|
407
602
|
def initialize(**args)
|
408
603
|
update!(**args)
|
409
604
|
end
|
410
605
|
|
411
606
|
# Update properties of this object
|
412
607
|
def update!(**args)
|
413
|
-
@key_id = args[:key_id] if args.key?(:key_id)
|
414
608
|
@signed_jwt = args[:signed_jwt] if args.key?(:signed_jwt)
|
609
|
+
@key_id = args[:key_id] if args.key?(:key_id)
|
415
610
|
end
|
416
611
|
end
|
417
612
|
|
@@ -464,7 +659,6 @@ module Google
|
|
464
659
|
attr_accessor :version
|
465
660
|
|
466
661
|
# Associates a list of `members` to a `role`.
|
467
|
-
# Multiple `bindings` must not be specified for the same `role`.
|
468
662
|
# `bindings` with no members will result in an error.
|
469
663
|
# Corresponds to the JSON property `bindings`
|
470
664
|
# @return [Array<Google::Apis::IamV1::Binding>]
|
@@ -527,12 +721,6 @@ module Google
|
|
527
721
|
class BindingDelta
|
528
722
|
include Google::Apis::Core::Hashable
|
529
723
|
|
530
|
-
# The action that was performed on a Binding.
|
531
|
-
# Required
|
532
|
-
# Corresponds to the JSON property `action`
|
533
|
-
# @return [String]
|
534
|
-
attr_accessor :action
|
535
|
-
|
536
724
|
# A single identity requesting access for a Cloud Platform resource.
|
537
725
|
# Follows the same format of Binding.members.
|
538
726
|
# Required
|
@@ -547,15 +735,21 @@ module Google
|
|
547
735
|
# @return [String]
|
548
736
|
attr_accessor :role
|
549
737
|
|
738
|
+
# The action that was performed on a Binding.
|
739
|
+
# Required
|
740
|
+
# Corresponds to the JSON property `action`
|
741
|
+
# @return [String]
|
742
|
+
attr_accessor :action
|
743
|
+
|
550
744
|
def initialize(**args)
|
551
745
|
update!(**args)
|
552
746
|
end
|
553
747
|
|
554
748
|
# Update properties of this object
|
555
749
|
def update!(**args)
|
556
|
-
@action = args[:action] if args.key?(:action)
|
557
750
|
@member = args[:member] if args.key?(:member)
|
558
751
|
@role = args[:role] if args.key?(:role)
|
752
|
+
@action = args[:action] if args.key?(:action)
|
559
753
|
end
|
560
754
|
end
|
561
755
|
|
@@ -577,200 +771,6 @@ module Google
|
|
577
771
|
@binding_deltas = args[:binding_deltas] if args.key?(:binding_deltas)
|
578
772
|
end
|
579
773
|
end
|
580
|
-
|
581
|
-
# The service account list response.
|
582
|
-
class ListServiceAccountsResponse
|
583
|
-
include Google::Apis::Core::Hashable
|
584
|
-
|
585
|
-
# To retrieve the next page of results, set
|
586
|
-
# ListServiceAccountsRequest.page_token
|
587
|
-
# to this value.
|
588
|
-
# Corresponds to the JSON property `nextPageToken`
|
589
|
-
# @return [String]
|
590
|
-
attr_accessor :next_page_token
|
591
|
-
|
592
|
-
# The list of matching service accounts.
|
593
|
-
# Corresponds to the JSON property `accounts`
|
594
|
-
# @return [Array<Google::Apis::IamV1::ServiceAccount>]
|
595
|
-
attr_accessor :accounts
|
596
|
-
|
597
|
-
def initialize(**args)
|
598
|
-
update!(**args)
|
599
|
-
end
|
600
|
-
|
601
|
-
# Update properties of this object
|
602
|
-
def update!(**args)
|
603
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
604
|
-
@accounts = args[:accounts] if args.key?(:accounts)
|
605
|
-
end
|
606
|
-
end
|
607
|
-
|
608
|
-
# The service account create request.
|
609
|
-
class CreateServiceAccountRequest
|
610
|
-
include Google::Apis::Core::Hashable
|
611
|
-
|
612
|
-
# A service account in the Identity and Access Management API.
|
613
|
-
# To create a service account, specify the `project_id` and the `account_id`
|
614
|
-
# for the account. The `account_id` is unique within the project, and is used
|
615
|
-
# to generate the service account email address and a stable
|
616
|
-
# `unique_id`.
|
617
|
-
# If the account already exists, the account's resource name is returned
|
618
|
-
# in util::Status's ResourceInfo.resource_name in the format of
|
619
|
-
# projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL`. The caller can
|
620
|
-
# use the name in other methods to access the account.
|
621
|
-
# All other methods can identify the service account using the format
|
622
|
-
# `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
|
623
|
-
# Using `-` as a wildcard for the project will infer the project from
|
624
|
-
# the account. The `account` value can be the `email` address or the
|
625
|
-
# `unique_id` of the service account.
|
626
|
-
# Corresponds to the JSON property `serviceAccount`
|
627
|
-
# @return [Google::Apis::IamV1::ServiceAccount]
|
628
|
-
attr_accessor :service_account
|
629
|
-
|
630
|
-
# Required. The account id that is used to generate the service account
|
631
|
-
# email address and a stable unique id. It is unique within a project,
|
632
|
-
# must be 6-30 characters long, and match the regular expression
|
633
|
-
# `[a-z]([-a-z0-9]*[a-z0-9])` to comply with RFC1035.
|
634
|
-
# Corresponds to the JSON property `accountId`
|
635
|
-
# @return [String]
|
636
|
-
attr_accessor :account_id
|
637
|
-
|
638
|
-
def initialize(**args)
|
639
|
-
update!(**args)
|
640
|
-
end
|
641
|
-
|
642
|
-
# Update properties of this object
|
643
|
-
def update!(**args)
|
644
|
-
@service_account = args[:service_account] if args.key?(:service_account)
|
645
|
-
@account_id = args[:account_id] if args.key?(:account_id)
|
646
|
-
end
|
647
|
-
end
|
648
|
-
|
649
|
-
# The grantable role query response.
|
650
|
-
class QueryGrantableRolesResponse
|
651
|
-
include Google::Apis::Core::Hashable
|
652
|
-
|
653
|
-
# The list of matching roles.
|
654
|
-
# Corresponds to the JSON property `roles`
|
655
|
-
# @return [Array<Google::Apis::IamV1::Role>]
|
656
|
-
attr_accessor :roles
|
657
|
-
|
658
|
-
# To retrieve the next page of results, set
|
659
|
-
# `QueryGrantableRolesRequest.page_token` to this value.
|
660
|
-
# Corresponds to the JSON property `nextPageToken`
|
661
|
-
# @return [String]
|
662
|
-
attr_accessor :next_page_token
|
663
|
-
|
664
|
-
def initialize(**args)
|
665
|
-
update!(**args)
|
666
|
-
end
|
667
|
-
|
668
|
-
# Update properties of this object
|
669
|
-
def update!(**args)
|
670
|
-
@roles = args[:roles] if args.key?(:roles)
|
671
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
672
|
-
end
|
673
|
-
end
|
674
|
-
|
675
|
-
# The service account sign blob request.
|
676
|
-
class SignBlobRequest
|
677
|
-
include Google::Apis::Core::Hashable
|
678
|
-
|
679
|
-
# The bytes to sign.
|
680
|
-
# Corresponds to the JSON property `bytesToSign`
|
681
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
682
|
-
# @return [String]
|
683
|
-
attr_accessor :bytes_to_sign
|
684
|
-
|
685
|
-
def initialize(**args)
|
686
|
-
update!(**args)
|
687
|
-
end
|
688
|
-
|
689
|
-
# Update properties of this object
|
690
|
-
def update!(**args)
|
691
|
-
@bytes_to_sign = args[:bytes_to_sign] if args.key?(:bytes_to_sign)
|
692
|
-
end
|
693
|
-
end
|
694
|
-
|
695
|
-
# A role in the Identity and Access Management API.
|
696
|
-
class Role
|
697
|
-
include Google::Apis::Core::Hashable
|
698
|
-
|
699
|
-
# The name of the role.
|
700
|
-
# When Role is used in CreateRole, the role name must not be set.
|
701
|
-
# When Role is used in output and other input such as UpdateRole, the role
|
702
|
-
# name is the complete path, e.g., roles/logging.viewer for curated roles
|
703
|
-
# and organizations/`ORGANIZATION_ID`/roles/logging.viewer for custom roles.
|
704
|
-
# Corresponds to the JSON property `name`
|
705
|
-
# @return [String]
|
706
|
-
attr_accessor :name
|
707
|
-
|
708
|
-
# Optional. A human-readable description for the role.
|
709
|
-
# Corresponds to the JSON property `description`
|
710
|
-
# @return [String]
|
711
|
-
attr_accessor :description
|
712
|
-
|
713
|
-
# Optional. A human-readable title for the role. Typically this
|
714
|
-
# is limited to 100 UTF-8 bytes.
|
715
|
-
# Corresponds to the JSON property `title`
|
716
|
-
# @return [String]
|
717
|
-
attr_accessor :title
|
718
|
-
|
719
|
-
def initialize(**args)
|
720
|
-
update!(**args)
|
721
|
-
end
|
722
|
-
|
723
|
-
# Update properties of this object
|
724
|
-
def update!(**args)
|
725
|
-
@name = args[:name] if args.key?(:name)
|
726
|
-
@description = args[:description] if args.key?(:description)
|
727
|
-
@title = args[:title] if args.key?(:title)
|
728
|
-
end
|
729
|
-
end
|
730
|
-
|
731
|
-
# Request message for `SetIamPolicy` method.
|
732
|
-
class SetIamPolicyRequest
|
733
|
-
include Google::Apis::Core::Hashable
|
734
|
-
|
735
|
-
# Defines an Identity and Access Management (IAM) policy. It is used to
|
736
|
-
# specify access control policies for Cloud Platform resources.
|
737
|
-
# A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
|
738
|
-
# `members` to a `role`, where the members can be user accounts, Google groups,
|
739
|
-
# Google domains, and service accounts. A `role` is a named list of permissions
|
740
|
-
# defined by IAM.
|
741
|
-
# **Example**
|
742
|
-
# `
|
743
|
-
# "bindings": [
|
744
|
-
# `
|
745
|
-
# "role": "roles/owner",
|
746
|
-
# "members": [
|
747
|
-
# "user:mike@example.com",
|
748
|
-
# "group:admins@example.com",
|
749
|
-
# "domain:google.com",
|
750
|
-
# "serviceAccount:my-other-app@appspot.gserviceaccount.com",
|
751
|
-
# ]
|
752
|
-
# `,
|
753
|
-
# `
|
754
|
-
# "role": "roles/viewer",
|
755
|
-
# "members": ["user:sean@example.com"]
|
756
|
-
# `
|
757
|
-
# ]
|
758
|
-
# `
|
759
|
-
# For a description of IAM and its features, see the
|
760
|
-
# [IAM developer's guide](https://cloud.google.com/iam).
|
761
|
-
# Corresponds to the JSON property `policy`
|
762
|
-
# @return [Google::Apis::IamV1::Policy]
|
763
|
-
attr_accessor :policy
|
764
|
-
|
765
|
-
def initialize(**args)
|
766
|
-
update!(**args)
|
767
|
-
end
|
768
|
-
|
769
|
-
# Update properties of this object
|
770
|
-
def update!(**args)
|
771
|
-
@policy = args[:policy] if args.key?(:policy)
|
772
|
-
end
|
773
|
-
end
|
774
774
|
end
|
775
775
|
end
|
776
776
|
end
|