google-api-client 0.9.pre2 → 0.9.pre3
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 +3 -0
- data/README.md +1 -1
- data/api_names_out.yaml +68 -5
- data/generated/google/apis/adexchangebuyer_v1_3/service.rb +3 -3
- data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +5 -5
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +34 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +5 -0
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/service.rb +10 -10
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/service.rb +19 -19
- data/generated/google/apis/analytics_v3/service.rb +35 -35
- data/generated/google/apis/androidenterprise_v1/service.rb +6 -6
- 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 +16 -6
- data/generated/google/apis/bigquery_v2/representations.rb +2 -0
- data/generated/google/apis/bigquery_v2/service.rb +4 -4
- data/generated/google/apis/blogger_v3/service.rb +7 -7
- data/generated/google/apis/books_v1/service.rb +47 -47
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +43 -27
- data/generated/google/apis/calendar_v3/service.rb +20 -10
- data/generated/google/apis/civicinfo_v2/service.rb +1 -1
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +8 -8
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +372 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +155 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +109 -0
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +21 -18
- data/generated/google/apis/compute_v1/representations.rb +0 -1
- data/generated/google/apis/compute_v1/service.rb +459 -819
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +25 -15
- data/generated/google/apis/content_v2/representations.rb +2 -0
- data/generated/google/apis/content_v2/service.rb +2 -1
- data/generated/google/apis/coordinate_v1/service.rb +11 -11
- data/generated/google/apis/customsearch_v1/service.rb +3 -3
- data/generated/google/apis/deploymentmanager_v2beta2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2beta2/service.rb +50 -90
- data/generated/google/apis/dfareporting_v2_1.rb +1 -1
- data/generated/google/apis/dfareporting_v2_1/classes.rb +4 -4
- data/generated/google/apis/dfareporting_v2_1/service.rb +65 -62
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2/service.rb +11 -11
- data/generated/google/apis/drive_v2.rb +4 -1
- data/generated/google/apis/drive_v2/classes.rb +2 -2
- data/generated/google/apis/drive_v2/service.rb +15 -9
- data/generated/google/apis/fitness_v1.rb +1 -1
- data/generated/google/apis/fitness_v1/classes.rb +44 -31
- data/generated/google/apis/fitness_v1/representations.rb +0 -2
- data/generated/google/apis/fitness_v1/service.rb +5 -1
- data/generated/google/apis/fusiontables_v2/service.rb +9 -9
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/games_v1/service.rb +18 -18
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/genomics_v1/classes.rb +56 -53
- data/generated/google/apis/genomics_v1/service.rb +1 -1
- data/generated/google/apis/licensing_v1/service.rb +2 -2
- data/generated/google/apis/mapsengine_v1/service.rb +8 -8
- data/generated/google/apis/mirror_v1.rb +1 -1
- data/generated/google/apis/pagespeedonline_v2/service.rb +3 -3
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/plus_v1/service.rb +6 -6
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2/classes.rb +21 -20
- data/generated/google/apis/pubsub_v1beta2/service.rb +13 -13
- data/generated/google/apis/replicapool_v1beta2/service.rb +3 -3
- data/generated/google/apis/replicapoolupdater_v1beta1.rb +1 -1
- data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +8 -1
- data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +1 -0
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +1 -5
- data/generated/google/apis/reseller_v1/service.rb +1 -1
- data/generated/google/apis/site_verification_v1/service.rb +2 -2
- data/generated/google/apis/sqladmin_v1beta4/service.rb +4 -4
- data/generated/google/apis/storage_v1/service.rb +6 -6
- data/generated/google/apis/taskqueue_v1beta2/service.rb +9 -9
- data/generated/google/apis/translate_v2/service.rb +6 -6
- data/generated/google/apis/urlshortener_v1/service.rb +3 -3
- data/generated/google/apis/webmasters_v3.rb +1 -1
- data/generated/google/apis/webmasters_v3/classes.rb +11 -11
- data/generated/google/apis/webmasters_v3/service.rb +3 -3
- data/generated/google/apis/youtube_analytics_v1/service.rb +25 -25
- data/generated/google/apis/youtube_v3/service.rb +305 -305
- data/lib/google/apis/generator/model.rb +10 -0
- data/lib/google/apis/generator/templates/_method.tmpl +3 -3
- data/lib/google/apis/version.rb +1 -1
- metadata +2 -2
@@ -1221,10 +1221,12 @@ module Google
|
|
1221
1221
|
# singleEvents is False. Optional. The default is False.
|
1222
1222
|
# @param [DateTime] time_max
|
1223
1223
|
# Upper bound (exclusive) for an event's start time to filter by. Optional. The
|
1224
|
-
# default is not to filter by start time.
|
1224
|
+
# default is not to filter by start time. Must be an RFC3339 timestamp with
|
1225
|
+
# mandatory time zone offset.
|
1225
1226
|
# @param [DateTime] time_min
|
1226
1227
|
# Lower bound (inclusive) for an event's end time to filter by. Optional. The
|
1227
|
-
# default is not to filter by end time.
|
1228
|
+
# default is not to filter by end time. Must be an RFC3339 timestamp with
|
1229
|
+
# mandatory time zone offset.
|
1228
1230
|
# @param [String] time_zone
|
1229
1231
|
# Time zone used in the response. Optional. The default is the time zone of the
|
1230
1232
|
# calendar.
|
@@ -1343,10 +1345,14 @@ module Google
|
|
1343
1345
|
# Optional. The default is to return all entries.
|
1344
1346
|
# @param [DateTime] time_max
|
1345
1347
|
# Upper bound (exclusive) for an event's start time to filter by. Optional. The
|
1346
|
-
# default is not to filter by start time.
|
1348
|
+
# default is not to filter by start time. Must be an RFC3339 timestamp with
|
1349
|
+
# mandatory time zone offset, e.g., 2011-06-03T10:00:00-07:00, 2011-06-03T10:00:
|
1350
|
+
# 00Z. Milliseconds may be provided but will be ignored.
|
1347
1351
|
# @param [DateTime] time_min
|
1348
1352
|
# Lower bound (inclusive) for an event's end time to filter by. Optional. The
|
1349
|
-
# default is not to filter by end time.
|
1353
|
+
# default is not to filter by end time. Must be an RFC3339 timestamp with
|
1354
|
+
# mandatory time zone offset, e.g., 2011-06-03T10:00:00-07:00, 2011-06-03T10:00:
|
1355
|
+
# 00Z. Milliseconds may be provided but will be ignored.
|
1350
1356
|
# @param [String] time_zone
|
1351
1357
|
# Time zone used in the response. Optional. The default is the time zone of the
|
1352
1358
|
# calendar.
|
@@ -1436,7 +1442,7 @@ module Google
|
|
1436
1442
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1437
1443
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1438
1444
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1439
|
-
def move_event(calendar_id, event_id, destination
|
1445
|
+
def move_event(calendar_id, event_id, destination, send_notifications: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1440
1446
|
path = 'calendars/{calendarId}/events/{eventId}/move'
|
1441
1447
|
command = make_simple_command(:post, path, options)
|
1442
1448
|
command.response_representation = Google::Apis::CalendarV3::Event::Representation
|
@@ -1516,11 +1522,11 @@ module Google
|
|
1516
1522
|
# Creates an event based on a simple text string.
|
1517
1523
|
# @param [String] calendar_id
|
1518
1524
|
# Calendar identifier.
|
1525
|
+
# @param [String] text
|
1526
|
+
# The text describing the event to be created.
|
1519
1527
|
# @param [Boolean] send_notifications
|
1520
1528
|
# Whether to send notifications about the creation of the event. Optional. The
|
1521
1529
|
# default is False.
|
1522
|
-
# @param [String] text
|
1523
|
-
# The text describing the event to be created.
|
1524
1530
|
# @param [String] fields
|
1525
1531
|
# Selector specifying which fields to include in a partial response.
|
1526
1532
|
# @param [String] quota_user
|
@@ -1542,7 +1548,7 @@ module Google
|
|
1542
1548
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1543
1549
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1544
1550
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1545
|
-
def quick_add_event(calendar_id,
|
1551
|
+
def quick_add_event(calendar_id, text, send_notifications: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1546
1552
|
path = 'calendars/{calendarId}/events/quickAdd'
|
1547
1553
|
command = make_simple_command(:post, path, options)
|
1548
1554
|
command.response_representation = Google::Apis::CalendarV3::Event::Representation
|
@@ -1691,10 +1697,14 @@ module Google
|
|
1691
1697
|
# Optional. The default is to return all entries.
|
1692
1698
|
# @param [DateTime] time_max
|
1693
1699
|
# Upper bound (exclusive) for an event's start time to filter by. Optional. The
|
1694
|
-
# default is not to filter by start time.
|
1700
|
+
# default is not to filter by start time. Must be an RFC3339 timestamp with
|
1701
|
+
# mandatory time zone offset, e.g., 2011-06-03T10:00:00-07:00, 2011-06-03T10:00:
|
1702
|
+
# 00Z. Milliseconds may be provided but will be ignored.
|
1695
1703
|
# @param [DateTime] time_min
|
1696
1704
|
# Lower bound (inclusive) for an event's end time to filter by. Optional. The
|
1697
|
-
# default is not to filter by end time.
|
1705
|
+
# default is not to filter by end time. Must be an RFC3339 timestamp with
|
1706
|
+
# mandatory time zone offset, e.g., 2011-06-03T10:00:00-07:00, 2011-06-03T10:00:
|
1707
|
+
# 00Z. Milliseconds may be provided but will be ignored.
|
1698
1708
|
# @param [String] time_zone
|
1699
1709
|
# Time zone used in the response. Optional. The default is the time zone of the
|
1700
1710
|
# calendar.
|
@@ -154,7 +154,7 @@ module Google
|
|
154
154
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
155
155
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
156
156
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
157
|
-
def query_voter_info(address
|
157
|
+
def query_voter_info(address, election_id: nil, official_only: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
158
158
|
path = 'voterinfo'
|
159
159
|
command = make_simple_command(:get, path, options)
|
160
160
|
command.response_representation = Google::Apis::CivicinfoV2::VoterInfoResponse::Representation
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://cloud.google.com/monitoring/v2beta2/
|
26
26
|
module CloudmonitoringV2beta2
|
27
27
|
VERSION = 'V2beta2'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20150727'
|
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'
|
@@ -202,6 +202,9 @@ module Google
|
|
202
202
|
# @param [String] metric
|
203
203
|
# Metric names are protocol-free URLs as listed in the Supported Metrics page.
|
204
204
|
# For example, compute.googleapis.com/instance/disk/read_ops_count.
|
205
|
+
# @param [String] youngest
|
206
|
+
# End of the time interval (inclusive), which is expressed as an RFC 3339
|
207
|
+
# timestamp.
|
205
208
|
# @param [Google::Apis::CloudmonitoringV2beta2::ListTimeseriesRequest] list_timeseries_request_object
|
206
209
|
# @param [String] aggregator
|
207
210
|
# The aggregation function that will reduce the data points in each window to a
|
@@ -248,9 +251,6 @@ module Google
|
|
248
251
|
# - d: day
|
249
252
|
# - w: week Examples: 3m, 4w. Only one unit is allowed, for example: 2w3d is
|
250
253
|
# not allowed; you should use 17d instead.
|
251
|
-
# @param [String] youngest
|
252
|
-
# End of the time interval (inclusive), which is expressed as an RFC 3339
|
253
|
-
# timestamp.
|
254
254
|
# @param [String] fields
|
255
255
|
# Selector specifying which fields to include in a partial response.
|
256
256
|
# @param [String] quota_user
|
@@ -272,7 +272,7 @@ module Google
|
|
272
272
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
273
273
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
274
274
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
275
|
-
def list_timeseries(project, metric, list_timeseries_request_object = nil, aggregator: nil, count: nil, labels: nil, oldest: nil, page_token: nil, timespan: nil, window: nil,
|
275
|
+
def list_timeseries(project, metric, youngest, list_timeseries_request_object = nil, aggregator: nil, count: nil, labels: nil, oldest: nil, page_token: nil, timespan: nil, window: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
276
276
|
path = '{project}/timeseries/{metric}'
|
277
277
|
command = make_simple_command(:get, path, options)
|
278
278
|
command.request_representation = Google::Apis::CloudmonitoringV2beta2::ListTimeseriesRequest::Representation
|
@@ -352,6 +352,9 @@ module Google
|
|
352
352
|
# @param [String] metric
|
353
353
|
# Metric names are protocol-free URLs as listed in the Supported Metrics page.
|
354
354
|
# For example, compute.googleapis.com/instance/disk/read_ops_count.
|
355
|
+
# @param [String] youngest
|
356
|
+
# End of the time interval (inclusive), which is expressed as an RFC 3339
|
357
|
+
# timestamp.
|
355
358
|
# @param [Google::Apis::CloudmonitoringV2beta2::ListTimeseriesDescriptorsRequest] list_timeseries_descriptors_request_object
|
356
359
|
# @param [String] aggregator
|
357
360
|
# The aggregation function that will reduce the data points in each window to a
|
@@ -398,9 +401,6 @@ module Google
|
|
398
401
|
# - d: day
|
399
402
|
# - w: week Examples: 3m, 4w. Only one unit is allowed, for example: 2w3d is
|
400
403
|
# not allowed; you should use 17d instead.
|
401
|
-
# @param [String] youngest
|
402
|
-
# End of the time interval (inclusive), which is expressed as an RFC 3339
|
403
|
-
# timestamp.
|
404
404
|
# @param [String] fields
|
405
405
|
# Selector specifying which fields to include in a partial response.
|
406
406
|
# @param [String] quota_user
|
@@ -422,7 +422,7 @@ module Google
|
|
422
422
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
423
423
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
424
424
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
425
|
-
def list_timeseries_descriptors(project, metric, list_timeseries_descriptors_request_object = nil, aggregator: nil, count: nil, labels: nil, oldest: nil, page_token: nil, timespan: nil, window: nil,
|
425
|
+
def list_timeseries_descriptors(project, metric, youngest, list_timeseries_descriptors_request_object = nil, aggregator: nil, count: nil, labels: nil, oldest: nil, page_token: nil, timespan: nil, window: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
426
426
|
path = '{project}/timeseriesDescriptors/{metric}'
|
427
427
|
command = make_simple_command(:get, path, options)
|
428
428
|
command.request_representation = Google::Apis::CloudmonitoringV2beta2::ListTimeseriesDescriptorsRequest::Representation
|
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://cloud.google.com/resource-manager
|
27
27
|
module CloudresourcemanagerV1beta1
|
28
28
|
VERSION = 'V1beta1'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20150729'
|
30
30
|
|
31
31
|
# View and manage your data across Google Cloud Platform services
|
32
32
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -135,6 +135,378 @@ module Google
|
|
135
135
|
def update!(**args)
|
136
136
|
end
|
137
137
|
end
|
138
|
+
|
139
|
+
# Request message for `GetIamPolicy` method.
|
140
|
+
class GetIamPolicyRequest
|
141
|
+
include Google::Apis::Core::Hashable
|
142
|
+
|
143
|
+
def initialize(**args)
|
144
|
+
update!(**args)
|
145
|
+
end
|
146
|
+
|
147
|
+
# Update properties of this object
|
148
|
+
def update!(**args)
|
149
|
+
end
|
150
|
+
end
|
151
|
+
|
152
|
+
# # Overview The `Policy` defines an access control policy language. It is used
|
153
|
+
# to define policies that are attached to resources like files, folders, VMs,
|
154
|
+
# etc. # Policy structure A `Policy` consists of a list of bindings. A `Binding`
|
155
|
+
# binds a set of members to a role, where the members include user accounts,
|
156
|
+
# user groups, user domains, and service accounts. A 'role' is a named set of
|
157
|
+
# permissions, defined by IAM. The definition of a role is outside the policy. A
|
158
|
+
# permission check first determines the roles that include the specified
|
159
|
+
# permission, and then determines if the principal specified is a member of a
|
160
|
+
# binding to at least one of these roles. The membership check is recursive when
|
161
|
+
# a group is bound to a role. Policy examples: ``` ` "bindings": [ ` "role": "
|
162
|
+
# roles/owner", "members": [ "user:mike@example.com", "group:admins@example.com",
|
163
|
+
# "domain:google.com", "serviceAccount:frontend@example.iam.gserviceaccounts.
|
164
|
+
# com"] `, ` "role": "roles/viewer", "members": ["user:sean@example.com"] ` ] ` `
|
165
|
+
# ``
|
166
|
+
class Policy
|
167
|
+
include Google::Apis::Core::Hashable
|
168
|
+
|
169
|
+
# The policy language version. The version of the policy is represented by the
|
170
|
+
# etag. The default version is 0.
|
171
|
+
# Corresponds to the JSON property `version`
|
172
|
+
# @return [Fixnum]
|
173
|
+
attr_accessor :version
|
174
|
+
|
175
|
+
# It is an error to specify multiple bindings for the same role. It is an error
|
176
|
+
# to specify a binding with no members.
|
177
|
+
# Corresponds to the JSON property `bindings`
|
178
|
+
# @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Binding>]
|
179
|
+
attr_accessor :bindings
|
180
|
+
|
181
|
+
#
|
182
|
+
# Corresponds to the JSON property `rules`
|
183
|
+
# @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Rule>]
|
184
|
+
attr_accessor :rules
|
185
|
+
|
186
|
+
# Can be used to perform a read-modify-write.
|
187
|
+
# Corresponds to the JSON property `etag`
|
188
|
+
# @return [String]
|
189
|
+
attr_accessor :etag
|
190
|
+
|
191
|
+
def initialize(**args)
|
192
|
+
update!(**args)
|
193
|
+
end
|
194
|
+
|
195
|
+
# Update properties of this object
|
196
|
+
def update!(**args)
|
197
|
+
@version = args[:version] unless args[:version].nil?
|
198
|
+
@bindings = args[:bindings] unless args[:bindings].nil?
|
199
|
+
@rules = args[:rules] unless args[:rules].nil?
|
200
|
+
@etag = args[:etag] unless args[:etag].nil?
|
201
|
+
end
|
202
|
+
end
|
203
|
+
|
204
|
+
# Associates members with roles. See below for allowed formats of members.
|
205
|
+
class Binding
|
206
|
+
include Google::Apis::Core::Hashable
|
207
|
+
|
208
|
+
# The name of the role to which the members should be bound. Examples: "roles/
|
209
|
+
# viewer", "roles/editor", "roles/owner". Required
|
210
|
+
# Corresponds to the JSON property `role`
|
211
|
+
# @return [String]
|
212
|
+
attr_accessor :role
|
213
|
+
|
214
|
+
# Format of member entries: 1. allUsers Matches any requesting principal (users,
|
215
|
+
# service accounts or anonymous). 2. allAuthenticatedUsers Matches any
|
216
|
+
# requesting authenticated principal (users or service accounts). 3. user:`
|
217
|
+
# emailid` A google user account using an email address. For example alice@gmail.
|
218
|
+
# com, joe@example.com 4. serviceAccount:`emailid` An service account email. 5.
|
219
|
+
# group:`emailid` A google group with an email address. For example auth-ti-
|
220
|
+
# cloud@google.com 6. domain:`domain` A Google Apps domain name. For example
|
221
|
+
# google.com, example.com
|
222
|
+
# Corresponds to the JSON property `members`
|
223
|
+
# @return [Array<String>]
|
224
|
+
attr_accessor :members
|
225
|
+
|
226
|
+
def initialize(**args)
|
227
|
+
update!(**args)
|
228
|
+
end
|
229
|
+
|
230
|
+
# Update properties of this object
|
231
|
+
def update!(**args)
|
232
|
+
@role = args[:role] unless args[:role].nil?
|
233
|
+
@members = args[:members] unless args[:members].nil?
|
234
|
+
end
|
235
|
+
end
|
236
|
+
|
237
|
+
# A rule to be applied in a Policy.
|
238
|
+
class Rule
|
239
|
+
include Google::Apis::Core::Hashable
|
240
|
+
|
241
|
+
# Human-readable description of the rule.
|
242
|
+
# Corresponds to the JSON property `description`
|
243
|
+
# @return [String]
|
244
|
+
attr_accessor :description
|
245
|
+
|
246
|
+
# A permission is a string of form '..' (e.g., 'storage.buckets.list'). A value
|
247
|
+
# of '*' matches all permissions, and a verb part of '*' (e.g., 'storage.buckets.
|
248
|
+
# *') matches all verbs.
|
249
|
+
# Corresponds to the JSON property `permissions`
|
250
|
+
# @return [Array<String>]
|
251
|
+
attr_accessor :permissions
|
252
|
+
|
253
|
+
# Required
|
254
|
+
# Corresponds to the JSON property `action`
|
255
|
+
# @return [String]
|
256
|
+
attr_accessor :action
|
257
|
+
|
258
|
+
# The rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in this set of entries.
|
259
|
+
# Corresponds to the JSON property `in`
|
260
|
+
# @return [Array<String>]
|
261
|
+
attr_accessor :in
|
262
|
+
|
263
|
+
# The rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is not in this set of
|
264
|
+
# entries. The formation for in and not_in entries is the same as members in a
|
265
|
+
# Binding above.
|
266
|
+
# Corresponds to the JSON property `notIn`
|
267
|
+
# @return [Array<String>]
|
268
|
+
attr_accessor :not_in
|
269
|
+
|
270
|
+
# Additional restrictions that must be met
|
271
|
+
# Corresponds to the JSON property `conditions`
|
272
|
+
# @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Condition>]
|
273
|
+
attr_accessor :conditions
|
274
|
+
|
275
|
+
# The config returned to callers of tech.iam.IAM.CheckPolicy for any entries
|
276
|
+
# that match the LOG action.
|
277
|
+
# Corresponds to the JSON property `logConfig`
|
278
|
+
# @return [Array<Google::Apis::CloudresourcemanagerV1beta1::LogConfig>]
|
279
|
+
attr_accessor :log_config
|
280
|
+
|
281
|
+
def initialize(**args)
|
282
|
+
update!(**args)
|
283
|
+
end
|
284
|
+
|
285
|
+
# Update properties of this object
|
286
|
+
def update!(**args)
|
287
|
+
@description = args[:description] unless args[:description].nil?
|
288
|
+
@permissions = args[:permissions] unless args[:permissions].nil?
|
289
|
+
@action = args[:action] unless args[:action].nil?
|
290
|
+
@in = args[:in] unless args[:in].nil?
|
291
|
+
@not_in = args[:not_in] unless args[:not_in].nil?
|
292
|
+
@conditions = args[:conditions] unless args[:conditions].nil?
|
293
|
+
@log_config = args[:log_config] unless args[:log_config].nil?
|
294
|
+
end
|
295
|
+
end
|
296
|
+
|
297
|
+
# A condition to be met.
|
298
|
+
class Condition
|
299
|
+
include Google::Apis::Core::Hashable
|
300
|
+
|
301
|
+
# Trusted attributes supplied by the IAM system.
|
302
|
+
# Corresponds to the JSON property `iam`
|
303
|
+
# @return [String]
|
304
|
+
attr_accessor :iam
|
305
|
+
|
306
|
+
# Trusted attributes supplied by any service that owns resources and uses the
|
307
|
+
# IAM system for access control.
|
308
|
+
# Corresponds to the JSON property `sys`
|
309
|
+
# @return [String]
|
310
|
+
attr_accessor :sys
|
311
|
+
|
312
|
+
# Trusted attributes discharged by the service.
|
313
|
+
# Corresponds to the JSON property `svc`
|
314
|
+
# @return [String]
|
315
|
+
attr_accessor :svc
|
316
|
+
|
317
|
+
# An operator to apply the subject with.
|
318
|
+
# Corresponds to the JSON property `op`
|
319
|
+
# @return [String]
|
320
|
+
attr_accessor :op
|
321
|
+
|
322
|
+
# The object of the condition. Exactly one of these must be set.
|
323
|
+
# Corresponds to the JSON property `value`
|
324
|
+
# @return [String]
|
325
|
+
attr_accessor :value
|
326
|
+
|
327
|
+
# The objects of the condition. This is mutually exclusive with 'value'.
|
328
|
+
# Corresponds to the JSON property `values`
|
329
|
+
# @return [Array<String>]
|
330
|
+
attr_accessor :values
|
331
|
+
|
332
|
+
def initialize(**args)
|
333
|
+
update!(**args)
|
334
|
+
end
|
335
|
+
|
336
|
+
# Update properties of this object
|
337
|
+
def update!(**args)
|
338
|
+
@iam = args[:iam] unless args[:iam].nil?
|
339
|
+
@sys = args[:sys] unless args[:sys].nil?
|
340
|
+
@svc = args[:svc] unless args[:svc].nil?
|
341
|
+
@op = args[:op] unless args[:op].nil?
|
342
|
+
@value = args[:value] unless args[:value].nil?
|
343
|
+
@values = args[:values] unless args[:values].nil?
|
344
|
+
end
|
345
|
+
end
|
346
|
+
|
347
|
+
# Specifies what kind of log the caller must write Increment a streamz counter
|
348
|
+
# with the specified metric and field names. Metric names should start with a '/'
|
349
|
+
# , generally be lowercase-only, and end in "_count". Field names should not
|
350
|
+
# contain an initial slash. The actual exported metric names will have "/iam/
|
351
|
+
# policy" prepended. Field names correspond to IAM request parameters and field
|
352
|
+
# values are their respective values. At present only "iam_principal",
|
353
|
+
# corresponding to IAMContext.principal, is supported. Examples: counter `
|
354
|
+
# metric: "/debug_access_count" field: "iam_principal" ` ==> increment counter /
|
355
|
+
# iam/policy/backend_debug_access_count `iam_principal=[value of IAMContext.
|
356
|
+
# principal]` At this time we do not support: * multiple field names (though
|
357
|
+
# this may be supported in the future) * decrementing the counter * incrementing
|
358
|
+
# it by anything other than 1
|
359
|
+
class LogConfig
|
360
|
+
include Google::Apis::Core::Hashable
|
361
|
+
|
362
|
+
# Options for counters
|
363
|
+
# Corresponds to the JSON property `counter`
|
364
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::CounterOptions]
|
365
|
+
attr_accessor :counter
|
366
|
+
|
367
|
+
# Write a Data Access (Gin) log
|
368
|
+
# Corresponds to the JSON property `dataAccess`
|
369
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::DataAccessOptions]
|
370
|
+
attr_accessor :data_access
|
371
|
+
|
372
|
+
# Write a Cloud Audit log
|
373
|
+
# Corresponds to the JSON property `cloudAudit`
|
374
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::CloudAuditOptions]
|
375
|
+
attr_accessor :cloud_audit
|
376
|
+
|
377
|
+
def initialize(**args)
|
378
|
+
update!(**args)
|
379
|
+
end
|
380
|
+
|
381
|
+
# Update properties of this object
|
382
|
+
def update!(**args)
|
383
|
+
@counter = args[:counter] unless args[:counter].nil?
|
384
|
+
@data_access = args[:data_access] unless args[:data_access].nil?
|
385
|
+
@cloud_audit = args[:cloud_audit] unless args[:cloud_audit].nil?
|
386
|
+
end
|
387
|
+
end
|
388
|
+
|
389
|
+
# Options for counters
|
390
|
+
class CounterOptions
|
391
|
+
include Google::Apis::Core::Hashable
|
392
|
+
|
393
|
+
# The metric to update.
|
394
|
+
# Corresponds to the JSON property `metric`
|
395
|
+
# @return [String]
|
396
|
+
attr_accessor :metric
|
397
|
+
|
398
|
+
# The field value to attribute.
|
399
|
+
# Corresponds to the JSON property `field`
|
400
|
+
# @return [String]
|
401
|
+
attr_accessor :field
|
402
|
+
|
403
|
+
def initialize(**args)
|
404
|
+
update!(**args)
|
405
|
+
end
|
406
|
+
|
407
|
+
# Update properties of this object
|
408
|
+
def update!(**args)
|
409
|
+
@metric = args[:metric] unless args[:metric].nil?
|
410
|
+
@field = args[:field] unless args[:field].nil?
|
411
|
+
end
|
412
|
+
end
|
413
|
+
|
414
|
+
# Write a Data Access (Gin) log
|
415
|
+
class DataAccessOptions
|
416
|
+
include Google::Apis::Core::Hashable
|
417
|
+
|
418
|
+
def initialize(**args)
|
419
|
+
update!(**args)
|
420
|
+
end
|
421
|
+
|
422
|
+
# Update properties of this object
|
423
|
+
def update!(**args)
|
424
|
+
end
|
425
|
+
end
|
426
|
+
|
427
|
+
# Write a Cloud Audit log
|
428
|
+
class CloudAuditOptions
|
429
|
+
include Google::Apis::Core::Hashable
|
430
|
+
|
431
|
+
def initialize(**args)
|
432
|
+
update!(**args)
|
433
|
+
end
|
434
|
+
|
435
|
+
# Update properties of this object
|
436
|
+
def update!(**args)
|
437
|
+
end
|
438
|
+
end
|
439
|
+
|
440
|
+
# Request message for `SetIamPolicy` method.
|
441
|
+
class SetIamPolicyRequest
|
442
|
+
include Google::Apis::Core::Hashable
|
443
|
+
|
444
|
+
# # Overview The `Policy` defines an access control policy language. It is used
|
445
|
+
# to define policies that are attached to resources like files, folders, VMs,
|
446
|
+
# etc. # Policy structure A `Policy` consists of a list of bindings. A `Binding`
|
447
|
+
# binds a set of members to a role, where the members include user accounts,
|
448
|
+
# user groups, user domains, and service accounts. A 'role' is a named set of
|
449
|
+
# permissions, defined by IAM. The definition of a role is outside the policy. A
|
450
|
+
# permission check first determines the roles that include the specified
|
451
|
+
# permission, and then determines if the principal specified is a member of a
|
452
|
+
# binding to at least one of these roles. The membership check is recursive when
|
453
|
+
# a group is bound to a role. Policy examples: ``` ` "bindings": [ ` "role": "
|
454
|
+
# roles/owner", "members": [ "user:mike@example.com", "group:admins@example.com",
|
455
|
+
# "domain:google.com", "serviceAccount:frontend@example.iam.gserviceaccounts.
|
456
|
+
# com"] `, ` "role": "roles/viewer", "members": ["user:sean@example.com"] ` ] ` `
|
457
|
+
# ``
|
458
|
+
# Corresponds to the JSON property `policy`
|
459
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
|
460
|
+
attr_accessor :policy
|
461
|
+
|
462
|
+
def initialize(**args)
|
463
|
+
update!(**args)
|
464
|
+
end
|
465
|
+
|
466
|
+
# Update properties of this object
|
467
|
+
def update!(**args)
|
468
|
+
@policy = args[:policy] unless args[:policy].nil?
|
469
|
+
end
|
470
|
+
end
|
471
|
+
|
472
|
+
# Request message for `TestIamPermissions` method.
|
473
|
+
class TestIamPermissionsRequest
|
474
|
+
include Google::Apis::Core::Hashable
|
475
|
+
|
476
|
+
# The set of permissions to check for the 'resource'. Permissions with wildcards
|
477
|
+
# (such as '*' or 'storage.*') are not allowed.
|
478
|
+
# Corresponds to the JSON property `permissions`
|
479
|
+
# @return [Array<String>]
|
480
|
+
attr_accessor :permissions
|
481
|
+
|
482
|
+
def initialize(**args)
|
483
|
+
update!(**args)
|
484
|
+
end
|
485
|
+
|
486
|
+
# Update properties of this object
|
487
|
+
def update!(**args)
|
488
|
+
@permissions = args[:permissions] unless args[:permissions].nil?
|
489
|
+
end
|
490
|
+
end
|
491
|
+
|
492
|
+
# Response message for `TestIamPermissions` method.
|
493
|
+
class TestIamPermissionsResponse
|
494
|
+
include Google::Apis::Core::Hashable
|
495
|
+
|
496
|
+
# A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
|
497
|
+
# Corresponds to the JSON property `permissions`
|
498
|
+
# @return [Array<String>]
|
499
|
+
attr_accessor :permissions
|
500
|
+
|
501
|
+
def initialize(**args)
|
502
|
+
update!(**args)
|
503
|
+
end
|
504
|
+
|
505
|
+
# Update properties of this object
|
506
|
+
def update!(**args)
|
507
|
+
@permissions = args[:permissions] unless args[:permissions].nil?
|
508
|
+
end
|
509
|
+
end
|
138
510
|
end
|
139
511
|
end
|
140
512
|
end
|