google-apis-cloudasset_v1p5beta1 0.1.0 → 0.6.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: febf7053e2abe42e63c32b642040448bf381f0c2bbb22fe61c432d995622c833
4
- data.tar.gz: 0fa2967136b03d8d9a6d2d630cc0f089fe73e1b1d9476f7af91c7ee96da6fe51
3
+ metadata.gz: 6cabb7364aa1fda7670c244f24e2c070915974c0808bb7cac59cb2e843013b45
4
+ data.tar.gz: a32d856097a83e379143f356882c34a537217816537285aca38aeff5eb35f389
5
5
  SHA512:
6
- metadata.gz: 663ab1b791ce1ba8c22d5a30dbb764caf817c86fd3c2213051042861fdf8d42ddb11f06eadca6b212ed0b2d0eed140be14b6650ec8c768d8bd6ef328a47aaebe
7
- data.tar.gz: e62675ecbe11ff72e9630585e3a3385dc6b66fff16f7e45390a3f12800871ccc21fbc89363621cde354d960b30c7fe3f64bf522c40b3dbb1975ea38c72129429
6
+ metadata.gz: 859350b55381514d0aa2c2aef867739b107589969fbdaba583ac42b52ca6a2142d98f0db96dea8730102650e2e8e2d304c7348933e684010b8d0c96e02dc8b72
7
+ data.tar.gz: f725171177468ae3186abfb1727efec8f6f0694125c55fce7886c6bd86d966f288307480797d9aab7e0f645470693c42b2d28e4893060fd8acaa4883eafb17bf
data/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # Release history for google-apis-cloudasset_v1p5beta1
2
2
 
3
+ ### v0.6.0 (2021-04-22)
4
+
5
+ * Regenerated from discovery document revision 20210416
6
+
7
+ ### v0.5.0 (2021-03-31)
8
+
9
+ * Regenerated from discovery document revision 20210326
10
+
11
+ ### v0.4.0 (2021-03-09)
12
+
13
+ * Regenerated from discovery document revision 20210305
14
+ * Regenerated using generator version 0.2.0
15
+
16
+ ### v0.3.0 (2021-03-04)
17
+
18
+ * Regenerated from discovery document revision 20210226
19
+
20
+ ### v0.2.0 (2021-01-20)
21
+
22
+ * Regenerated from discovery document revision 20210119
23
+ * Regenerated using generator version 0.1.2
24
+
3
25
  ### v0.1.0 (2021-01-07)
4
26
 
5
27
  * Regenerated using generator version 0.1.1
@@ -29,7 +29,7 @@ module Google
29
29
  # This is NOT the gem version.
30
30
  VERSION = 'V1p5beta1'
31
31
 
32
- # View and manage your data across Google Cloud Platform services
32
+ # See, edit, configure, and delete your Google Cloud Platform data
33
33
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
34
34
  end
35
35
  end
@@ -22,6 +22,19 @@ module Google
22
22
  module Apis
23
23
  module CloudassetV1p5beta1
24
24
 
25
+ # A response message for AssetService.AnalyzeIamPolicyLongrunning.
26
+ class AnalyzeIamPolicyLongrunningResponse
27
+ include Google::Apis::Core::Hashable
28
+
29
+ def initialize(**args)
30
+ update!(**args)
31
+ end
32
+
33
+ # Update properties of this object
34
+ def update!(**args)
35
+ end
36
+ end
37
+
25
38
  # An asset in Google Cloud. An asset can be any resource in the Google Cloud [
26
39
  # resource hierarchy](https://cloud.google.com/resource-manager/docs/cloud-
27
40
  # platform-resource-hierarchy), a resource outside the Google Cloud resource
@@ -343,6 +356,326 @@ module Google
343
356
  end
344
357
  end
345
358
 
