google-apis-networkservices_v1 0.22.0 → 0.24.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: 9ed25c9e5d31168477c3f27303e7e7b2f0b15660fbecb314688139697288207b
4
- data.tar.gz: d23ccb2ea4fd742dab148dbbcb5dc5d36889a9bcc0648e1654dab7f99608d387
3
+ metadata.gz: 8713a3e2b0660c45eed2f3ce12f5a356f3b4a4e0f893d0cabd2997b8097a0edc
4
+ data.tar.gz: 4a9e40ac483094ea2bf5517b85ac205048a324316904627cec201a206b3846e5
5
5
  SHA512:
6
- metadata.gz: 77ec53d731c7a4c1a6b79b36caf872b79bcb89545eeda3075854312660fd33365f25e7a938799f2f0541506a25652876a99bc1c3c18e61a83d0a3e99dbcc1f97
7
- data.tar.gz: 6e7812050737d64020e54a1abb7b36d6f256dfe8fd4b886d61891cfd79300c60f766a20f9f5949e83d46bffd0f27593292536075d4389cc3d50c1991582fbbdc
6
+ metadata.gz: 7954774ed9522bc78a337b187f5d9749b7ea20e46d14c6907286b4bd6cbbedead7077850ebce9d9e498f4fa9f7e286a9f29186d4ea00f160557d6624dd7fc892
7
+ data.tar.gz: f58889ea7c5018e84ffc1d06c50e8f27914d7d4ff51fbbfebc3f387e33c014252062a886617c49b2c709fa7c8186b8f23fd0bb168a95ffd21c171c367b1924bd
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-networkservices_v1
2
2
 
3
+ ### v0.24.0 (2023-04-16)
4
+
5
+ * Regenerated from discovery document revision 20230404
6
+
7
+ ### v0.23.0 (2023-04-02)
8
+
9
+ * Regenerated from discovery document revision 20230323
10
+
3
11
  ### v0.22.0 (2023-03-05)
4
12
 
5
13
  * Regenerated from discovery document revision 20230227
@@ -441,6 +441,21 @@ module Google
441
441
  class Gateway
442
442
  include Google::Apis::Core::Hashable
443
443
 
444
+ # Optional. Zero or one IPv4-address on which the Gateway will receive the
445
+ # traffic. When no address is provided, an IP from the subnetwork is allocated
446
+ # This field only applies to gateways of type 'SECURE_WEB_GATEWAY'. Gateways of
447
+ # type 'OPEN_MESH' listen on 0.0.0.0.
448
+ # Corresponds to the JSON property `addresses`
449
+ # @return [Array<String>]
450
+ attr_accessor :addresses
451
+
452
+ # Optional. A fully-qualified Certificates URL reference. The proxy presents a
453
+ # Certificate (selected based on SNI) when establishing a TLS connection. This
454
+ # feature only applies to gateways of type 'SECURE_WEB_GATEWAY'.
455
+ # Corresponds to the JSON property `certificateUrls`
456
+ # @return [Array<String>]
457
+ attr_accessor :certificate_urls
458
+
444
459
  # Output only. The timestamp when the resource was created.
445
460
  # Corresponds to the JSON property `createTime`
446
461
  # @return [String]
@@ -451,6 +466,14 @@ module Google
451
466
  # @return [String]
452
467
  attr_accessor :description
453
468
 
469
+ # Optional. A fully-qualified GatewaySecurityPolicy URL reference. Defines how a
470
+ # server should apply security policy to inbound (VM to Proxy) initiated
471
+ # connections. For example: `projects/*/locations/*/gatewaySecurityPolicies/swg-
472
+ # policy`. This policy is specific to gateways of type 'SECURE_WEB_GATEWAY'.
473
+ # Corresponds to the JSON property `gatewaySecurityPolicy`
474
+ # @return [String]
475
+ attr_accessor :gateway_security_policy
476
+
454
477
  # Optional. Set of label tags associated with the Gateway resource.
455
478
  # Corresponds to the JSON property `labels`
456
479
  # @return [Hash<String,String>]
@@ -462,6 +485,13 @@ module Google
462
485
  # @return [String]
463
486
  attr_accessor :name
464
487
 
488
+ # Optional. The relative resource name identifying the VPC network that is using
489
+ # this configuration. For example: `projects/*/global/networks/network-1`.
490
+ # Currently, this field is specific to gateways of type 'SECURE_WEB_GATEWAY'.
491
+ # Corresponds to the JSON property `network`
492
+ # @return [String]
493
+ attr_accessor :network
494
+
465
495
  # Required. One or more port numbers (1-65535), on which the Gateway will
466
496
  # receive traffic. The proxy binds to the specified ports. Gateways of type '
467
497
  # SECURE_WEB_GATEWAY' are limited to 1 port. Gateways of type 'OPEN_MESH' listen
@@ -490,6 +520,14 @@ module Google
490
520
  # @return [String]
