google-apis-networksecurity_v1beta1 0.18.0 → 0.19.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1710,17 +1710,16 @@ module Google
1710
1710
  execute_or_queue_command(command, &block)
1711
1711
  end
1712
1712
 
1713
- # Starts asynchronous cancellation on a long-running operation. The server makes
1714
- # a best effort to cancel the operation, but success is not guaranteed. If the
1715
- # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
1716
- # Clients can use Operations.GetOperation or other methods to check whether the
1717
- # cancellation succeeded or whether the operation completed despite cancellation.
1718
- # On successful cancellation, the operation is not deleted; instead, it becomes
1719
- # an operation with an Operation.error value with a google.rpc.Status.code of 1,
1720
- # corresponding to `Code.CANCELLED`.
1721
- # @param [String] name
1722
- # The name of the operation resource to be cancelled.
1723
- # @param [Google::Apis::NetworksecurityV1beta1::CancelOperationRequest] cancel_operation_request_object
1713
+ # Creates a new GatewaySecurityPolicy in a given project and location.
1714
+ # @param [String] parent
1715
+ # Required. The parent resource of the GatewaySecurityPolicy. Must be in the
1716
+ # format `projects/`project`/locations/`location``.
1717
+ # @param [Google::Apis::NetworksecurityV1beta1::GatewaySecurityPolicy] gateway_security_policy_object
1718
+ # @param [String] gateway_security_policy_id
1719
+ # Required. Short name of the GatewaySecurityPolicy resource to be created. This
1720
+ # value should be 1-63 characters long, containing only letters, numbers,
1721
+ # hyphens, and underscores, and should not start with a number. E.g. "
1722
+ # gateway_security_policy1".
1724
1723
  # @param [String] fields
1725
1724
  # Selector specifying which fields to include in a partial response.
1726
1725
  # @param [String] quota_user
@@ -1730,32 +1729,31 @@ module Google
1730
1729
  # Request-specific options
1731
1730
  #
1732
1731
  # @yield [result, err] Result & error if block supplied
1733
- # @yieldparam result [Google::Apis::NetworksecurityV1beta1::Empty] parsed result object
1732
+ # @yieldparam result [Google::Apis::NetworksecurityV1beta1::Operation] parsed result object
1734
1733
  # @yieldparam err [StandardError] error object if request failed
1735
1734
  #
1736
- # @return [Google::Apis::NetworksecurityV1beta1::Empty]
1735
+ # @return [Google::Apis::NetworksecurityV1beta1::Operation]
1737
1736
  #
