google-cloud-asset-v1 0.9.0 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -79,7 +79,8 @@ module Google
79
79
  # [resource
80
80
  # hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
81
81
  # a resource outside the Google Cloud resource hierarchy (such as Google
82
- # Kubernetes Engine clusters and objects), or a policy (e.g. Cloud IAM policy).
82
+ # Kubernetes Engine clusters and objects), or a policy (e.g. Cloud IAM policy),
83
+ # or a relationship (e.g. an INSTANCE_TO_INSTANCEGROUP relationship).
83
84
  # See [Supported asset
84
85
  # types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
85
86
  # for more information.
@@ -230,14 +231,40 @@ module Google
230
231
  # @!attribute [rw] project
231
232
  # @return [::String]
232
233
  # The project that this resource belongs to, in the form of
233
- # projects/\\{PROJECT_NUMBER}.
234
+ # projects/\\{PROJECT_NUMBER}. This field is available when the resource
235
+ # belongs to a project.
234
236
  #
235
- # To search against the `project`:
237
+ # To search against `project`:
236
238
  #
239
+ # * use a field query. Example: `project:12345`
240
+ # * use a free text query. Example: `12345`
237
241
  # * specify the `scope` field as this project in your search request.
242
+ # @!attribute [rw] folders
243
+ # @return [::Array<::String>]
244
+ # The folder(s) that this resource belongs to, in the form of
245
+ # folders/\\{FOLDER_NUMBER}. This field is available when the resource
246
+ # belongs to one or more folders.
247
+ #
248
+ # To search against `folders`:
249
+ #
250
+ # * use a field query. Example: `folders:(123 OR 456)`
251
+ # * use a free text query. Example: `123`
252
+ # * specify the `scope` field as this folder in your search request.
253
+ # @!attribute [rw] organization
254
+ # @return [::String]
255
+ # The organization that this resource belongs to, in the form of
256
+ # organizations/\\{ORGANIZATION_NUMBER}. This field is available when the
257
+ # resource belongs to an organization.
258
+ #
259
+ # To search against `organization`:
260
+ #
261
+ # * use a field query. Example: `organization:123`
262
+ # * use a free text query. Example: `123`
263
+ # * specify the `scope` field as this organization in your search request.
238
264
  # @!attribute [rw] display_name
239
265
  # @return [::String]
240
- # The display name of this resource.
266
+ # The display name of this resource. This field is available only when the
267
+ # resource's proto contains it.
241
268
  #
242
269
  # To search against the `display_name`:
243
270
  #
@@ -246,16 +273,18 @@ module Google
246
273
  # @!attribute [rw] description
247
274
  # @return [::String]
248
275
  # One or more paragraphs of text description of this resource. Maximum length
249
- # could be up to 1M bytes.
276
+ # could be up to 1M bytes. This field is available only when the resource's
277
+ # proto contains it.
250
278
  #
251
279
  # To search against the `description`:
252
280
  #
253
- # * use a field query. Example: `description:"*important instance*"`
254
- # * use a free text query. Example: `"*important instance*"`
281
+ # * use a field query. Example: `description:"important instance"`
282
+ # * use a free text query. Example: `"important instance"`
255
283
  # @!attribute [rw] location
256
284
  # @return [::String]
257
285
  # Location can be `global`, regional like `us-east1`, or zonal like
258
- # `us-west1-b`.
286
+ # `us-west1-b`. This field is available only when the resource's proto
287
+ # contains it.
259
288
  #
260
289
  # To search against the `location`:
261
290
  #
@@ -265,7 +294,8 @@ module Google
265
294
  # @return [::Google::Protobuf::Map{::String => ::String}]
266
295
  # Labels associated with this resource. See [Labelling and grouping GCP
267
296
  # resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
268
- # for more information.
297
+ # for more information. This field is available only when the resource's
298
+ # proto contains it.
269
299
  #
270
300
  # To search against the `labels`:
271
301
  #
@@ -279,12 +309,73 @@ module Google
279
309
  # Network tags associated with this resource. Like labels, network tags are a