359
+ # An asset in Google Cloud. An asset can be any resource in the Google Cloud [
360
+ # resource hierarchy](https://cloud.google.com/resource-manager/docs/cloud-
361
+ # platform-resource-hierarchy), a resource outside the Google Cloud resource
362
+ # hierarchy (such as Google Kubernetes Engine clusters and objects), or a policy
363
+ # (e.g. Cloud IAM policy). See [Supported asset types](https://cloud.google.com/
364
+ # asset-inventory/docs/supported-asset-types) for more information.
365
+ class GoogleCloudAssetV1p7beta1Asset
366
+ include Google::Apis::Core::Hashable
367
+
368
+ # An `AccessLevel` is a label that can be applied to requests to Google Cloud
369
+ # services, along with a list of requirements necessary for the label to be
370
+ # applied.
371
+ # Corresponds to the JSON property `accessLevel`
372
+ # @return [Google::Apis::CloudassetV1p5beta1::GoogleIdentityAccesscontextmanagerV1AccessLevel]
373
+ attr_accessor :access_level
374
+
375
+ # `AccessPolicy` is a container for `AccessLevels` (which define the necessary
376
+ # attributes to use Google Cloud services) and `ServicePerimeters` (which define
377
+ # regions of services able to freely pass data within a perimeter). An access
378
+ # policy is globally visible within an organization, and the restrictions it
379
+ # specifies apply to all projects within an organization.
380
+ # Corresponds to the JSON property `accessPolicy`
381
+ # @return [Google::Apis::CloudassetV1p5beta1::GoogleIdentityAccesscontextmanagerV1AccessPolicy]
382
+ attr_accessor :access_policy
383
+
384
+ # The ancestry path of an asset in Google Cloud [resource hierarchy](https://
385
+ # cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
386
+ # represented as a list of relative resource names. An ancestry path starts with
387
+ # the closest ancestor in the hierarchy and ends at root. If the asset is a
388
+ # project, folder, or organization, the ancestry path starts from the asset
389
+ # itself. Example: `["projects/123456789", "folders/5432", "organizations/1234"]`
390
+ # Corresponds to the JSON property `ancestors`
391
+ # @return [Array<String>]
392
+ attr_accessor :ancestors
393
+
394
+ # The type of the asset. Example: `compute.googleapis.com/Disk` See [Supported
395
+ # asset types](https://cloud.google.com/asset-inventory/docs/supported-asset-
396
+ # types) for more information.
397
+ # Corresponds to the JSON property `assetType`
398
+ # @return [String]
399
+ attr_accessor :asset_type
400
+
401
+ # An Identity and Access Management (IAM) policy, which specifies access
402
+ # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
403
+ # A `binding` binds one or more `members` to a single `role`. Members can be
404
+ # user accounts, service accounts, Google groups, and domains (such as G Suite).
405
+ # A `role` is a named list of permissions; each `role` can be an IAM predefined
406
+ # role or a user-created custom role. For some types of Google Cloud resources,
407
+ # a `binding` can also specify a `condition`, which is a logical expression that
408
+ # allows access to a resource only if the expression evaluates to `true`. A
409
+ # condition can add constraints based on attributes of the request, the resource,
410
+ # or both. To learn which resources support conditions in their IAM policies,
411
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
412
+ # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
413
+ # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
414
+ # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
415
+ # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
416
+ # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
417
+ # title": "expirable access", "description": "Does not grant access after Sep
418
+ # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
419
+ # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
420
+ # members: - user:mike@example.com - group:admins@example.com - domain:google.
421
+ # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
422
+ # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
423
+ # roles/resourcemanager.organizationViewer condition: title: expirable access
424
+ # description: Does not grant access after Sep 2020 expression: request.time <
425
+ # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
426
+ # description of IAM and its features, see the [IAM documentation](https://cloud.
427
+ # google.com/iam/docs/).
428
+ # Corresponds to the JSON property `iamPolicy`
429
+ # @return [Google::Apis::CloudassetV1p5beta1::Policy]
430
+ attr_accessor :iam_policy
431
+
432
+ # The full name of the asset. Example: `//compute.googleapis.com/projects/
433
+ # my_project_123/zones/zone1/instances/instance1` See [Resource names](https://
434
+ # cloud.google.com/apis/design/resource_names#full_resource_name) for more
435
+ # information.
436
+ # Corresponds to the JSON property `name`
437
+ # @return [String]
438
+ attr_accessor :name
439
+
440
+ # A representation of an [organization policy](https://cloud.google.com/resource-
441
+ # manager/docs/organization-policy/overview#organization_policy). There can be
442
+ # more than one organization policy with different constraints set on a given
443
+ # resource.
444
+ # Corresponds to the JSON property `orgPolicy`
445
+ # @return [Array<Google::Apis::CloudassetV1p5beta1::GoogleCloudOrgpolicyV1Policy>]
446
+ attr_accessor :org_policy
447
+
448
+ # The detailed related assets with the `relationship_type`.
449
+ # Corresponds to the JSON property `relatedAssets`
450
+ # @return [Google::Apis::CloudassetV1p5beta1::GoogleCloudAssetV1p7beta1RelatedAssets]
451
+ attr_accessor :related_assets
452
+
453
+ # A representation of a Google Cloud resource.
454
+ # Corresponds to the JSON property `resource`
455
+ # @return [Google::Apis::CloudassetV1p5beta1::GoogleCloudAssetV1p7beta1Resource]
456
+ attr_accessor :resource
457
+
458
+ # `ServicePerimeter` describes a set of Google Cloud resources which can freely
459
+ # import and export data amongst themselves, but not export outside of the `
460
+ # ServicePerimeter`. If a request with a source within this `ServicePerimeter`
461
+ # has a target outside of the `ServicePerimeter`, the request will be blocked.
462
+ # Otherwise the request is allowed. There are two types of Service Perimeter -
463
+ # Regular and Bridge. Regular Service Perimeters cannot overlap, a single Google
464
+ # Cloud project can only belong to a single regular Service Perimeter. Service
465
+ # Perimeter Bridges can contain only Google Cloud projects as members, a single
466
+ # Google Cloud project may belong to multiple Service Perimeter Bridges.
467
+ # Corresponds to the JSON property `servicePerimeter`
468
+ # @return [Google::Apis::CloudassetV1p5beta1::GoogleIdentityAccesscontextmanagerV1ServicePerimeter]
469
+ attr_accessor :service_perimeter
470
+
471
+ # The last update timestamp of an asset. update_time is updated when create/
472
+ # update/delete operation is performed.
473
+ # Corresponds to the JSON property `updateTime`
474
+ # @return [String]
475
+ attr_accessor :update_time
476
+
477
+ def initialize(**args)
478
+ update!(**args)
479
+ end
480
+
481
+ # Update properties of this object
482
+ def update!(**args)
483
+ @access_level = args[:access_level] if args.key?(:access_level)
484
+ @access_policy = args[:access_policy] if args.key?(:access_policy)
485
+ @ancestors = args[:ancestors] if args.key?(:ancestors)
486
+ @asset_type = args[:asset_type] if args.key?(:asset_type)
487
+ @iam_policy = args[:iam_policy] if args.key?(:iam_policy)
488
+ @name = args[:name] if args.key?(:name)
489
+ @org_policy = args[:org_policy] if args.key?(:org_policy)
490
+ @related_assets = args[:related_assets] if args.key?(:related_assets)
491
+ @resource = args[:resource] if args.key?(:resource)
492
+ @service_perimeter = args[:service_perimeter] if args.key?(:service_perimeter)
493
+ @update_time = args[:update_time] if args.key?(:update_time)
494
+ end
495
+ end
496
+
497
+ # An asset identify in Google Cloud which contains its name, type and ancestors.
498
+ # An asset can be any resource in the Google Cloud [resource hierarchy](https://
499
+ # cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy), a
500
+ # resource outside the Google Cloud resource hierarchy (such as Google
501
+ # Kubernetes Engine clusters and objects), or a policy (e.g. Cloud IAM policy).
502
+ # See [Supported asset types](https://cloud.google.com/asset-inventory/docs/
503
+ # supported-asset-types) for more information.
504
+ class GoogleCloudAssetV1p7beta1RelatedAsset
505
+ include Google::Apis::Core::Hashable
506
+
507
+ # The ancestors of an asset in Google Cloud [resource hierarchy](https://cloud.
508
+ # google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
509
+ # represented as a list of relative resource names. An ancestry path starts with
510
+ # the closest ancestor in the hierarchy and ends at root. Example: `["projects/
511
+ # 123456789", "folders/5432", "organizations/1234"]`
512
+ # Corresponds to the JSON property `ancestors`
513
+ # @return [Array<String>]
514
+ attr_accessor :ancestors
515
+
516
+ # The full name of the asset. Example: `//compute.googleapis.com/projects/
517
+ # my_project_123/zones/zone1/instances/instance1` See [Resource names](https://
518
+ # cloud.google.com/apis/design/resource_names#full_resource_name) for more
519
+ # information.
520
+ # Corresponds to the JSON property `asset`
521
+ # @return [String]
522
+ attr_accessor :asset
523
+
524
+ # The type of the asset. Example: `compute.googleapis.com/Disk` See [Supported
525
+ # asset types](https://cloud.google.com/asset-inventory/docs/supported-asset-
526
+ # types) for more information.
527
+ # Corresponds to the JSON property `assetType`
528
+ # @return [String]
529
+ attr_accessor :asset_type
530
+
531
+ def initialize(**args)
532
+ update!(**args)
533
+ end
534
+
535
+ # Update properties of this object
536
+ def update!(**args)
537
+ @ancestors = args[:ancestors] if args.key?(:ancestors)
538
+ @asset = args[:asset] if args.key?(:asset)
539
+ @asset_type = args[:asset_type] if args.key?(:asset_type)
540
+ end
541
+ end
542
+
543
+ # The detailed related assets with the `relationship_type`.
544
+ class GoogleCloudAssetV1p7beta1RelatedAssets
545
+ include Google::Apis::Core::Hashable
546
+
547
+ # The peer resources of the relationship.
548
+ # Corresponds to the JSON property `assets`
549
+ # @return [Array<Google::Apis::CloudassetV1p5beta1::GoogleCloudAssetV1p7beta1RelatedAsset>]
550
+ attr_accessor :assets
551
+
552
+ # The relationship attributes which include `type`, `source_resource_type`, `
553
+ # target_resource_type` and `action`.
554
+ # Corresponds to the JSON property `relationshipAttributes`
555
+ # @return [Google::Apis::CloudassetV1p5beta1::GoogleCloudAssetV1p7beta1RelationshipAttributes]
556
+ attr_accessor :relationship_attributes
557
+
558
+ def initialize(**args)
559
+ update!(**args)
560
+ end
561
+
562
+ # Update properties of this object
563
+ def update!(**args)
564
+ @assets = args[:assets] if args.key?(:assets)
565
+ @relationship_attributes = args[:relationship_attributes] if args.key?(:relationship_attributes)
566
+ end
567
+ end
568
+
569
+ # The relationship attributes which include `type`, `source_resource_type`, `
570
+ # target_resource_type` and `action`.
571
+ class GoogleCloudAssetV1p7beta1RelationshipAttributes
572
+ include Google::Apis::Core::Hashable
573
+
574
+ # The detail of the relationship, e.g. `contains`, `attaches`
575
+ # Corresponds to the JSON property `action`
576
+ # @return [String]
577
+ attr_accessor :action
578
+
579
+ # The source asset type. Example: `compute.googleapis.com/Instance`
580
+ # Corresponds to the JSON property `sourceResourceType`
581
+ # @return [String]
582
+ attr_accessor :source_resource_type
583
+
584
+ # The target asset type. Example: `compute.googleapis.com/Disk`
585
+ # Corresponds to the JSON property `targetResourceType`
586
+ # @return [String]
587
+ attr_accessor :target_resource_type
588
+
589
+ # The unique identifier of the relationship type. Example: `
590
+ # INSTANCE_TO_INSTANCEGROUP`
591
+ # Corresponds to the JSON property `type`
592
+ # @return [String]
593
+ attr_accessor :type
594
+
595
+ def initialize(**args)
596
+ update!(**args)
597
+ end
598
+
599
+ # Update properties of this object
600
+ def update!(**args)
601
+ @action = args[:action] if args.key?(:action)
602
+ @source_resource_type = args[:source_resource_type] if args.key?(:source_resource_type)
603
+ @target_resource_type = args[:target_resource_type] if args.key?(:target_resource_type)
604
+ @type = args[:type] if args.key?(:type)
605
+ end
606
+ end
607
+
608
+ # A representation of a Google Cloud resource.
609
+ class GoogleCloudAssetV1p7beta1Resource
610
+ include Google::Apis::Core::Hashable
611
+
612
+ # The content of the resource, in which some sensitive fields are removed and
613
+ # may not be present.
614
+ # Corresponds to the JSON property `data`
615
+ # @return [Hash<String,Object>]
616
+ attr_accessor :data
617
+
618
+ # The URL of the discovery document containing the resource's JSON schema.
619
+ # Example: `https://www.googleapis.com/discovery/v1/apis/compute/v1/rest` This
620
+ # value is unspecified for resources that do not have an API based on a
621
+ # discovery document, such as Cloud Bigtable.
622
+ # Corresponds to the JSON property `discoveryDocumentUri`
623
+ # @return [String]
624
+ attr_accessor :discovery_document_uri
625
+
626
+ # The JSON schema name listed in the discovery document. Example: `Project` This
627
+ # value is unspecified for resources that do not have an API based on a
628
+ # discovery document, such as Cloud Bigtable.
629
+ # Corresponds to the JSON property `discoveryName`
630
+ # @return [String]
631
+ attr_accessor :discovery_name
632
+
633
+ # The location of the resource in Google Cloud, such as its zone and region. For
634
+ # more information, see https://cloud.google.com/about/locations/.
635
+ # Corresponds to the JSON property `location`
636
+ # @return [String]
637
+ attr_accessor :location
638
+
639
+ # The full name of the immediate parent of this resource. See [Resource Names](
640
+ # https://cloud.google.com/apis/design/resource_names#full_resource_name) for
641
+ # more information. For Google Cloud assets, this value is the parent resource
642
+ # defined in the [Cloud IAM policy hierarchy](https://cloud.google.com/iam/docs/
643
+ # overview#policy_hierarchy). Example: `//cloudresourcemanager.googleapis.com/
644
+ # projects/my_project_123` For third-party assets, this field may be set
645
+ # differently.
646
+ # Corresponds to the JSON property `parent`
647
+ # @return [String]
648
+ attr_accessor :parent
649
+
650
+ # The REST URL for accessing the resource. An HTTP `GET` request using this URL
651
+ # returns the resource itself. Example: `https://cloudresourcemanager.googleapis.
652
+ # com/v1/projects/my-project-123` This value is unspecified for resources
653
+ # without a REST API.
654
+ # Corresponds to the JSON property `resourceUrl`
655
+ # @return [String]
656
+ attr_accessor :resource_url
657
+
658
+ # The API version. Example: `v1`
659
+ # Corresponds to the JSON property `version`
660
+ # @return [String]
661
+ attr_accessor :version
662
+
663
+ def initialize(**args)
664
+ update!(**args)
665
+ end
666
+
667
+ # Update properties of this object
668
+ def update!(**args)
669
+ @data = args[:data] if args.key?(:data)
670
+ @discovery_document_uri = args[:discovery_document_uri] if args.key?(:discovery_document_uri)
671
+ @discovery_name = args[:discovery_name] if args.key?(:discovery_name)
672
+ @location = args[:location] if args.key?(:location)
673
+ @parent = args[:parent] if args.key?(:parent)
674
+ @resource_url = args[:resource_url] if args.key?(:resource_url)
675
+ @version = args[:version] if args.key?(:version)
676
+ end
677
+ end
678
+
346
679
  # Used in `policy_type` to specify how `boolean_policy` will behave at this
