google-apis-networksecurity_v1 0.16.0 → 0.18.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.
@@ -727,17 +727,16 @@ module Google
727
727
  execute_or_queue_command(command, &block)
728
728
  end
729
729
 
730
- # Starts asynchronous cancellation on a long-running operation. The server makes
731
- # a best effort to cancel the operation, but success is not guaranteed. If the
732
- # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
733
- # Clients can use Operations.GetOperation or other methods to check whether the
734
- # cancellation succeeded or whether the operation completed despite cancellation.
735
- # On successful cancellation, the operation is not deleted; instead, it becomes
736
- # an operation with an Operation.error value with a google.rpc.Status.code of 1,
737
- # corresponding to `Code.CANCELLED`.
738
- # @param [String] name
739
- # The name of the operation resource to be cancelled.
740
- # @param [Google::Apis::NetworksecurityV1::CancelOperationRequest] cancel_operation_request_object
730
+ # Creates a new GatewaySecurityPolicy in a given project and location.
731
+ # @param [String] parent
732
+ # Required. The parent resource of the GatewaySecurityPolicy. Must be in the
733
+ # format `projects/`project`/locations/`location``.
734
+ # @param [Google::Apis::NetworksecurityV1::GatewaySecurityPolicy] gateway_security_policy_object
735
+ # @param [String] gateway_security_policy_id
736
+ # Required. Short name of the GatewaySecurityPolicy resource to be created. This
737
+ # value should be 1-63 characters long, containing only letters, numbers,
738
+ # hyphens, and underscores, and should not start with a number. E.g. "
739
+ # gateway_security_policy1".
741
740
  # @param [String] fields
742
741
  # Selector specifying which fields to include in a partial response.
743
742
  # @param [String] quota_user
@@ -747,32 +746,31 @@ module Google
747
746
  # Request-specific options
748
747
  #
749
748
  # @yield [result, err] Result & error if block supplied
750
- # @yieldparam result [Google::Apis::NetworksecurityV1::Empty] parsed result object
749
+ # @yieldparam result [Google::Apis::NetworksecurityV1::Operation] parsed result object
751
750
  # @yieldparam err [StandardError] error object if request failed
752
751
  #
753
- # @return [Google::Apis::NetworksecurityV1::Empty]
752
+ # @return [Google::Apis::NetworksecurityV1::Operation]
754
753
  #
755
754
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
756
755
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
757
756
  # @raise [Google::Apis::AuthorizationError] Authorization is required
758
- def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
759
- command = make_simple_command(:post, 'v1/{+name}:cancel', options)
760
- command.request_representation = Google::Apis::NetworksecurityV1::CancelOperationRequest::Representation
761
- command.request_object = cancel_operation_request_object
762
- command.response_representation = Google::Apis::NetworksecurityV1::Empty::Representation
763
- command.response_class = Google::Apis::NetworksecurityV1::Empty
764
- command.params['name'] = name unless name.nil?
757
+ 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)
758
+ command = make_simple_command(:post, 'v1/{+parent}/gatewaySecurityPolicies', options)
759
+ command.request_representation = Google::Apis::NetworksecurityV1::GatewaySecurityPolicy::Representation
760
+ command.request_object = gateway_security_policy_object
761
+ command.response_representation = Google::Apis::NetworksecurityV1::Operation::Representation
762
+ command.response_class = Google::Apis::NetworksecurityV1::Operation
763
+ command.params['parent'] = parent unless parent.nil?
764
+ command.query['gatewaySecurityPolicyId'] = gateway_security_policy_id unless gateway_security_policy_id.nil?
765
765
  command.query['fields'] = fields unless fields.nil?
766
766
  command.query['quotaUser'] = quota_user unless quota_user.nil?
767
767
  execute_or_queue_command(command, &block)
768
768
  end
769
769
 
770
- # Deletes a long-running operation. This method indicates that the client is no
771
- # longer interested in the operation result. It does not cancel the operation.
772
- # If the server doesn't support this method, it returns `google.rpc.Code.
773
- # UNIMPLEMENTED`.
770
+ # Deletes a single GatewaySecurityPolicy.
774
771
  # @param [String] name
775
- # The name of the operation resource to be deleted.
772
+ # Required. A name of the GatewaySecurityPolicy to delete. Must be in the format
773
+ # `projects/`project`/locations/`location`/gatewaySecurityPolicies/*`.
776
774
  # @param [String] fields
777
775
  # Selector specifying which fields to include in a partial response.
778
776
  # @param [String] quota_user
@@ -782,28 +780,28 @@ module Google
782
780
  # Request-specific options
783
781
  #
784
782
  # @yield [result, err] Result & error if block supplied
785
- # @yieldparam result [Google::Apis::NetworksecurityV1::Empty] parsed result object
783
+ # @yieldparam result [Google::Apis::NetworksecurityV1::Operation] parsed result object
786
784
  # @yieldparam err [StandardError] error object if request failed
787
785
  #
788
- # @return [Google::Apis::NetworksecurityV1::Empty]
786
+ # @return [Google::Apis::NetworksecurityV1::Operation]
789
787
  #
790
788
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
791
789
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
792
790
  # @raise [Google::Apis::AuthorizationError] Authorization is required
793
- def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
791
+ def delete_project_location_gateway_security_policy(name, fields: nil, quota_user: nil, options: nil, &block)
794
792
  command = make_simple_command(:delete, 'v1/{+name}', options)
795
- command.response_representation = Google::Apis::NetworksecurityV1::Empty::Representation
796
- command.response_class = Google::Apis::NetworksecurityV1::Empty
793
+ command.response_representation = Google::Apis::NetworksecurityV1::Operation::Representation
794
+ command.response_class = Google::Apis::NetworksecurityV1::Operation
797
795
  command.params['name'] = name unless name.nil?
798
796
  command.query['fields'] = fields unless fields.nil?
799
797
  command.query['quotaUser'] = quota_user unless quota_user.nil?
800
798
  execute_or_queue_command(command, &block)
801
799
  end
802
800
 
803
- # Gets the latest state of a long-running operation. Clients can use this method
804
- # to poll the operation result at intervals as recommended by the API service.
801
+ # Gets details of a single GatewaySecurityPolicy.
805
802
  # @param [String] name
806
- # The name of the operation resource.
803
+ # Required. A name of the GatewaySecurityPolicy to get. Must be in the format `
804
+ # projects/`project`/locations/`location`/gatewaySecurityPolicies/*`.
807
805
  # @param [String] fields
808
806
  # Selector specifying which fields to include in a partial response.
809
807
  # @param [String] quota_user
@@ -813,34 +811,35 @@ module Google
813
811
  # Request-specific options
814
812
  #
815
813
  # @yield [result, err] Result & error if block supplied
816
- # @yieldparam result [Google::Apis::NetworksecurityV1::Operation] parsed result object
814
+ # @yieldparam result [Google::Apis::NetworksecurityV1::GatewaySecurityPolicy] parsed result object
817
815
  # @yieldparam err [StandardError] error object if request failed
818
816
  #
819
- # @return [Google::Apis::NetworksecurityV1::Operation]
817
+ # @return [Google::Apis::NetworksecurityV1::GatewaySecurityPolicy]
820
818
  #
821
819
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
822
820
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
823
821
  # @raise [Google::Apis::AuthorizationError] Authorization is required
824
- def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
822
+ def get_project_location_gateway_security_policy(name, fields: nil, quota_user: nil, options: nil, &block)
825
823
  command = make_simple_command(:get, 'v1/{+name}', options)
826
- command.response_representation = Google::Apis::NetworksecurityV1::Operation::Representation
827
- command.response_class = Google::Apis::NetworksecurityV1::Operation
824
+ command.response_representation = Google::Apis::NetworksecurityV1::GatewaySecurityPolicy::Representation
825
+ command.response_class = Google::Apis::NetworksecurityV1::GatewaySecurityPolicy
828
826
  command.params['name'] = name unless name.nil?
829
827
  command.query['fields'] = fields unless fields.nil?
830
828
  command.query['quotaUser'] = quota_user unless quota_user.nil?
831
829
  execute_or_queue_command(command, &block)
832
830
  end
833
831
 
834
- # Lists operations that match the specified filter in the request. If the server
835
- # doesn't support this method, it returns `UNIMPLEMENTED`.
836
- # @param [String] name
837
- # The name of the operation's parent resource.
838
- # @param [String] filter
839
- # The standard list filter.
832
+ # Lists GatewaySecurityPolicies in a given project and location.
833
+ # @param [String] parent
834
+ # Required. The project and location from which the GatewaySecurityPolicies
835
+ # should be listed, specified in the format `projects/`project`/locations/`
836
+ # location``.
840
837
  # @param [Fixnum] page_size
841
- # The standard list page size.
838
+ # Maximum number of GatewaySecurityPolicies to return per call.
842
839
  # @param [String] page_token
843
- # The standard list page token.
840
+ # The value returned by the last 'ListGatewaySecurityPoliciesResponse' Indicates
841
+ # that this is a continuation of a prior 'ListGatewaySecurityPolicies' call, and
842
+ # that the system should return the next page of data.
844
843
  # @param [String] fields