280
310
  # type of annotations used to group GCP resources. See [Labelling GCP
281
311
  # resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
282
- # for more information.
312
+ # for more information. This field is available only when the resource's
313
+ # proto contains it.
283
314
  #
284
315
  # To search against the `network_tags`:
285
316
  #
286
317
  # * use a field query. Example: `networkTags:internal`
287
318
  # * use a free text query. Example: `internal`
319
+ # @!attribute [rw] kms_key
320
+ # @return [::String]
321
+ # The Cloud KMS
322
+ # [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys?hl=en)
323
+ # name or
324
+ # [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en)
325
+ # name. This field is available only when the resource's proto contains it.
326
+ #
327
+ # To search against the `kms_key`:
328
+ #
329
+ # * use a field query. Example: `kmsKey:key`
330
+ # * use a free text query. Example: `key`
331
+ # @!attribute [rw] create_time
332
+ # @return [::Google::Protobuf::Timestamp]
333
+ # The create timestamp of this resource, at which the resource was created.
334
+ # The granularity is in seconds. Timestamp.nanos will always be 0. This field
335
+ # is available only when the resource's proto contains it.
336
+ #
337
+ # To search against `create_time`:
338
+ #
339
+ # * use a field query.
340
+ # - value in seconds since unix epoch. Example: `createTime > 1609459200`
341
+ # - value in date string. Example: `createTime > 2021-01-01`
342
+ # - value in date-time string (must be quoted). Example: `createTime >
343
+ # "2021-01-01T00:00:00"`
344
+ # @!attribute [rw] update_time
345
+ # @return [::Google::Protobuf::Timestamp]
346
+ # The last update timestamp of this resource, at which the resource was last
347
+ # modified or deleted. The granularity is in seconds. Timestamp.nanos will
348
+ # always be 0. This field is available only when the resource's proto
349
+ # contains it.
350
+ #
351
+ # To search against `update_time`:
352
+ #
353
+ # * use a field query.
354
+ # - value in seconds since unix epoch. Example: `updateTime < 1609459200`
355
+ # - value in date string. Example: `updateTime < 2021-01-01`
356
+ # - value in date-time string (must be quoted). Example: `updateTime <
357
+ # "2021-01-01T00:00:00"`
358
+ # @!attribute [rw] state
359
+ # @return [::String]
360
+ # The state of this resource. Different resources types have different state
361
+ # definitions that are mapped from various fields of different resource
362
+ # types. This field is available only when the resource's proto contains it.
363
+ #
364
+ # Example:
365
+ # If the resource is an instance provided by Compute Engine,
366
+ # its state will include PROVISIONING, STAGING, RUNNING, STOPPING,
367
+ # SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. See `status` definition
368
+ # in [API
369
+ # Reference](https://cloud.google.com/compute/docs/reference/rest/v1/instances).
370
+ # If the resource is a project provided by Cloud Resource Manager, its state
371
+ # will include LIFECYCLE_STATE_UNSPECIFIED, ACTIVE, DELETE_REQUESTED and
372
+ # DELETE_IN_PROGRESS. See `lifecycleState` definition in [API
373
+ # Reference](https://cloud.google.com/resource-manager/reference/rest/v1/projects).
374
+ #
375
+ # To search against the `state`:
376
+ #
377
+ # * use a field query. Example: `state:RUNNING`
378
+ # * use a free text query. Example: `RUNNING`
288
379
  # @!attribute [rw] additional_attributes
289
380
  # @return [::Google::Protobuf::Struct]
290
381
  # The additional searchable attributes of this resource. The attributes may
@@ -294,7 +385,7 @@ module Google
294
385
  # corresponding GCP service (e.g., Compute Engine). see [API references and
295
386
  # supported searchable
296
387
  # attributes](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types)
297
- # for more information.
388
+ # to see which fields are included.
298
389
  #
299
390
  # You can search values of these fields through free text search. However,
300
391
  # you should not consume the field programically as the field names and
@@ -306,6 +397,25 @@ module Google
306
397
  # * use a free text query to match the attributes values. Example: to search