347
680
  # resource.
348
681
  class GoogleCloudOrgpolicyV1BooleanPolicy
@@ -948,9 +1281,9 @@ module Google
948
1281
 
949
1282
  # Defines the conditions under which an EgressPolicy matches a request.
950
1283
  # Conditions based on information about the source of the request. Note that if
951
- # the destination of the request is protected by a ServicePerimeter, then that
952
- # ServicePerimeter must have an IngressPolicy which allows access in order for
953
- # this request to succeed.
1284
+ # the destination of the request is also protected by a ServicePerimeter, then
1285
+ # that ServicePerimeter must have an IngressPolicy which allows access in order
1286
+ # for this request to succeed.
954
1287
  class GoogleIdentityAccesscontextmanagerV1EgressFrom
955
1288
  include Google::Apis::Core::Hashable
956
1289
 
@@ -996,9 +1329,9 @@ module Google
996
1329
 
997
1330
  # Defines the conditions under which an EgressPolicy matches a request.
998
1331
  # Conditions based on information about the source of the request. Note that if
999
- # the destination of the request is protected by a ServicePerimeter, then that
1000
- # ServicePerimeter must have an IngressPolicy which allows access in order for
1001
- # this request to succeed.
1332
+ # the destination of the request is also protected by a ServicePerimeter, then
1333
+ # that ServicePerimeter must have an IngressPolicy which allows access in order
1334
+ # for this request to succeed.
1002
1335
  # Corresponds to the JSON property `egressFrom`
