google-apis-accesscontextmanager_v1 0.33.0 → 0.35.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: b49398722181e716b4098571a6c9accee9b5291036a4ea8638f88a2ebbb28807
4
- data.tar.gz: a19f8721288f41d3a3e4f974ee376722ddbc9df1a227de7d19dc34a6b3608a33
3
+ metadata.gz: 1041ea97052bf158930c61bfcd90b621c224023fd2f198bb22f797231e954071
4
+ data.tar.gz: 1b6f2b2e5080ee86ce67afc8930511308471f1d72753423a01e9b80582e97954
5
5
  SHA512:
6
- metadata.gz: 66369fb07093d542c1551adcf2e49143ecf6a1dcf062ce1376403fe35995580a8f040bb1f54d5408ac277000c805726f2eb18ed28d8b14d9d004ec2ac38064dd
7
- data.tar.gz: a1d8d4b7fb8c3850b998494edb7904d32eac2e31dde6735dfb5b691ae0ace23dc1eb6fd42bee08a3551ed7e3fd4aada1b2f0fd233df4f1a8246f2b9c188a73fe
6
+ metadata.gz: f3055f61f66b36e2d630d8eecb7619e2c4f3e7b887cfd4b3076fc731b509d15717c455cbca38def48fad20c5a5c33e06582e3bc21780b40ce69d87a4021ca00c
7
+ data.tar.gz: b5aaa795e0ebb004827af0e671b5224ef3323b221d9078cbd8646d27131308cecf55619acf9bf5196a9499b6af0225aa83c979bf4ba0c190ad7d5d34ac06951c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-accesscontextmanager_v1
2
2
 
3
+ ### v0.35.0 (2023-10-15)
4
+
5
+ * Regenerated from discovery document revision 20231011
6
+
7
+ ### v0.34.0 (2023-09-17)
8
+
9
+ * Regenerated from discovery document revision 20230910
10
+
3
11
  ### v0.33.0 (2023-09-10)
4
12
 
5
13
  * Regenerated from discovery document revision 20230903
@@ -531,6 +531,12 @@ module Google
531
531
  # @return [Array<String>]
532
532
  attr_accessor :required_access_levels
533
533
 
534
+ # The request must originate from one of the provided VPC networks in Google
535
+ # Cloud. Cannot specify this field together with `ip_subnetworks`.
536
+ # Corresponds to the JSON property `vpcNetworkSources`
537
+ # @return [Array<Google::Apis::AccesscontextmanagerV1::VpcNetworkSource>]
538
+ attr_accessor :vpc_network_sources
539
+
534
540
  def initialize(**args)
535
541
  update!(**args)
536
542
  end
@@ -543,6 +549,7 @@ module Google
543
549
  @negate = args[:negate] if args.key?(:negate)
544
550
  @regions = args[:regions] if args.key?(:regions)
545
551
  @required_access_levels = args[:required_access_levels] if args.key?(:required_access_levels)
552
+ @vpc_network_sources = args[:vpc_network_sources] if args.key?(:vpc_network_sources)
546
553
  end
547
554
  end
548
555
 
@@ -663,6 +670,19 @@ module Google
663
670
  # @return [String]
664
671
  attr_accessor :identity_type
665
672
 
673
+ # Whether to enforce traffic restrictions based on `sources` field. If the `
674
+ # sources` fields is non-empty, then this field must be set to `
675
+ # SOURCE_RESTRICTION_ENABLED`.
676
+ # Corresponds to the JSON property `sourceRestriction`
677
+ # @return [String]
678
+ attr_accessor :source_restriction
679
+
680
+ # Sources that this EgressPolicy authorizes access from. If this field is not
681
+ # empty, then `source_restriction` must be set to `SOURCE_RESTRICTION_ENABLED`.
682
+ # Corresponds to the JSON property `sources`
683
+ # @return [Array<Google::Apis::AccesscontextmanagerV1::EgressSource>]
684
+ attr_accessor :sources
685
+
666
686
  def initialize(**args)
667
687
  update!(**args)
668
688
  end
@@ -671,6 +691,8 @@ module Google
671
691
  def update!(**args)
672
692
  @identities = args[:identities] if args.key?(:identities)
673
693
  @identity_type = args[:identity_type] if args.key?(:identity_type)
694
+ @source_restriction = args[:source_restriction] if args.key?(:source_restriction)
695
+ @sources = args[:sources] if args.key?(:sources)
674
696
  end
675
697
  end