845
844
  # Selector specifying which fields to include in a partial response.
846
845
  # @param [String] quota_user
@@ -850,20 +849,19 @@ module Google
850
849
  # Request-specific options
851
850
  #
852
851
  # @yield [result, err] Result & error if block supplied
853
- # @yieldparam result [Google::Apis::NetworksecurityV1::ListOperationsResponse] parsed result object
852
+ # @yieldparam result [Google::Apis::NetworksecurityV1::ListGatewaySecurityPoliciesResponse] parsed result object
854
853
  # @yieldparam err [StandardError] error object if request failed
855
854
  #
856
- # @return [Google::Apis::NetworksecurityV1::ListOperationsResponse]
855
+ # @return [Google::Apis::NetworksecurityV1::ListGatewaySecurityPoliciesResponse]
857
856
  #
858
857
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
859
858
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
860
859
  # @raise [Google::Apis::AuthorizationError] Authorization is required
861
- def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
862
- command = make_simple_command(:get, 'v1/{+name}/operations', options)
863
- command.response_representation = Google::Apis::NetworksecurityV1::ListOperationsResponse::Representation
864
- command.response_class = Google::Apis::NetworksecurityV1::ListOperationsResponse
865
- command.params['name'] = name unless name.nil?
866
- command.query['filter'] = filter unless filter.nil?
860
+ def list_project_location_gateway_security_policies(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
861
+ command = make_simple_command(:get, 'v1/{+parent}/gatewaySecurityPolicies', options)
862
+ command.response_representation = Google::Apis::NetworksecurityV1::ListGatewaySecurityPoliciesResponse::Representation
863
+ command.response_class = Google::Apis::NetworksecurityV1::ListGatewaySecurityPoliciesResponse
864
+ command.params['parent'] = parent unless parent.nil?
867
865
  command.query['pageSize'] = page_size unless page_size.nil?
868
866
  command.query['pageToken'] = page_token unless page_token.nil?
869
867
  command.query['fields'] = fields unless fields.nil?
@@ -871,15 +869,19 @@ module Google
871
869
  execute_or_queue_command(command, &block)
872
870
  end
873
871
 
874
- # Creates a new ServerTlsPolicy in a given project and location.
875
- # @param [String] parent
876
- # Required. The parent resource of the ServerTlsPolicy. Must be in the format `
877
- # projects/*/locations/`location``.
878
- # @param [Google::Apis::NetworksecurityV1::ServerTlsPolicy] server_tls_policy_object
879
- # @param [String] server_tls_policy_id
880
- # Required. Short name of the ServerTlsPolicy resource to be created. This value
881
- # should be 1-63 characters long, containing only letters, numbers, hyphens, and
882
- # underscores, and should not start with a number. E.g. "server_mtls_policy".
872
+ # Updates the parameters of a single GatewaySecurityPolicy.
873
+ # @param [String] name
874
+ # Required. Name of the resource. Name is of the form projects/`project`/
875
+ # locations/`location`/gatewaySecurityPolicies/`gateway_security_policy`
876
+ # gateway_security_policy should match the pattern:(^[a-z]([a-z0-9-]`0,61`[a-z0-
877
+ # 9])?$).
878
+ # @param [Google::Apis::NetworksecurityV1::GatewaySecurityPolicy] gateway_security_policy_object
879
+ # @param [String] update_mask
880
+ # Optional. Field mask is used to specify the fields to be overwritten in the
881
+ # GatewaySecurityPolicy resource by the update. The fields specified in the
882
+ # update_mask are relative to the resource, not the full request. A field will
883
+ # be overwritten if it is in the mask. If the user does not provide a mask then
884
+ # all fields will be overwritten.
883
885
  # @param [String] fields
884
886
  # Selector specifying which fields to include in a partial response.
885
887
  # @param [String] quota_user
@@ -897,23 +899,28 @@ module Google
897
899
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
898
900
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
899
901
  # @raise [Google::Apis::AuthorizationError] Authorization is required
900
- 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)
901
- command = make_simple_command(:post, 'v1/{+parent}/serverTlsPolicies', options)
902
- command.request_representation = Google::Apis::NetworksecurityV1::ServerTlsPolicy::Representation
903
- command.request_object = server_tls_policy_object
902
+ def patch_project_location_gateway_security_policy(name, gateway_security_policy_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
903
+ command = make_simple_command(:patch, 'v1/{+name}', options)
904
+ command.request_representation = Google::Apis::NetworksecurityV1::GatewaySecurityPolicy::Representation
905
+ command.request_object = gateway_security_policy_object
904
906
  command.response_representation = Google::Apis::NetworksecurityV1::Operation::Representation
905
907
  command.response_class = Google::Apis::NetworksecurityV1::Operation
906
- command.params['parent'] = parent unless parent.nil?
907
- command.query['serverTlsPolicyId'] = server_tls_policy_id unless server_tls_policy_id.nil?
908
+ command.params['name'] = name unless name.nil?
909
+ command.query['updateMask'] = update_mask unless update_mask.nil?
908
910
  command.query['fields'] = fields unless fields.nil?
909
911
  command.query['quotaUser'] = quota_user unless quota_user.nil?
910
912
  execute_or_queue_command(command, &block)
911
913
  end
912
914
 
913
- # Deletes a single ServerTlsPolicy.
914
- # @param [String] name
915
- # Required. A name of the ServerTlsPolicy to delete. Must be in the format `
916
- # projects/*/locations/`location`/serverTlsPolicies/*`.
915
+ # Creates a new GatewaySecurityPolicy in a given project and location.
916
+ # @param [String] parent
917
+ # Required. The parent where this rule will be created. Format : projects/`
918
+ # project`/location/`location`/gatewaySecurityPolicies/*
919
+ # @param [Google::Apis::NetworksecurityV1::GatewaySecurityPolicyRule] gateway_security_policy_rule_object
920
+ # @param [String] gateway_security_policy_rule_id
921
+ # The ID to use for the rule, which will become the final component of the rule'
922
+ # s resource name. This value should be 4-63 characters, and valid characters
923
+ # are /a-z-/.
917
924
  # @param [String] fields
918
925
  # Selector specifying which fields to include in a partial response.
919
926
  # @param [String] quota_user
@@ -931,20 +938,24 @@ module Google
931
938
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
932
939
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
933
940
  # @raise [Google::Apis::AuthorizationError] Authorization is required
934
- def delete_project_location_server_tls_policy(name, fields: nil, quota_user: nil, options: nil, &block)
935
- command = make_simple_command(:delete, 'v1/{+name}', options)
941
+ 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)
942
+ command = make_simple_command(:post, 'v1/{+parent}/rules', options)
943
+ command.request_representation = Google::Apis::NetworksecurityV1::GatewaySecurityPolicyRule::Representation
944
+ command.request_object = gateway_security_policy_rule_object
936
945
  command.response_representation = Google::Apis::NetworksecurityV1::Operation::Representation
937
946
  command.response_class = Google::Apis::NetworksecurityV1::Operation
938
- command.params['name'] = name unless name.nil?
947
+ command.params['parent'] = parent unless parent.nil?
948
+ command.query['gatewaySecurityPolicyRuleId'] = gateway_security_policy_rule_id unless gateway_security_policy_rule_id.nil?
939
949
  command.query['fields'] = fields unless fields.nil?
940
950
  command.query['quotaUser'] = quota_user unless quota_user.nil?
941
951
  execute_or_queue_command(command, &block)
942
952
  end
943
953
 
944
- # Gets details of a single ServerTlsPolicy.
954
+ # Deletes a single GatewaySecurityPolicyRule.
945
955
  # @param [String] name
946
- # Required. A name of the ServerTlsPolicy to get. Must be in the format `
947
- # projects/*/locations/`location`/serverTlsPolicies/*`.
956
+ # Required. A name of the GatewaySecurityPolicyRule to delete. Must be in the
957
+ # format `projects/`project`/locations/`location`/gatewaySecurityPolicies/`
958
+ # gatewaySecurityPolicy`/rules/*`.
948
959
  # @param [String] fields
949
960
  # Selector specifying which fields to include in a partial response.
950
961
  # @param [String] quota_user
@@ -954,41 +965,28 @@ module Google
954
965
  # Request-specific options
955
966
  #
956
967
  # @yield [result, err] Result & error if block supplied
957
- # @yieldparam result [Google::Apis::NetworksecurityV1::ServerTlsPolicy] parsed result object
968
+ # @yieldparam result [Google::Apis::NetworksecurityV1::Operation] parsed result object
958
969
  # @yieldparam err [StandardError] error object if request failed
959
970
  #
960
- # @return [Google::Apis::NetworksecurityV1::ServerTlsPolicy]
971
+ # @return [Google::Apis::NetworksecurityV1::Operation]
961
972
  #
962
973
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
963
974
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
964
975
  # @raise [Google::Apis::AuthorizationError] Authorization is required