307
398
  # `additional_attributes = { dnsName: "foobar" }`, you can issue a query
308
399
  # `foobar`.
400
+ # @!attribute [rw] parent_full_resource_name
401
+ # @return [::String]
402
+ # The full resource name of this resource's parent, if it has one.
403
+ # To search against the `parent_full_resource_name`:
404
+ #
405
+ # * use a field query. Example:
406
+ # `parentFullResourceName:"project-name"`
407
+ # * use a free text query. Example:
408
+ # `project-name`
409
+ # @!attribute [rw] parent_asset_type
410
+ # @return [::String]
411
+ # The type of this resource's immediate parent, if there is one.
412
+ #
413
+ # To search against the `parent_asset_type`:
414
+ #
415
+ # * use a field query. Example:
416
+ # `parentAssetType:"cloudresourcemanager.googleapis.com/Project"`
417
+ # * use a free text query. Example:
418
+ # `cloudresourcemanager.googleapis.com/Project`
309
419
  class ResourceSearchResult
310
420
  include ::Google::Protobuf::MessageExts
311
421
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -333,17 +443,47 @@ module Google
333
443
  # To search against the `resource`:
334
444
  #
335
445
  # * use a field query. Example: `resource:organizations/123`
446
+ # @!attribute [rw] asset_type
447
+ # @return [::String]
448
+ # The type of the resource associated with this IAM policy. Example:
449
+ # `compute.googleapis.com/Disk`.
450
+ #
451
+ # To search against the `asset_type`:
452
+ #
453
+ # * specify the `asset_types` field in your search request.
336
454
  # @!attribute [rw] project
337
455
  # @return [::String]
338
456
  # The project that the associated GCP resource belongs to, in the form of
339
457
  # projects/\\{PROJECT_NUMBER}. If an IAM policy is set on a resource (like VM
340
458
  # instance, Cloud Storage bucket), the project field will indicate the
341
459
  # project that contains the resource. If an IAM policy is set on a folder or
342
- # orgnization, the project field will be empty.
460
+ # orgnization, this field will be empty.
343
461
  #
344
462
  # To search against the `project`:
345
463
  #
346
464
  # * specify the `scope` field as this project in your search request.
465
+ # @!attribute [rw] folders
466
+ # @return [::Array<::String>]
467
+ # The folder(s) that the IAM policy belongs to, in the form of
468
+ # folders/\\{FOLDER_NUMBER}. This field is available when the IAM policy
469
+ # belongs to one or more folders.
470
+ #
471
+ # To search against `folders`:
472
+ #
473
+ # * use a field query. Example: `folders:(123 OR 456)`
474
+ # * use a free text query. Example: `123`
475
+ # * specify the `scope` field as this folder in your search request.
476
+ # @!attribute [rw] organization
477
+ # @return [::String]
478
+ # The organization that the IAM policy belongs to, in the form
479
+ # of organizations/\\{ORGANIZATION_NUMBER}. This field is available when the
480
+ # IAM policy belongs to an organization.
481
+ #
482
+ # To search against `organization`:
483
+ #
484
+ # * use a field query. Example: `organization:123`
485
+ # * use a free text query. Example: `123`
486
+ # * specify the `scope` field as this organization in your search request.
347
487
  # @!attribute [rw] policy
348
488
  # @return [::Google::Iam::V1::Policy]
349
489
  # The IAM policy directly set on the given resource. Note that the original
@@ -420,6 +560,32 @@ module Google
420
560
  extend ::Google::Protobuf::MessageExts::ClassMethods
421
561
  end
422
562
 