491
521
  attr_accessor :server_tls_policy
492
522
 
523
+ # Optional. The relative resource name identifying the subnetwork in which this
524
+ # SWG is allocated. For example: `projects/*/regions/us-central1/subnetworks/
525
+ # network-1` Currently, this field is specific to gateways of type '
526
+ # SECURE_WEB_GATEWAY".
527
+ # Corresponds to the JSON property `subnetwork`
528
+ # @return [String]
529
+ attr_accessor :subnetwork
530
+
493
531
  # Immutable. The type of the customer managed gateway. This field is required.
494
532
  # If unspecified, an error is returned.
495
533
  # Corresponds to the JSON property `type`
@@ -507,14 +545,19 @@ module Google
507
545
 
508
546
  # Update properties of this object
509
547
  def update!(**args)
548
+ @addresses = args[:addresses] if args.key?(:addresses)
549
+ @certificate_urls = args[:certificate_urls] if args.key?(:certificate_urls)
510
550
  @create_time = args[:create_time] if args.key?(:create_time)
511
551
  @description = args[:description] if args.key?(:description)
552
+ @gateway_security_policy = args[:gateway_security_policy] if args.key?(:gateway_security_policy)
512
553
  @labels = args[:labels] if args.key?(:labels)
513
554
  @name = args[:name] if args.key?(:name)
555
+ @network = args[:network] if args.key?(:network)
514
556
  @ports = args[:ports] if args.key?(:ports)
515
557
  @scope = args[:scope] if args.key?(:scope)
516
558
  @self_link = args[:self_link] if args.key?(:self_link)
517
559
  @server_tls_policy = args[:server_tls_policy] if args.key?(:server_tls_policy)
560
+ @subnetwork = args[:subnetwork] if args.key?(:subnetwork)
518
561
  @type = args[:type] if args.key?(:type)
519
562
  @update_time = args[:update_time] if args.key?(:update_time)
520
563
  end
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module NetworkservicesV1
18
18
  # Version of the google-apis-networkservices_v1 gem
19
- GEM_VERSION = "0.22.0"
19
+ GEM_VERSION = "0.24.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 = "20230227"
25
+ REVISION = "20230404"
26
26
  end
27
27
  end
28
28
  end
@@ -538,14 +538,19 @@ module Google
538
538
  class Gateway
539
539
  # @private
540
540
  class Representation < Google::Apis::Core::JsonRepresentation
541
+ collection :addresses, as: 'addresses'
542
+ collection :certificate_urls, as: 'certificateUrls'
541
543
  property :create_time, as: 'createTime'
542
544
  property :description, as: 'description'
545
+ property :gateway_security_policy, as: 'gatewaySecurityPolicy'
543
546
  hash :labels, as: 'labels'
544
547
  property :name, as: 'name'
548
+ property :network, as: 'network'
545
549
  collection :ports, as: 'ports'
546
550
  property :scope, as: 'scope'
547
551
  property :self_link, as: 'selfLink'
548
552
  property :server_tls_policy, as: 'serverTlsPolicy'
553
+ property :subnetwork, as: 'subnetwork'
549
554
  property :type, as: 'type'
550
555
  property :update_time, as: 'updateTime'
551
556
  end
@@ -1744,611 +1744,6 @@ module Google
1744
1744
  execute_or_queue_command(command, &block)
1745
1745
  end
1746
1746
 