965
- def get_project_location_server_tls_policy(name, fields: nil, quota_user: nil, options: nil, &block)
966
- command = make_simple_command(:get, 'v1/{+name}', options)
967
- command.response_representation = Google::Apis::NetworksecurityV1::ServerTlsPolicy::Representation
968
- command.response_class = Google::Apis::NetworksecurityV1::ServerTlsPolicy
976
+ def delete_project_location_gateway_security_policy_rule(name, fields: nil, quota_user: nil, options: nil, &block)
977
+ command = make_simple_command(:delete, 'v1/{+name}', options)
978
+ command.response_representation = Google::Apis::NetworksecurityV1::Operation::Representation
979
+ command.response_class = Google::Apis::NetworksecurityV1::Operation
969
980
  command.params['name'] = name unless name.nil?
970
981
  command.query['fields'] = fields unless fields.nil?
971
982
  command.query['quotaUser'] = quota_user unless quota_user.nil?
972
983
  execute_or_queue_command(command, &block)
973
984
  end
974
985
 
975
- # Gets the access control policy for a resource. Returns an empty policy if the
976
- # resource exists and does not have a policy set.
977
- # @param [String] resource
978
- # REQUIRED: The resource for which the policy is being requested. See [Resource
979
- # names](https://cloud.google.com/apis/design/resource_names) for the
980
- # appropriate value for this field.
981
- # @param [Fixnum] options_requested_policy_version
982
- # Optional. The maximum policy version that will be used to format the policy.
983
- # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
984
- # rejected. Requests for policies with any conditional role bindings must
985
- # specify version 3. Policies with no conditional role bindings may specify any
986
- # valid value or leave the field unset. The policy in the response might use the
987
- # policy version that you specified, or it might use a lower policy version. For
988
- # example, if you specify version 3, but the policy has no conditional role
989
- # bindings, the response uses version 1. To learn which resources support
990
- # conditions in their IAM policies, see the [IAM documentation](https://cloud.
991
- # google.com/iam/help/conditions/resource-policies).
986
+ # Gets details of a single GatewaySecurityPolicyRule.
987
+ # @param [String] name
988
+ # Required. The name of the GatewaySecurityPolicyRule to retrieve. Format:
989
+ # projects/`project`/location/`location`/gatewaySecurityPolicies/*/rules/*
992
990
  # @param [String] fields
993
991
  # Selector specifying which fields to include in a partial response.
994
992
  # @param [String] quota_user
@@ -998,35 +996,37 @@ module Google
998
996
  # Request-specific options
999
997
  #
1000
998
  # @yield [result, err] Result & error if block supplied
1001
- # @yieldparam result [Google::Apis::NetworksecurityV1::GoogleIamV1Policy] parsed result object
999
+ # @yieldparam result [Google::Apis::NetworksecurityV1::GatewaySecurityPolicyRule] parsed result object
1002
1000
  # @yieldparam err [StandardError] error object if request failed
1003
1001
  #
1004
- # @return [Google::Apis::NetworksecurityV1::GoogleIamV1Policy]
1002
+ # @return [Google::Apis::NetworksecurityV1::GatewaySecurityPolicyRule]
1005
1003
  #
1006
1004
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1007
1005
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1008
1006
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1009
- def get_project_location_server_tls_policy_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
1010
- command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
1011
- command.response_representation = Google::Apis::NetworksecurityV1::GoogleIamV1Policy::Representation
1012
- command.response_class = Google::Apis::NetworksecurityV1::GoogleIamV1Policy
1013
- command.params['resource'] = resource unless resource.nil?
1014
- command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
1007
+ def get_project_location_gateway_security_policy_rule(name, fields: nil, quota_user: nil, options: nil, &block)
1008
+ command = make_simple_command(:get, 'v1/{+name}', options)
1009
+ command.response_representation = Google::Apis::NetworksecurityV1::GatewaySecurityPolicyRule::Representation
1010
+ command.response_class = Google::Apis::NetworksecurityV1::GatewaySecurityPolicyRule
1011
+ command.params['name'] = name unless name.nil?
1015
1012
  command.query['fields'] = fields unless fields.nil?
1016
1013
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1017
1014
  execute_or_queue_command(command, &block)
1018
1015
  end
1019
1016
 
1020
- # Lists ServerTlsPolicies in a given project and location.
1017
+ # Lists GatewaySecurityPolicyRules in a given project and location.
1021
1018
  # @param [String] parent
1022
- # Required. The project and location from which the ServerTlsPolicies should be
1023
- # listed, specified in the format `projects/*/locations/`location``.
1019
+ # Required. The project, location and GatewaySecurityPolicy from which the
1020
+ # GatewaySecurityPolicyRules should be listed, specified in the format `projects/
1021
+ # `project`/locations/`location`/gatewaySecurityPolicies/`gatewaySecurityPolicy``
1022
+ # .
1024
1023
  # @param [Fixnum] page_size
1025
- # Maximum number of ServerTlsPolicies to return per call.
1024
+ # Maximum number of GatewaySecurityPolicyRules to return per call.
1026
1025
  # @param [String] page_token
1027
- # The value returned by the last `ListServerTlsPoliciesResponse` Indicates that
1028
- # this is a continuation of a prior `ListServerTlsPolicies` call, and that the
1029
- # system should return the next page of data.
1026
+ # The value returned by the last 'ListGatewaySecurityPolicyRulesResponse'
1027
+ # Indicates that this is a continuation of a prior '
1028
+ # ListGatewaySecurityPolicyRules' call, and that the system should return the
1029
+ # next page of data.
1030
1030
  # @param [String] fields
1031
1031
  # Selector specifying which fields to include in a partial response.
1032
1032
  # @param [String] quota_user
@@ -1036,18 +1036,18 @@ module Google
1036
1036
  # Request-specific options
1037
1037
  #
1038
1038
  # @yield [result, err] Result & error if block supplied
1039
- # @yieldparam result [Google::Apis::NetworksecurityV1::ListServerTlsPoliciesResponse] parsed result object
1039
+ # @yieldparam result [Google::Apis::NetworksecurityV1::ListGatewaySecurityPolicyRulesResponse] parsed result object
1040
1040
  # @yieldparam err [StandardError] error object if request failed
1041
1041
  #
1042
- # @return [Google::Apis::NetworksecurityV1::ListServerTlsPoliciesResponse]
1042
+ # @return [Google::Apis::NetworksecurityV1::ListGatewaySecurityPolicyRulesResponse]
1043
1043
  #
