google-apis-cloudasset_v1 0.20.0 → 0.21.0
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8905068aa1fc81d220c6535d28e87ebd43daad6424382ad31c80a5444e684cd4
|
|
4
|
+
data.tar.gz: 1a0788cddd2e530d3c04c318354ecc1cb120e019dd1c464d166bd1c35798ecc1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 169d99d89cbcd266b8ba8436f703cef799c6f773fa4e8718720a8d38f1b0416ce3f563ec0214ccf5b80924f59b1fb0efa94e436d170149fd88ed0ff16d434828
|
|
7
|
+
data.tar.gz: 2b594fea2c5e26a9731dacc418f3d8e61c9d74990b3d09c738625d895f54bed8d7627cab7409b3117110a7fe274a7cfbbd13e8dc7a5f5f5457cee41f0b2e8dbf
|
data/CHANGELOG.md
CHANGED
|
@@ -84,6 +84,21 @@ module Google
|
|
|
84
84
|
# @return [Google::Apis::CloudassetV1::IamPolicyAnalysisOutputConfig]
|
|
85
85
|
attr_accessor :output_config
|
|
86
86
|
|
|
87
|
+
# Optional. The name of a saved query, which must be in the format of: *
|
|
88
|
+
# projects/project_number/savedQueries/saved_query_id * folders/folder_number/
|
|
89
|
+
# savedQueries/saved_query_id * organizations/organization_number/savedQueries/
|
|
90
|
+
# saved_query_id If both `analysis_query` and `saved_analysis_query` are
|
|
91
|
+
# provided, they will be merged together with the `saved_analysis_query` as base
|
|
92
|
+
# and the `analysis_query` as overrides. For more details of the merge behavior,
|
|
93
|
+
# please refer to the [MergeFrom](https://developers.google.com/protocol-buffers/
|
|
94
|
+
# docs/reference/cpp/google.protobuf.message#Message.MergeFrom.details) doc.
|
|
95
|
+
# Note that you cannot override primitive fields with default value, such as 0
|
|
96
|
+
# or empty string, etc., because we use proto3, which doesn't support field
|
|
97
|
+
# presence yet.
|
|
98
|
+
# Corresponds to the JSON property `savedAnalysisQuery`
|
|
99
|
+
# @return [String]
|
|
100
|
+
attr_accessor :saved_analysis_query
|
|
101
|
+
|
|
87
102
|
def initialize(**args)
|
|
88
103
|
update!(**args)
|
|
89
104
|
end
|
|
@@ -92,6 +107,7 @@ module Google
|
|
|
92
107
|
def update!(**args)
|
|
93
108
|
@analysis_query = args[:analysis_query] if args.key?(:analysis_query)
|
|
94
109
|
@output_config = args[:output_config] if args.key?(:output_config)
|
|
110
|
+
@saved_analysis_query = args[:saved_analysis_query] if args.key?(:saved_analysis_query)
|
|
95
111
|
end
|
|
96
112
|
end
|
|
97
113
|
|
|
@@ -3186,6 +3202,32 @@ module Google
|
|
|
3186
3202
|
end
|
|
3187
3203
|
end
|
|
3188
3204
|
|
|
3205
|
+
# Response of listing saved queries.
|
|
3206
|
+
class ListSavedQueriesResponse
|
|
3207
|
+
include Google::Apis::Core::Hashable
|
|
3208
|
+
|
|
3209
|
+
# A token, which can be sent as `page_token` to retrieve the next page. If this
|
|
3210
|
+
# field is omitted, there are no subsequent pages.
|
|
3211
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
3212
|
+
# @return [String]
|
|
3213
|
+
attr_accessor :next_page_token
|
|
3214
|
+
|
|
3215
|
+
# A list of savedQueries.
|
|
3216
|
+
# Corresponds to the JSON property `savedQueries`
|
|
3217
|
+
# @return [Array<Google::Apis::CloudassetV1::SavedQuery>]
|
|
3218
|
+
attr_accessor :saved_queries
|
|
3219
|
+
|
|
3220
|
+
def initialize(**args)
|
|
3221
|
+
update!(**args)
|
|
3222
|
+
end
|
|
3223
|
+
|
|
3224
|
+
# Update properties of this object
|
|
3225
|
+
def update!(**args)
|
|
3226
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
3227
|
+
@saved_queries = args[:saved_queries] if args.key?(:saved_queries)
|
|
3228
|
+
end
|
|
3229
|
+
end
|
|
3230
|
+
|
|
3189
3231
|
# A message to group the analysis information.
|
|
3190
3232
|
class MoveAnalysis
|
|
3191
3233
|
include Google::Apis::Core::Hashable
|
|
@@ -3665,6 +3707,25 @@ module Google
|
|
|
3665
3707
|
end
|
|
3666
3708
|
end
|
|
3667
3709
|
|
|
3710
|
+
# The query content.
|
|
3711
|
+
class QueryContent
|
|
3712
|
+
include Google::Apis::Core::Hashable
|
|
3713
|
+
|
|
3714
|
+
# ## IAM policy analysis query message.
|
|
3715
|
+
# Corresponds to the JSON property `iamPolicyAnalysisQuery`
|
|
3716
|
+
# @return [Google::Apis::CloudassetV1::IamPolicyAnalysisQuery]
|
|
3717
|
+
attr_accessor :iam_policy_analysis_query
|
|
3718
|
+
|
|
3719
|
+
def initialize(**args)
|
|
3720
|
+
update!(**args)
|
|
3721
|
+
end
|
|
3722
|
+
|
|
3723
|
+
# Update properties of this object
|
|
3724
|
+
def update!(**args)
|
|
3725
|
+
@iam_policy_analysis_query = args[:iam_policy_analysis_query] if args.key?(:iam_policy_analysis_query)
|
|
3726
|
+
end
|
|
3727
|
+
end
|
|
3728
|
+
|
|
3668
3729
|
# An asset identifier in Google Cloud which contains its name, type and
|
|
3669
3730
|
# ancestors. An asset can be any resource in the Google Cloud [resource
|
|
3670
3731
|
# hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-
|
|
@@ -4150,6 +4211,74 @@ module Google
|
|
|
4150
4211
|
end
|
|
4151
4212
|
end
|
|
4152
4213
|
|
|
4214
|
+
# A saved query which can be shared with others or used later.
|
|
4215
|
+
class SavedQuery
|
|
4216
|
+
include Google::Apis::Core::Hashable
|
|
4217
|
+
|
|
4218
|
+
# The query content.
|
|
4219
|
+
# Corresponds to the JSON property `content`
|
|
4220
|
+
# @return [Google::Apis::CloudassetV1::QueryContent]
|
|
4221
|
+
attr_accessor :content
|
|
4222
|
+
|
|
4223
|
+
# Output only. The create time of this saved query.
|
|
4224
|
+
# Corresponds to the JSON property `createTime`
|
|
4225
|
+
# @return [String]
|
|
4226
|
+
attr_accessor :create_time
|
|
4227
|
+
|
|
4228
|
+
# Output only. The account's email address who has created this saved query.
|
|
4229
|
+
# Corresponds to the JSON property `creator`
|
|
4230
|
+
# @return [String]
|
|
4231
|
+
attr_accessor :creator
|
|
4232
|
+
|
|
4233
|
+
# The description of this saved query. This value should be fewer than 255
|
|
4234
|
+
# characters.
|
|
4235
|
+
# Corresponds to the JSON property `description`
|
|
4236
|
+
# @return [String]
|
|
4237
|
+
attr_accessor :description
|
|
4238
|
+
|
|
4239
|
+
# Labels applied on the resource. This value should not contain more than 10
|
|
4240
|
+
# entries. The key and value of each entry must be non-empty and fewer than 64
|
|
4241
|
+
# characters.
|
|
4242
|
+
# Corresponds to the JSON property `labels`
|
|
4243
|
+
# @return [Hash<String,String>]
|
|
4244
|
+
attr_accessor :labels
|
|
4245
|
+
|
|
4246
|
+
# Output only. The last update time of this saved query.
|
|
4247
|
+
# Corresponds to the JSON property `lastUpdateTime`
|
|
4248
|
+
# @return [String]
|
|
4249
|
+
attr_accessor :last_update_time
|
|
4250
|
+
|
|
4251
|
+
# Output only. The account's email address who has updated this saved query most
|
|
4252
|
+
# recently.
|
|
4253
|
+
# Corresponds to the JSON property `lastUpdater`
|
|
4254
|
+
# @return [String]
|
|
4255
|
+
attr_accessor :last_updater
|
|
4256
|
+
|
|
4257
|
+
# The resource name of the saved query. The format must be: * projects/
|
|
4258
|
+
# project_number/savedQueries/saved_query_id * folders/folder_number/
|
|
4259
|
+
# savedQueries/saved_query_id * organizations/organization_number/savedQueries/
|
|
4260
|
+
# saved_query_id
|
|
4261
|
+
# Corresponds to the JSON property `name`
|
|
4262
|
+
# @return [String]
|
|
4263
|
+
attr_accessor :name
|
|
4264
|
+
|
|
4265
|
+
def initialize(**args)
|
|
4266
|
+
update!(**args)
|
|
4267
|
+
end
|
|
4268
|
+
|
|
4269
|
+
# Update properties of this object
|
|
4270
|
+
def update!(**args)
|
|
4271
|
+
@content = args[:content] if args.key?(:content)
|
|
4272
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
|
4273
|
+
@creator = args[:creator] if args.key?(:creator)
|
|
4274
|
+
@description = args[:description] if args.key?(:description)
|
|
4275
|
+
@labels = args[:labels] if args.key?(:labels)
|
|
4276
|
+
@last_update_time = args[:last_update_time] if args.key?(:last_update_time)
|
|
4277
|
+
@last_updater = args[:last_updater] if args.key?(:last_updater)
|
|
4278
|
+
@name = args[:name] if args.key?(:name)
|
|
4279
|
+
end
|
|
4280
|
+
end
|
|
4281
|
+
|
|
4153
4282
|
# Search all IAM policies response.
|
|
4154
4283
|
class SearchAllIamPoliciesResponse
|
|
4155
4284
|
include Google::Apis::Core::Hashable
|
|
@@ -16,13 +16,13 @@ module Google
|
|
|
16
16
|
module Apis
|
|
17
17
|
module CloudassetV1
|
|
18
18
|
# Version of the google-apis-cloudasset_v1 gem
|
|
19
|
-
GEM_VERSION = "0.
|
|
19
|
+
GEM_VERSION = "0.21.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
22
|
GENERATOR_VERSION = "0.4.0"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20211105"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -448,6 +448,12 @@ module Google
|
|
|
448
448
|
include Google::Apis::Core::JsonObjectSupport
|
|
449
449
|
end
|
|
450
450
|
|
|
451
|
+
class ListSavedQueriesResponse
|
|
452
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
453
|
+
|
|
454
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
455
|
+
end
|
|
456
|
+
|
|
451
457
|
class MoveAnalysis
|
|
452
458
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
453
459
|
|
|
@@ -514,6 +520,12 @@ module Google
|
|
|
514
520
|
include Google::Apis::Core::JsonObjectSupport
|
|
515
521
|
end
|
|
516
522
|
|
|
523
|
+
class QueryContent
|
|
524
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
525
|
+
|
|
526
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
527
|
+
end
|
|
528
|
+
|
|
517
529
|
class RelatedAsset
|
|
518
530
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
519
531
|
|
|
@@ -562,6 +574,12 @@ module Google
|
|
|
562
574
|
include Google::Apis::Core::JsonObjectSupport
|
|
563
575
|
end
|
|
564
576
|
|
|
577
|
+
class SavedQuery
|
|
578
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
579
|
+
|
|
580
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
581
|
+
end
|
|
582
|
+
|
|
565
583
|
class SearchAllIamPoliciesResponse
|
|
566
584
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
567
585
|
|
|
@@ -668,6 +686,7 @@ module Google
|
|
|
668
686
|
|
|
669
687
|
property :output_config, as: 'outputConfig', class: Google::Apis::CloudassetV1::IamPolicyAnalysisOutputConfig, decorator: Google::Apis::CloudassetV1::IamPolicyAnalysisOutputConfig::Representation
|
|
670
688
|
|
|
689
|
+
property :saved_analysis_query, as: 'savedAnalysisQuery'
|
|
671
690
|
end
|
|
672
691
|
end
|
|
673
692
|
|
|
@@ -1383,6 +1402,15 @@ module Google
|
|
|
1383
1402
|
end
|
|
1384
1403
|
end
|
|
1385
1404
|
|
|
1405
|
+
class ListSavedQueriesResponse
|
|
1406
|
+
# @private
|
|
1407
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1408
|
+
property :next_page_token, as: 'nextPageToken'
|
|
1409
|
+
collection :saved_queries, as: 'savedQueries', class: Google::Apis::CloudassetV1::SavedQuery, decorator: Google::Apis::CloudassetV1::SavedQuery::Representation
|
|
1410
|
+
|
|
1411
|
+
end
|
|
1412
|
+
end
|
|
1413
|
+
|
|
1386
1414
|
class MoveAnalysis
|
|
1387
1415
|
# @private
|
|
1388
1416
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -1492,6 +1520,14 @@ module Google
|
|
|
1492
1520
|
end
|
|
1493
1521
|
end
|
|
1494
1522
|
|
|
1523
|
+
class QueryContent
|
|
1524
|
+
# @private
|
|
1525
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1526
|
+
property :iam_policy_analysis_query, as: 'iamPolicyAnalysisQuery', class: Google::Apis::CloudassetV1::IamPolicyAnalysisQuery, decorator: Google::Apis::CloudassetV1::IamPolicyAnalysisQuery::Representation
|
|
1527
|
+
|
|
1528
|
+
end
|
|
1529
|
+
end
|
|
1530
|
+
|
|
1495
1531
|
class RelatedAsset
|
|
1496
1532
|
# @private
|
|
1497
1533
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -1586,6 +1622,21 @@ module Google
|
|
|
1586
1622
|
end
|
|
1587
1623
|
end
|
|
1588
1624
|
|
|
1625
|
+
class SavedQuery
|
|
1626
|
+
# @private
|
|
1627
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1628
|
+
property :content, as: 'content', class: Google::Apis::CloudassetV1::QueryContent, decorator: Google::Apis::CloudassetV1::QueryContent::Representation
|
|
1629
|
+
|
|
1630
|
+
property :create_time, as: 'createTime'
|
|
1631
|
+
property :creator, as: 'creator'
|
|
1632
|
+
property :description, as: 'description'
|
|
1633
|
+
hash :labels, as: 'labels'
|
|
1634
|
+
property :last_update_time, as: 'lastUpdateTime'
|
|
1635
|
+
property :last_updater, as: 'lastUpdater'
|
|
1636
|
+
property :name, as: 'name'
|
|
1637
|
+
end
|
|
1638
|
+
end
|
|
1639
|
+
|
|
1589
1640
|
class SearchAllIamPoliciesResponse
|
|
1590
1641
|
# @private
|
|
1591
1642
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -331,6 +331,206 @@ module Google
|
|
|
331
331
|
execute_or_queue_command(command, &block)
|
|
332
332
|
end
|
|
333
333
|
|
|
334
|
+
# Creates a saved query in a parent project/folder/organization.
|
|
335
|
+
# @param [String] parent
|
|
336
|
+
# Required. The name of the project/folder/organization where this saved_query
|
|
337
|
+
# should be created in. It can only be an organization number (such as "
|
|
338
|
+
# organizations/123"), a folder number (such as "folders/123"), a project ID (
|
|
339
|
+
# such as "projects/my-project-id")", or a project number (such as "projects/
|
|
340
|
+
# 12345").
|
|
341
|
+
# @param [Google::Apis::CloudassetV1::SavedQuery] saved_query_object
|
|
342
|
+
# @param [String] saved_query_id
|
|
343
|
+
# Required. The ID to use for the saved query, which must be unique in the
|
|
344
|
+
# specified parent. It will become the final component of the saved query's
|
|
345
|
+
# resource name. This value should be 4-63 characters, and valid characters are /
|
|
346
|
+
# a-z-/. Notice that this field is required in the saved query creation, and the
|
|
347
|
+
# `name` field of the `saved_query` will be ignored.
|
|
348
|
+
# @param [String] fields
|
|
349
|
+
# Selector specifying which fields to include in a partial response.
|
|
350
|
+
# @param [String] quota_user
|
|
351
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
352
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
353
|
+
# @param [Google::Apis::RequestOptions] options
|
|
354
|
+
# Request-specific options
|
|
355
|
+
#
|
|
356
|
+
# @yield [result, err] Result & error if block supplied
|
|
357
|
+
# @yieldparam result [Google::Apis::CloudassetV1::SavedQuery] parsed result object
|
|
358
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
359
|
+
#
|
|
360
|
+
# @return [Google::Apis::CloudassetV1::SavedQuery]
|
|
361
|
+
#
|
|
362
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
363
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
364
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
365
|
+
def create_saved_query(parent, saved_query_object = nil, saved_query_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
366
|
+
command = make_simple_command(:post, 'v1/{+parent}/savedQueries', options)
|
|
367
|
+
command.request_representation = Google::Apis::CloudassetV1::SavedQuery::Representation
|
|
368
|
+
command.request_object = saved_query_object
|
|
369
|
+
command.response_representation = Google::Apis::CloudassetV1::SavedQuery::Representation
|
|
370
|
+
command.response_class = Google::Apis::CloudassetV1::SavedQuery
|
|
371
|
+
command.params['parent'] = parent unless parent.nil?
|
|
372
|
+
command.query['savedQueryId'] = saved_query_id unless saved_query_id.nil?
|
|
373
|
+
command.query['fields'] = fields unless fields.nil?
|
|
374
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
375
|
+
execute_or_queue_command(command, &block)
|
|
376
|
+
end
|
|
377
|
+
|
|
378
|
+
# Deletes a saved query.
|
|
379
|
+
# @param [String] name
|
|
380
|
+
# Required. The name of the saved query to delete. It must be in the format of: *
|
|
381
|
+
# projects/project_number/savedQueries/saved_query_id * folders/folder_number/
|
|
382
|
+
# savedQueries/saved_query_id * organizations/organization_number/savedQueries/
|
|
383
|
+
# saved_query_id
|
|
384
|
+
# @param [String] fields
|
|
385
|
+
# Selector specifying which fields to include in a partial response.
|
|
386
|
+
# @param [String] quota_user
|
|
387
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
388
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
389
|
+
# @param [Google::Apis::RequestOptions] options
|
|
390
|
+
# Request-specific options
|
|
391
|
+
#
|
|
392
|
+
# @yield [result, err] Result & error if block supplied
|
|
393
|
+
# @yieldparam result [Google::Apis::CloudassetV1::Empty] parsed result object
|
|
394
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
395
|
+
#
|
|
396
|
+
# @return [Google::Apis::CloudassetV1::Empty]
|
|
397
|
+
#
|
|
398
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
399
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
400
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
401
|
+
def delete_saved_query(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
402
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
|
403
|
+
command.response_representation = Google::Apis::CloudassetV1::Empty::Representation
|
|
404
|
+
command.response_class = Google::Apis::CloudassetV1::Empty
|
|
405
|
+
command.params['name'] = name unless name.nil?
|
|
406
|
+
command.query['fields'] = fields unless fields.nil?
|
|
407
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
408
|
+
execute_or_queue_command(command, &block)
|
|
409
|
+
end
|
|
410
|
+
|
|
411
|
+
# Gets details about a saved query.
|
|
412
|
+
# @param [String] name
|
|
413
|
+
# Required. The name of the saved query and it must be in the format of: *
|
|
414
|
+
# projects/project_number/savedQueries/saved_query_id * folders/folder_number/
|
|
415
|
+
# savedQueries/saved_query_id * organizations/organization_number/savedQueries/
|
|
416
|
+
# saved_query_id
|
|
417
|
+
# @param [String] fields
|
|
418
|
+
# Selector specifying which fields to include in a partial response.
|
|
419
|
+
# @param [String] quota_user
|
|
420
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
421
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
422
|
+
# @param [Google::Apis::RequestOptions] options
|
|
423
|
+
# Request-specific options
|
|
424
|
+
#
|
|
425
|
+
# @yield [result, err] Result & error if block supplied
|
|
426
|
+
# @yieldparam result [Google::Apis::CloudassetV1::SavedQuery] parsed result object
|
|
427
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
428
|
+
#
|
|
429
|
+
# @return [Google::Apis::CloudassetV1::SavedQuery]
|
|
430
|
+
#
|
|
431
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
432
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
433
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
434
|
+
def get_saved_query(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
435
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
436
|
+
command.response_representation = Google::Apis::CloudassetV1::SavedQuery::Representation
|
|
437
|
+
command.response_class = Google::Apis::CloudassetV1::SavedQuery
|
|
438
|
+
command.params['name'] = name unless name.nil?
|
|
439
|
+
command.query['fields'] = fields unless fields.nil?
|
|
440
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
441
|
+
execute_or_queue_command(command, &block)
|
|
442
|
+
end
|
|
443
|
+
|
|
444
|
+
# Lists all saved queries in a parent project/folder/organization.
|
|
445
|
+
# @param [String] parent
|
|
446
|
+
# Required. The parent project/folder/organization whose savedQueries are to be
|
|
447
|
+
# listed. It can only be using project/folder/organization number (such as "
|
|
448
|
+
# folders/12345")", or a project ID (such as "projects/my-project-id").
|
|
449
|
+
# @param [String] filter
|
|
450
|
+
# Optional. The expression to filter resources. The expression is a list of zero
|
|
451
|
+
# or more restrictions combined via logical operators `AND` and `OR`. When `AND`
|
|
452
|
+
# and `OR` are both used in the expression, parentheses must be appropriately
|
|
453
|
+
# used to group the combinations. The expression may also contain regular
|
|
454
|
+
# expressions. See https://google.aip.dev/160 for more information on the
|
|
455
|
+
# grammar.
|
|
456
|
+
# @param [Fixnum] page_size
|
|
457
|
+
# Optional. The maximum number of saved queries to return per page. The service
|
|
458
|
+
# may return fewer than this value. If unspecified, at most 50 will be returned.
|
|
459
|
+
# The maximum value is 1000; values above 1000 will be coerced to 1000.
|
|
460
|
+
# @param [String] page_token
|
|
461
|
+
# Optional. A page token, received from a previous `ListSavedQueries` call.
|
|
462
|
+
# Provide this to retrieve the subsequent page. When paginating, all other
|
|
463
|
+
# parameters provided to `ListSavedQueries` must match the call that provided
|
|
464
|
+
# the page token.
|
|
465
|
+
# @param [String] fields
|
|
466
|
+
# Selector specifying which fields to include in a partial response.
|
|
467
|
+
# @param [String] quota_user
|
|
468
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
469
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
470
|
+
# @param [Google::Apis::RequestOptions] options
|
|
471
|
+
# Request-specific options
|
|
472
|
+
#
|
|
473
|
+
# @yield [result, err] Result & error if block supplied
|
|
474
|
+
# @yieldparam result [Google::Apis::CloudassetV1::ListSavedQueriesResponse] parsed result object
|
|
475
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
476
|
+
#
|
|
477
|
+
# @return [Google::Apis::CloudassetV1::ListSavedQueriesResponse]
|
|
478
|
+
#
|
|
479
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
480
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
481
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
482
|
+
def list_saved_queries(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
483
|
+
command = make_simple_command(:get, 'v1/{+parent}/savedQueries', options)
|
|
484
|
+
command.response_representation = Google::Apis::CloudassetV1::ListSavedQueriesResponse::Representation
|
|
485
|
+
command.response_class = Google::Apis::CloudassetV1::ListSavedQueriesResponse
|
|
486
|
+
command.params['parent'] = parent unless parent.nil?
|
|
487
|
+
command.query['filter'] = filter unless filter.nil?
|
|
488
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
489
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
490
|
+
command.query['fields'] = fields unless fields.nil?
|
|
491
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
492
|
+
execute_or_queue_command(command, &block)
|
|
493
|
+
end
|
|
494
|
+
|
|
495
|
+
# Updates a saved query.
|
|
496
|
+
# @param [String] name
|
|
497
|
+
# The resource name of the saved query. The format must be: * projects/
|
|
498
|
+
# project_number/savedQueries/saved_query_id * folders/folder_number/
|
|
499
|
+
# savedQueries/saved_query_id * organizations/organization_number/savedQueries/
|
|
500
|
+
# saved_query_id
|
|
501
|
+
# @param [Google::Apis::CloudassetV1::SavedQuery] saved_query_object
|
|
502
|
+
# @param [String] update_mask
|
|
503
|
+
# Required. The list of fields to update.
|
|
504
|
+
# @param [String] fields
|
|
505
|
+
# Selector specifying which fields to include in a partial response.
|
|
506
|
+
# @param [String] quota_user
|
|
507
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
508
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
509
|
+
# @param [Google::Apis::RequestOptions] options
|
|
510
|
+
# Request-specific options
|
|
511
|
+
#
|
|
512
|
+
# @yield [result, err] Result & error if block supplied
|
|
513
|
+
# @yieldparam result [Google::Apis::CloudassetV1::SavedQuery] parsed result object
|
|
514
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
515
|
+
#
|
|
516
|
+
# @return [Google::Apis::CloudassetV1::SavedQuery]
|
|
517
|
+
#
|
|
518
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
519
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
520
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
521
|
+
def patch_saved_query(name, saved_query_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
522
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
|
523
|
+
command.request_representation = Google::Apis::CloudassetV1::SavedQuery::Representation
|
|
524
|
+
command.request_object = saved_query_object
|
|
525
|
+
command.response_representation = Google::Apis::CloudassetV1::SavedQuery::Representation
|
|
526
|
+
command.response_class = Google::Apis::CloudassetV1::SavedQuery
|
|
527
|
+
command.params['name'] = name unless name.nil?
|
|
528
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
|
529
|
+
command.query['fields'] = fields unless fields.nil?
|
|
530
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
531
|
+
execute_or_queue_command(command, &block)
|
|
532
|
+
end
|
|
533
|
+
|
|
334
534
|
# Analyzes IAM policies to answer which identities have what accesses on which
|
|
335
535
|
# resources.
|
|
336
536
|
# @param [String] scope
|
|
@@ -421,6 +621,18 @@ module Google
|
|
|
421
621
|
# you will get a response with partial result. Otherwise, your query's execution
|
|
422
622
|
# will continue until the RPC deadline. If it's not finished until then, you
|
|
423
623
|
# will get a DEADLINE_EXCEEDED error. Default is empty.
|
|
624
|
+
# @param [String] saved_analysis_query
|
|
625
|
+
# Optional. The name of a saved query, which must be in the format of: *
|
|
626
|
+
# projects/project_number/savedQueries/saved_query_id * folders/folder_number/
|
|
627
|
+
# savedQueries/saved_query_id * organizations/organization_number/savedQueries/
|
|
628
|
+
# saved_query_id If both `analysis_query` and `saved_analysis_query` are
|
|
629
|
+
# provided, they will be merged together with the `saved_analysis_query` as base
|
|
630
|
+
# and the `analysis_query` as overrides. For more details of the merge behavior,
|
|
631
|
+
# please refer to the [MergeFrom](https://developers.google.com/protocol-buffers/
|
|
632
|
+
# docs/reference/cpp/google.protobuf.message#Message.MergeFrom.details) page.
|
|
633
|
+
# Note that you cannot override primitive fields with default value, such as 0
|
|
634
|
+
# or empty string, etc., because we use proto3, which doesn't support field
|
|
635
|
+
# presence yet.
|
|
424
636
|
# @param [String] fields
|
|
425
637
|
# Selector specifying which fields to include in a partial response.
|
|
426
638
|
# @param [String] quota_user
|
|
@@ -438,7 +650,7 @@ module Google
|
|
|
438
650
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
439
651
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
440
652
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
441
|
-
def analyze_iam_policy(scope, analysis_query_access_selector_permissions: nil, analysis_query_access_selector_roles: nil, analysis_query_condition_context_access_time: nil, analysis_query_identity_selector_identity: nil, analysis_query_options_analyze_service_account_impersonation: nil, analysis_query_options_expand_groups: nil, analysis_query_options_expand_resources: nil, analysis_query_options_expand_roles: nil, analysis_query_options_output_group_edges: nil, analysis_query_options_output_resource_edges: nil, analysis_query_resource_selector_full_resource_name: nil, execution_timeout: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
653
|
+
def analyze_iam_policy(scope, analysis_query_access_selector_permissions: nil, analysis_query_access_selector_roles: nil, analysis_query_condition_context_access_time: nil, analysis_query_identity_selector_identity: nil, analysis_query_options_analyze_service_account_impersonation: nil, analysis_query_options_expand_groups: nil, analysis_query_options_expand_resources: nil, analysis_query_options_expand_roles: nil, analysis_query_options_output_group_edges: nil, analysis_query_options_output_resource_edges: nil, analysis_query_resource_selector_full_resource_name: nil, execution_timeout: nil, saved_analysis_query: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
442
654
|
command = make_simple_command(:get, 'v1/{+scope}:analyzeIamPolicy', options)
|
|
443
655
|
command.response_representation = Google::Apis::CloudassetV1::AnalyzeIamPolicyResponse::Representation
|
|
444
656
|
command.response_class = Google::Apis::CloudassetV1::AnalyzeIamPolicyResponse
|
|
@@ -455,6 +667,7 @@ module Google
|
|
|
455
667
|
command.query['analysisQuery.options.outputResourceEdges'] = analysis_query_options_output_resource_edges unless analysis_query_options_output_resource_edges.nil?
|
|
456
668
|
command.query['analysisQuery.resourceSelector.fullResourceName'] = analysis_query_resource_selector_full_resource_name unless analysis_query_resource_selector_full_resource_name.nil?
|
|
457
669
|
command.query['executionTimeout'] = execution_timeout unless execution_timeout.nil?
|
|
670
|
+
command.query['savedAnalysisQuery'] = saved_analysis_query unless saved_analysis_query.nil?
|
|
458
671
|
command.query['fields'] = fields unless fields.nil?
|
|
459
672
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
460
673
|
execute_or_queue_command(command, &block)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-apis-cloudasset_v1
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.21.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-11-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: google-apis-core
|
|
@@ -58,7 +58,7 @@ licenses:
|
|
|
58
58
|
metadata:
|
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudasset_v1/CHANGELOG.md
|
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudasset_v1/v0.
|
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudasset_v1/v0.21.0
|
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudasset_v1
|
|
63
63
|
post_install_message:
|
|
64
64
|
rdoc_options: []
|