1747
- # Gets the access control policy for a resource. Returns an empty policy if the
1748
- # resource exists and does not have a policy set.
1749
- # @param [String] resource
1750
- # REQUIRED: The resource for which the policy is being requested. See [Resource
1751
- # names](https://cloud.google.com/apis/design/resource_names) for the
1752
- # appropriate value for this field.
1753
- # @param [Fixnum] options_requested_policy_version
1754
- # Optional. The maximum policy version that will be used to format the policy.
1755
- # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
1756
- # rejected. Requests for policies with any conditional role bindings must
1757
- # specify version 3. Policies with no conditional role bindings may specify any
1758
- # valid value or leave the field unset. The policy in the response might use the
1759
- # policy version that you specified, or it might use a lower policy version. For
1760
- # example, if you specify version 3, but the policy has no conditional role
1761
- # bindings, the response uses version 1. To learn which resources support
1762
- # conditions in their IAM policies, see the [IAM documentation](https://cloud.
1763
- # google.com/iam/help/conditions/resource-policies).
1764
- # @param [String] fields
1765
- # Selector specifying which fields to include in a partial response.
1766
- # @param [String] quota_user
1767
- # Available to use for quota purposes for server-side applications. Can be any
1768
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1769
- # @param [Google::Apis::RequestOptions] options
1770
- # Request-specific options
1771
- #
1772
- # @yield [result, err] Result & error if block supplied
1773
- # @yieldparam result [Google::Apis::NetworkservicesV1::Policy] parsed result object
1774
- # @yieldparam err [StandardError] error object if request failed
1775
- #
1776
- # @return [Google::Apis::NetworkservicesV1::Policy]
1777
- #
1778
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1779
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1780
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1781
- def get_project_location_multicast_consumer_association_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
1782
- command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
1783
- command.response_representation = Google::Apis::NetworkservicesV1::Policy::Representation
1784
- command.response_class = Google::Apis::NetworkservicesV1::Policy
1785
- command.params['resource'] = resource unless resource.nil?
1786
- command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
1787
- command.query['fields'] = fields unless fields.nil?
1788
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1789
- execute_or_queue_command(command, &block)
1790
- end
1791
-
1792
- # Sets the access control policy on the specified resource. Replaces any
1793
- # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
1794
- # PERMISSION_DENIED` errors.
1795
- # @param [String] resource
1796
- # REQUIRED: The resource for which the policy is being specified. See [Resource
1797
- # names](https://cloud.google.com/apis/design/resource_names) for the
1798
- # appropriate value for this field.
1799
- # @param [Google::Apis::NetworkservicesV1::SetIamPolicyRequest] set_iam_policy_request_object
1800
- # @param [String] fields
1801
- # Selector specifying which fields to include in a partial response.
1802
- # @param [String] quota_user
1803
- # Available to use for quota purposes for server-side applications. Can be any
1804
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1805
- # @param [Google::Apis::RequestOptions] options
1806
- # Request-specific options
1807
- #
1808
- # @yield [result, err] Result & error if block supplied
1809
- # @yieldparam result [Google::Apis::NetworkservicesV1::Policy] parsed result object
1810
- # @yieldparam err [StandardError] error object if request failed
1811
- #
1812
- # @return [Google::Apis::NetworkservicesV1::Policy]
1813
- #
1814
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1815
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1816
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1817
- def set_multicast_consumer_association_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1818
- command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
1819
- command.request_representation = Google::Apis::NetworkservicesV1::SetIamPolicyRequest::Representation
1820
- command.request_object = set_iam_policy_request_object
1821
- command.response_representation = Google::Apis::NetworkservicesV1::Policy::Representation
1822
- command.response_class = Google::Apis::NetworkservicesV1::Policy
1823
- command.params['resource'] = resource unless resource.nil?
1824
- command.query['fields'] = fields unless fields.nil?
1825
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1826
- execute_or_queue_command(command, &block)
1827
- end
1828
-
1829
- # Returns permissions that a caller has on the specified resource. If the
1830
- # resource does not exist, this will return an empty set of permissions, not a `
1831
- # NOT_FOUND` error. Note: This operation is designed to be used for building
1832
- # permission-aware UIs and command-line tools, not for authorization checking.
1833
- # This operation may "fail open" without warning.
1834
- # @param [String] resource
1835
- # REQUIRED: The resource for which the policy detail is being requested. See [
1836
- # Resource names](https://cloud.google.com/apis/design/resource_names) for the
1837
- # appropriate value for this field.
1838
- # @param [Google::Apis::NetworkservicesV1::TestIamPermissionsRequest] test_iam_permissions_request_object
1839
- # @param [String] fields
1840
- # Selector specifying which fields to include in a partial response.
1841
- # @param [String] quota_user
1842
- # Available to use for quota purposes for server-side applications. Can be any
1843
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1844
- # @param [Google::Apis::RequestOptions] options
1845
- # Request-specific options
1846
- #
1847
- # @yield [result, err] Result & error if block supplied
1848
- # @yieldparam result [Google::Apis::NetworkservicesV1::TestIamPermissionsResponse] parsed result object
1849
- # @yieldparam err [StandardError] error object if request failed
1850
- #
1851
- # @return [Google::Apis::NetworkservicesV1::TestIamPermissionsResponse]
1852
- #
1853
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1854
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1855
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1856
- def test_multicast_consumer_association_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1857
- command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
1858
- command.request_representation = Google::Apis::NetworkservicesV1::TestIamPermissionsRequest::Representation
1859
- command.request_object = test_iam_permissions_request_object
1860
- command.response_representation = Google::Apis::NetworkservicesV1::TestIamPermissionsResponse::Representation
1861
- command.response_class = Google::Apis::NetworkservicesV1::TestIamPermissionsResponse
1862
- command.params['resource'] = resource unless resource.nil?
1863
- command.query['fields'] = fields unless fields.nil?
1864
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1865
- execute_or_queue_command(command, &block)
1866
- end
1867
-
1868
- # Gets the access control policy for a resource. Returns an empty policy if the
1869
- # resource exists and does not have a policy set.
1870
- # @param [String] resource
1871
- # REQUIRED: The resource for which the policy is being requested. See [Resource
1872
- # names](https://cloud.google.com/apis/design/resource_names) for the
1873
- # appropriate value for this field.
1874
- # @param [Fixnum] options_requested_policy_version
1875
- # Optional. The maximum policy version that will be used to format the policy.
1876
- # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
1877
- # rejected. Requests for policies with any conditional role bindings must
1878
- # specify version 3. Policies with no conditional role bindings may specify any
1879
- # valid value or leave the field unset. The policy in the response might use the
1880
- # policy version that you specified, or it might use a lower policy version. For
1881
- # example, if you specify version 3, but the policy has no conditional role
1882
- # bindings, the response uses version 1. To learn which resources support
1883
- # conditions in their IAM policies, see the [IAM documentation](https://cloud.
1884
- # google.com/iam/help/conditions/resource-policies).
1885
- # @param [String] fields
1886
- # Selector specifying which fields to include in a partial response.
1887
- # @param [String] quota_user
1888
- # Available to use for quota purposes for server-side applications. Can be any
1889
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1890
- # @param [Google::Apis::RequestOptions] options
1891
- # Request-specific options
1892
- #
1893
- # @yield [result, err] Result & error if block supplied
1894
- # @yieldparam result [Google::Apis::NetworkservicesV1::Policy] parsed result object
1895
- # @yieldparam err [StandardError] error object if request failed
1896
- #
1897
- # @return [Google::Apis::NetworkservicesV1::Policy]
1898
- #
1899
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1900
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1901
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1902
- def get_project_location_multicast_domain_activation_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
1903
- command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
1904
- command.response_representation = Google::Apis::NetworkservicesV1::Policy::Representation
1905
- command.response_class = Google::Apis::NetworkservicesV1::Policy
1906
- command.params['resource'] = resource unless resource.nil?
1907
- command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
1908
- command.query['fields'] = fields unless fields.nil?
1909
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1910
- execute_or_queue_command(command, &block)
1911
- end
1912
-
1913
- # Sets the access control policy on the specified resource. Replaces any
1914
- # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
1915
- # PERMISSION_DENIED` errors.
1916
- # @param [String] resource
1917
- # REQUIRED: The resource for which the policy is being specified. See [Resource
1918
- # names](https://cloud.google.com/apis/design/resource_names) for the
1919
- # appropriate value for this field.
1920
- # @param [Google::Apis::NetworkservicesV1::SetIamPolicyRequest] set_iam_policy_request_object
1921
- # @param [String] fields
1922
- # Selector specifying which fields to include in a partial response.
1923
- # @param [String] quota_user
1924
- # Available to use for quota purposes for server-side applications. Can be any
1925
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1926
- # @param [Google::Apis::RequestOptions] options
1927
- # Request-specific options
1928
- #
1929
- # @yield [result, err] Result & error if block supplied
1930
- # @yieldparam result [Google::Apis::NetworkservicesV1::Policy] parsed result object
1931
- # @yieldparam err [StandardError] error object if request failed
1932
- #
1933
- # @return [Google::Apis::NetworkservicesV1::Policy]
1934
- #
1935
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1936
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1937
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1938
- def set_multicast_domain_activation_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1939
- command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
1940
- command.request_representation = Google::Apis::NetworkservicesV1::SetIamPolicyRequest::Representation
1941
- command.request_object = set_iam_policy_request_object
1942
- command.response_representation = Google::Apis::NetworkservicesV1::Policy::Representation
1943
- command.response_class = Google::Apis::NetworkservicesV1::Policy
1944
- command.params['resource'] = resource unless resource.nil?
1945
- command.query['fields'] = fields unless fields.nil?
1946
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1947
- execute_or_queue_command(command, &block)
1948
- end
1949
-
1950
- # Returns permissions that a caller has on the specified resource. If the
1951
- # resource does not exist, this will return an empty set of permissions, not a `
1952
- # NOT_FOUND` error. Note: This operation is designed to be used for building
1953
- # permission-aware UIs and command-line tools, not for authorization checking.
1954
- # This operation may "fail open" without warning.
1955
- # @param [String] resource
1956
- # REQUIRED: The resource for which the policy detail is being requested. See [
1957
- # Resource names](https://cloud.google.com/apis/design/resource_names) for the
1958
- # appropriate value for this field.
1959
- # @param [Google::Apis::NetworkservicesV1::TestIamPermissionsRequest] test_iam_permissions_request_object
1960
- # @param [String] fields
1961
- # Selector specifying which fields to include in a partial response.
1962
- # @param [String] quota_user
1963
- # Available to use for quota purposes for server-side applications. Can be any
1964
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1965
- # @param [Google::Apis::RequestOptions] options
1966
- # Request-specific options
1967
- #
1968
- # @yield [result, err] Result & error if block supplied
1969
- # @yieldparam result [Google::Apis::NetworkservicesV1::TestIamPermissionsResponse] parsed result object
1970
- # @yieldparam err [StandardError] error object if request failed
1971
- #
1972
- # @return [Google::Apis::NetworkservicesV1::TestIamPermissionsResponse]
1973
- #
1974
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1975
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1976
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1977
- def test_multicast_domain_activation_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1978
- command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
1979
- command.request_representation = Google::Apis::NetworkservicesV1::TestIamPermissionsRequest::Representation
1980
- command.request_object = test_iam_permissions_request_object
1981
- command.response_representation = Google::Apis::NetworkservicesV1::TestIamPermissionsResponse::Representation
1982
- command.response_class = Google::Apis::NetworkservicesV1::TestIamPermissionsResponse
1983
- command.params['resource'] = resource unless resource.nil?
1984
- command.query['fields'] = fields unless fields.nil?
1985
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1986
- execute_or_queue_command(command, &block)
1987
- end
1988
-
1989
- # Gets the access control policy for a resource. Returns an empty policy if the
1990
- # resource exists and does not have a policy set.
1991
- # @param [String] resource
1992
- # REQUIRED: The resource for which the policy is being requested. See [Resource
1993
- # names](https://cloud.google.com/apis/design/resource_names) for the
1994
- # appropriate value for this field.
1995
- # @param [Fixnum] options_requested_policy_version
1996
- # Optional. The maximum policy version that will be used to format the policy.
1997
- # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
1998
- # rejected. Requests for policies with any conditional role bindings must
1999
- # specify version 3. Policies with no conditional role bindings may specify any
2000
- # valid value or leave the field unset. The policy in the response might use the
2001
- # policy version that you specified, or it might use a lower policy version. For
2002
- # example, if you specify version 3, but the policy has no conditional role
2003
- # bindings, the response uses version 1. To learn which resources support
2004
- # conditions in their IAM policies, see the [IAM documentation](https://cloud.
2005
- # google.com/iam/help/conditions/resource-policies).
2006
- # @param [String] fields
2007
- # Selector specifying which fields to include in a partial response.
2008
- # @param [String] quota_user
2009
- # Available to use for quota purposes for server-side applications. Can be any
2010
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2011
- # @param [Google::Apis::RequestOptions] options
2012
- # Request-specific options
2013
- #
2014
- # @yield [result, err] Result & error if block supplied
2015
- # @yieldparam result [Google::Apis::NetworkservicesV1::Policy] parsed result object
2016
- # @yieldparam err [StandardError] error object if request failed
2017
- #
2018
- # @return [Google::Apis::NetworkservicesV1::Policy]
2019
- #
2020
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2021
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2022
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2023
- def get_project_location_multicast_domain_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
2024
- command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
2025
- command.response_representation = Google::Apis::NetworkservicesV1::Policy::Representation
2026
- command.response_class = Google::Apis::NetworkservicesV1::Policy
2027
- command.params['resource'] = resource unless resource.nil?
2028
- command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
2029
- command.query['fields'] = fields unless fields.nil?
2030
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2031
- execute_or_queue_command(command, &block)
2032
- end
2033
-
2034
- # Sets the access control policy on the specified resource. Replaces any
2035
- # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
2036
- # PERMISSION_DENIED` errors.
2037
- # @param [String] resource
2038
- # REQUIRED: The resource for which the policy is being specified. See [Resource
2039
- # names](https://cloud.google.com/apis/design/resource_names) for the
2040
- # appropriate value for this field.
2041
- # @param [Google::Apis::NetworkservicesV1::SetIamPolicyRequest] set_iam_policy_request_object
2042
- # @param [String] fields
2043
- # Selector specifying which fields to include in a partial response.
2044
- # @param [String] quota_user
2045
- # Available to use for quota purposes for server-side applications. Can be any
2046
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2047
- # @param [Google::Apis::RequestOptions] options
2048
- # Request-specific options
2049
- #
2050
- # @yield [result, err] Result & error if block supplied
2051
- # @yieldparam result [Google::Apis::NetworkservicesV1::Policy] parsed result object
2052
- # @yieldparam err [StandardError] error object if request failed
2053
- #
2054
- # @return [Google::Apis::NetworkservicesV1::Policy]
2055
- #
2056
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2057
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2058
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2059
- def set_multicast_domain_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2060
- command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
2061
- command.request_representation = Google::Apis::NetworkservicesV1::SetIamPolicyRequest::Representation
2062
- command.request_object = set_iam_policy_request_object
2063
- command.response_representation = Google::Apis::NetworkservicesV1::Policy::Representation
2064
- command.response_class = Google::Apis::NetworkservicesV1::Policy
2065
- command.params['resource'] = resource unless resource.nil?
2066
- command.query['fields'] = fields unless fields.nil?
2067
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2068
- execute_or_queue_command(command, &block)
2069
- end
2070
-
2071
- # Returns permissions that a caller has on the specified resource. If the
2072
- # resource does not exist, this will return an empty set of permissions, not a `
2073
- # NOT_FOUND` error. Note: This operation is designed to be used for building
2074
- # permission-aware UIs and command-line tools, not for authorization checking.
2075
- # This operation may "fail open" without warning.
2076
- # @param [String] resource
2077
- # REQUIRED: The resource for which the policy detail is being requested. See [
2078
- # Resource names](https://cloud.google.com/apis/design/resource_names) for the
2079
- # appropriate value for this field.
2080
- # @param [Google::Apis::NetworkservicesV1::TestIamPermissionsRequest] test_iam_permissions_request_object
2081
- # @param [String] fields
2082
- # Selector specifying which fields to include in a partial response.
2083
- # @param [String] quota_user
2084
- # Available to use for quota purposes for server-side applications. Can be any
2085
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2086
- # @param [Google::Apis::RequestOptions] options
2087
- # Request-specific options
2088
- #
2089
- # @yield [result, err] Result & error if block supplied
2090
- # @yieldparam result [Google::Apis::NetworkservicesV1::TestIamPermissionsResponse] parsed result object
2091
- # @yieldparam err [StandardError] error object if request failed
2092
- #
2093
- # @return [Google::Apis::NetworkservicesV1::TestIamPermissionsResponse]
2094
- #
2095
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2096
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2097
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2098
- def test_multicast_domain_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2099
- command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
2100
- command.request_representation = Google::Apis::NetworkservicesV1::TestIamPermissionsRequest::Representation
2101
- command.request_object = test_iam_permissions_request_object
2102
- command.response_representation = Google::Apis::NetworkservicesV1::TestIamPermissionsResponse::Representation
2103
- command.response_class = Google::Apis::NetworkservicesV1::TestIamPermissionsResponse
2104
- command.params['resource'] = resource unless resource.nil?
2105
- command.query['fields'] = fields unless fields.nil?
2106
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2107
- execute_or_queue_command(command, &block)
2108
- end
2109
-
2110
- # Gets the access control policy for a resource. Returns an empty policy if the
2111
- # resource exists and does not have a policy set.
2112
- # @param [String] resource
2113
- # REQUIRED: The resource for which the policy is being requested. See [Resource
2114
- # names](https://cloud.google.com/apis/design/resource_names) for the
2115
- # appropriate value for this field.
2116
- # @param [Fixnum] options_requested_policy_version
2117
- # Optional. The maximum policy version that will be used to format the policy.
2118
- # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
2119
- # rejected. Requests for policies with any conditional role bindings must
2120
- # specify version 3. Policies with no conditional role bindings may specify any
2121
- # valid value or leave the field unset. The policy in the response might use the
2122
- # policy version that you specified, or it might use a lower policy version. For
2123
- # example, if you specify version 3, but the policy has no conditional role
2124
- # bindings, the response uses version 1. To learn which resources support
2125
- # conditions in their IAM policies, see the [IAM documentation](https://cloud.
2126
- # google.com/iam/help/conditions/resource-policies).
2127
- # @param [String] fields
2128
- # Selector specifying which fields to include in a partial response.
2129
- # @param [String] quota_user
2130
- # Available to use for quota purposes for server-side applications. Can be any
2131
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2132
- # @param [Google::Apis::RequestOptions] options
2133
- # Request-specific options
2134
- #
2135
- # @yield [result, err] Result & error if block supplied
2136
- # @yieldparam result [Google::Apis::NetworkservicesV1::Policy] parsed result object
2137
- # @yieldparam err [StandardError] error object if request failed
2138
- #
2139
- # @return [Google::Apis::NetworkservicesV1::Policy]
2140
- #
2141
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2142
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2143
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2144
- def get_project_location_multicast_group_definition_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
2145
- command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
2146
- command.response_representation = Google::Apis::NetworkservicesV1::Policy::Representation
2147
- command.response_class = Google::Apis::NetworkservicesV1::Policy
2148
- command.params['resource'] = resource unless resource.nil?
2149
- command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
2150
- command.query['fields'] = fields unless fields.nil?
2151
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2152
- execute_or_queue_command(command, &block)
2153
- end
2154
-
2155
- # Sets the access control policy on the specified resource. Replaces any
2156
- # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
2157
- # PERMISSION_DENIED` errors.
2158
- # @param [String] resource
2159
- # REQUIRED: The resource for which the policy is being specified. See [Resource
2160
- # names](https://cloud.google.com/apis/design/resource_names) for the
2161
- # appropriate value for this field.
2162
- # @param [Google::Apis::NetworkservicesV1::SetIamPolicyRequest] set_iam_policy_request_object
2163
- # @param [String] fields
2164
- # Selector specifying which fields to include in a partial response.
2165
- # @param [String] quota_user
2166
- # Available to use for quota purposes for server-side applications. Can be any
2167
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2168
- # @param [Google::Apis::RequestOptions] options
2169
- # Request-specific options
2170
- #
2171
- # @yield [result, err] Result & error if block supplied
2172
- # @yieldparam result [Google::Apis::NetworkservicesV1::Policy] parsed result object
2173
- # @yieldparam err [StandardError] error object if request failed
2174
- #
2175
- # @return [Google::Apis::NetworkservicesV1::Policy]
2176
- #
2177
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2178
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2179
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2180
- def set_multicast_group_definition_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2181
- command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
2182
- command.request_representation = Google::Apis::NetworkservicesV1::SetIamPolicyRequest::Representation
2183
- command.request_object = set_iam_policy_request_object
2184
- command.response_representation = Google::Apis::NetworkservicesV1::Policy::Representation
2185
- command.response_class = Google::Apis::NetworkservicesV1::Policy
2186
- command.params['resource'] = resource unless resource.nil?
2187
- command.query['fields'] = fields unless fields.nil?
2188
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2189
- execute_or_queue_command(command, &block)
2190
- end
2191
-
2192
- # Returns permissions that a caller has on the specified resource. If the
2193
- # resource does not exist, this will return an empty set of permissions, not a `
2194
- # NOT_FOUND` error. Note: This operation is designed to be used for building
2195
- # permission-aware UIs and command-line tools, not for authorization checking.
2196
- # This operation may "fail open" without warning.
2197
- # @param [String] resource
2198
- # REQUIRED: The resource for which the policy detail is being requested. See [
2199
- # Resource names](https://cloud.google.com/apis/design/resource_names) for the
2200
- # appropriate value for this field.
2201
- # @param [Google::Apis::NetworkservicesV1::TestIamPermissionsRequest] test_iam_permissions_request_object
2202
- # @param [String] fields
2203
- # Selector specifying which fields to include in a partial response.
2204
- # @param [String] quota_user
2205
- # Available to use for quota purposes for server-side applications. Can be any
2206
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2207
- # @param [Google::Apis::RequestOptions] options
2208
- # Request-specific options
2209
- #
2210
- # @yield [result, err] Result & error if block supplied
2211
- # @yieldparam result [Google::Apis::NetworkservicesV1::TestIamPermissionsResponse] parsed result object
2212
- # @yieldparam err [StandardError] error object if request failed
2213
- #
2214
- # @return [Google::Apis::NetworkservicesV1::TestIamPermissionsResponse]
2215
- #
2216
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2217
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2218
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2219
- def test_multicast_group_definition_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2220
- command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
2221
- command.request_representation = Google::Apis::NetworkservicesV1::TestIamPermissionsRequest::Representation
2222
- command.request_object = test_iam_permissions_request_object
2223
- command.response_representation = Google::Apis::NetworkservicesV1::TestIamPermissionsResponse::Representation
2224
- command.response_class = Google::Apis::NetworkservicesV1::TestIamPermissionsResponse
2225
- command.params['resource'] = resource unless resource.nil?
2226
- command.query['fields'] = fields unless fields.nil?
2227
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2228
- execute_or_queue_command(command, &block)
2229
- end
2230
-
2231
- # Gets the access control policy for a resource. Returns an empty policy if the
2232
- # resource exists and does not have a policy set.
2233
- # @param [String] resource
2234
- # REQUIRED: The resource for which the policy is being requested. See [Resource
2235
- # names](https://cloud.google.com/apis/design/resource_names) for the
2236
- # appropriate value for this field.
2237
- # @param [Fixnum] options_requested_policy_version
2238
- # Optional. The maximum policy version that will be used to format the policy.
2239
- # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
2240
- # rejected. Requests for policies with any conditional role bindings must
2241
- # specify version 3. Policies with no conditional role bindings may specify any
2242
- # valid value or leave the field unset. The policy in the response might use the
2243
- # policy version that you specified, or it might use a lower policy version. For
2244
- # example, if you specify version 3, but the policy has no conditional role
2245
- # bindings, the response uses version 1. To learn which resources support
2246
- # conditions in their IAM policies, see the [IAM documentation](https://cloud.
2247
- # google.com/iam/help/conditions/resource-policies).
2248
- # @param [String] fields
2249
- # Selector specifying which fields to include in a partial response.
2250
- # @param [String] quota_user
2251
- # Available to use for quota purposes for server-side applications. Can be any
2252
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2253
- # @param [Google::Apis::RequestOptions] options
2254
- # Request-specific options
2255
- #
2256
- # @yield [result, err] Result & error if block supplied
2257
- # @yieldparam result [Google::Apis::NetworkservicesV1::Policy] parsed result object
2258
- # @yieldparam err [StandardError] error object if request failed
2259
- #
2260
- # @return [Google::Apis::NetworkservicesV1::Policy]
2261
- #
2262
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2263
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2264
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2265
- def get_project_location_multicast_group_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
2266
- command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
2267
- command.response_representation = Google::Apis::NetworkservicesV1::Policy::Representation
2268
- command.response_class = Google::Apis::NetworkservicesV1::Policy
2269
- command.params['resource'] = resource unless resource.nil?
2270
- command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
2271
- command.query['fields'] = fields unless fields.nil?
2272
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2273
- execute_or_queue_command(command, &block)
2274
- end
2275
-
2276
- # Sets the access control policy on the specified resource. Replaces any
2277
- # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
2278
- # PERMISSION_DENIED` errors.
2279
- # @param [String] resource
2280
- # REQUIRED: The resource for which the policy is being specified. See [Resource
2281
- # names](https://cloud.google.com/apis/design/resource_names) for the
2282
- # appropriate value for this field.
2283
- # @param [Google::Apis::NetworkservicesV1::SetIamPolicyRequest] set_iam_policy_request_object
2284
- # @param [String] fields
2285
- # Selector specifying which fields to include in a partial response.
2286
- # @param [String] quota_user
2287
- # Available to use for quota purposes for server-side applications. Can be any
2288
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2289
- # @param [Google::Apis::RequestOptions] options
2290
- # Request-specific options
2291
- #
2292
- # @yield [result, err] Result & error if block supplied
2293
- # @yieldparam result [Google::Apis::NetworkservicesV1::Policy] parsed result object
2294
- # @yieldparam err [StandardError] error object if request failed
2295
- #
2296
- # @return [Google::Apis::NetworkservicesV1::Policy]
2297
- #
2298
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2299
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2300
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2301
- def set_multicast_group_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2302
- command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
2303
- command.request_representation = Google::Apis::NetworkservicesV1::SetIamPolicyRequest::Representation
2304
- command.request_object = set_iam_policy_request_object
2305
- command.response_representation = Google::Apis::NetworkservicesV1::Policy::Representation
2306
- command.response_class = Google::Apis::NetworkservicesV1::Policy
2307
- command.params['resource'] = resource unless resource.nil?
2308
- command.query['fields'] = fields unless fields.nil?
2309
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2310
- execute_or_queue_command(command, &block)
2311
- end
2312
-
2313
- # Returns permissions that a caller has on the specified resource. If the
2314
- # resource does not exist, this will return an empty set of permissions, not a `
2315
- # NOT_FOUND` error. Note: This operation is designed to be used for building
2316
- # permission-aware UIs and command-line tools, not for authorization checking.
2317
- # This operation may "fail open" without warning.
2318
- # @param [String] resource
2319
- # REQUIRED: The resource for which the policy detail is being requested. See [
2320
- # Resource names](https://cloud.google.com/apis/design/resource_names) for the
2321
- # appropriate value for this field.
2322
- # @param [Google::Apis::NetworkservicesV1::TestIamPermissionsRequest] test_iam_permissions_request_object
2323
- # @param [String] fields
2324
- # Selector specifying which fields to include in a partial response.
2325
- # @param [String] quota_user
2326
- # Available to use for quota purposes for server-side applications. Can be any
2327
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2328
- # @param [Google::Apis::RequestOptions] options
2329
- # Request-specific options
2330
- #
2331
- # @yield [result, err] Result & error if block supplied
2332
- # @yieldparam result [Google::Apis::NetworkservicesV1::TestIamPermissionsResponse] parsed result object
2333
- # @yieldparam err [StandardError] error object if request failed
2334
- #
2335
- # @return [Google::Apis::NetworkservicesV1::TestIamPermissionsResponse]
2336
- #
2337
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2338
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2339
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2340
- def test_multicast_group_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2341
- command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
2342
- command.request_representation = Google::Apis::NetworkservicesV1::TestIamPermissionsRequest::Representation
2343
- command.request_object = test_iam_permissions_request_object
2344
- command.response_representation = Google::Apis::NetworkservicesV1::TestIamPermissionsResponse::Representation
2345
- command.response_class = Google::Apis::NetworkservicesV1::TestIamPermissionsResponse
2346
- command.params['resource'] = resource unless resource.nil?
2347
- command.query['fields'] = fields unless fields.nil?
2348
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2349
- execute_or_queue_command(command, &block)
2350
- end
2351
-
2352
1747
  # Starts asynchronous cancellation on a long-running operation. The server makes
2353
1748
  # a best effort to cancel the operation, but success is not guaranteed. If the
2354
1749
  # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
@@ -2454,13 +1849,7 @@ module Google
2454
1849
  end
2455
1850
 
2456
1851
  # Lists operations that match the specified filter in the request. If the server
2457
- # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
2458
- # binding allows API services to override the binding to use different resource
2459
- # name schemes, such as `users/*/operations`. To override the binding, API
2460
- # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
2461
- # service configuration. For backwards compatibility, the default name includes
2462
- # the operations collection id, however overriding users must ensure the name
2463
- # binding is the parent resource, without the operations collection id.
1852
+ # doesn't support this method, it returns `UNIMPLEMENTED`.
2464
1853
  # @param [String] name
2465
1854
  # The name of the operation's parent resource.
2466
1855
  # @param [String] filter
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-networkservices_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.22.0
4
+ version: 0.24.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-03-05 00:00:00.000000000 Z
11
+ date: 2023-04-16 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-networkservices_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-networkservices_v1/v0.22.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-networkservices_v1/v0.24.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-networkservices_v1
63
63
  post_install_message:
64
64
  rdoc_options: []