1003
1336
  # @return [Google::Apis::CloudassetV1p5beta1::GoogleIdentityAccesscontextmanagerV1EgressFrom]
1004
1337
  attr_accessor :egress_from
@@ -1006,8 +1339,10 @@ module Google
1006
1339
  # Defines the conditions under which an EgressPolicy matches a request.
1007
1340
  # Conditions are based on information about the ApiOperation intended to be
1008
1341
  # performed on the `resources` specified. Note that if the destination of the
1009
- # request is protected by a ServicePerimeter, then that ServicePerimeter must
1010
- # have an IngressPolicy which allows access in order for this request to succeed.
1342
+ # request is also protected by a ServicePerimeter, then that ServicePerimeter
1343
+ # must have an IngressPolicy which allows access in order for this request to
1344
+ # succeed. The request must match `operations` AND `resources` fields in order
1345
+ # to be allowed egress out of the perimeter.
1011
1346
  # Corresponds to the JSON property `egressTo`
1012
1347
  # @return [Google::Apis::CloudassetV1p5beta1::GoogleIdentityAccesscontextmanagerV1EgressTo]
1013
1348
  attr_accessor :egress_to
@@ -1026,21 +1361,25 @@ module Google
1026
1361
  # Defines the conditions under which an EgressPolicy matches a request.