1738
1737
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1739
1738
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1740
1739
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1741
- def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1742
- command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options)
1743
- command.request_representation = Google::Apis::NetworksecurityV1beta1::CancelOperationRequest::Representation
1744
- command.request_object = cancel_operation_request_object
1745
- command.response_representation = Google::Apis::NetworksecurityV1beta1::Empty::Representation
1746
- command.response_class = Google::Apis::NetworksecurityV1beta1::Empty
1747
- command.params['name'] = name unless name.nil?
1740
+ def create_project_location_gateway_security_policy(parent, gateway_security_policy_object = nil, gateway_security_policy_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1741
+ command = make_simple_command(:post, 'v1beta1/{+parent}/gatewaySecurityPolicies', options)
1742
+ command.request_representation = Google::Apis::NetworksecurityV1beta1::GatewaySecurityPolicy::Representation
1743
+ command.request_object = gateway_security_policy_object
1744
+ command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation
1745
+ command.response_class = Google::Apis::NetworksecurityV1beta1::Operation
1746
+ command.params['parent'] = parent unless parent.nil?
1747
+ command.query['gatewaySecurityPolicyId'] = gateway_security_policy_id unless gateway_security_policy_id.nil?
1748
1748
  command.query['fields'] = fields unless fields.nil?
1749
1749
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1750
1750
  execute_or_queue_command(command, &block)
1751
1751
  end
1752
1752
 
1753
- # Deletes a long-running operation. This method indicates that the client is no
1754
- # longer interested in the operation result. It does not cancel the operation.
1755
- # If the server doesn't support this method, it returns `google.rpc.Code.
1756
- # UNIMPLEMENTED`.
1753
+ # Deletes a single GatewaySecurityPolicy.
1757
1754
  # @param [String] name
1758
- # The name of the operation resource to be deleted.
1755
+ # Required. A name of the GatewaySecurityPolicy to delete. Must be in the format
1756
+ # `projects/`project`/locations/`location`/gatewaySecurityPolicies/*`.
1759
1757
  # @param [String] fields
1760
1758
  # Selector specifying which fields to include in a partial response.
1761
1759
  # @param [String] quota_user
@@ -1765,28 +1763,28 @@ module Google
1765
1763
  # Request-specific options
1766
1764
  #
1767
1765
  # @yield [result, err] Result & error if block supplied
1768
- # @yieldparam result [Google::Apis::NetworksecurityV1beta1::Empty] parsed result object
1766
+ # @yieldparam result [Google::Apis::NetworksecurityV1beta1::Operation] parsed result object
1769
1767
  # @yieldparam err [StandardError] error object if request failed
1770
1768
  #
1771
- # @return [Google::Apis::NetworksecurityV1beta1::Empty]
1769
+ # @return [Google::Apis::NetworksecurityV1beta1::Operation]
1772
1770
  #
1773
1771
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1774
1772
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1775
1773
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1776
- def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
1774
+ def delete_project_location_gateway_security_policy(name, fields: nil, quota_user: nil, options: nil, &block)
1777
1775
  command = make_simple_command(:delete, 'v1beta1/{+name}', options)
1778
- command.response_representation = Google::Apis::NetworksecurityV1beta1::Empty::Representation
1779
- command.response_class = Google::Apis::NetworksecurityV1beta1::Empty
1776
+ command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation
1777
+ command.response_class = Google::Apis::NetworksecurityV1beta1::Operation
1780
1778
  command.params['name'] = name unless name.nil?
1781
1779
  command.query['fields'] = fields unless fields.nil?
1782
1780
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1783
1781
  execute_or_queue_command(command, &block)
1784
1782
  end
1785
1783
 
1786
- # Gets the latest state of a long-running operation. Clients can use this method
1787
- # to poll the operation result at intervals as recommended by the API service.
1784
+ # Gets details of a single GatewaySecurityPolicy.
1788
1785
  # @param [String] name
1789
- # The name of the operation resource.
1786
+ # Required. A name of the GatewaySecurityPolicy to get. Must be in the format `
1787
+ # projects/`project`/locations/`location`/gatewaySecurityPolicies/*`.
1790
1788
  # @param [String] fields
1791
1789
  # Selector specifying which fields to include in a partial response.
1792
1790
  # @param [String] quota_user
@@ -1796,34 +1794,35 @@ module Google
1796
1794
  # Request-specific options
1797
1795
  #
1798
1796
  # @yield [result, err] Result & error if block supplied
1799
- # @yieldparam result [Google::Apis::NetworksecurityV1beta1::Operation] parsed result object
1797
+ # @yieldparam result [Google::Apis::NetworksecurityV1beta1::GatewaySecurityPolicy] parsed result object
1800
1798
  # @yieldparam err [StandardError] error object if request failed
1801
1799
  #
1802
- # @return [Google::Apis::NetworksecurityV1beta1::Operation]
1800
+ # @return [Google::Apis::NetworksecurityV1beta1::GatewaySecurityPolicy]
1803
1801
  #
1804
1802
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1805
1803
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1806
1804
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1807
- def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
1805
+ def get_project_location_gateway_security_policy(name, fields: nil, quota_user: nil, options: nil, &block)
1808
1806
  command = make_simple_command(:get, 'v1beta1/{+name}', options)
1809
- command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation
1810
- command.response_class = Google::Apis::NetworksecurityV1beta1::Operation
1807
+ command.response_representation = Google::Apis::NetworksecurityV1beta1::GatewaySecurityPolicy::Representation
1808
+ command.response_class = Google::Apis::NetworksecurityV1beta1::GatewaySecurityPolicy
1811
1809
  command.params['name'] = name unless name.nil?
1812
1810
  command.query['fields'] = fields unless fields.nil?
1813
1811
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1814
1812
  execute_or_queue_command(command, &block)
1815
1813
  end
1816
1814
 
1817
- # Lists operations that match the specified filter in the request. If the server
1818
- # doesn't support this method, it returns `UNIMPLEMENTED`.
1819
- # @param [String] name
1820
- # The name of the operation's parent resource.
1821
- # @param [String] filter
1822
- # The standard list filter.
1815
+ # Lists GatewaySecurityPolicies in a given project and location.
1816
+ # @param [String] parent
1817
+ # Required. The project and location from which the GatewaySecurityPolicies
1818
+ # should be listed, specified in the format `projects/`project`/locations/`
1819
+ # location``.
1823
1820
  # @param [Fixnum] page_size
1824
- # The standard list page size.
1821
+ # Maximum number of GatewaySecurityPolicies to return per call.
1825
1822
  # @param [String] page_token
1826
- # The standard list page token.
1823
+ # The value returned by the last 'ListGatewaySecurityPoliciesResponse' Indicates
1824
+ # that this is a continuation of a prior 'ListGatewaySecurityPolicies' call, and
1825
+ # that the system should return the next page of data.
1827
1826
  # @param [String] fields
1828
1827
  # Selector specifying which fields to include in a partial response.
1829
1828
  # @param [String] quota_user
@@ -1833,20 +1832,19 @@ module Google
1833
1832
  # Request-specific options
1834
1833
  #
1835
1834
  # @yield [result, err] Result & error if block supplied
1836
- # @yieldparam result [Google::Apis::NetworksecurityV1beta1::ListOperationsResponse] parsed result object
1835
+ # @yieldparam result [Google::Apis::NetworksecurityV1beta1::ListGatewaySecurityPoliciesResponse] parsed result object
1837
1836
  # @yieldparam err [StandardError] error object if request failed
1838
1837
  #
1839
- # @return [Google::Apis::NetworksecurityV1beta1::ListOperationsResponse]
1838
+ # @return [Google::Apis::NetworksecurityV1beta1::ListGatewaySecurityPoliciesResponse]
1840
1839
  #
1841
1840
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1842
1841
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1843
1842
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1844
- def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1845
- command = make_simple_command(:get, 'v1beta1/{+name}/operations', options)
1846
- command.response_representation = Google::Apis::NetworksecurityV1beta1::ListOperationsResponse::Representation
1847
- command.response_class = Google::Apis::NetworksecurityV1beta1::ListOperationsResponse
1848
- command.params['name'] = name unless name.nil?
1849
- command.query['filter'] = filter unless filter.nil?
1843
+ def list_project_location_gateway_security_policies(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1844
+ command = make_simple_command(:get, 'v1beta1/{+parent}/gatewaySecurityPolicies', options)
1845
+ command.response_representation = Google::Apis::NetworksecurityV1beta1::ListGatewaySecurityPoliciesResponse::Representation
1846
+ command.response_class = Google::Apis::NetworksecurityV1beta1::ListGatewaySecurityPoliciesResponse
1847
+ command.params['parent'] = parent unless parent.nil?
1850
1848
  command.query['pageSize'] = page_size unless page_size.nil?
1851
1849
  command.query['pageToken'] = page_token unless page_token.nil?
1852
1850
  command.query['fields'] = fields unless fields.nil?
@@ -1854,15 +1852,19 @@ module Google
1854
1852
  execute_or_queue_command(command, &block)
1855
1853
  end
1856
1854
 
1857
- # Creates a new ServerTlsPolicy in a given project and location.
1858
- # @param [String] parent
1859
- # Required. The parent resource of the ServerTlsPolicy. Must be in the format `
1860
- # projects/*/locations/`location``.
1861
- # @param [Google::Apis::NetworksecurityV1beta1::ServerTlsPolicy] server_tls_policy_object
1862
- # @param [String] server_tls_policy_id
1863
- # Required. Short name of the ServerTlsPolicy resource to be created. This value
1864
- # should be 1-63 characters long, containing only letters, numbers, hyphens, and
1865
- # underscores, and should not start with a number. E.g. "server_mtls_policy".
1855
+ # Updates the parameters of a single GatewaySecurityPolicy.
1856
+ # @param [String] name
1857
+ # Required. Name of the resource. Name is of the form projects/`project`/
1858
+ # locations/`location`/gatewaySecurityPolicies/`gateway_security_policy`
1859
+ # gateway_security_policy should match the pattern:(^[a-z]([a-z0-9-]`0,61`[a-z0-
1860
+ # 9])?$).
1861
+ # @param [Google::Apis::NetworksecurityV1beta1::GatewaySecurityPolicy] gateway_security_policy_object
1862
+ # @param [String] update_mask
1863
+ # Optional. Field mask is used to specify the fields to be overwritten in the
1864
+ # GatewaySecurityPolicy resource by the update. The fields specified in the
1865
+ # update_mask are relative to the resource, not the full request. A field will
1866
+ # be overwritten if it is in the mask. If the user does not provide a mask then
1867
+ # all fields will be overwritten.
1866
1868
  # @param [String] fields
1867
1869
  # Selector specifying which fields to include in a partial response.
1868
1870
  # @param [String] quota_user
@@ -1880,23 +1882,28 @@ module Google
1880
1882
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1881
1883
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1882
1884
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1883
- def create_project_location_server_tls_policy(parent, server_tls_policy_object = nil, server_tls_policy_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1884
- command = make_simple_command(:post, 'v1beta1/{+parent}/serverTlsPolicies', options)
1885
- command.request_representation = Google::Apis::NetworksecurityV1beta1::ServerTlsPolicy::Representation
1886
- command.request_object = server_tls_policy_object
1885
+ def patch_project_location_gateway_security_policy(name, gateway_security_policy_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1886
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
1887
+ command.request_representation = Google::Apis::NetworksecurityV1beta1::GatewaySecurityPolicy::Representation
1888
+ command.request_object = gateway_security_policy_object
1887
1889
  command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation
1888
1890
  command.response_class = Google::Apis::NetworksecurityV1beta1::Operation
1889
- command.params['parent'] = parent unless parent.nil?
1890
- command.query['serverTlsPolicyId'] = server_tls_policy_id unless server_tls_policy_id.nil?
1891
+ command.params['name'] = name unless name.nil?
1892
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1891
1893
  command.query['fields'] = fields unless fields.nil?
1892
1894
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1893
1895
  execute_or_queue_command(command, &block)
1894
1896
  end
1895
1897
 
1896
- # Deletes a single ServerTlsPolicy.
1897
- # @param [String] name
1898
- # Required. A name of the ServerTlsPolicy to delete. Must be in the format `
1899
- # projects/*/locations/`location`/serverTlsPolicies/*`.
1898
+ # Creates a new GatewaySecurityPolicy in a given project and location.
1899
+ # @param [String] parent
1900
+ # Required. The parent where this rule will be created. Format : projects/`
1901
+ # project`/location/`location`/gatewaySecurityPolicies/*
1902
+ # @param [Google::Apis::NetworksecurityV1beta1::GatewaySecurityPolicyRule] gateway_security_policy_rule_object
1903
+ # @param [String] gateway_security_policy_rule_id
1904
+ # The ID to use for the rule, which will become the final component of the rule'
1905
+ # s resource name. This value should be 4-63 characters, and valid characters
1906
+ # are /a-z-/.
1900
1907
  # @param [String] fields
1901
1908
  # Selector specifying which fields to include in a partial response.
1902
1909
  # @param [String] quota_user
@@ -1914,20 +1921,24 @@ module Google
1914
1921
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1915
1922
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1916
1923
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1917
- def delete_project_location_server_tls_policy(name, fields: nil, quota_user: nil, options: nil, &block)
1918
- command = make_simple_command(:delete, 'v1beta1/{+name}', options)
1924
+ def create_project_location_gateway_security_policy_rule(parent, gateway_security_policy_rule_object = nil, gateway_security_policy_rule_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1925
+ command = make_simple_command(:post, 'v1beta1/{+parent}/rules', options)
1926
+ command.request_representation = Google::Apis::NetworksecurityV1beta1::GatewaySecurityPolicyRule::Representation
1927
+ command.request_object = gateway_security_policy_rule_object
1919
1928
  command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation
1920
1929
  command.response_class = Google::Apis::NetworksecurityV1beta1::Operation
1921
- command.params['name'] = name unless name.nil?
1930
+ command.params['parent'] = parent unless parent.nil?
1931
+ command.query['gatewaySecurityPolicyRuleId'] = gateway_security_policy_rule_id unless gateway_security_policy_rule_id.nil?
1922
1932
  command.query['fields'] = fields unless fields.nil?
1923
1933
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1924
1934
  execute_or_queue_command(command, &block)
1925
1935
  end
1926
1936
 
1927
- # Gets details of a single ServerTlsPolicy.
1937
+ # Deletes a single GatewaySecurityPolicyRule.
1928
1938
  # @param [String] name
1929
- # Required. A name of the ServerTlsPolicy to get. Must be in the format `
1930
- # projects/*/locations/`location`/serverTlsPolicies/*`.
1939
+ # Required. A name of the GatewaySecurityPolicyRule to delete. Must be in the
1940
+ # format `projects/`project`/locations/`location`/gatewaySecurityPolicies/`
1941
+ # gatewaySecurityPolicy`/rules/*`.
1931
1942
  # @param [String] fields
1932
1943
  # Selector specifying which fields to include in a partial response.
1933
1944
  # @param [String] quota_user
@@ -1937,41 +1948,28 @@ module Google
1937
1948
  # Request-specific options
1938
1949
  #
1939
1950
  # @yield [result, err] Result & error if block supplied
1940
- # @yieldparam result [Google::Apis::NetworksecurityV1beta1::ServerTlsPolicy] parsed result object
1951
+ # @yieldparam result [Google::Apis::NetworksecurityV1beta1::Operation] parsed result object
1941
1952
  # @yieldparam err [StandardError] error object if request failed
1942
1953
  #
1943
- # @return [Google::Apis::NetworksecurityV1beta1::ServerTlsPolicy]
1954
+ # @return [Google::Apis::NetworksecurityV1beta1::Operation]
1944
1955
  #
1945
1956
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1946
1957
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1947
1958
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1948
- def get_project_location_server_tls_policy(name, fields: nil, quota_user: nil, options: nil, &block)
1949
- command = make_simple_command(:get, 'v1beta1/{+name}', options)
1950
- command.response_representation = Google::Apis::NetworksecurityV1beta1::ServerTlsPolicy::Representation
1951
- command.response_class = Google::Apis::NetworksecurityV1beta1::ServerTlsPolicy
1959
+ def delete_project_location_gateway_security_policy_rule(name, fields: nil, quota_user: nil, options: nil, &block)
1960
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
1961
+ command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation
1962
+ command.response_class = Google::Apis::NetworksecurityV1beta1::Operation
1952
1963
  command.params['name'] = name unless name.nil?
1953
1964
  command.query['fields'] = fields unless fields.nil?
1954
1965
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1955
1966
  execute_or_queue_command(command, &block)
1956
1967
  end
1957
1968
 
1958
- # Gets the access control policy for a resource. Returns an empty policy if the
1959
- # resource exists and does not have a policy set.
1960
- # @param [String] resource
1961
- # REQUIRED: The resource for which the policy is being requested. See [Resource
1962
- # names](https://cloud.google.com/apis/design/resource_names) for the
1963
- # appropriate value for this field.
1964
- # @param [Fixnum] options_requested_policy_version
1965
- # Optional. The maximum policy version that will be used to format the policy.
1966
- # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
1967
- # rejected. Requests for policies with any conditional role bindings must
1968
- # specify version 3. Policies with no conditional role bindings may specify any
1969
- # valid value or leave the field unset. The policy in the response might use the
1970
- # policy version that you specified, or it might use a lower policy version. For
1971
- # example, if you specify version 3, but the policy has no conditional role
1972
- # bindings, the response uses version 1. To learn which resources support
1973
- # conditions in their IAM policies, see the [IAM documentation](https://cloud.
1974
- # google.com/iam/help/conditions/resource-policies).
1969
+ # Gets details of a single GatewaySecurityPolicyRule.
1970
+ # @param [String] name
1971
+ # Required. The name of the GatewaySecurityPolicyRule to retrieve. Format:
1972
+ # projects/`project`/location/`location`/gatewaySecurityPolicies/*/rules/*
1975
1973
  # @param [String] fields
1976
1974
  # Selector specifying which fields to include in a partial response.
1977
1975
  # @param [String] quota_user
@@ -1981,35 +1979,37 @@ module Google
1981
1979
  # Request-specific options
1982
1980
  #
1983
1981
  # @yield [result, err] Result & error if block supplied
1984
- # @yieldparam result [Google::Apis::NetworksecurityV1beta1::GoogleIamV1Policy] parsed result object
1982
+ # @yieldparam result [Google::Apis::NetworksecurityV1beta1::GatewaySecurityPolicyRule] parsed result object
1985
1983
  # @yieldparam err [StandardError] error object if request failed
1986
1984
  #
1987
- # @return [Google::Apis::NetworksecurityV1beta1::GoogleIamV1Policy]
1985
+ # @return [Google::Apis::NetworksecurityV1beta1::GatewaySecurityPolicyRule]
1988
1986
  #
1989
1987
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1990
1988
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1991
1989
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1992
- def get_project_location_server_tls_policy_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
1993
- command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options)
1994
- command.response_representation = Google::Apis::NetworksecurityV1beta1::GoogleIamV1Policy::Representation
1995
- command.response_class = Google::Apis::NetworksecurityV1beta1::GoogleIamV1Policy
1996
- command.params['resource'] = resource unless resource.nil?
1997
- command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
1990
+ def get_project_location_gateway_security_policy_rule(name, fields: nil, quota_user: nil, options: nil, &block)
1991
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
1992
+ command.response_representation = Google::Apis::NetworksecurityV1beta1::GatewaySecurityPolicyRule::Representation
1993
+ command.response_class = Google::Apis::NetworksecurityV1beta1::GatewaySecurityPolicyRule
1994
+ command.params['name'] = name unless name.nil?
1998
1995
  command.query['fields'] = fields unless fields.nil?
1999
1996
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2000
1997
  execute_or_queue_command(command, &block)
2001
1998
  end
2002
1999
 
2003
- # Lists ServerTlsPolicies in a given project and location.
2000
+ # Lists GatewaySecurityPolicyRules in a given project and location.
2004
2001
  # @param [String] parent
2005
- # Required. The project and location from which the ServerTlsPolicies should be
2006
- # listed, specified in the format `projects/*/locations/`location``.
2002
+ # Required. The project, location and GatewaySecurityPolicy from which the
2003
+ # GatewaySecurityPolicyRules should be listed, specified in the format `projects/
2004
+ # `project`/locations/`location`/gatewaySecurityPolicies/`gatewaySecurityPolicy``
2005
+ # .
2007
2006
  # @param [Fixnum] page_size
2008
- # Maximum number of ServerTlsPolicies to return per call.
2007
+ # Maximum number of GatewaySecurityPolicyRules to return per call.
2009
2008
  # @param [String] page_token
2010
- # The value returned by the last `ListServerTlsPoliciesResponse` Indicates that
2011
- # this is a continuation of a prior `ListServerTlsPolicies` call, and that the
2012
- # system should return the next page of data.
2009
+ # The value returned by the last 'ListGatewaySecurityPolicyRulesResponse'
2010
+ # Indicates that this is a continuation of a prior '
2011
+ # ListGatewaySecurityPolicyRules' call, and that the system should return the
2012
+ # next page of data.
2013
2013
  # @param [String] fields
2014
2014
  # Selector specifying which fields to include in a partial response.
2015
2015
  # @param [String] quota_user
@@ -2019,18 +2019,18 @@ module Google
2019
2019
  # Request-specific options
2020
2020
  #
2021
2021
  # @yield [result, err] Result & error if block supplied
2022
- # @yieldparam result [Google::Apis::NetworksecurityV1beta1::ListServerTlsPoliciesResponse] parsed result object
2022
+ # @yieldparam result [Google::Apis::NetworksecurityV1beta1::ListGatewaySecurityPolicyRulesResponse] parsed result object
2023
2023
  # @yieldparam err [StandardError] error object if request failed
2024
2024
  #
2025
- # @return [Google::Apis::NetworksecurityV1beta1::ListServerTlsPoliciesResponse]
2025
+ # @return [Google::Apis::NetworksecurityV1beta1::ListGatewaySecurityPolicyRulesResponse]
2026
2026
  #
2027
2027
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2028
2028
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2029
2029
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2030
- def list_project_location_server_tls_policies(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2031
- command = make_simple_command(:get, 'v1beta1/{+parent}/serverTlsPolicies', options)
2032
- command.response_representation = Google::Apis::NetworksecurityV1beta1::ListServerTlsPoliciesResponse::Representation
2033
- command.response_class = Google::Apis::NetworksecurityV1beta1::ListServerTlsPoliciesResponse
2030
+ def list_project_location_gateway_security_policy_rules(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2031
+ command = make_simple_command(:get, 'v1beta1/{+parent}/rules', options)
2032
+ command.response_representation = Google::Apis::NetworksecurityV1beta1::ListGatewaySecurityPolicyRulesResponse::Representation
2033
+ command.response_class = Google::Apis::NetworksecurityV1beta1::ListGatewaySecurityPolicyRulesResponse
2034
2034
  command.params['parent'] = parent unless parent.nil?
2035
2035
  command.query['pageSize'] = page_size unless page_size.nil?
2036
2036
  command.query['pageToken'] = page_token unless page_token.nil?
@@ -2039,14 +2039,16 @@ module Google
2039
2039
  execute_or_queue_command(command, &block)
2040
2040
  end
2041
2041
 
2042
- # Updates the parameters of a single ServerTlsPolicy.
2042
+ # Updates the parameters of a single GatewaySecurityPolicyRule.
2043
2043
  # @param [String] name
2044
- # Required. Name of the ServerTlsPolicy resource. It matches the pattern `
2045
- # projects/*/locations/`location`/serverTlsPolicies/`server_tls_policy``
2046
- # @param [Google::Apis::NetworksecurityV1beta1::ServerTlsPolicy] server_tls_policy_object
2044
+ # Required. Immutable. Name of the resource. ame is the full resource name so
2045
+ # projects/`project`/locations/`location`/gatewaySecurityPolicies/`
2046
+ # gateway_security_policy`/rules/`rule` rule should match the pattern: (^[a-z]([
2047
+ # a-z0-9-]`0,61`[a-z0-9])?$).
2048
+ # @param [Google::Apis::NetworksecurityV1beta1::GatewaySecurityPolicyRule] gateway_security_policy_rule_object
2047
2049
  # @param [String] update_mask
2048
2050
  # Optional. Field mask is used to specify the fields to be overwritten in the
2049
- # ServerTlsPolicy resource by the update. The fields specified in the
2051
+ # GatewaySecurityPolicy resource by the update. The fields specified in the
2050
2052
  # update_mask are relative to the resource, not the full request. A field will
2051
2053
  # be overwritten if it is in the mask. If the user does not provide a mask then
2052
2054
  # all fields will be overwritten.
@@ -2067,10 +2069,10 @@ module Google
2067
2069
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2068
2070
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2069
2071
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2070
- def patch_project_location_server_tls_policy(name, server_tls_policy_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2072
+ def patch_project_location_gateway_security_policy_rule(name, gateway_security_policy_rule_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2071
2073
  command = make_simple_command(:patch, 'v1beta1/{+name}', options)
2072
- command.request_representation = Google::Apis::NetworksecurityV1beta1::ServerTlsPolicy::Representation
2073
- command.request_object = server_tls_policy_object
2074
+ command.request_representation = Google::Apis::NetworksecurityV1beta1::GatewaySecurityPolicyRule::Representation
2075
+ command.request_object = gateway_security_policy_rule_object
2074
2076
  command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation
2075
2077
  command.response_class = Google::Apis::NetworksecurityV1beta1::Operation
2076
2078
  command.params['name'] = name unless name.nil?
@@ -2080,14 +2082,17 @@ module Google
2080
2082
  execute_or_queue_command(command, &block)
2081
2083
  end
2082
2084
 
2083
- # Sets the access control policy on the specified resource. Replaces any
2084
- # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
2085
- # PERMISSION_DENIED` errors.
2086
- # @param [String] resource
2087
- # REQUIRED: The resource for which the policy is being specified. See [Resource
2088
- # names](https://cloud.google.com/apis/design/resource_names) for the
2089
- # appropriate value for this field.
2090
- # @param [Google::Apis::NetworksecurityV1beta1::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_request_object
2085
+ # Starts asynchronous cancellation on a long-running operation. The server makes
2086
+ # a best effort to cancel the operation, but success is not guaranteed. If the
2087
+ # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
2088
+ # Clients can use Operations.GetOperation or other methods to check whether the
2089
+ # cancellation succeeded or whether the operation completed despite cancellation.
2090
+ # On successful cancellation, the operation is not deleted; instead, it becomes
2091
+ # an operation with an Operation.error value with a google.rpc.Status.code of 1,
2092
+ # corresponding to `Code.CANCELLED`.
2093
+ # @param [String] name
2094
+ # The name of the operation resource to be cancelled.
2095
+ # @param [Google::Apis::NetworksecurityV1beta1::CancelOperationRequest] cancel_operation_request_object
2091
2096
  # @param [String] fields
2092
2097
  # Selector specifying which fields to include in a partial response.
2093
2098
  # @param [String] quota_user
@@ -2097,36 +2102,32 @@ module Google
2097
2102
  # Request-specific options
2098
2103
  #
2099
2104
  # @yield [result, err] Result & error if block supplied
2100
- # @yieldparam result [Google::Apis::NetworksecurityV1beta1::GoogleIamV1Policy] parsed result object
2105
+ # @yieldparam result [Google::Apis::NetworksecurityV1beta1::Empty] parsed result object
2101
2106
  # @yieldparam err [StandardError] error object if request failed
2102
2107
  #
2103
- # @return [Google::Apis::NetworksecurityV1beta1::GoogleIamV1Policy]
2108
+ # @return [Google::Apis::NetworksecurityV1beta1::Empty]
2104
2109
  #
2105
2110
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2106
2111
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2107
2112
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2108
- def set_project_location_server_tls_policy_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2109
- command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
2110
- command.request_representation = Google::Apis::NetworksecurityV1beta1::GoogleIamV1SetIamPolicyRequest::Representation
2111
- command.request_object = google_iam_v1_set_iam_policy_request_object
2112
- command.response_representation = Google::Apis::NetworksecurityV1beta1::GoogleIamV1Policy::Representation
2113
- command.response_class = Google::Apis::NetworksecurityV1beta1::GoogleIamV1Policy
2114
- command.params['resource'] = resource unless resource.nil?
2113
+ def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2114
+ command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options)
2115
+ command.request_representation = Google::Apis::NetworksecurityV1beta1::CancelOperationRequest::Representation
2116
+ command.request_object = cancel_operation_request_object
2117
+ command.response_representation = Google::Apis::NetworksecurityV1beta1::Empty::Representation
2118
+ command.response_class = Google::Apis::NetworksecurityV1beta1::Empty
2119
+ command.params['name'] = name unless name.nil?
2115
2120
  command.query['fields'] = fields unless fields.nil?
2116
2121
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2117
2122
  execute_or_queue_command(command, &block)
2118
2123
  end
2119
2124
 
2120
- # Returns permissions that a caller has on the specified resource. If the
2121
- # resource does not exist, this will return an empty set of permissions, not a `
2122
- # NOT_FOUND` error. Note: This operation is designed to be used for building
2123
- # permission-aware UIs and command-line tools, not for authorization checking.
2124
- # This operation may "fail open" without warning.
2125
- # @param [String] resource
2126
- # REQUIRED: The resource for which the policy detail is being requested. See [
2127
- # Resource names](https://cloud.google.com/apis/design/resource_names) for the
2128
- # appropriate value for this field.
2129
- # @param [Google::Apis::NetworksecurityV1beta1::GoogleIamV1TestIamPermissionsRequest] google_iam_v1_test_iam_permissions_request_object
2125
+ # Deletes a long-running operation. This method indicates that the client is no
2126
+ # longer interested in the operation result. It does not cancel the operation.
2127
+ # If the server doesn't support this method, it returns `google.rpc.Code.
2128
+ # UNIMPLEMENTED`.
2129
+ # @param [String] name
2130
+ # The name of the operation resource to be deleted.
2130
2131
  # @param [String] fields
2131
2132
  # Selector specifying which fields to include in a partial response.
2132
2133
  # @param [String] quota_user
@@ -2136,21 +2137,764 @@ module Google
2136
2137
  # Request-specific options
2137
2138
  #
2138
2139
  # @yield [result, err] Result & error if block supplied
2139
- # @yieldparam result [Google::Apis::NetworksecurityV1beta1::GoogleIamV1TestIamPermissionsResponse] parsed result object
2140
+ # @yieldparam result [Google::Apis::NetworksecurityV1beta1::Empty] parsed result object
2140
2141
  # @yieldparam err [StandardError] error object if request failed
2141
2142
  #
2142
- # @return [Google::Apis::NetworksecurityV1beta1::GoogleIamV1TestIamPermissionsResponse]
2143
+ # @return [Google::Apis::NetworksecurityV1beta1::Empty]
2143
2144
  #
2144
2145
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2145
2146
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2146
2147
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2147
- def test_project_location_server_tls_policy_iam_permissions(resource, google_iam_v1_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2148
- command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
2149
- command.request_representation = Google::Apis::NetworksecurityV1beta1::GoogleIamV1TestIamPermissionsRequest::Representation
2150
- command.request_object = google_iam_v1_test_iam_permissions_request_object
2151
- command.response_representation = Google::Apis::NetworksecurityV1beta1::GoogleIamV1TestIamPermissionsResponse::Representation
2152
- command.response_class = Google::Apis::NetworksecurityV1beta1::GoogleIamV1TestIamPermissionsResponse
2153
- command.params['resource'] = resource unless resource.nil?
2148
+ def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
2149
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
2150
+ command.response_representation = Google::Apis::NetworksecurityV1beta1::Empty::Representation
2151
+ command.response_class = Google::Apis::NetworksecurityV1beta1::Empty
2152
+ command.params['name'] = name unless name.nil?
2153
+ command.query['fields'] = fields unless fields.nil?
2154
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2155
+ execute_or_queue_command(command, &block)
2156
+ end
2157
+
2158
+ # Gets the latest state of a long-running operation. Clients can use this method
2159
+ # to poll the operation result at intervals as recommended by the API service.
2160
+ # @param [String] name
2161
+ # The name of the operation resource.
2162
+ # @param [String] fields
2163
+ # Selector specifying which fields to include in a partial response.
2164
+ # @param [String] quota_user
2165
+ # Available to use for quota purposes for server-side applications. Can be any
2166
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2167
+ # @param [Google::Apis::RequestOptions] options
2168
+ # Request-specific options
2169
+ #
2170
+ # @yield [result, err] Result & error if block supplied
2171
+ # @yieldparam result [Google::Apis::NetworksecurityV1beta1::Operation] parsed result object
2172
+ # @yieldparam err [StandardError] error object if request failed
2173
+ #
2174
+ # @return [Google::Apis::NetworksecurityV1beta1::Operation]
2175
+ #
2176
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2177
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2178
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2179
+ def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
2180
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
2181
+ command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation
2182
+ command.response_class = Google::Apis::NetworksecurityV1beta1::Operation
2183
+ command.params['name'] = name unless name.nil?
2184
+ command.query['fields'] = fields unless fields.nil?
2185
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2186
+ execute_or_queue_command(command, &block)
2187
+ end
2188
+
2189
+ # Lists operations that match the specified filter in the request. If the server
2190
+ # doesn't support this method, it returns `UNIMPLEMENTED`.
2191
+ # @param [String] name
2192
+ # The name of the operation's parent resource.
2193
+ # @param [String] filter
2194
+ # The standard list filter.
2195
+ # @param [Fixnum] page_size
2196
+ # The standard list page size.
2197
+ # @param [String] page_token
2198
+ # The standard list page token.
2199
+ # @param [String] fields
2200
+ # Selector specifying which fields to include in a partial response.
2201
+ # @param [String] quota_user
2202
+ # Available to use for quota purposes for server-side applications. Can be any
2203
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2204
+ # @param [Google::Apis::RequestOptions] options
2205
+ # Request-specific options
2206
+ #
2207
+ # @yield [result, err] Result & error if block supplied
2208
+ # @yieldparam result [Google::Apis::NetworksecurityV1beta1::ListOperationsResponse] parsed result object
2209
+ # @yieldparam err [StandardError] error object if request failed
2210
+ #
2211
+ # @return [Google::Apis::NetworksecurityV1beta1::ListOperationsResponse]
2212
+ #
2213
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2214
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2215
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2216
+ def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2217
+ command = make_simple_command(:get, 'v1beta1/{+name}/operations', options)
2218
+ command.response_representation = Google::Apis::NetworksecurityV1beta1::ListOperationsResponse::Representation
2219
+ command.response_class = Google::Apis::NetworksecurityV1beta1::ListOperationsResponse
2220
+ command.params['name'] = name unless name.nil?
2221
+ command.query['filter'] = filter unless filter.nil?
2222
+ command.query['pageSize'] = page_size unless page_size.nil?
2223
+ command.query['pageToken'] = page_token unless page_token.nil?
2224
+ command.query['fields'] = fields unless fields.nil?
2225
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2226
+ execute_or_queue_command(command, &block)
2227
+ end
2228
+
2229
+ # Creates a new ServerTlsPolicy in a given project and location.
2230
+ # @param [String] parent
2231
+ # Required. The parent resource of the ServerTlsPolicy. Must be in the format `
2232
+ # projects/*/locations/`location``.
2233
+ # @param [Google::Apis::NetworksecurityV1beta1::ServerTlsPolicy] server_tls_policy_object
2234
+ # @param [String] server_tls_policy_id
2235
+ # Required. Short name of the ServerTlsPolicy resource to be created. This value
2236
+ # should be 1-63 characters long, containing only letters, numbers, hyphens, and
2237
+ # underscores, and should not start with a number. E.g. "server_mtls_policy".
2238
+ # @param [String] fields
2239
+ # Selector specifying which fields to include in a partial response.
2240
+ # @param [String] quota_user
2241
+ # Available to use for quota purposes for server-side applications. Can be any
2242
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2243
+ # @param [Google::Apis::RequestOptions] options
2244
+ # Request-specific options
2245
+ #
2246
+ # @yield [result, err] Result & error if block supplied
2247
+ # @yieldparam result [Google::Apis::NetworksecurityV1beta1::Operation] parsed result object
2248
+ # @yieldparam err [StandardError] error object if request failed
2249
+ #
2250
+ # @return [Google::Apis::NetworksecurityV1beta1::Operation]
2251
+ #
2252
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2253
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2254
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2255
+ def create_project_location_server_tls_policy(parent, server_tls_policy_object = nil, server_tls_policy_id: nil, fields: nil, quota_user: nil, options: nil, &block)
2256
+ command = make_simple_command(:post, 'v1beta1/{+parent}/serverTlsPolicies', options)
2257
+ command.request_representation = Google::Apis::NetworksecurityV1beta1::ServerTlsPolicy::Representation
2258
+ command.request_object = server_tls_policy_object
2259
+ command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation
2260
+ command.response_class = Google::Apis::NetworksecurityV1beta1::Operation
2261
+ command.params['parent'] = parent unless parent.nil?
2262
+ command.query['serverTlsPolicyId'] = server_tls_policy_id unless server_tls_policy_id.nil?
2263
+ command.query['fields'] = fields unless fields.nil?
2264
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2265
+ execute_or_queue_command(command, &block)
2266
+ end
2267
+
2268
+ # Deletes a single ServerTlsPolicy.
2269
+ # @param [String] name
2270
+ # Required. A name of the ServerTlsPolicy to delete. Must be in the format `
2271
+ # projects/*/locations/`location`/serverTlsPolicies/*`.
2272
+ # @param [String] fields
2273
+ # Selector specifying which fields to include in a partial response.
2274
+ # @param [String] quota_user
2275
+ # Available to use for quota purposes for server-side applications. Can be any
2276
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2277
+ # @param [Google::Apis::RequestOptions] options
2278
+ # Request-specific options
2279
+ #
2280
+ # @yield [result, err] Result & error if block supplied
2281
+ # @yieldparam result [Google::Apis::NetworksecurityV1beta1::Operation] parsed result object
2282
+ # @yieldparam err [StandardError] error object if request failed
2283
+ #
2284
+ # @return [Google::Apis::NetworksecurityV1beta1::Operation]
2285
+ #
2286
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2287
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2288
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2289
+ def delete_project_location_server_tls_policy(name, fields: nil, quota_user: nil, options: nil, &block)
2290
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
2291
+ command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation
2292
+ command.response_class = Google::Apis::NetworksecurityV1beta1::Operation
2293
+ command.params['name'] = name unless name.nil?
2294
+ command.query['fields'] = fields unless fields.nil?
2295
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2296
+ execute_or_queue_command(command, &block)
2297
+ end
2298
+
2299
+ # Gets details of a single ServerTlsPolicy.
2300
+ # @param [String] name
2301
+ # Required. A name of the ServerTlsPolicy to get. Must be in the format `
2302
+ # projects/*/locations/`location`/serverTlsPolicies/*`.
2303
+ # @param [String] fields
2304
+ # Selector specifying which fields to include in a partial response.
2305
+ # @param [String] quota_user
2306
+ # Available to use for quota purposes for server-side applications. Can be any
2307
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2308
+ # @param [Google::Apis::RequestOptions] options
2309
+ # Request-specific options
2310
+ #
2311
+ # @yield [result, err] Result & error if block supplied
2312
+ # @yieldparam result [Google::Apis::NetworksecurityV1beta1::ServerTlsPolicy] parsed result object
2313
+ # @yieldparam err [StandardError] error object if request failed
2314
+ #
2315
+ # @return [Google::Apis::NetworksecurityV1beta1::ServerTlsPolicy]
2316
+ #
2317
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2318
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2319
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2320
+ def get_project_location_server_tls_policy(name, fields: nil, quota_user: nil, options: nil, &block)
2321
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
2322
+ command.response_representation = Google::Apis::NetworksecurityV1beta1::ServerTlsPolicy::Representation
2323
+ command.response_class = Google::Apis::NetworksecurityV1beta1::ServerTlsPolicy
2324
+ command.params['name'] = name unless name.nil?
2325
+ command.query['fields'] = fields unless fields.nil?
2326
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2327
+ execute_or_queue_command(command, &block)
2328
+ end
2329
+
2330
+ # Gets the access control policy for a resource. Returns an empty policy if the
2331
+ # resource exists and does not have a policy set.
2332
+ # @param [String] resource
2333
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
2334
+ # names](https://cloud.google.com/apis/design/resource_names) for the
2335
+ # appropriate value for this field.
2336
+ # @param [Fixnum] options_requested_policy_version
2337
+ # Optional. The maximum policy version that will be used to format the policy.
2338
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
2339
+ # rejected. Requests for policies with any conditional role bindings must
2340
+ # specify version 3. Policies with no conditional role bindings may specify any
2341
+ # valid value or leave the field unset. The policy in the response might use the
2342
+ # policy version that you specified, or it might use a lower policy version. For
2343
+ # example, if you specify version 3, but the policy has no conditional role
2344
+ # bindings, the response uses version 1. To learn which resources support
2345
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
2346
+ # google.com/iam/help/conditions/resource-policies).
2347
+ # @param [String] fields
2348
+ # Selector specifying which fields to include in a partial response.
2349
+ # @param [String] quota_user
2350
+ # Available to use for quota purposes for server-side applications. Can be any
2351
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2352
+ # @param [Google::Apis::RequestOptions] options
2353
+ # Request-specific options
2354
+ #
2355
+ # @yield [result, err] Result & error if block supplied
2356
+ # @yieldparam result [Google::Apis::NetworksecurityV1beta1::GoogleIamV1Policy] parsed result object
2357
+ # @yieldparam err [StandardError] error object if request failed
2358
+ #
2359
+ # @return [Google::Apis::NetworksecurityV1beta1::GoogleIamV1Policy]
2360
+ #
2361
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2362
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2363
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2364
+ def get_project_location_server_tls_policy_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
2365
+ command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options)
2366
+ command.response_representation = Google::Apis::NetworksecurityV1beta1::GoogleIamV1Policy::Representation
2367
+ command.response_class = Google::Apis::NetworksecurityV1beta1::GoogleIamV1Policy
2368
+ command.params['resource'] = resource unless resource.nil?
2369
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
2370
+ command.query['fields'] = fields unless fields.nil?
2371
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2372
+ execute_or_queue_command(command, &block)
2373
+ end
2374
+
2375
+ # Lists ServerTlsPolicies in a given project and location.
2376
+ # @param [String] parent
2377
+ # Required. The project and location from which the ServerTlsPolicies should be
2378
+ # listed, specified in the format `projects/*/locations/`location``.
2379
+ # @param [Fixnum] page_size
2380
+ # Maximum number of ServerTlsPolicies to return per call.
2381
+ # @param [String] page_token
2382
+ # The value returned by the last `ListServerTlsPoliciesResponse` Indicates that
2383
+ # this is a continuation of a prior `ListServerTlsPolicies` call, and that the
2384
+ # system should return the next page of data.
2385
+ # @param [String] fields
2386
+ # Selector specifying which fields to include in a partial response.
2387
+ # @param [String] quota_user
2388
+ # Available to use for quota purposes for server-side applications. Can be any
2389
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2390
+ # @param [Google::Apis::RequestOptions] options
2391
+ # Request-specific options
2392
+ #
2393
+ # @yield [result, err] Result & error if block supplied
2394
+ # @yieldparam result [Google::Apis::NetworksecurityV1beta1::ListServerTlsPoliciesResponse] parsed result object
2395
+ # @yieldparam err [StandardError] error object if request failed
2396
+ #
2397
+ # @return [Google::Apis::NetworksecurityV1beta1::ListServerTlsPoliciesResponse]
2398
+ #
2399
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2400
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2401
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2402
+ def list_project_location_server_tls_policies(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2403
+ command = make_simple_command(:get, 'v1beta1/{+parent}/serverTlsPolicies', options)
2404
+ command.response_representation = Google::Apis::NetworksecurityV1beta1::ListServerTlsPoliciesResponse::Representation
2405
+ command.response_class = Google::Apis::NetworksecurityV1beta1::ListServerTlsPoliciesResponse
2406
+ command.params['parent'] = parent unless parent.nil?
2407
+ command.query['pageSize'] = page_size unless page_size.nil?
2408
+ command.query['pageToken'] = page_token unless page_token.nil?
2409
+ command.query['fields'] = fields unless fields.nil?
2410
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2411
+ execute_or_queue_command(command, &block)
2412
+ end
2413
+
2414
+ # Updates the parameters of a single ServerTlsPolicy.
2415
+ # @param [String] name
2416
+ # Required. Name of the ServerTlsPolicy resource. It matches the pattern `
2417
+ # projects/*/locations/`location`/serverTlsPolicies/`server_tls_policy``
2418
+ # @param [Google::Apis::NetworksecurityV1beta1::ServerTlsPolicy] server_tls_policy_object
2419
+ # @param [String] update_mask
2420
+ # Optional. Field mask is used to specify the fields to be overwritten in the
2421
+ # ServerTlsPolicy resource by the update. The fields specified in the
2422
+ # update_mask are relative to the resource, not the full request. A field will
2423
+ # be overwritten if it is in the mask. If the user does not provide a mask then
2424
+ # all fields will be overwritten.
2425
+ # @param [String] fields
2426
+ # Selector specifying which fields to include in a partial response.
2427
+ # @param [String] quota_user
2428
+ # Available to use for quota purposes for server-side applications. Can be any
2429
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2430
+ # @param [Google::Apis::RequestOptions] options
2431
+ # Request-specific options
2432
+ #
2433
+ # @yield [result, err] Result & error if block supplied
2434
+ # @yieldparam result [Google::Apis::NetworksecurityV1beta1::Operation] parsed result object
2435
+ # @yieldparam err [StandardError] error object if request failed
2436
+ #
2437
+ # @return [Google::Apis::NetworksecurityV1beta1::Operation]
2438
+ #
2439
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2440
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2441
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2442
+ def patch_project_location_server_tls_policy(name, server_tls_policy_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2443
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
2444
+ command.request_representation = Google::Apis::NetworksecurityV1beta1::ServerTlsPolicy::Representation
2445
+ command.request_object = server_tls_policy_object
2446
+ command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation
2447
+ command.response_class = Google::Apis::NetworksecurityV1beta1::Operation
2448
+ command.params['name'] = name unless name.nil?
2449
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2450
+ command.query['fields'] = fields unless fields.nil?
2451
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2452
+ execute_or_queue_command(command, &block)
2453
+ end
2454
+
2455
+ # Sets the access control policy on the specified resource. Replaces any
2456
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
2457
+ # PERMISSION_DENIED` errors.
2458
+ # @param [String] resource
2459
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
2460
+ # names](https://cloud.google.com/apis/design/resource_names) for the
2461
+ # appropriate value for this field.
2462
+ # @param [Google::Apis::NetworksecurityV1beta1::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_request_object
2463
+ # @param [String] fields
2464
+ # Selector specifying which fields to include in a partial response.
2465
+ # @param [String] quota_user
2466
+ # Available to use for quota purposes for server-side applications. Can be any
2467
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2468
+ # @param [Google::Apis::RequestOptions] options
2469
+ # Request-specific options
2470
+ #
2471
+ # @yield [result, err] Result & error if block supplied
2472
+ # @yieldparam result [Google::Apis::NetworksecurityV1beta1::GoogleIamV1Policy] parsed result object
2473
+ # @yieldparam err [StandardError] error object if request failed
2474
+ #
2475
+ # @return [Google::Apis::NetworksecurityV1beta1::GoogleIamV1Policy]
2476
+ #
2477
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2478
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2479
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2480
+ def set_project_location_server_tls_policy_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2481
+ command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
2482
+ command.request_representation = Google::Apis::NetworksecurityV1beta1::GoogleIamV1SetIamPolicyRequest::Representation
2483
+ command.request_object = google_iam_v1_set_iam_policy_request_object
2484
+ command.response_representation = Google::Apis::NetworksecurityV1beta1::GoogleIamV1Policy::Representation
2485
+ command.response_class = Google::Apis::NetworksecurityV1beta1::GoogleIamV1Policy
2486
+ command.params['resource'] = resource unless resource.nil?
2487
+ command.query['fields'] = fields unless fields.nil?
2488
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2489
+ execute_or_queue_command(command, &block)
2490
+ end
2491
+
2492
+ # Returns permissions that a caller has on the specified resource. If the
2493
+ # resource does not exist, this will return an empty set of permissions, not a `
2494
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
2495
+ # permission-aware UIs and command-line tools, not for authorization checking.
2496
+ # This operation may "fail open" without warning.
2497
+ # @param [String] resource
2498
+ # REQUIRED: The resource for which the policy detail is being requested. See [
2499
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
2500
+ # appropriate value for this field.
2501
+ # @param [Google::Apis::NetworksecurityV1beta1::GoogleIamV1TestIamPermissionsRequest] google_iam_v1_test_iam_permissions_request_object
2502
+ # @param [String] fields
2503
+ # Selector specifying which fields to include in a partial response.
2504
+ # @param [String] quota_user
2505
+ # Available to use for quota purposes for server-side applications. Can be any
2506
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2507
+ # @param [Google::Apis::RequestOptions] options
2508
+ # Request-specific options
2509
+ #
2510
+ # @yield [result, err] Result & error if block supplied
2511
+ # @yieldparam result [Google::Apis::NetworksecurityV1beta1::GoogleIamV1TestIamPermissionsResponse] parsed result object
2512
+ # @yieldparam err [StandardError] error object if request failed
2513
+ #
2514
+ # @return [Google::Apis::NetworksecurityV1beta1::GoogleIamV1TestIamPermissionsResponse]
2515
+ #
2516
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2517
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2518
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2519
+ def test_project_location_server_tls_policy_iam_permissions(resource, google_iam_v1_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2520
+ command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
2521
+ command.request_representation = Google::Apis::NetworksecurityV1beta1::GoogleIamV1TestIamPermissionsRequest::Representation
2522
+ command.request_object = google_iam_v1_test_iam_permissions_request_object
2523
+ command.response_representation = Google::Apis::NetworksecurityV1beta1::GoogleIamV1TestIamPermissionsResponse::Representation
2524
+ command.response_class = Google::Apis::NetworksecurityV1beta1::GoogleIamV1TestIamPermissionsResponse
2525
+ command.params['resource'] = resource unless resource.nil?
2526
+ command.query['fields'] = fields unless fields.nil?
2527
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2528
+ execute_or_queue_command(command, &block)
2529
+ end
2530
+
2531
+ # Creates a new TlsInspectionPolicy in a given project and location.
2532
+ # @param [String] parent
2533
+ # Required. The parent resource of the TlsInspectionPolicy. Must be in the
2534
+ # format `projects/`project`/locations/`location``.
2535
+ # @param [Google::Apis::NetworksecurityV1beta1::TlsInspectionPolicy] tls_inspection_policy_object
2536
+ # @param [String] tls_inspection_policy_id
2537
+ # Required. Short name of the TlsInspectionPolicy resource to be created. This
2538
+ # value should be 1-63 characters long, containing only letters, numbers,
2539
+ # hyphens, and underscores, and should not start with a number. E.g. "
2540
+ # tls_inspection_policy1".
2541
+ # @param [String] fields
2542
+ # Selector specifying which fields to include in a partial response.
2543
+ # @param [String] quota_user
2544
+ # Available to use for quota purposes for server-side applications. Can be any
2545
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2546
+ # @param [Google::Apis::RequestOptions] options
2547
+ # Request-specific options
2548
+ #
2549
+ # @yield [result, err] Result & error if block supplied
2550
+ # @yieldparam result [Google::Apis::NetworksecurityV1beta1::Operation] parsed result object
2551
+ # @yieldparam err [StandardError] error object if request failed
2552
+ #
2553
+ # @return [Google::Apis::NetworksecurityV1beta1::Operation]
2554
+ #
2555
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2556
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2557
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2558
+ def create_project_location_tls_inspection_policy(parent, tls_inspection_policy_object = nil, tls_inspection_policy_id: nil, fields: nil, quota_user: nil, options: nil, &block)
2559
+ command = make_simple_command(:post, 'v1beta1/{+parent}/tlsInspectionPolicies', options)
2560
+ command.request_representation = Google::Apis::NetworksecurityV1beta1::TlsInspectionPolicy::Representation
2561
+ command.request_object = tls_inspection_policy_object
2562
+ command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation
2563
+ command.response_class = Google::Apis::NetworksecurityV1beta1::Operation
2564
+ command.params['parent'] = parent unless parent.nil?
2565
+ command.query['tlsInspectionPolicyId'] = tls_inspection_policy_id unless tls_inspection_policy_id.nil?
2566
+ command.query['fields'] = fields unless fields.nil?
2567
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2568
+ execute_or_queue_command(command, &block)
2569
+ end
2570
+
2571
+ # Deletes a single TlsInspectionPolicy.
2572
+ # @param [String] name
2573
+ # Required. A name of the TlsInspectionPolicy to delete. Must be in the format `
2574
+ # projects/`project`/locations/`location`/tlsInspectionPolicies/`
2575
+ # tls_inspection_policy``.
2576
+ # @param [Boolean] force
2577
+ # If set to true, any rules for this TlsInspectionPolicy will also be deleted. (
2578
+ # Otherwise, the request will only work if the TlsInspectionPolicy has no rules.)
2579
+ # @param [String] fields
2580
+ # Selector specifying which fields to include in a partial response.
2581
+ # @param [String] quota_user
2582
+ # Available to use for quota purposes for server-side applications. Can be any
2583
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2584
+ # @param [Google::Apis::RequestOptions] options
2585
+ # Request-specific options
2586
+ #
2587
+ # @yield [result, err] Result & error if block supplied
2588
+ # @yieldparam result [Google::Apis::NetworksecurityV1beta1::Operation] parsed result object
2589
+ # @yieldparam err [StandardError] error object if request failed
2590
+ #
2591
+ # @return [Google::Apis::NetworksecurityV1beta1::Operation]
2592
+ #
2593
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2594
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2595
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2596
+ def delete_project_location_tls_inspection_policy(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
2597
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
2598
+ command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation
2599
+ command.response_class = Google::Apis::NetworksecurityV1beta1::Operation
2600
+ command.params['name'] = name unless name.nil?
2601
+ command.query['force'] = force unless force.nil?
2602
+ command.query['fields'] = fields unless fields.nil?
2603
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2604
+ execute_or_queue_command(command, &block)
2605
+ end
2606
+
2607
+ # Gets details of a single TlsInspectionPolicy.
2608
+ # @param [String] name
2609
+ # Required. A name of the TlsInspectionPolicy to get. Must be in the format `
2610
+ # projects/`project`/locations/`location`/tlsInspectionPolicies/`
2611
+ # tls_inspection_policy``.
2612
+ # @param [String] fields
2613
+ # Selector specifying which fields to include in a partial response.
2614
+ # @param [String] quota_user
2615
+ # Available to use for quota purposes for server-side applications. Can be any
2616
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2617
+ # @param [Google::Apis::RequestOptions] options
2618
+ # Request-specific options
2619
+ #
2620
+ # @yield [result, err] Result & error if block supplied
2621
+ # @yieldparam result [Google::Apis::NetworksecurityV1beta1::TlsInspectionPolicy] parsed result object
2622
+ # @yieldparam err [StandardError] error object if request failed
2623
+ #
2624
+ # @return [Google::Apis::NetworksecurityV1beta1::TlsInspectionPolicy]
2625
+ #
2626
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2627
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2628
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2629
+ def get_project_location_tls_inspection_policy(name, fields: nil, quota_user: nil, options: nil, &block)
2630
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
2631
+ command.response_representation = Google::Apis::NetworksecurityV1beta1::TlsInspectionPolicy::Representation
2632
+ command.response_class = Google::Apis::NetworksecurityV1beta1::TlsInspectionPolicy
2633
+ command.params['name'] = name unless name.nil?
2634
+ command.query['fields'] = fields unless fields.nil?
2635
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2636
+ execute_or_queue_command(command, &block)
2637
+ end
2638
+
2639
+ # Lists TlsInspectionPolicies in a given project and location.
2640
+ # @param [String] parent
2641
+ # Required. The project and location from which the TlsInspectionPolicies should
2642
+ # be listed, specified in the format `projects/`project`/locations/`location``.
2643
+ # @param [Fixnum] page_size
2644
+ # Maximum number of TlsInspectionPolicies to return per call.
2645
+ # @param [String] page_token
2646
+ # The value returned by the last 'ListTlsInspectionPoliciesResponse' Indicates
2647
+ # that this is a continuation of a prior 'ListTlsInspectionPolicies' call, and
2648
+ # that the system should return the next page of data.
2649
+ # @param [String] fields
2650
+ # Selector specifying which fields to include in a partial response.
2651
+ # @param [String] quota_user
2652
+ # Available to use for quota purposes for server-side applications. Can be any
2653
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2654
+ # @param [Google::Apis::RequestOptions] options
2655
+ # Request-specific options
2656
+ #
2657
+ # @yield [result, err] Result & error if block supplied
2658
+ # @yieldparam result [Google::Apis::NetworksecurityV1beta1::ListTlsInspectionPoliciesResponse] parsed result object
2659
+ # @yieldparam err [StandardError] error object if request failed
2660
+ #
2661
+ # @return [Google::Apis::NetworksecurityV1beta1::ListTlsInspectionPoliciesResponse]
2662
+ #
2663
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2664
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2665
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2666
+ def list_project_location_tls_inspection_policies(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2667
+ command = make_simple_command(:get, 'v1beta1/{+parent}/tlsInspectionPolicies', options)
2668
+ command.response_representation = Google::Apis::NetworksecurityV1beta1::ListTlsInspectionPoliciesResponse::Representation
2669
+ command.response_class = Google::Apis::NetworksecurityV1beta1::ListTlsInspectionPoliciesResponse
2670
+ command.params['parent'] = parent unless parent.nil?
2671
+ command.query['pageSize'] = page_size unless page_size.nil?
2672
+ command.query['pageToken'] = page_token unless page_token.nil?
2673
+ command.query['fields'] = fields unless fields.nil?
2674
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2675
+ execute_or_queue_command(command, &block)
2676
+ end
2677
+
2678
+ # Updates the parameters of a single TlsInspectionPolicy.
2679
+ # @param [String] name
2680
+ # Required. Name of the resource. Name is of the form projects/`project`/
2681
+ # locations/`location`/tlsInspectionPolicies/`tls_inspection_policy`
2682
+ # tls_inspection_policy should match the pattern:(^[a-z]([a-z0-9-]`0,61`[a-z0-9])
2683
+ # ?$).
2684
+ # @param [Google::Apis::NetworksecurityV1beta1::TlsInspectionPolicy] tls_inspection_policy_object
2685
+ # @param [String] update_mask
2686
+ # Optional. Field mask is used to specify the fields to be overwritten in the
2687
+ # TlsInspectionPolicy resource by the update. The fields specified in the
2688
+ # update_mask are relative to the resource, not the full request. A field will
2689
+ # be overwritten if it is in the mask. If the user does not provide a mask then
2690
+ # all fields will be overwritten.
2691
+ # @param [String] fields
2692
+ # Selector specifying which fields to include in a partial response.
2693
+ # @param [String] quota_user
2694
+ # Available to use for quota purposes for server-side applications. Can be any
2695
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2696
+ # @param [Google::Apis::RequestOptions] options
2697
+ # Request-specific options
2698
+ #
2699
+ # @yield [result, err] Result & error if block supplied
2700
+ # @yieldparam result [Google::Apis::NetworksecurityV1beta1::Operation] parsed result object
2701
+ # @yieldparam err [StandardError] error object if request failed
2702
+ #
2703
+ # @return [Google::Apis::NetworksecurityV1beta1::Operation]
2704
+ #
2705
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2706
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2707
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2708
+ def patch_project_location_tls_inspection_policy(name, tls_inspection_policy_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2709
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
2710
+ command.request_representation = Google::Apis::NetworksecurityV1beta1::TlsInspectionPolicy::Representation
2711
+ command.request_object = tls_inspection_policy_object
2712
+ command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation
2713
+ command.response_class = Google::Apis::NetworksecurityV1beta1::Operation
2714
+ command.params['name'] = name unless name.nil?
2715
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2716
+ command.query['fields'] = fields unless fields.nil?
2717
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2718
+ execute_or_queue_command(command, &block)
2719
+ end
2720
+
2721
+ # Creates a new UrlList in a given project and location.
2722
+ # @param [String] parent
2723
+ # Required. The parent resource of the UrlList. Must be in the format `projects/*
2724
+ # /locations/`location``.
2725
+ # @param [Google::Apis::NetworksecurityV1beta1::UrlList] url_list_object
2726
+ # @param [String] url_list_id
2727
+ # Required. Short name of the UrlList resource to be created. This value should
2728
+ # be 1-63 characters long, containing only letters, numbers, hyphens, and
2729
+ # underscores, and should not start with a number. E.g. "url_list".
2730
+ # @param [String] fields
2731
+ # Selector specifying which fields to include in a partial response.
2732
+ # @param [String] quota_user
2733
+ # Available to use for quota purposes for server-side applications. Can be any
2734
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2735
+ # @param [Google::Apis::RequestOptions] options
2736
+ # Request-specific options
2737
+ #
2738
+ # @yield [result, err] Result & error if block supplied
2739
+ # @yieldparam result [Google::Apis::NetworksecurityV1beta1::Operation] parsed result object
2740
+ # @yieldparam err [StandardError] error object if request failed
2741
+ #
2742
+ # @return [Google::Apis::NetworksecurityV1beta1::Operation]
2743
+ #
2744
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2745
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2746
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2747
+ def create_project_location_url_list(parent, url_list_object = nil, url_list_id: nil, fields: nil, quota_user: nil, options: nil, &block)
2748
+ command = make_simple_command(:post, 'v1beta1/{+parent}/urlLists', options)
2749
+ command.request_representation = Google::Apis::NetworksecurityV1beta1::UrlList::Representation
2750
+ command.request_object = url_list_object
2751
+ command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation
2752
+ command.response_class = Google::Apis::NetworksecurityV1beta1::Operation
2753
+ command.params['parent'] = parent unless parent.nil?
2754
+ command.query['urlListId'] = url_list_id unless url_list_id.nil?
2755
+ command.query['fields'] = fields unless fields.nil?
2756
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2757
+ execute_or_queue_command(command, &block)
2758
+ end
2759
+
2760
+ # Deletes a single UrlList.
2761
+ # @param [String] name
2762
+ # Required. A name of the UrlList to delete. Must be in the format `projects/*/
2763
+ # locations/`location`/urlLists/*`.
2764
+ # @param [String] fields
2765
+ # Selector specifying which fields to include in a partial response.
2766
+ # @param [String] quota_user
2767
+ # Available to use for quota purposes for server-side applications. Can be any
2768
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2769
+ # @param [Google::Apis::RequestOptions] options
2770
+ # Request-specific options
2771
+ #
2772
+ # @yield [result, err] Result & error if block supplied
2773
+ # @yieldparam result [Google::Apis::NetworksecurityV1beta1::Operation] parsed result object
2774
+ # @yieldparam err [StandardError] error object if request failed
2775
+ #
2776
+ # @return [Google::Apis::NetworksecurityV1beta1::Operation]
2777
+ #
2778
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2779
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2780
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2781
+ def delete_project_location_url_list(name, fields: nil, quota_user: nil, options: nil, &block)
2782
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
2783
+ command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation
2784
+ command.response_class = Google::Apis::NetworksecurityV1beta1::Operation
2785
+ command.params['name'] = name unless name.nil?
2786
+ command.query['fields'] = fields unless fields.nil?
2787
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2788
+ execute_or_queue_command(command, &block)
2789
+ end
2790
+
2791
+ # Gets details of a single UrlList.
2792
+ # @param [String] name
2793
+ # Required. A name of the UrlList to get. Must be in the format `projects/*/
2794
+ # locations/`location`/urlLists/*`.
2795
+ # @param [String] fields
2796
+ # Selector specifying which fields to include in a partial response.
2797
+ # @param [String] quota_user
2798
+ # Available to use for quota purposes for server-side applications. Can be any
2799
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2800
+ # @param [Google::Apis::RequestOptions] options
2801
+ # Request-specific options
2802
+ #
2803
+ # @yield [result, err] Result & error if block supplied
2804
+ # @yieldparam result [Google::Apis::NetworksecurityV1beta1::UrlList] parsed result object
2805
+ # @yieldparam err [StandardError] error object if request failed
2806
+ #
2807
+ # @return [Google::Apis::NetworksecurityV1beta1::UrlList]
2808
+ #
2809
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2810
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2811
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2812
+ def get_project_location_url_list(name, fields: nil, quota_user: nil, options: nil, &block)
2813
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
2814
+ command.response_representation = Google::Apis::NetworksecurityV1beta1::UrlList::Representation
2815
+ command.response_class = Google::Apis::NetworksecurityV1beta1::UrlList
2816
+ command.params['name'] = name unless name.nil?
2817
+ command.query['fields'] = fields unless fields.nil?
2818
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2819
+ execute_or_queue_command(command, &block)
2820
+ end
2821
+
2822
+ # Lists UrlLists in a given project and location.
2823
+ # @param [String] parent
2824
+ # Required. The project and location from which the UrlLists should be listed,
2825
+ # specified in the format `projects/`project`/locations/`location``.
2826
+ # @param [Fixnum] page_size
2827
+ # Maximum number of UrlLists to return per call.
2828
+ # @param [String] page_token
2829
+ # The value returned by the last `ListUrlListsResponse` Indicates that this is a
2830
+ # continuation of a prior `ListUrlLists` call, and that the system should return
2831
+ # the next page of data.
2832
+ # @param [String] fields
2833
+ # Selector specifying which fields to include in a partial response.
2834
+ # @param [String] quota_user
2835
+ # Available to use for quota purposes for server-side applications. Can be any
2836
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2837
+ # @param [Google::Apis::RequestOptions] options
2838
+ # Request-specific options
2839
+ #
2840
+ # @yield [result, err] Result & error if block supplied
2841
+ # @yieldparam result [Google::Apis::NetworksecurityV1beta1::ListUrlListsResponse] parsed result object
2842
+ # @yieldparam err [StandardError] error object if request failed
2843
+ #
2844
+ # @return [Google::Apis::NetworksecurityV1beta1::ListUrlListsResponse]
2845
+ #
2846
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2847
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2848
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2849
+ def list_project_location_url_lists(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2850
+ command = make_simple_command(:get, 'v1beta1/{+parent}/urlLists', options)
2851
+ command.response_representation = Google::Apis::NetworksecurityV1beta1::ListUrlListsResponse::Representation
2852
+ command.response_class = Google::Apis::NetworksecurityV1beta1::ListUrlListsResponse
2853
+ command.params['parent'] = parent unless parent.nil?
2854
+ command.query['pageSize'] = page_size unless page_size.nil?
2855
+ command.query['pageToken'] = page_token unless page_token.nil?
2856
+ command.query['fields'] = fields unless fields.nil?
2857
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2858
+ execute_or_queue_command(command, &block)
2859
+ end
2860
+
2861
+ # Updates the parameters of a single UrlList.
2862
+ # @param [String] name
2863
+ # Required. Name of the resource provided by the user. Name is of the form
2864
+ # projects/`project`/locations/`location`/urlLists/`url_list` url_list should
2865
+ # match the pattern:(^[a-z]([a-z0-9-]`0,61`[a-z0-9])?$).
2866
+ # @param [Google::Apis::NetworksecurityV1beta1::UrlList] url_list_object
2867
+ # @param [String] update_mask
2868
+ # Optional. Field mask is used to specify the fields to be overwritten in the
2869
+ # UrlList resource by the update. The fields specified in the update_mask are
2870
+ # relative to the resource, not the full request. A field will be overwritten if
2871
+ # it is in the mask. If the user does not provide a mask then all fields will be
2872
+ # overwritten.
2873
+ # @param [String] fields
2874
+ # Selector specifying which fields to include in a partial response.
2875
+ # @param [String] quota_user
2876
+ # Available to use for quota purposes for server-side applications. Can be any
2877
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2878
+ # @param [Google::Apis::RequestOptions] options
2879
+ # Request-specific options
2880
+ #
2881
+ # @yield [result, err] Result & error if block supplied
2882
+ # @yieldparam result [Google::Apis::NetworksecurityV1beta1::Operation] parsed result object
2883
+ # @yieldparam err [StandardError] error object if request failed
2884
+ #
2885
+ # @return [Google::Apis::NetworksecurityV1beta1::Operation]
2886
+ #
2887
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2888
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2889
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2890
+ def patch_project_location_url_list(name, url_list_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2891
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
2892
+ command.request_representation = Google::Apis::NetworksecurityV1beta1::UrlList::Representation
2893
+ command.request_object = url_list_object
2894
+ command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation
2895
+ command.response_class = Google::Apis::NetworksecurityV1beta1::Operation
2896
+ command.params['name'] = name unless name.nil?
2897
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2154
2898
  command.query['fields'] = fields unless fields.nil?
2155
2899
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2156
2900
  execute_or_queue_command(command, &block)