563
+ # The Condition evaluation.
564
+ # @!attribute [rw] evaluation_value
565
+ # @return [::Google::Cloud::Asset::V1::ConditionEvaluation::EvaluationValue]
566
+ # The evaluation result.
567
+ class ConditionEvaluation
568
+ include ::Google::Protobuf::MessageExts
569
+ extend ::Google::Protobuf::MessageExts::ClassMethods
570
+
571
+ # Value of this expression.
572
+ module EvaluationValue
573
+ # Reserved for future use.
574
+ EVALUATION_VALUE_UNSPECIFIED = 0
575
+
576
+ # The evaluation result is `true`.
577
+ TRUE = 1
578
+
579
+ # The evaluation result is `false`.
580
+ FALSE = 2
581
+
582
+ # The evaluation result is `conditional` when the condition expression
583
+ # contains variables that are either missing input values or have not been
584
+ # supported by Analyzer yet.
585
+ CONDITIONAL = 3
586
+ end
587
+ end
588
+
423
589
  # IAM Policy analysis result, consisting of one IAM policy binding and derived
424
590
  # access control lists.
425
591
  # @!attribute [rw] attached_resource_full_name
@@ -542,6 +708,10 @@ module Google
542
708
  # the full resource name of a parent resource and {::Google::Cloud::Asset::V1::IamPolicyAnalysisResult::Edge#target_node Edge.target_node}
543
709
  # contains the full resource name of a child resource. This field is
544
710
  # present only if the output_resource_edges option is enabled in request.
711
+ # @!attribute [rw] condition_evaluation
712
+ # @return [::Google::Cloud::Asset::V1::ConditionEvaluation]
713
+ # Condition evaluation for this AccessControlList, if there is a condition
714
+ # defined in the above IAM policy binding.
545
715
  class AccessControlList
546
716
  include ::Google::Protobuf::MessageExts
547
717
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -25,7 +25,7 @@ module Google
25
25
  # @return [::String]
26
26
  # The server-assigned name, which is only unique within the same service that
27
27
  # originally returns it. If you use the default HTTP mapping, the
28
- # `name` should have the format of `operations/some/unique/name`.
28
+ # `name` should be a resource name ending with `operations/{unique_id}`.
29
29
  # @!attribute [rw] metadata
30
30
  # @return [::Google::Protobuf::Any]
31
31
  # Service-specific metadata associated with the operation. It typically
@@ -35,7 +35,7 @@ module Google
35
35
  # @!attribute [rw] done
36
36
  # @return [::Boolean]
37
37
  # If the value is `false`, it means the operation is still in progress.
38
- # If true, the operation is completed, and either `error` or `response` is
38
+ # If `true`, the operation is completed, and either `error` or `response` is
39
39
  # available.
40
40
  # @!attribute [rw] error
41
41
  # @return [::Google::Rpc::Status]
@@ -67,7 +67,7 @@ module Google
67
67
  # The request message for Operations.ListOperations.
68
68
  # @!attribute [rw] name
69
69
  # @return [::String]
70
- # The name of the operation collection.
70
+ # The name of the operation's parent resource.
71
71
  # @!attribute [rw] filter
72
72
  # @return [::String]
73
73
  # The standard list filter.
@@ -112,6 +112,20 @@ module Google
112
112
  extend ::Google::Protobuf::MessageExts::ClassMethods
113
113
  end
114
114
 
115
+ # The request message for Operations.WaitOperation.
116
+ # @!attribute [rw] name
117
+ # @return [::String]
118
+ # The name of the operation resource to wait on.
119
+ # @!attribute [rw] timeout
120
+ # @return [::Google::Protobuf::Duration]
121
+ # The maximum duration to wait before timing out. If left blank, the wait
122
+ # will be at most the time permitted by the underlying HTTP/RPC protocol.
123
+ # If RPC context deadline is also specified, the shorter one will be used.
124
+ class WaitOperationRequest
125
+ include ::Google::Protobuf::MessageExts
126
+ extend ::Google::Protobuf::MessageExts::ClassMethods
127
+ end
128
+
115
129
  # A message representing the message types used by a long-running operation.
116
130
  #
117
131
  # Example:
@@ -57,10 +57,13 @@ module Google
57
57
  # Example 4: Pack and unpack a message in Go
58
58
  #
59
59
  # foo := &pb.Foo{...}
60
- # any, err := ptypes.MarshalAny(foo)
60
+ # any, err := anypb.New(foo)
61
+ # if err != nil {
62
+ # ...
63
+ # }
61
64
  # ...