1027
1362
  # Conditions are based on information about the ApiOperation intended to be
1028
1363
  # performed on the `resources` specified. Note that if the destination of the
1029
- # request is protected by a ServicePerimeter, then that ServicePerimeter must
1030
- # have an IngressPolicy which allows access in order for this request to succeed.
1364
+ # request is also protected by a ServicePerimeter, then that ServicePerimeter
1365
+ # must have an IngressPolicy which allows access in order for this request to
1366
+ # succeed. The request must match `operations` AND `resources` fields in order
1367
+ # to be allowed egress out of the perimeter.
1031
1368
  class GoogleIdentityAccesscontextmanagerV1EgressTo
1032
1369
  include Google::Apis::Core::Hashable
1033
1370
 
1034
- # A list of ApiOperations that this egress rule applies to. A request matches if
1035
- # it contains an operation/service in this list.
1371
+ # A list of ApiOperations allowed to be performed by the sources specified in
1372
+ # the corresponding EgressFrom. A request matches if it uses an operation/
1373
+ # service in this list.
1036
1374
  # Corresponds to the JSON property `operations`
1037
1375
  # @return [Array<Google::Apis::CloudassetV1p5beta1::GoogleIdentityAccesscontextmanagerV1ApiOperation>]
1038
1376
  attr_accessor :operations