676
698
 
@@ -720,6 +742,33 @@ module Google
720
742
  end
721
743
  end
722
744
 
745
+ # The source that EgressPolicy authorizes access from inside the
746
+ # ServicePerimeter to somewhere outside the ServicePerimeter boundaries.
747
+ class EgressSource
748
+ include Google::Apis::Core::Hashable
749
+
750
+ # An AccessLevel resource name that allows protected resources inside the
751
+ # ServicePerimeters to access outside the ServicePerimeter boundaries.
752
+ # AccessLevels listed must be in the same policy as this ServicePerimeter.
753
+ # Referencing a nonexistent AccessLevel will cause an error. If an AccessLevel
754
+ # name is not specified, only resources within the perimeter can be accessed
755
+ # through Google Cloud calls with request origins within the perimeter. Example:
756
+ # `accessPolicies/MY_POLICY/accessLevels/MY_LEVEL`. If a single `*` is specified
757
+ # for `access_level`, then all EgressSources will be allowed.
758
+ # Corresponds to the JSON property `accessLevel`
759
+ # @return [String]
760
+ attr_accessor :access_level
761
+
762
+ def initialize(**args)
763
+ update!(**args)
764
+ end
765
+
766
+ # Update properties of this object
767
+ def update!(**args)
768
+ @access_level = args[:access_level] if args.key?(:access_level)
769
+ end
770
+ end
771
+
723
772
  # Defines the conditions under which an EgressPolicy matches a request.
724
773
  # Conditions are based on information about the ApiOperation intended to be
725
774
  # performed on the `resources` specified. Note that if the destination of the
@@ -890,9 +939,7 @@ module Google
890
939
  end
891
940
  end
892
941
 
893
- # Currently, a completed operation means nothing. In the future, this metadata
894
- # and a completed operation may indicate that the binding has taken effect and
895
- # is affecting access decisions for all users.
942
+ # Metadata of GCP Access Binding Long Running Operations.
896
943
  class GcpUserAccessBindingOperationMetadata
897
944
  include Google::Apis::Core::Hashable
898
945
 
@@ -1888,6 +1935,59 @@ module Google
1888
1935
  @enable_restriction = args[:enable_restriction] if args.key?(:enable_restriction)
1889
1936
  end
1890
1937
  end
1938
+
1939
+ # The originating network source in Google Cloud.
1940
+ class VpcNetworkSource
1941
+ include Google::Apis::Core::Hashable
1942
+
1943
+ # Sub-segment ranges inside of a VPC Network.
1944
+ # Corresponds to the JSON property `vpcSubnetwork`
1945
+ # @return [Google::Apis::AccesscontextmanagerV1::VpcSubNetwork]
1946
+ attr_accessor :vpc_subnetwork
1947
+
1948
+ def initialize(**args)
1949
+ update!(**args)
1950
+ end
1951
+
1952
+ # Update properties of this object
1953
+ def update!(**args)
1954
+ @vpc_subnetwork = args[:vpc_subnetwork] if args.key?(:vpc_subnetwork)
1955
+ end
1956
+ end
1957
+
1958
+ # Sub-segment ranges inside of a VPC Network.
1959
+ class VpcSubNetwork
1960
+ include Google::Apis::Core::Hashable
1961
+
1962
+ # Required. Network name. If the network is not part of the organization, the `
1963
+ # compute.network.get` permission must be granted to the caller. Format: `//
1964
+ # compute.googleapis.com/projects/`PROJECT_ID`/global/networks/`NETWORK_NAME``
1965
+ # Example: `//compute.googleapis.com/projects/my-project/global/networks/network-
1966
+ # 1`
1967
+ # Corresponds to the JSON property `network`
1968
+ # @return [String]
1969
+ attr_accessor :network
1970
+
1971
+ # CIDR block IP subnetwork specification. The IP address must be an IPv4 address
1972
+ # and can be a public or private IP address. Note that for a CIDR IP address
1973
+ # block, the specified IP address portion must be properly truncated (i.e. all
1974
+ # the host bits must be zero) or the input is considered malformed. For example,
1975
+ # "192.0.2.0/24" is accepted but "192.0.2.1/24" is not. If empty, all IP
1976
+ # addresses are allowed.
1977
+ # Corresponds to the JSON property `vpcIpSubnetworks`
1978
+ # @return [Array<String>]
1979
+ attr_accessor :vpc_ip_subnetworks
1980
+
1981
+ def initialize(**args)
1982
+ update!(**args)
1983
+ end
1984
+
1985
+ # Update properties of this object
1986
+ def update!(**args)
1987
+ @network = args[:network] if args.key?(:network)
1988
+ @vpc_ip_subnetworks = args[:vpc_ip_subnetworks] if args.key?(:vpc_ip_subnetworks)
1989
+ end
1990
+ end
1891
1991
  end