1044
1044
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1045
1045
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1046
1046
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1047
- def list_project_location_server_tls_policies(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1048
- command = make_simple_command(:get, 'v1/{+parent}/serverTlsPolicies', options)
1049
- command.response_representation = Google::Apis::NetworksecurityV1::ListServerTlsPoliciesResponse::Representation
1050
- command.response_class = Google::Apis::NetworksecurityV1::ListServerTlsPoliciesResponse
1047
+ def list_project_location_gateway_security_policy_rules(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1048
+ command = make_simple_command(:get, 'v1/{+parent}/rules', options)
1049
+ command.response_representation = Google::Apis::NetworksecurityV1::ListGatewaySecurityPolicyRulesResponse::Representation
1050
+ command.response_class = Google::Apis::NetworksecurityV1::ListGatewaySecurityPolicyRulesResponse
1051
1051
  command.params['parent'] = parent unless parent.nil?
1052
1052
  command.query['pageSize'] = page_size unless page_size.nil?
1053
1053
  command.query['pageToken'] = page_token unless page_token.nil?
@@ -1056,14 +1056,16 @@ module Google
1056
1056
  execute_or_queue_command(command, &block)
1057
1057
  end
1058
1058
 
1059
- # Updates the parameters of a single ServerTlsPolicy.
1059
+ # Updates the parameters of a single GatewaySecurityPolicyRule.
1060
1060
  # @param [String] name
1061
- # Required. Name of the ServerTlsPolicy resource. It matches the pattern `
1062
- # projects/*/locations/`location`/serverTlsPolicies/`server_tls_policy``
1063
- # @param [Google::Apis::NetworksecurityV1::ServerTlsPolicy] server_tls_policy_object
1061
+ # Required. Immutable. Name of the resource. ame is the full resource name so
1062
+ # projects/`project`/locations/`location`/gatewaySecurityPolicies/`
1063
+ # gateway_security_policy`/rules/`rule` rule should match the pattern: (^[a-z]([
1064
+ # a-z0-9-]`0,61`[a-z0-9])?$).
1065
+ # @param [Google::Apis::NetworksecurityV1::GatewaySecurityPolicyRule] gateway_security_policy_rule_object
1064
1066
  # @param [String] update_mask
1065
1067
  # Optional. Field mask is used to specify the fields to be overwritten in the
1066
- # ServerTlsPolicy resource by the update. The fields specified in the
1068
+ # GatewaySecurityPolicy resource by the update. The fields specified in the
1067
1069
  # update_mask are relative to the resource, not the full request. A field will
1068
1070
  # be overwritten if it is in the mask. If the user does not provide a mask then
1069
1071
  # all fields will be overwritten.
@@ -1084,10 +1086,10 @@ module Google
1084
1086
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1085
1087
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1086
1088
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1087
- def patch_project_location_server_tls_policy(name, server_tls_policy_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1089
+ 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)
1088
1090
  command = make_simple_command(:patch, 'v1/{+name}', options)
1089
- command.request_representation = Google::Apis::NetworksecurityV1::ServerTlsPolicy::Representation
1090
- command.request_object = server_tls_policy_object
1091
+ command.request_representation = Google::Apis::NetworksecurityV1::GatewaySecurityPolicyRule::Representation
1092
+ command.request_object = gateway_security_policy_rule_object
1091
1093
  command.response_representation = Google::Apis::NetworksecurityV1::Operation::Representation
1092
1094
  command.response_class = Google::Apis::NetworksecurityV1::Operation
1093
1095
  command.params['name'] = name unless name.nil?
@@ -1097,14 +1099,17 @@ module Google
1097
1099
  execute_or_queue_command(command, &block)
1098
1100
  end
1099
1101
 
1100
- # Sets the access control policy on the specified resource. Replaces any
1101
- # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
1102
- # PERMISSION_DENIED` errors.
1103
- # @param [String] resource
1104
- # REQUIRED: The resource for which the policy is being specified. See [Resource
1105
- # names](https://cloud.google.com/apis/design/resource_names) for the
1106
- # appropriate value for this field.
1107
- # @param [Google::Apis::NetworksecurityV1::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_request_object
1102
+ # Starts asynchronous cancellation on a long-running operation. The server makes
1103
+ # a best effort to cancel the operation, but success is not guaranteed. If the
1104
+ # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
1105
+ # Clients can use Operations.GetOperation or other methods to check whether the
1106
+ # cancellation succeeded or whether the operation completed despite cancellation.
1107
+ # On successful cancellation, the operation is not deleted; instead, it becomes
1108
+ # an operation with an Operation.error value with a google.rpc.Status.code of 1,
1109
+ # corresponding to `Code.CANCELLED`.
1110
+ # @param [String] name
1111
+ # The name of the operation resource to be cancelled.
1112
+ # @param [Google::Apis::NetworksecurityV1::CancelOperationRequest] cancel_operation_request_object
1108
1113
  # @param [String] fields
1109
1114
  # Selector specifying which fields to include in a partial response.
1110
1115
  # @param [String] quota_user
@@ -1114,36 +1119,32 @@ module Google
1114
1119
  # Request-specific options
1115
1120
  #
1116
1121
  # @yield [result, err] Result & error if block supplied
1117
- # @yieldparam result [Google::Apis::NetworksecurityV1::GoogleIamV1Policy] parsed result object
1122
+ # @yieldparam result [Google::Apis::NetworksecurityV1::Empty] parsed result object
1118
1123
  # @yieldparam err [StandardError] error object if request failed
1119
1124
  #
1120
- # @return [Google::Apis::NetworksecurityV1::GoogleIamV1Policy]
1125
+ # @return [Google::Apis::NetworksecurityV1::Empty]
1121
1126
  #
1122
1127
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1123
1128
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1124
1129
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1125
- 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)
1126
- command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
1127
- command.request_representation = Google::Apis::NetworksecurityV1::GoogleIamV1SetIamPolicyRequest::Representation
1128
- command.request_object = google_iam_v1_set_iam_policy_request_object
1129
- command.response_representation = Google::Apis::NetworksecurityV1::GoogleIamV1Policy::Representation
1130
- command.response_class = Google::Apis::NetworksecurityV1::GoogleIamV1Policy
1131
- command.params['resource'] = resource unless resource.nil?
1130
+ def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1131
+ command = make_simple_command(:post, 'v1/{+name}:cancel', options)
1132
+ command.request_representation = Google::Apis::NetworksecurityV1::CancelOperationRequest::Representation
1133
+ command.request_object = cancel_operation_request_object
1134
+ command.response_representation = Google::Apis::NetworksecurityV1::Empty::Representation
1135
+ command.response_class = Google::Apis::NetworksecurityV1::Empty
1136
+ command.params['name'] = name unless name.nil?
1132
1137
  command.query['fields'] = fields unless fields.nil?
1133
1138
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1134
1139
  execute_or_queue_command(command, &block)
1135
1140
  end
1136
1141
 
1137
- # Returns permissions that a caller has on the specified resource. If the
1138
- # resource does not exist, this will return an empty set of permissions, not a `
1139
- # NOT_FOUND` error. Note: This operation is designed to be used for building
1140
- # permission-aware UIs and command-line tools, not for authorization checking.
1141
- # This operation may "fail open" without warning.
1142
- # @param [String] resource
1143
- # REQUIRED: The resource for which the policy detail is being requested. See [
1144
- # Resource names](https://cloud.google.com/apis/design/resource_names) for the
1145
- # appropriate value for this field.
1146
- # @param [Google::Apis::NetworksecurityV1::GoogleIamV1TestIamPermissionsRequest] google_iam_v1_test_iam_permissions_request_object
1142
+ # Deletes a long-running operation. This method indicates that the client is no
1143
+ # longer interested in the operation result. It does not cancel the operation.
1144
+ # If the server doesn't support this method, it returns `google.rpc.Code.
1145
+ # UNIMPLEMENTED`.
1146
+ # @param [String] name
1147
+ # The name of the operation resource to be deleted.
1147
1148
  # @param [String] fields
1148
1149
  # Selector specifying which fields to include in a partial response.
1149
1150
  # @param [String] quota_user
@@ -1153,21 +1154,764 @@ module Google
1153
1154
  # Request-specific options
1154
1155
  #
1155
1156
  # @yield [result, err] Result & error if block supplied
1156
- # @yieldparam result [Google::Apis::NetworksecurityV1::GoogleIamV1TestIamPermissionsResponse] parsed result object
1157
+ # @yieldparam result [Google::Apis::NetworksecurityV1::Empty] parsed result object
1157
1158
  # @yieldparam err [StandardError] error object if request failed
1158
1159
  #
1159
- # @return [Google::Apis::NetworksecurityV1::GoogleIamV1TestIamPermissionsResponse]
1160
+ # @return [Google::Apis::NetworksecurityV1::Empty]
1160
1161
  #
1161
1162
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1162
1163
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1163
1164
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1164
- 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)
1165
- command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
1166
- command.request_representation = Google::Apis::NetworksecurityV1::GoogleIamV1TestIamPermissionsRequest::Representation
1167
- command.request_object = google_iam_v1_test_iam_permissions_request_object
1168
- command.response_representation = Google::Apis::NetworksecurityV1::GoogleIamV1TestIamPermissionsResponse::Representation
1169
- command.response_class = Google::Apis::NetworksecurityV1::GoogleIamV1TestIamPermissionsResponse
1170
- command.params['resource'] = resource unless resource.nil?
1165
+ def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
1166
+ command = make_simple_command(:delete, 'v1/{+name}', options)
1167
+ command.response_representation = Google::Apis::NetworksecurityV1::Empty::Representation
1168
+ command.response_class = Google::Apis::NetworksecurityV1::Empty
1169
+ command.params['name'] = name unless name.nil?
1170
+ command.query['fields'] = fields unless fields.nil?
1171
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1172
+ execute_or_queue_command(command, &block)
1173
+ end
1174
+
1175
+ # Gets the latest state of a long-running operation. Clients can use this method
1176
+ # to poll the operation result at intervals as recommended by the API service.
1177
+ # @param [String] name
1178
+ # The name of the operation resource.
1179
+ # @param [String] fields
1180
+ # Selector specifying which fields to include in a partial response.
1181
+ # @param [String] quota_user
1182
+ # Available to use for quota purposes for server-side applications. Can be any
1183
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1184
+ # @param [Google::Apis::RequestOptions] options
1185
+ # Request-specific options
1186
+ #
1187
+ # @yield [result, err] Result & error if block supplied
1188
+ # @yieldparam result [Google::Apis::NetworksecurityV1::Operation] parsed result object
1189
+ # @yieldparam err [StandardError] error object if request failed
1190
+ #
1191
+ # @return [Google::Apis::NetworksecurityV1::Operation]
1192
+ #
1193
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1194
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1195
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1196
+ def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
1197
+ command = make_simple_command(:get, 'v1/{+name}', options)
1198
+ command.response_representation = Google::Apis::NetworksecurityV1::Operation::Representation
1199
+ command.response_class = Google::Apis::NetworksecurityV1::Operation
1200
+ command.params['name'] = name unless name.nil?
1201
+ command.query['fields'] = fields unless fields.nil?
1202
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1203
+ execute_or_queue_command(command, &block)
1204
+ end
1205
+
1206
+ # Lists operations that match the specified filter in the request. If the server
1207
+ # doesn't support this method, it returns `UNIMPLEMENTED`.
1208
+ # @param [String] name
1209
+ # The name of the operation's parent resource.
1210
+ # @param [String] filter
1211
+ # The standard list filter.
1212
+ # @param [Fixnum] page_size
1213
+ # The standard list page size.
1214
+ # @param [String] page_token
1215
+ # The standard list page token.
1216
+ # @param [String] fields
1217
+ # Selector specifying which fields to include in a partial response.
1218
+ # @param [String] quota_user
1219
+ # Available to use for quota purposes for server-side applications. Can be any
1220
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1221
+ # @param [Google::Apis::RequestOptions] options
1222
+ # Request-specific options
1223
+ #
1224
+ # @yield [result, err] Result & error if block supplied
1225
+ # @yieldparam result [Google::Apis::NetworksecurityV1::ListOperationsResponse] parsed result object
1226
+ # @yieldparam err [StandardError] error object if request failed
1227
+ #
1228
+ # @return [Google::Apis::NetworksecurityV1::ListOperationsResponse]
1229
+ #
1230
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1231
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1232
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1233
+ def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1234
+ command = make_simple_command(:get, 'v1/{+name}/operations', options)
1235
+ command.response_representation = Google::Apis::NetworksecurityV1::ListOperationsResponse::Representation
1236
+ command.response_class = Google::Apis::NetworksecurityV1::ListOperationsResponse
1237
+ command.params['name'] = name unless name.nil?
1238
+ command.query['filter'] = filter unless filter.nil?
1239
+ command.query['pageSize'] = page_size unless page_size.nil?
1240
+ command.query['pageToken'] = page_token unless page_token.nil?
1241
+ command.query['fields'] = fields unless fields.nil?
1242
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1243
+ execute_or_queue_command(command, &block)
1244
+ end
1245
+
1246
+ # Creates a new ServerTlsPolicy in a given project and location.
1247
+ # @param [String] parent
1248
+ # Required. The parent resource of the ServerTlsPolicy. Must be in the format `
1249
+ # projects/*/locations/`location``.
1250
+ # @param [Google::Apis::NetworksecurityV1::ServerTlsPolicy] server_tls_policy_object
1251
+ # @param [String] server_tls_policy_id
1252
+ # Required. Short name of the ServerTlsPolicy resource to be created. This value
1253
+ # should be 1-63 characters long, containing only letters, numbers, hyphens, and
1254
+ # underscores, and should not start with a number. E.g. "server_mtls_policy".
1255
+ # @param [String] fields
1256
+ # Selector specifying which fields to include in a partial response.
1257
+ # @param [String] quota_user
1258
+ # Available to use for quota purposes for server-side applications. Can be any
1259
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1260
+ # @param [Google::Apis::RequestOptions] options
1261
+ # Request-specific options
1262
+ #
1263
+ # @yield [result, err] Result & error if block supplied
1264
+ # @yieldparam result [Google::Apis::NetworksecurityV1::Operation] parsed result object
1265
+ # @yieldparam err [StandardError] error object if request failed
1266
+ #
1267
+ # @return [Google::Apis::NetworksecurityV1::Operation]
1268
+ #
1269
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1270
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1271
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1272
+ 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)
1273
+ command = make_simple_command(:post, 'v1/{+parent}/serverTlsPolicies', options)
1274
+ command.request_representation = Google::Apis::NetworksecurityV1::ServerTlsPolicy::Representation
1275
+ command.request_object = server_tls_policy_object
1276
+ command.response_representation = Google::Apis::NetworksecurityV1::Operation::Representation
1277
+ command.response_class = Google::Apis::NetworksecurityV1::Operation
1278
+ command.params['parent'] = parent unless parent.nil?
1279
+ command.query['serverTlsPolicyId'] = server_tls_policy_id unless server_tls_policy_id.nil?
1280
+ command.query['fields'] = fields unless fields.nil?
1281
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1282
+ execute_or_queue_command(command, &block)
1283
+ end
1284
+
1285
+ # Deletes a single ServerTlsPolicy.
1286
+ # @param [String] name
1287
+ # Required. A name of the ServerTlsPolicy to delete. Must be in the format `
1288
+ # projects/*/locations/`location`/serverTlsPolicies/*`.
1289
+ # @param [String] fields
1290
+ # Selector specifying which fields to include in a partial response.
1291
+ # @param [String] quota_user
1292
+ # Available to use for quota purposes for server-side applications. Can be any
1293
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1294
+ # @param [Google::Apis::RequestOptions] options
1295
+ # Request-specific options
1296
+ #
1297
+ # @yield [result, err] Result & error if block supplied
1298
+ # @yieldparam result [Google::Apis::NetworksecurityV1::Operation] parsed result object
1299
+ # @yieldparam err [StandardError] error object if request failed
1300
+ #
1301
+ # @return [Google::Apis::NetworksecurityV1::Operation]
1302
+ #
1303
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1304
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1305
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1306
+ def delete_project_location_server_tls_policy(name, fields: nil, quota_user: nil, options: nil, &block)
1307
+ command = make_simple_command(:delete, 'v1/{+name}', options)
1308
+ command.response_representation = Google::Apis::NetworksecurityV1::Operation::Representation
1309
+ command.response_class = Google::Apis::NetworksecurityV1::Operation
1310
+ command.params['name'] = name unless name.nil?
1311
+ command.query['fields'] = fields unless fields.nil?
1312
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1313
+ execute_or_queue_command(command, &block)
1314
+ end
1315
+
1316
+ # Gets details of a single ServerTlsPolicy.
1317
+ # @param [String] name
1318
+ # Required. A name of the ServerTlsPolicy to get. Must be in the format `
1319
+ # projects/*/locations/`location`/serverTlsPolicies/*`.
1320
+ # @param [String] fields
1321
+ # Selector specifying which fields to include in a partial response.
1322
+ # @param [String] quota_user
1323
+ # Available to use for quota purposes for server-side applications. Can be any
1324
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1325
+ # @param [Google::Apis::RequestOptions] options
1326
+ # Request-specific options
1327
+ #
1328
+ # @yield [result, err] Result & error if block supplied
1329
+ # @yieldparam result [Google::Apis::NetworksecurityV1::ServerTlsPolicy] parsed result object
1330
+ # @yieldparam err [StandardError] error object if request failed
1331
+ #
1332
+ # @return [Google::Apis::NetworksecurityV1::ServerTlsPolicy]
1333
+ #
1334
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1335
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1336
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1337
+ def get_project_location_server_tls_policy(name, fields: nil, quota_user: nil, options: nil, &block)
1338
+ command = make_simple_command(:get, 'v1/{+name}', options)
1339
+ command.response_representation = Google::Apis::NetworksecurityV1::ServerTlsPolicy::Representation
1340
+ command.response_class = Google::Apis::NetworksecurityV1::ServerTlsPolicy
1341
+ command.params['name'] = name unless name.nil?
1342
+ command.query['fields'] = fields unless fields.nil?
1343
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1344
+ execute_or_queue_command(command, &block)
1345
+ end
1346
+
1347
+ # Gets the access control policy for a resource. Returns an empty policy if the
1348
+ # resource exists and does not have a policy set.
1349
+ # @param [String] resource
1350
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
1351
+ # names](https://cloud.google.com/apis/design/resource_names) for the
1352
+ # appropriate value for this field.
1353
+ # @param [Fixnum] options_requested_policy_version
1354
+ # Optional. The maximum policy version that will be used to format the policy.
1355
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
1356
+ # rejected. Requests for policies with any conditional role bindings must
1357
+ # specify version 3. Policies with no conditional role bindings may specify any
1358
+ # valid value or leave the field unset. The policy in the response might use the
1359
+ # policy version that you specified, or it might use a lower policy version. For
1360
+ # example, if you specify version 3, but the policy has no conditional role
1361
+ # bindings, the response uses version 1. To learn which resources support
1362
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
1363
+ # google.com/iam/help/conditions/resource-policies).
1364
+ # @param [String] fields
1365
+ # Selector specifying which fields to include in a partial response.
1366
+ # @param [String] quota_user
1367
+ # Available to use for quota purposes for server-side applications. Can be any
1368
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1369
+ # @param [Google::Apis::RequestOptions] options
1370
+ # Request-specific options
1371
+ #
1372
+ # @yield [result, err] Result & error if block supplied
1373
+ # @yieldparam result [Google::Apis::NetworksecurityV1::GoogleIamV1Policy] parsed result object
1374
+ # @yieldparam err [StandardError] error object if request failed
1375
+ #
1376
+ # @return [Google::Apis::NetworksecurityV1::GoogleIamV1Policy]
1377
+ #
1378
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1379
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1380
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1381
+ def get_project_location_server_tls_policy_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
1382
+ command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
1383
+ command.response_representation = Google::Apis::NetworksecurityV1::GoogleIamV1Policy::Representation
1384
+ command.response_class = Google::Apis::NetworksecurityV1::GoogleIamV1Policy
1385
+ command.params['resource'] = resource unless resource.nil?
1386
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
1387
+ command.query['fields'] = fields unless fields.nil?
1388
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1389
+ execute_or_queue_command(command, &block)
1390
+ end
1391
+
1392
+ # Lists ServerTlsPolicies in a given project and location.
1393
+ # @param [String] parent
1394
+ # Required. The project and location from which the ServerTlsPolicies should be
1395
+ # listed, specified in the format `projects/*/locations/`location``.
1396
+ # @param [Fixnum] page_size
1397
+ # Maximum number of ServerTlsPolicies to return per call.
1398
+ # @param [String] page_token
1399
+ # The value returned by the last `ListServerTlsPoliciesResponse` Indicates that
1400
+ # this is a continuation of a prior `ListServerTlsPolicies` call, and that the
1401
+ # system should return the next page of data.
1402
+ # @param [String] fields
1403
+ # Selector specifying which fields to include in a partial response.
1404
+ # @param [String] quota_user
1405
+ # Available to use for quota purposes for server-side applications. Can be any
1406
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1407
+ # @param [Google::Apis::RequestOptions] options
1408
+ # Request-specific options
1409
+ #
1410
+ # @yield [result, err] Result & error if block supplied
1411
+ # @yieldparam result [Google::Apis::NetworksecurityV1::ListServerTlsPoliciesResponse] parsed result object
1412
+ # @yieldparam err [StandardError] error object if request failed
1413
+ #
1414
+ # @return [Google::Apis::NetworksecurityV1::ListServerTlsPoliciesResponse]
1415
+ #
1416
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1417
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1418
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1419
+ def list_project_location_server_tls_policies(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1420
+ command = make_simple_command(:get, 'v1/{+parent}/serverTlsPolicies', options)
1421
+ command.response_representation = Google::Apis::NetworksecurityV1::ListServerTlsPoliciesResponse::Representation
1422
+ command.response_class = Google::Apis::NetworksecurityV1::ListServerTlsPoliciesResponse
1423
+ command.params['parent'] = parent unless parent.nil?
1424
+ command.query['pageSize'] = page_size unless page_size.nil?
1425
+ command.query['pageToken'] = page_token unless page_token.nil?
1426
+ command.query['fields'] = fields unless fields.nil?
1427
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1428
+ execute_or_queue_command(command, &block)
1429
+ end
1430
+
1431
+ # Updates the parameters of a single ServerTlsPolicy.
1432
+ # @param [String] name
1433
+ # Required. Name of the ServerTlsPolicy resource. It matches the pattern `
1434
+ # projects/*/locations/`location`/serverTlsPolicies/`server_tls_policy``
1435
+ # @param [Google::Apis::NetworksecurityV1::ServerTlsPolicy] server_tls_policy_object
1436
+ # @param [String] update_mask
1437
+ # Optional. Field mask is used to specify the fields to be overwritten in the
1438
+ # ServerTlsPolicy resource by the update. The fields specified in the
1439
+ # update_mask are relative to the resource, not the full request. A field will
1440
+ # be overwritten if it is in the mask. If the user does not provide a mask then
1441
+ # all fields will be overwritten.
1442
+ # @param [String] fields
1443
+ # Selector specifying which fields to include in a partial response.
1444
+ # @param [String] quota_user
1445
+ # Available to use for quota purposes for server-side applications. Can be any
1446
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1447
+ # @param [Google::Apis::RequestOptions] options
1448
+ # Request-specific options
1449
+ #
1450
+ # @yield [result, err] Result & error if block supplied
1451
+ # @yieldparam result [Google::Apis::NetworksecurityV1::Operation] parsed result object
1452
+ # @yieldparam err [StandardError] error object if request failed
1453
+ #
1454
+ # @return [Google::Apis::NetworksecurityV1::Operation]
1455
+ #
1456
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1457
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1458
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1459
+ def patch_project_location_server_tls_policy(name, server_tls_policy_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1460
+ command = make_simple_command(:patch, 'v1/{+name}', options)
1461
+ command.request_representation = Google::Apis::NetworksecurityV1::ServerTlsPolicy::Representation
1462
+ command.request_object = server_tls_policy_object
1463
+ command.response_representation = Google::Apis::NetworksecurityV1::Operation::Representation
1464
+ command.response_class = Google::Apis::NetworksecurityV1::Operation
1465
+ command.params['name'] = name unless name.nil?
1466
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1467
+ command.query['fields'] = fields unless fields.nil?
1468
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1469
+ execute_or_queue_command(command, &block)
1470
+ end
1471
+
1472
+ # Sets the access control policy on the specified resource. Replaces any
1473
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
1474
+ # PERMISSION_DENIED` errors.
1475
+ # @param [String] resource
1476
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
1477
+ # names](https://cloud.google.com/apis/design/resource_names) for the
1478
+ # appropriate value for this field.
1479
+ # @param [Google::Apis::NetworksecurityV1::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_request_object
1480
+ # @param [String] fields
1481
+ # Selector specifying which fields to include in a partial response.
1482
+ # @param [String] quota_user
1483
+ # Available to use for quota purposes for server-side applications. Can be any
1484
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1485
+ # @param [Google::Apis::RequestOptions] options
1486
+ # Request-specific options
1487
+ #
1488
+ # @yield [result, err] Result & error if block supplied
1489
+ # @yieldparam result [Google::Apis::NetworksecurityV1::GoogleIamV1Policy] parsed result object
1490
+ # @yieldparam err [StandardError] error object if request failed
1491
+ #
1492
+ # @return [Google::Apis::NetworksecurityV1::GoogleIamV1Policy]
1493
+ #
1494
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1495
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1496
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1497
+ 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)
1498
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
1499
+ command.request_representation = Google::Apis::NetworksecurityV1::GoogleIamV1SetIamPolicyRequest::Representation
1500
+ command.request_object = google_iam_v1_set_iam_policy_request_object
1501
+ command.response_representation = Google::Apis::NetworksecurityV1::GoogleIamV1Policy::Representation
1502
+ command.response_class = Google::Apis::NetworksecurityV1::GoogleIamV1Policy
1503
+ command.params['resource'] = resource unless resource.nil?
1504
+ command.query['fields'] = fields unless fields.nil?
1505
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1506
+ execute_or_queue_command(command, &block)
1507
+ end
1508
+
1509
+ # Returns permissions that a caller has on the specified resource. If the
1510
+ # resource does not exist, this will return an empty set of permissions, not a `
1511
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
1512
+ # permission-aware UIs and command-line tools, not for authorization checking.
1513
+ # This operation may "fail open" without warning.
1514
+ # @param [String] resource
1515
+ # REQUIRED: The resource for which the policy detail is being requested. See [
1516
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
1517
+ # appropriate value for this field.
1518
+ # @param [Google::Apis::NetworksecurityV1::GoogleIamV1TestIamPermissionsRequest] google_iam_v1_test_iam_permissions_request_object
1519
+ # @param [String] fields
1520
+ # Selector specifying which fields to include in a partial response.
1521
+ # @param [String] quota_user
1522
+ # Available to use for quota purposes for server-side applications. Can be any
1523
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1524
+ # @param [Google::Apis::RequestOptions] options
1525
+ # Request-specific options
1526
+ #
1527
+ # @yield [result, err] Result & error if block supplied
1528
+ # @yieldparam result [Google::Apis::NetworksecurityV1::GoogleIamV1TestIamPermissionsResponse] parsed result object
1529
+ # @yieldparam err [StandardError] error object if request failed
1530
+ #
1531
+ # @return [Google::Apis::NetworksecurityV1::GoogleIamV1TestIamPermissionsResponse]
1532
+ #
1533
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1534
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1535
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1536
+ 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)
1537
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
1538
+ command.request_representation = Google::Apis::NetworksecurityV1::GoogleIamV1TestIamPermissionsRequest::Representation
1539
+ command.request_object = google_iam_v1_test_iam_permissions_request_object
1540
+ command.response_representation = Google::Apis::NetworksecurityV1::GoogleIamV1TestIamPermissionsResponse::Representation
1541
+ command.response_class = Google::Apis::NetworksecurityV1::GoogleIamV1TestIamPermissionsResponse
1542
+ command.params['resource'] = resource unless resource.nil?
1543
+ command.query['fields'] = fields unless fields.nil?
1544
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1545
+ execute_or_queue_command(command, &block)
1546
+ end
1547
+
1548
+ # Creates a new TlsInspectionPolicy in a given project and location.
1549
+ # @param [String] parent
1550
+ # Required. The parent resource of the TlsInspectionPolicy. Must be in the
1551
+ # format `projects/`project`/locations/`location``.
1552
+ # @param [Google::Apis::NetworksecurityV1::TlsInspectionPolicy] tls_inspection_policy_object
1553
+ # @param [String] tls_inspection_policy_id
1554
+ # Required. Short name of the TlsInspectionPolicy resource to be created. This
1555
+ # value should be 1-63 characters long, containing only letters, numbers,
1556
+ # hyphens, and underscores, and should not start with a number. E.g. "
1557
+ # tls_inspection_policy1".
1558
+ # @param [String] fields
1559
+ # Selector specifying which fields to include in a partial response.
1560
+ # @param [String] quota_user
1561
+ # Available to use for quota purposes for server-side applications. Can be any
1562
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1563
+ # @param [Google::Apis::RequestOptions] options
1564
+ # Request-specific options
1565
+ #
1566
+ # @yield [result, err] Result & error if block supplied
1567
+ # @yieldparam result [Google::Apis::NetworksecurityV1::Operation] parsed result object
1568
+ # @yieldparam err [StandardError] error object if request failed
1569
+ #
1570
+ # @return [Google::Apis::NetworksecurityV1::Operation]
1571
+ #
1572
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1573
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1574
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1575
+ 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)
1576
+ command = make_simple_command(:post, 'v1/{+parent}/tlsInspectionPolicies', options)
1577
+ command.request_representation = Google::Apis::NetworksecurityV1::TlsInspectionPolicy::Representation
1578
+ command.request_object = tls_inspection_policy_object
1579
+ command.response_representation = Google::Apis::NetworksecurityV1::Operation::Representation
1580
+ command.response_class = Google::Apis::NetworksecurityV1::Operation
1581
+ command.params['parent'] = parent unless parent.nil?
1582
+ command.query['tlsInspectionPolicyId'] = tls_inspection_policy_id unless tls_inspection_policy_id.nil?
1583
+ command.query['fields'] = fields unless fields.nil?
1584
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1585
+ execute_or_queue_command(command, &block)
1586
+ end
1587
+
1588
+ # Deletes a single TlsInspectionPolicy.
1589
+ # @param [String] name
1590
+ # Required. A name of the TlsInspectionPolicy to delete. Must be in the format `
1591
+ # projects/`project`/locations/`location`/tlsInspectionPolicies/`
1592
+ # tls_inspection_policy``.
1593
+ # @param [Boolean] force
1594
+ # If set to true, any rules for this TlsInspectionPolicy will also be deleted. (
1595
+ # Otherwise, the request will only work if the TlsInspectionPolicy has no rules.)
1596
+ # @param [String] fields
1597
+ # Selector specifying which fields to include in a partial response.
1598
+ # @param [String] quota_user
1599
+ # Available to use for quota purposes for server-side applications. Can be any
1600
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1601
+ # @param [Google::Apis::RequestOptions] options
1602
+ # Request-specific options
1603
+ #
1604
+ # @yield [result, err] Result & error if block supplied
1605
+ # @yieldparam result [Google::Apis::NetworksecurityV1::Operation] parsed result object
1606
+ # @yieldparam err [StandardError] error object if request failed
1607
+ #
1608
+ # @return [Google::Apis::NetworksecurityV1::Operation]
1609
+ #
1610
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1611
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1612
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1613
+ def delete_project_location_tls_inspection_policy(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
1614
+ command = make_simple_command(:delete, 'v1/{+name}', options)
1615
+ command.response_representation = Google::Apis::NetworksecurityV1::Operation::Representation
1616
+ command.response_class = Google::Apis::NetworksecurityV1::Operation
1617
+ command.params['name'] = name unless name.nil?
1618
+ command.query['force'] = force unless force.nil?
1619
+ command.query['fields'] = fields unless fields.nil?
1620
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1621
+ execute_or_queue_command(command, &block)
1622
+ end
1623
+
1624
+ # Gets details of a single TlsInspectionPolicy.
1625
+ # @param [String] name
1626
+ # Required. A name of the TlsInspectionPolicy to get. Must be in the format `
1627
+ # projects/`project`/locations/`location`/tlsInspectionPolicies/`
1628
+ # tls_inspection_policy``.
1629
+ # @param [String] fields
1630
+ # Selector specifying which fields to include in a partial response.
1631
+ # @param [String] quota_user
1632
+ # Available to use for quota purposes for server-side applications. Can be any
1633
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1634
+ # @param [Google::Apis::RequestOptions] options
1635
+ # Request-specific options
1636
+ #
1637
+ # @yield [result, err] Result & error if block supplied
1638
+ # @yieldparam result [Google::Apis::NetworksecurityV1::TlsInspectionPolicy] parsed result object
1639
+ # @yieldparam err [StandardError] error object if request failed
1640
+ #
1641
+ # @return [Google::Apis::NetworksecurityV1::TlsInspectionPolicy]
1642
+ #
1643
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1644
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1645
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1646
+ def get_project_location_tls_inspection_policy(name, fields: nil, quota_user: nil, options: nil, &block)
1647
+ command = make_simple_command(:get, 'v1/{+name}', options)
1648
+ command.response_representation = Google::Apis::NetworksecurityV1::TlsInspectionPolicy::Representation
1649
+ command.response_class = Google::Apis::NetworksecurityV1::TlsInspectionPolicy
1650
+ command.params['name'] = name unless name.nil?
1651
+ command.query['fields'] = fields unless fields.nil?
1652
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1653
+ execute_or_queue_command(command, &block)
1654
+ end
1655
+
1656
+ # Lists TlsInspectionPolicies in a given project and location.
1657
+ # @param [String] parent
1658
+ # Required. The project and location from which the TlsInspectionPolicies should
1659
+ # be listed, specified in the format `projects/`project`/locations/`location``.
1660
+ # @param [Fixnum] page_size
1661
+ # Maximum number of TlsInspectionPolicies to return per call.
1662
+ # @param [String] page_token
1663
+ # The value returned by the last 'ListTlsInspectionPoliciesResponse' Indicates
1664
+ # that this is a continuation of a prior 'ListTlsInspectionPolicies' call, and
1665
+ # that the system should return the next page of data.
1666
+ # @param [String] fields
1667
+ # Selector specifying which fields to include in a partial response.
1668
+ # @param [String] quota_user
1669
+ # Available to use for quota purposes for server-side applications. Can be any
1670
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1671
+ # @param [Google::Apis::RequestOptions] options
1672
+ # Request-specific options
1673
+ #
1674
+ # @yield [result, err] Result & error if block supplied
1675
+ # @yieldparam result [Google::Apis::NetworksecurityV1::ListTlsInspectionPoliciesResponse] parsed result object
1676
+ # @yieldparam err [StandardError] error object if request failed
1677
+ #
1678
+ # @return [Google::Apis::NetworksecurityV1::ListTlsInspectionPoliciesResponse]
1679
+ #
1680
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1681
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1682
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1683
+ def list_project_location_tls_inspection_policies(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1684
+ command = make_simple_command(:get, 'v1/{+parent}/tlsInspectionPolicies', options)
1685
+ command.response_representation = Google::Apis::NetworksecurityV1::ListTlsInspectionPoliciesResponse::Representation
1686
+ command.response_class = Google::Apis::NetworksecurityV1::ListTlsInspectionPoliciesResponse
1687
+ command.params['parent'] = parent unless parent.nil?
1688
+ command.query['pageSize'] = page_size unless page_size.nil?
1689
+ command.query['pageToken'] = page_token unless page_token.nil?
1690
+ command.query['fields'] = fields unless fields.nil?
1691
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1692
+ execute_or_queue_command(command, &block)
1693
+ end
1694
+
1695
+ # Updates the parameters of a single TlsInspectionPolicy.
1696
+ # @param [String] name
1697
+ # Required. Name of the resource. Name is of the form projects/`project`/
1698
+ # locations/`location`/tlsInspectionPolicies/`tls_inspection_policy`
1699
+ # tls_inspection_policy should match the pattern:(^[a-z]([a-z0-9-]`0,61`[a-z0-9])
1700
+ # ?$).
1701
+ # @param [Google::Apis::NetworksecurityV1::TlsInspectionPolicy] tls_inspection_policy_object
1702
+ # @param [String] update_mask
1703
+ # Optional. Field mask is used to specify the fields to be overwritten in the
1704
+ # TlsInspectionPolicy resource by the update. The fields specified in the
1705
+ # update_mask are relative to the resource, not the full request. A field will
1706
+ # be overwritten if it is in the mask. If the user does not provide a mask then
1707
+ # all fields will be overwritten.
1708
+ # @param [String] fields
1709
+ # Selector specifying which fields to include in a partial response.
1710
+ # @param [String] quota_user
1711
+ # Available to use for quota purposes for server-side applications. Can be any
1712
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1713
+ # @param [Google::Apis::RequestOptions] options
1714
+ # Request-specific options
1715
+ #
1716
+ # @yield [result, err] Result & error if block supplied
1717
+ # @yieldparam result [Google::Apis::NetworksecurityV1::Operation] parsed result object
1718
+ # @yieldparam err [StandardError] error object if request failed
1719
+ #
1720
+ # @return [Google::Apis::NetworksecurityV1::Operation]
1721
+ #
1722
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1723
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1724
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1725
+ def patch_project_location_tls_inspection_policy(name, tls_inspection_policy_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1726
+ command = make_simple_command(:patch, 'v1/{+name}', options)
1727
+ command.request_representation = Google::Apis::NetworksecurityV1::TlsInspectionPolicy::Representation
1728
+ command.request_object = tls_inspection_policy_object
1729
+ command.response_representation = Google::Apis::NetworksecurityV1::Operation::Representation
1730
+ command.response_class = Google::Apis::NetworksecurityV1::Operation
1731
+ command.params['name'] = name unless name.nil?
1732
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1733
+ command.query['fields'] = fields unless fields.nil?
1734
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1735
+ execute_or_queue_command(command, &block)
1736
+ end
1737
+
1738
+ # Creates a new UrlList in a given project and location.
1739
+ # @param [String] parent
1740
+ # Required. The parent resource of the UrlList. Must be in the format `projects/*
1741
+ # /locations/`location``.
1742
+ # @param [Google::Apis::NetworksecurityV1::UrlList] url_list_object
1743
+ # @param [String] url_list_id
1744
+ # Required. Short name of the UrlList resource to be created. This value should
1745
+ # be 1-63 characters long, containing only letters, numbers, hyphens, and
1746
+ # underscores, and should not start with a number. E.g. "url_list".
1747
+ # @param [String] fields
1748
+ # Selector specifying which fields to include in a partial response.
1749
+ # @param [String] quota_user
1750
+ # Available to use for quota purposes for server-side applications. Can be any
1751
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1752
+ # @param [Google::Apis::RequestOptions] options
1753
+ # Request-specific options
1754
+ #
1755
+ # @yield [result, err] Result & error if block supplied
1756
+ # @yieldparam result [Google::Apis::NetworksecurityV1::Operation] parsed result object
1757
+ # @yieldparam err [StandardError] error object if request failed
1758
+ #
1759
+ # @return [Google::Apis::NetworksecurityV1::Operation]
1760
+ #
1761
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1762
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1763
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1764
+ def create_project_location_url_list(parent, url_list_object = nil, url_list_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1765
+ command = make_simple_command(:post, 'v1/{+parent}/urlLists', options)
1766
+ command.request_representation = Google::Apis::NetworksecurityV1::UrlList::Representation
1767
+ command.request_object = url_list_object
1768
+ command.response_representation = Google::Apis::NetworksecurityV1::Operation::Representation
1769
+ command.response_class = Google::Apis::NetworksecurityV1::Operation
1770
+ command.params['parent'] = parent unless parent.nil?
1771
+ command.query['urlListId'] = url_list_id unless url_list_id.nil?
1772
+ command.query['fields'] = fields unless fields.nil?
1773
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1774
+ execute_or_queue_command(command, &block)
1775
+ end
1776
+
1777
+ # Deletes a single UrlList.
1778
+ # @param [String] name
1779
+ # Required. A name of the UrlList to delete. Must be in the format `projects/*/
1780
+ # locations/`location`/urlLists/*`.
1781
+ # @param [String] fields
1782
+ # Selector specifying which fields to include in a partial response.
1783
+ # @param [String] quota_user
1784
+ # Available to use for quota purposes for server-side applications. Can be any
1785
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1786
+ # @param [Google::Apis::RequestOptions] options
1787
+ # Request-specific options
1788
+ #
1789
+ # @yield [result, err] Result & error if block supplied
1790
+ # @yieldparam result [Google::Apis::NetworksecurityV1::Operation] parsed result object
1791
+ # @yieldparam err [StandardError] error object if request failed
1792
+ #
1793
+ # @return [Google::Apis::NetworksecurityV1::Operation]
1794
+ #
1795
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1796
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1797
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1798
+ def delete_project_location_url_list(name, fields: nil, quota_user: nil, options: nil, &block)
1799
+ command = make_simple_command(:delete, 'v1/{+name}', options)
1800
+ command.response_representation = Google::Apis::NetworksecurityV1::Operation::Representation
1801
+ command.response_class = Google::Apis::NetworksecurityV1::Operation
1802
+ command.params['name'] = name unless name.nil?
1803
+ command.query['fields'] = fields unless fields.nil?
1804
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1805
+ execute_or_queue_command(command, &block)
1806
+ end
1807
+
1808
+ # Gets details of a single UrlList.
1809
+ # @param [String] name
1810
+ # Required. A name of the UrlList to get. Must be in the format `projects/*/
1811
+ # locations/`location`/urlLists/*`.
1812
+ # @param [String] fields
1813
+ # Selector specifying which fields to include in a partial response.
1814
+ # @param [String] quota_user
1815
+ # Available to use for quota purposes for server-side applications. Can be any
1816
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1817
+ # @param [Google::Apis::RequestOptions] options
1818
+ # Request-specific options
1819
+ #
1820
+ # @yield [result, err] Result & error if block supplied
1821
+ # @yieldparam result [Google::Apis::NetworksecurityV1::UrlList] parsed result object
1822
+ # @yieldparam err [StandardError] error object if request failed
1823
+ #
1824
+ # @return [Google::Apis::NetworksecurityV1::UrlList]
1825
+ #
1826
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1827
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1828
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1829
+ def get_project_location_url_list(name, fields: nil, quota_user: nil, options: nil, &block)
1830
+ command = make_simple_command(:get, 'v1/{+name}', options)
1831
+ command.response_representation = Google::Apis::NetworksecurityV1::UrlList::Representation
1832
+ command.response_class = Google::Apis::NetworksecurityV1::UrlList
1833
+ command.params['name'] = name unless name.nil?
1834
+ command.query['fields'] = fields unless fields.nil?
1835
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1836
+ execute_or_queue_command(command, &block)
1837
+ end
1838
+
1839
+ # Lists UrlLists in a given project and location.
1840
+ # @param [String] parent
1841
+ # Required. The project and location from which the UrlLists should be listed,
1842
+ # specified in the format `projects/`project`/locations/`location``.
1843
+ # @param [Fixnum] page_size
1844
+ # Maximum number of UrlLists to return per call.
1845
+ # @param [String] page_token
1846
+ # The value returned by the last `ListUrlListsResponse` Indicates that this is a
1847
+ # continuation of a prior `ListUrlLists` call, and that the system should return
1848
+ # the next page of data.
1849
+ # @param [String] fields
1850
+ # Selector specifying which fields to include in a partial response.
1851
+ # @param [String] quota_user
1852
+ # Available to use for quota purposes for server-side applications. Can be any
1853
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1854
+ # @param [Google::Apis::RequestOptions] options
1855
+ # Request-specific options
1856
+ #
1857
+ # @yield [result, err] Result & error if block supplied
1858
+ # @yieldparam result [Google::Apis::NetworksecurityV1::ListUrlListsResponse] parsed result object
1859
+ # @yieldparam err [StandardError] error object if request failed
1860
+ #
1861
+ # @return [Google::Apis::NetworksecurityV1::ListUrlListsResponse]
1862
+ #
1863
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1864
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1865
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1866
+ def list_project_location_url_lists(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1867
+ command = make_simple_command(:get, 'v1/{+parent}/urlLists', options)
1868
+ command.response_representation = Google::Apis::NetworksecurityV1::ListUrlListsResponse::Representation
1869
+ command.response_class = Google::Apis::NetworksecurityV1::ListUrlListsResponse
1870
+ command.params['parent'] = parent unless parent.nil?
1871
+ command.query['pageSize'] = page_size unless page_size.nil?
1872
+ command.query['pageToken'] = page_token unless page_token.nil?
1873
+ command.query['fields'] = fields unless fields.nil?
1874
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1875
+ execute_or_queue_command(command, &block)
1876
+ end
1877
+
1878
+ # Updates the parameters of a single UrlList.
1879
+ # @param [String] name
1880
+ # Required. Name of the resource provided by the user. Name is of the form
1881
+ # projects/`project`/locations/`location`/urlLists/`url_list` url_list should
1882
+ # match the pattern:(^[a-z]([a-z0-9-]`0,61`[a-z0-9])?$).
1883
+ # @param [Google::Apis::NetworksecurityV1::UrlList] url_list_object
1884
+ # @param [String] update_mask
1885
+ # Optional. Field mask is used to specify the fields to be overwritten in the
1886
+ # UrlList resource by the update. The fields specified in the update_mask are
1887
+ # relative to the resource, not the full request. A field will be overwritten if
1888
+ # it is in the mask. If the user does not provide a mask then all fields will be
1889
+ # overwritten.
1890
+ # @param [String] fields
1891
+ # Selector specifying which fields to include in a partial response.
1892
+ # @param [String] quota_user
1893
+ # Available to use for quota purposes for server-side applications. Can be any
1894
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1895
+ # @param [Google::Apis::RequestOptions] options
1896
+ # Request-specific options
1897
+ #
1898
+ # @yield [result, err] Result & error if block supplied
1899
+ # @yieldparam result [Google::Apis::NetworksecurityV1::Operation] parsed result object
1900
+ # @yieldparam err [StandardError] error object if request failed
1901
+ #
1902
+ # @return [Google::Apis::NetworksecurityV1::Operation]
1903
+ #
1904
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1905
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1906
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1907
+ def patch_project_location_url_list(name, url_list_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1908
+ command = make_simple_command(:patch, 'v1/{+name}', options)
1909
+ command.request_representation = Google::Apis::NetworksecurityV1::UrlList::Representation
1910
+ command.request_object = url_list_object
1911
+ command.response_representation = Google::Apis::NetworksecurityV1::Operation::Representation
1912
+ command.response_class = Google::Apis::NetworksecurityV1::Operation
1913
+ command.params['name'] = name unless name.nil?
1914
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1171
1915
  command.query['fields'] = fields unless fields.nil?
1172
1916
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1173
1917
  execute_or_queue_command(command, &block)