1039
1377
 
1040
- # A list of resources, currently only projects in the form `projects/`, that
1041
- # match this to stanza. A request matches if it contains a resource in this list.
1042
- # If `*` is specified for resources, then this EgressTo rule will authorize
1043
- # access to all resources outside the perimeter.
1378
+ # A list of resources, currently only projects in the form `projects/`, that are
1379
+ # allowed to be accessed by sources defined in the corresponding EgressFrom. A
1380
+ # request matches if it contains a resource in this list. If `*` is specified
1381
+ # for `resources`, then this EgressTo rule will authorize access to all
1382
+ # resources outside the perimeter.
1044
1383
  # Corresponds to the JSON property `resources`
1045
1384
  # @return [Array<String>]
1046
1385
  attr_accessor :resources
@@ -1057,7 +1396,9 @@ module Google
1057
1396
  end
1058
1397
 
1059
1398
  # Defines the conditions under which an IngressPolicy matches a request.
1060
- # Conditions are based on information about the source of the request.
1399
+ # Conditions are based on information about the source of the request. The
1400
+ # request must satisfy what is defined in `sources` AND identity related fields
1401
+ # in order to match.
1061
1402
  class GoogleIdentityAccesscontextmanagerV1IngressFrom
1062
1403
  include Google::Apis::Core::Hashable
1063
1404
 
@@ -1106,14 +1447,17 @@ module Google
1106
1447
  include Google::Apis::Core::Hashable
1107
1448
 
1108
1449
  # Defines the conditions under which an IngressPolicy matches a request.
1109
- # Conditions are based on information about the source of the request.
1450
+ # Conditions are based on information about the source of the request. The
1451
+ # request must satisfy what is defined in `sources` AND identity related fields
1452
+ # in order to match.
1110
1453
  # Corresponds to the JSON property `ingressFrom`
1111
1454
  # @return [Google::Apis::CloudassetV1p5beta1::GoogleIdentityAccesscontextmanagerV1IngressFrom]
1112
1455
  attr_accessor :ingress_from
1113
1456
 
1114
1457
  # Defines the conditions under which an IngressPolicy matches a request.
1115
1458
  # Conditions are based on information about the ApiOperation intended to be
1116
- # performed on the destination of the request.
1459
+ # performed on the target resource of the request. The request must satisfy what
1460
+ # is defined in `operations` AND `resources` in order to match.
1117
1461
  # Corresponds to the JSON property `ingressTo`
1118
1462
  # @return [Google::Apis::CloudassetV1p5beta1::GoogleIdentityAccesscontextmanagerV1IngressTo]
1119
1463
  attr_accessor :ingress_to
@@ -1139,7 +1483,8 @@ module Google
1139
1483
  # cause an error. If no AccessLevel names are listed, resources within the
1140
1484
  # perimeter can only be accessed via Google Cloud calls with request origins
1141
1485
  # within the perimeter. Example: `accessPolicies/MY_POLICY/accessLevels/MY_LEVEL`
1142
- # . If `*` is specified, then all IngressSources will be allowed.
1486
+ # . If a single `*` is specified for `access_level`, then all IngressSources
1487
+ # will be allowed.
1143
1488
  # Corresponds to the JSON property `accessLevel`
1144
1489
  # @return [String]
1145
1490
  attr_accessor :access_level
@@ -1167,22 +1512,21 @@ module Google
1167
1512
 
1168
1513
  # Defines the conditions under which an IngressPolicy matches a request.
1169
1514
  # Conditions are based on information about the ApiOperation intended to be
1170
- # performed on the destination of the request.
1515
+ # performed on the target resource of the request. The request must satisfy what
1516
+ # is defined in `operations` AND `resources` in order to match.
1171
1517
  class GoogleIdentityAccesscontextmanagerV1IngressTo
1172
1518
  include Google::Apis::Core::Hashable