1892
1992
  end
1893
1993
  end
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module AccesscontextmanagerV1
18
18
  # Version of the google-apis-accesscontextmanager_v1 gem
19
- GEM_VERSION = "0.33.0"
19
+ GEM_VERSION = "0.35.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230903"
25
+ REVISION = "20231011"
26
26
  end
27
27
  end
28
28
  end
@@ -124,6 +124,12 @@ module Google
124
124
  include Google::Apis::Core::JsonObjectSupport
125
125
  end
126
126
 
127
+ class EgressSource
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
127
133
  class EgressTo
128
134
  class Representation < Google::Apis::Core::JsonRepresentation; end
129
135
 
@@ -316,6 +322,18 @@ module Google
316
322
  include Google::Apis::Core::JsonObjectSupport
317
323
  end
318
324
 
325
+ class VpcNetworkSource
326
+ class Representation < Google::Apis::Core::JsonRepresentation; end
327
+
328
+ include Google::Apis::Core::JsonObjectSupport
329
+ end
330
+
331
+ class VpcSubNetwork
332
+ class Representation < Google::Apis::Core::JsonRepresentation; end
333
+
334
+ include Google::Apis::Core::JsonObjectSupport
335
+ end
336
+
319
337
  class AccessContextManagerOperationMetadata
320
338
  # @private
321
339
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -433,6 +451,8 @@ module Google
433
451
  property :negate, as: 'negate'
434
452
  collection :regions, as: 'regions'
435
453
  collection :required_access_levels, as: 'requiredAccessLevels'
454
+ collection :vpc_network_sources, as: 'vpcNetworkSources', class: Google::Apis::AccesscontextmanagerV1::VpcNetworkSource, decorator: Google::Apis::AccesscontextmanagerV1::VpcNetworkSource::Representation
455
+
436
456
  end
437
457
  end
438
458
 
@@ -462,6 +482,9 @@ module Google
462
482
  class Representation < Google::Apis::Core::JsonRepresentation
463
483
  collection :identities, as: 'identities'
464
484
  property :identity_type, as: 'identityType'
485
+ property :source_restriction, as: 'sourceRestriction'
486
+ collection :sources, as: 'sources', class: Google::Apis::AccesscontextmanagerV1::EgressSource, decorator: Google::Apis::AccesscontextmanagerV1::EgressSource::Representation
487
+
465
488
  end
466
489
  end
467
490
 
@@ -475,6 +498,13 @@ module Google
475
498
  end
476
499
  end
477
500
 
501
+ class EgressSource
502
+ # @private
503
+ class Representation < Google::Apis::Core::JsonRepresentation
504
+ property :access_level, as: 'accessLevel'
505
+ end
506
+ end
507
+
478
508
  class EgressTo
479
509
  # @private
480
510
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -767,6 +797,22 @@ module Google
767
797
  property :enable_restriction, as: 'enableRestriction'
768
798
  end
769
799
  end
800
+
801
+ class VpcNetworkSource
802
+ # @private
803
+ class Representation < Google::Apis::Core::JsonRepresentation
804
+ property :vpc_subnetwork, as: 'vpcSubnetwork', class: Google::Apis::AccesscontextmanagerV1::VpcSubNetwork, decorator: Google::Apis::AccesscontextmanagerV1::VpcSubNetwork::Representation
805
+
806
+ end
807
+ end
808
+
809
+ class VpcSubNetwork
810
+ # @private
811
+ class Representation < Google::Apis::Core::JsonRepresentation
812
+ property :network, as: 'network'
813
+ collection :vpc_ip_subnetworks, as: 'vpcIpSubnetworks'
814
+ end
815
+ end
770
816
  end
771
817
  end
772
818
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-accesscontextmanager_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.33.0
4
+ version: 0.35.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: 2023-09-10 00:00:00.000000000 Z
11
+ date: 2023-10-22 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-accesscontextmanager_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-accesscontextmanager_v1/v0.33.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-accesscontextmanager_v1/v0.35.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-accesscontextmanager_v1
63
63
  post_install_message:
64
64
  rdoc_options: []