62
65
  # foo := &pb.Foo{}
63
- # if err := ptypes.UnmarshalAny(any, foo); err != nil {
66
+ # if err := any.UnmarshalTo(foo); err != nil {
64
67
  # ...
65
68
  # }
66
69
  #
@@ -70,7 +70,16 @@ module Google
70
70
  # .setNanos((int) ((millis % 1000) * 1000000)).build();
71
71
  #
72
72
  #
73
- # Example 5: Compute Timestamp from current time in Python.
73
+ # Example 5: Compute Timestamp from Java `Instant.now()`.
74
+ #
75
+ # Instant now = Instant.now();
76
+ #
77
+ # Timestamp timestamp =
78
+ # Timestamp.newBuilder().setSeconds(now.getEpochSecond())
79
+ # .setNanos(now.getNano()).build();
80
+ #
81
+ #
82
+ # Example 6: Compute Timestamp from current time in Python.
74
83
  #
75
84
  # timestamp = Timestamp()
76
85
  # timestamp.GetCurrentTime()
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-asset-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.13.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: 2020-12-07 00:00:00.000000000 Z
11
+ date: 2021-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0.5'
20
+ - - "<"
18
21
  - !ruby/object:Gem::Version
19
- version: '0.3'
22
+ version: 2.a
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '0.5'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: '0.3'
32
+ version: 2.a
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: google-cloud-errors
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -47,7 +53,7 @@ dependencies:
47
53
  version: 0.6.10
48
54
  - - "<"
49
55
  - !ruby/object:Gem::Version
50
- version: '2.0'
56
+ version: 2.a
51
57
  type: :runtime
52
58
  prerelease: false
53
59
  version_requirements: !ruby/object:Gem::Requirement
@@ -57,21 +63,21 @@ dependencies:
57
63
  version: 0.6.10
58
64
  - - "<"
59
65
  - !ruby/object:Gem::Version
60
- version: '2.0'
66
+ version: 2.a
61
67
  - !ruby/object:Gem::Dependency
62
68
  name: google-style
63
69
  requirement: !ruby/object:Gem::Requirement
64
70
  requirements:
65
71
  - - "~>"
66
72
  - !ruby/object:Gem::Version
67
- version: 1.24.0
73
+ version: 1.25.1
68
74
  type: :development
69
75
  prerelease: false
70
76
  version_requirements: !ruby/object:Gem::Requirement
71
77
  requirements:
72
78
  - - "~>"
73
79
  - !ruby/object:Gem::Version
74
- version: 1.24.0
80
+ version: 1.25.1
75
81
  - !ruby/object:Gem::Dependency
76
82
  name: minitest
77
83
  requirement: !ruby/object:Gem::Requirement
@@ -171,7 +177,9 @@ dependencies:
171
177
  - !ruby/object:Gem::Version
172
178
  version: '0.9'
173
179
  description: A metadata inventory service that allows you to view, monitor, and analyze
174
- all your GCP and Anthos assets across projects and services.
180
+ all your GCP and Anthos assets across projects and services. Note that google-cloud-asset-v1
181
+ is a version-specific client library. For most uses, we recommend installing the
182
+ main client library google-cloud-asset instead. See the readme for more details.
175
183
  email: googleapis-packages@google.com
176
184
  executables: []
177
185
  extensions: []
@@ -233,14 +241,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
233
241
  requirements:
234
242
  - - ">="
235
243
  - !ruby/object:Gem::Version
236
- version: '2.4'
244
+ version: '2.5'
237
245
  required_rubygems_version: !ruby/object:Gem::Requirement
238
246
  requirements:
239
247
  - - ">="
240
248
  - !ruby/object:Gem::Version
241
249
  version: '0'
242
250
  requirements: []
243
- rubygems_version: 3.1.4
251
+ rubygems_version: 3.2.17
244
252
  signing_key:
245
253
  specification_version: 4
246
254
  summary: API Client library for the Cloud Asset V1 API