1173
1519
 
1174
- # A list of ApiOperations the sources specified in corresponding IngressFrom are
1175
- # allowed to perform in this ServicePerimeter.
1520
+ # A list of ApiOperations allowed to be performed by the sources specified in
1521
+ # corresponding IngressFrom in this ServicePerimeter.
1176
1522
  # Corresponds to the JSON property `operations`
1177
1523
  # @return [Array<Google::Apis::CloudassetV1p5beta1::GoogleIdentityAccesscontextmanagerV1ApiOperation>]
1178
1524
  attr_accessor :operations
1179
1525
 
1180
1526
  # A list of resources, currently only projects in the form `projects/`,
1181
1527
  # protected by this ServicePerimeter that are allowed to be accessed by sources
1182
- # defined in the corresponding IngressFrom. A request matches if it contains a
1183
- # resource in this list. If `*` is specified for resources, then this IngressTo
1184
- # rule will authorize access to all resources inside the perimeter, provided
1185
- # that the request also matches the `operations` field.
1528
+ # defined in the corresponding IngressFrom. If a single `*` is specified, then
1529
+ # access to all resources inside the perimeter are allowed.
1186
1530
  # Corresponds to the JSON property `resources`
1187
1531
  # @return [Array<String>]
1188
1532
  attr_accessor :resources
@@ -1445,8 +1789,9 @@ module Google
1445
1789
  # @return [Array<Google::Apis::CloudassetV1p5beta1::Asset>]
1446
1790
  attr_accessor :assets
1447
1791
 
1448
- # Token to retrieve the next page of results. Set to empty if there are no
1449
- # remaining results.
1792
+ # Token to retrieve the next page of results. It expires 72 hours after the page
1793
+ # token for the first page is generated. Set to empty if there are no remaining
1794
+ # results.
1450
1795
  # Corresponds to the JSON property `nextPageToken`
1451
1796
  # @return [String]
1452
1797
  attr_accessor :next_page_token
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module CloudassetV1p5beta1
18
18
  # Version of the google-apis-cloudasset_v1p5beta1 gem
19
- GEM_VERSION = "0.1.0"
19
+ GEM_VERSION = "0.6.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.1"
22
+ GENERATOR_VERSION = "0.2.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20201211"
25
+ REVISION = "20210416"
26
26
  end
27
27
  end
28
28
  end
@@ -22,6 +22,12 @@ module Google
22
22
  module Apis
23
23
  module CloudassetV1p5beta1
24
24
 
25
+ class AnalyzeIamPolicyLongrunningResponse
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
25
31
  class Asset
26
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
33
 
@@ -52,6 +58,36 @@ module Google
52
58
  include Google::Apis::Core::JsonObjectSupport
53
59
  end
54
60
 
61
+ class GoogleCloudAssetV1p7beta1Asset
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class GoogleCloudAssetV1p7beta1RelatedAsset
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class GoogleCloudAssetV1p7beta1RelatedAssets
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class GoogleCloudAssetV1p7beta1RelationshipAttributes
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class GoogleCloudAssetV1p7beta1Resource
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
55
91
  class GoogleCloudOrgpolicyV1BooleanPolicy
56
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
93
 
@@ -208,6 +244,12 @@ module Google
208
244
  include Google::Apis::Core::JsonObjectSupport
209
245
  end
210
246
 
247
+ class AnalyzeIamPolicyLongrunningResponse
248
+ # @private
249
+ class Representation < Google::Apis::Core::JsonRepresentation
250
+ end
251
+ end
252
+
211
253
  class Asset
212
254
  # @private
213
255
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -266,6 +308,72 @@ module Google
266
308
  end
267
309
  end
268
310
 
311
+ class GoogleCloudAssetV1p7beta1Asset
312
+ # @private
313
+ class Representation < Google::Apis::Core::JsonRepresentation
314
+ property :access_level, as: 'accessLevel', class: Google::Apis::CloudassetV1p5beta1::GoogleIdentityAccesscontextmanagerV1AccessLevel, decorator: Google::Apis::CloudassetV1p5beta1::GoogleIdentityAccesscontextmanagerV1AccessLevel::Representation
315
+
316
+ property :access_policy, as: 'accessPolicy', class: Google::Apis::CloudassetV1p5beta1::GoogleIdentityAccesscontextmanagerV1AccessPolicy, decorator: Google::Apis::CloudassetV1p5beta1::GoogleIdentityAccesscontextmanagerV1AccessPolicy::Representation
317
+
318
+ collection :ancestors, as: 'ancestors'
319
+ property :asset_type, as: 'assetType'
320
+ property :iam_policy, as: 'iamPolicy', class: Google::Apis::CloudassetV1p5beta1::Policy, decorator: Google::Apis::CloudassetV1p5beta1::Policy::Representation
321
+
322
+ property :name, as: 'name'
323
+ collection :org_policy, as: 'orgPolicy', class: Google::Apis::CloudassetV1p5beta1::GoogleCloudOrgpolicyV1Policy, decorator: Google::Apis::CloudassetV1p5beta1::GoogleCloudOrgpolicyV1Policy::Representation
324
+
325
+ property :related_assets, as: 'relatedAssets', class: Google::Apis::CloudassetV1p5beta1::GoogleCloudAssetV1p7beta1RelatedAssets, decorator: Google::Apis::CloudassetV1p5beta1::GoogleCloudAssetV1p7beta1RelatedAssets::Representation
326
+
327
+ property :resource, as: 'resource', class: Google::Apis::CloudassetV1p5beta1::GoogleCloudAssetV1p7beta1Resource, decorator: Google::Apis::CloudassetV1p5beta1::GoogleCloudAssetV1p7beta1Resource::Representation
328
+
329
+ property :service_perimeter, as: 'servicePerimeter', class: Google::Apis::CloudassetV1p5beta1::GoogleIdentityAccesscontextmanagerV1ServicePerimeter, decorator: Google::Apis::CloudassetV1p5beta1::GoogleIdentityAccesscontextmanagerV1ServicePerimeter::Representation
330
+
331
+ property :update_time, as: 'updateTime'
332
+ end
333
+ end
334
+
335
+ class GoogleCloudAssetV1p7beta1RelatedAsset
336
+ # @private
337
+ class Representation < Google::Apis::Core::JsonRepresentation
338
+ collection :ancestors, as: 'ancestors'
339
+ property :asset, as: 'asset'
340
+ property :asset_type, as: 'assetType'
341
+ end
342
+ end
343
+
344
+ class GoogleCloudAssetV1p7beta1RelatedAssets
345
+ # @private
346
+ class Representation < Google::Apis::Core::JsonRepresentation
347
+ collection :assets, as: 'assets', class: Google::Apis::CloudassetV1p5beta1::GoogleCloudAssetV1p7beta1RelatedAsset, decorator: Google::Apis::CloudassetV1p5beta1::GoogleCloudAssetV1p7beta1RelatedAsset::Representation
348
+
349
+ property :relationship_attributes, as: 'relationshipAttributes', class: Google::Apis::CloudassetV1p5beta1::GoogleCloudAssetV1p7beta1RelationshipAttributes, decorator: Google::Apis::CloudassetV1p5beta1::GoogleCloudAssetV1p7beta1RelationshipAttributes::Representation
350
+
351
+ end
352
+ end
353
+
354
+ class GoogleCloudAssetV1p7beta1RelationshipAttributes
355
+ # @private
356
+ class Representation < Google::Apis::Core::JsonRepresentation
357
+ property :action, as: 'action'
358
+ property :source_resource_type, as: 'sourceResourceType'
359
+ property :target_resource_type, as: 'targetResourceType'
360
+ property :type, as: 'type'
361
+ end
362
+ end
363
+
364
+ class GoogleCloudAssetV1p7beta1Resource
365
+ # @private
366
+ class Representation < Google::Apis::Core::JsonRepresentation
367
+ hash :data, as: 'data'
368
+ property :discovery_document_uri, as: 'discoveryDocumentUri'
369
+ property :discovery_name, as: 'discoveryName'
370
+ property :location, as: 'location'
371
+ property :parent, as: 'parent'
372
+ property :resource_url, as: 'resourceUrl'
373
+ property :version, as: 'version'
374
+ end
375
+ end
376
+
269
377
  class GoogleCloudOrgpolicyV1BooleanPolicy
270
378
  # @private
271
379
  class Representation < Google::Apis::Core::JsonRepresentation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-cloudasset_v1p5beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.6.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-01-08 00:00:00.000000000 Z
11
+ date: 2021-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -52,7 +52,7 @@ licenses:
52
52
  metadata:
53
53
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
54
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-cloudasset_v1p5beta1/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-cloudasset_v1p5beta1/v0.1.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-cloudasset_v1p5beta1/v0.6.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-cloudasset_v1p5beta1
57
57
  post_install_message:
58
58
  rdoc_options: []
@@ -62,14 +62,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
62
62
  requirements:
63
63
  - - ">="
64
64
  - !ruby/object:Gem::Version
65
- version: '2.4'
65
+ version: '2.5'
66
66
  required_rubygems_version: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - ">="
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.1.4
72
+ rubygems_version: 3.2.17
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Simple REST client for Cloud Asset API V1p5beta1