google-cloud-network_services-v1 2.2.0 → 2.3.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.
@@ -715,6 +715,887 @@ module Google
715
715
  raise ::Google::Cloud::Error.from_error(e)
716
716
  end
717
717
 
718
+ ##
719
+ # Lists `WasmPluginVersion` resources in a given project and
720
+ # location.
721
+ #
722
+ # @overload list_wasm_plugin_versions(request, options = nil)
723
+ # Pass arguments to `list_wasm_plugin_versions` via a request object, either of type
724
+ # {::Google::Cloud::NetworkServices::V1::ListWasmPluginVersionsRequest} or an equivalent Hash.
725
+ #
726
+ # @param request [::Google::Cloud::NetworkServices::V1::ListWasmPluginVersionsRequest, ::Hash]
727
+ # A request object representing the call parameters. Required. To specify no
728
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
729
+ # @param options [::Gapic::CallOptions, ::Hash]
730
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
731
+ #
732
+ # @overload list_wasm_plugin_versions(parent: nil, page_size: nil, page_token: nil)
733
+ # Pass arguments to `list_wasm_plugin_versions` via keyword arguments. Note that at
734
+ # least one keyword argument is required. To specify no parameters, or to keep all
735
+ # the default parameter values, pass an empty Hash as a request object (see above).
736
+ #
737
+ # @param parent [::String]
738
+ # Required. The `WasmPlugin` resource whose `WasmPluginVersion`s
739
+ # are listed, specified in the following format:
740
+ # `projects/{project}/locations/global/wasmPlugins/{wasm_plugin}`.
741
+ # @param page_size [::Integer]
742
+ # Maximum number of `WasmPluginVersion` resources to return per
743
+ # call. If not specified, at most 50 `WasmPluginVersion` resources are
744
+ # returned. The maximum value is 1000; values above 1000 are coerced to
745
+ # 1000.
746
+ # @param page_token [::String]
747
+ # The value returned by the last `ListWasmPluginVersionsResponse` call.
748
+ # Indicates that this is a continuation of a prior
749
+ # `ListWasmPluginVersions` call, and that the
750
+ # next page of data is to be returned.
751
+ #
752
+ # @yield [response, operation] Access the result along with the RPC operation
753
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::NetworkServices::V1::WasmPluginVersion>]
754
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
755
+ #
756
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::NetworkServices::V1::WasmPluginVersion>]
757
+ #
758
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
759
+ #
760
+ # @example Basic example
761
+ # require "google/cloud/network_services/v1"
762
+ #
763
+ # # Create a client object. The client can be reused for multiple calls.
764
+ # client = Google::Cloud::NetworkServices::V1::NetworkServices::Client.new
765
+ #
766
+ # # Create a request. To set request fields, pass in keyword arguments.
767
+ # request = Google::Cloud::NetworkServices::V1::ListWasmPluginVersionsRequest.new
768
+ #
769
+ # # Call the list_wasm_plugin_versions method.
770
+ # result = client.list_wasm_plugin_versions request
771
+ #
772
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
773
+ # # over elements, and API calls will be issued to fetch pages as needed.
774
+ # result.each do |item|
775
+ # # Each element is of type ::Google::Cloud::NetworkServices::V1::WasmPluginVersion.
776
+ # p item
777
+ # end
778
+ #
779
+ def list_wasm_plugin_versions request, options = nil
780
+ raise ::ArgumentError, "request must be provided" if request.nil?
781
+
782
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetworkServices::V1::ListWasmPluginVersionsRequest
783
+
784
+ # Converts hash and nil to an options object
785
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
786
+
787
+ # Customize the options with defaults
788
+ metadata = @config.rpcs.list_wasm_plugin_versions.metadata.to_h
789
+
790
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
791
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
792
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
793
+ gapic_version: ::Google::Cloud::NetworkServices::V1::VERSION
794
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
795
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
796
+
797
+ header_params = {}
798
+ if request.parent
799
+ header_params["parent"] = request.parent
800
+ end
801
+
802
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
803
+ metadata[:"x-goog-request-params"] ||= request_params_header
804
+
805
+ options.apply_defaults timeout: @config.rpcs.list_wasm_plugin_versions.timeout,
806
+ metadata: metadata,
807
+ retry_policy: @config.rpcs.list_wasm_plugin_versions.retry_policy
808
+
809
+ options.apply_defaults timeout: @config.timeout,
810
+ metadata: @config.metadata,
811
+ retry_policy: @config.retry_policy
812
+
813
+ @network_services_stub.call_rpc :list_wasm_plugin_versions, request, options: options do |response, operation|
814
+ response = ::Gapic::PagedEnumerable.new @network_services_stub, :list_wasm_plugin_versions, request, response, operation, options
815
+ yield response, operation if block_given?
816
+ throw :response, response
817
+ end
818
+ rescue ::GRPC::BadStatus => e
819
+ raise ::Google::Cloud::Error.from_error(e)
820
+ end
821
+
822
+ ##
823
+ # Gets details of the specified `WasmPluginVersion` resource.
824
+ #
825
+ # @overload get_wasm_plugin_version(request, options = nil)
826
+ # Pass arguments to `get_wasm_plugin_version` via a request object, either of type
827
+ # {::Google::Cloud::NetworkServices::V1::GetWasmPluginVersionRequest} or an equivalent Hash.
828
+ #
829
+ # @param request [::Google::Cloud::NetworkServices::V1::GetWasmPluginVersionRequest, ::Hash]
830
+ # A request object representing the call parameters. Required. To specify no
831
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
832
+ # @param options [::Gapic::CallOptions, ::Hash]
833
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
834
+ #
835
+ # @overload get_wasm_plugin_version(name: nil)
836
+ # Pass arguments to `get_wasm_plugin_version` via keyword arguments. Note that at
837
+ # least one keyword argument is required. To specify no parameters, or to keep all
838
+ # the default parameter values, pass an empty Hash as a request object (see above).
839
+ #
840
+ # @param name [::String]
841
+ # Required. A name of the `WasmPluginVersion` resource to get. Must be in
842
+ # the format
843
+ # `projects/{project}/locations/global/wasmPlugins/{wasm_plugin}/versions/{wasm_plugin_version}`.
844
+ #
845
+ # @yield [response, operation] Access the result along with the RPC operation
846
+ # @yieldparam response [::Google::Cloud::NetworkServices::V1::WasmPluginVersion]
847
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
848
+ #
849
+ # @return [::Google::Cloud::NetworkServices::V1::WasmPluginVersion]
850
+ #
851
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
852
+ #
853
+ # @example Basic example
854
+ # require "google/cloud/network_services/v1"
855
+ #
856
+ # # Create a client object. The client can be reused for multiple calls.
857
+ # client = Google::Cloud::NetworkServices::V1::NetworkServices::Client.new
858
+ #
859
+ # # Create a request. To set request fields, pass in keyword arguments.
860
+ # request = Google::Cloud::NetworkServices::V1::GetWasmPluginVersionRequest.new
861
+ #
862
+ # # Call the get_wasm_plugin_version method.
863
+ # result = client.get_wasm_plugin_version request
864
+ #
865
+ # # The returned object is of type Google::Cloud::NetworkServices::V1::WasmPluginVersion.
866
+ # p result
867
+ #
868
+ def get_wasm_plugin_version request, options = nil
869
+ raise ::ArgumentError, "request must be provided" if request.nil?
870
+
871
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetworkServices::V1::GetWasmPluginVersionRequest
872
+
873
+ # Converts hash and nil to an options object
874
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
875
+
876
+ # Customize the options with defaults
877
+ metadata = @config.rpcs.get_wasm_plugin_version.metadata.to_h
878
+
879
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
880
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
881
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
882
+ gapic_version: ::Google::Cloud::NetworkServices::V1::VERSION
883
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
884
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
885
+
886
+ header_params = {}
887
+ if request.name
888
+ header_params["name"] = request.name
889
+ end
890
+
891
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
892
+ metadata[:"x-goog-request-params"] ||= request_params_header
893
+
894
+ options.apply_defaults timeout: @config.rpcs.get_wasm_plugin_version.timeout,
895
+ metadata: metadata,
896
+ retry_policy: @config.rpcs.get_wasm_plugin_version.retry_policy
897
+
898
+ options.apply_defaults timeout: @config.timeout,
899
+ metadata: @config.metadata,
900
+ retry_policy: @config.retry_policy
901
+
902
+ @network_services_stub.call_rpc :get_wasm_plugin_version, request, options: options do |response, operation|
903
+ yield response, operation if block_given?
904
+ end
905
+ rescue ::GRPC::BadStatus => e
906
+ raise ::Google::Cloud::Error.from_error(e)
907
+ end
908
+
909
+ ##
910
+ # Creates a new `WasmPluginVersion` resource in a given project
911
+ # and location.
912
+ #
913
+ # @overload create_wasm_plugin_version(request, options = nil)
914
+ # Pass arguments to `create_wasm_plugin_version` via a request object, either of type
915
+ # {::Google::Cloud::NetworkServices::V1::CreateWasmPluginVersionRequest} or an equivalent Hash.
916
+ #
917
+ # @param request [::Google::Cloud::NetworkServices::V1::CreateWasmPluginVersionRequest, ::Hash]
918
+ # A request object representing the call parameters. Required. To specify no
919
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
920
+ # @param options [::Gapic::CallOptions, ::Hash]
921
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
922
+ #
923
+ # @overload create_wasm_plugin_version(parent: nil, wasm_plugin_version_id: nil, wasm_plugin_version: nil)
924
+ # Pass arguments to `create_wasm_plugin_version` via keyword arguments. Note that at
925
+ # least one keyword argument is required. To specify no parameters, or to keep all
926
+ # the default parameter values, pass an empty Hash as a request object (see above).
927
+ #
928
+ # @param parent [::String]
929
+ # Required. The parent resource of the `WasmPluginVersion` resource. Must be
930
+ # in the format
931
+ # `projects/{project}/locations/global/wasmPlugins/{wasm_plugin}`.
932
+ # @param wasm_plugin_version_id [::String]
933
+ # Required. User-provided ID of the `WasmPluginVersion` resource to be
934
+ # created.
935
+ # @param wasm_plugin_version [::Google::Cloud::NetworkServices::V1::WasmPluginVersion, ::Hash]
936
+ # Required. `WasmPluginVersion` resource to be created.
937
+ #
938
+ # @yield [response, operation] Access the result along with the RPC operation
939
+ # @yieldparam response [::Gapic::Operation]
940
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
941
+ #
942
+ # @return [::Gapic::Operation]
943
+ #
944
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
945
+ #
946
+ # @example Basic example
947
+ # require "google/cloud/network_services/v1"
948
+ #
949
+ # # Create a client object. The client can be reused for multiple calls.
950
+ # client = Google::Cloud::NetworkServices::V1::NetworkServices::Client.new
951
+ #
952
+ # # Create a request. To set request fields, pass in keyword arguments.
953
+ # request = Google::Cloud::NetworkServices::V1::CreateWasmPluginVersionRequest.new
954
+ #
955
+ # # Call the create_wasm_plugin_version method.
956
+ # result = client.create_wasm_plugin_version request
957
+ #
958
+ # # The returned object is of type Gapic::Operation. You can use it to
959
+ # # check the status of an operation, cancel it, or wait for results.
960
+ # # Here is how to wait for a response.
961
+ # result.wait_until_done! timeout: 60
962
+ # if result.response?
963
+ # p result.response
964
+ # else
965
+ # puts "No response received."
966
+ # end
967
+ #
968
+ def create_wasm_plugin_version request, options = nil
969
+ raise ::ArgumentError, "request must be provided" if request.nil?
970
+
971
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetworkServices::V1::CreateWasmPluginVersionRequest
972
+
973
+ # Converts hash and nil to an options object
974
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
975
+
976
+ # Customize the options with defaults
977
+ metadata = @config.rpcs.create_wasm_plugin_version.metadata.to_h
978
+
979
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
980
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
981
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
982
+ gapic_version: ::Google::Cloud::NetworkServices::V1::VERSION
983
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
984
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
985
+
986
+ header_params = {}
987
+ if request.parent
988
+ header_params["parent"] = request.parent
989
+ end
990
+
991
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
992
+ metadata[:"x-goog-request-params"] ||= request_params_header
993
+
994
+ options.apply_defaults timeout: @config.rpcs.create_wasm_plugin_version.timeout,
995
+ metadata: metadata,
996
+ retry_policy: @config.rpcs.create_wasm_plugin_version.retry_policy
997
+
998
+ options.apply_defaults timeout: @config.timeout,
999
+ metadata: @config.metadata,
1000
+ retry_policy: @config.retry_policy
1001
+
1002
+ @network_services_stub.call_rpc :create_wasm_plugin_version, request, options: options do |response, operation|
1003
+ response = ::Gapic::Operation.new response, @operations_client, options: options
1004
+ yield response, operation if block_given?
1005
+ throw :response, response
1006
+ end
1007
+ rescue ::GRPC::BadStatus => e
1008
+ raise ::Google::Cloud::Error.from_error(e)
1009
+ end
1010
+
1011
+ ##
1012
+ # Deletes the specified `WasmPluginVersion` resource.
1013
+ #
1014
+ # @overload delete_wasm_plugin_version(request, options = nil)
1015
+ # Pass arguments to `delete_wasm_plugin_version` via a request object, either of type
1016
+ # {::Google::Cloud::NetworkServices::V1::DeleteWasmPluginVersionRequest} or an equivalent Hash.
1017
+ #
1018
+ # @param request [::Google::Cloud::NetworkServices::V1::DeleteWasmPluginVersionRequest, ::Hash]
1019
+ # A request object representing the call parameters. Required. To specify no
1020
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1021
+ # @param options [::Gapic::CallOptions, ::Hash]
1022
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1023
+ #
1024
+ # @overload delete_wasm_plugin_version(name: nil)
1025
+ # Pass arguments to `delete_wasm_plugin_version` via keyword arguments. Note that at
1026
+ # least one keyword argument is required. To specify no parameters, or to keep all
1027
+ # the default parameter values, pass an empty Hash as a request object (see above).
1028
+ #
1029
+ # @param name [::String]
1030
+ # Required. A name of the `WasmPluginVersion` resource to delete. Must be in
1031
+ # the format
1032
+ # `projects/{project}/locations/global/wasmPlugins/{wasm_plugin}/versions/{wasm_plugin_version}`.
1033
+ #
1034
+ # @yield [response, operation] Access the result along with the RPC operation
1035
+ # @yieldparam response [::Gapic::Operation]
1036
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1037
+ #
1038
+ # @return [::Gapic::Operation]
1039
+ #
1040
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1041
+ #
1042
+ # @example Basic example
1043
+ # require "google/cloud/network_services/v1"
1044
+ #
1045
+ # # Create a client object. The client can be reused for multiple calls.
1046
+ # client = Google::Cloud::NetworkServices::V1::NetworkServices::Client.new
1047
+ #
1048
+ # # Create a request. To set request fields, pass in keyword arguments.
1049
+ # request = Google::Cloud::NetworkServices::V1::DeleteWasmPluginVersionRequest.new
1050
+ #
1051
+ # # Call the delete_wasm_plugin_version method.
1052
+ # result = client.delete_wasm_plugin_version request
1053
+ #
1054
+ # # The returned object is of type Gapic::Operation. You can use it to
1055
+ # # check the status of an operation, cancel it, or wait for results.
1056
+ # # Here is how to wait for a response.
1057
+ # result.wait_until_done! timeout: 60
1058
+ # if result.response?
1059
+ # p result.response
1060
+ # else
1061
+ # puts "No response received."
1062
+ # end
1063
+ #
1064
+ def delete_wasm_plugin_version request, options = nil
1065
+ raise ::ArgumentError, "request must be provided" if request.nil?
1066
+
1067
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetworkServices::V1::DeleteWasmPluginVersionRequest
1068
+
1069
+ # Converts hash and nil to an options object
1070
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1071
+
1072
+ # Customize the options with defaults
1073
+ metadata = @config.rpcs.delete_wasm_plugin_version.metadata.to_h
1074
+
1075
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1076
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1077
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1078
+ gapic_version: ::Google::Cloud::NetworkServices::V1::VERSION
1079
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1080
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1081
+
1082
+ header_params = {}
1083
+ if request.name
1084
+ header_params["name"] = request.name
1085
+ end
1086
+
1087
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1088
+ metadata[:"x-goog-request-params"] ||= request_params_header
1089
+
1090
+ options.apply_defaults timeout: @config.rpcs.delete_wasm_plugin_version.timeout,
1091
+ metadata: metadata,
1092
+ retry_policy: @config.rpcs.delete_wasm_plugin_version.retry_policy
1093
+
1094
+ options.apply_defaults timeout: @config.timeout,
1095
+ metadata: @config.metadata,
1096
+ retry_policy: @config.retry_policy
1097
+
1098
+ @network_services_stub.call_rpc :delete_wasm_plugin_version, request, options: options do |response, operation|
1099
+ response = ::Gapic::Operation.new response, @operations_client, options: options
1100
+ yield response, operation if block_given?
1101
+ throw :response, response
1102
+ end
1103
+ rescue ::GRPC::BadStatus => e
1104
+ raise ::Google::Cloud::Error.from_error(e)
1105
+ end
1106
+
1107
+ ##
1108
+ # Lists `WasmPlugin` resources in a given project and
1109
+ # location.
1110
+ #
1111
+ # @overload list_wasm_plugins(request, options = nil)
1112
+ # Pass arguments to `list_wasm_plugins` via a request object, either of type
1113
+ # {::Google::Cloud::NetworkServices::V1::ListWasmPluginsRequest} or an equivalent Hash.
1114
+ #
1115
+ # @param request [::Google::Cloud::NetworkServices::V1::ListWasmPluginsRequest, ::Hash]
1116
+ # A request object representing the call parameters. Required. To specify no
1117
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1118
+ # @param options [::Gapic::CallOptions, ::Hash]
1119
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1120
+ #
1121
+ # @overload list_wasm_plugins(parent: nil, page_size: nil, page_token: nil)
1122
+ # Pass arguments to `list_wasm_plugins` via keyword arguments. Note that at
1123
+ # least one keyword argument is required. To specify no parameters, or to keep all
1124
+ # the default parameter values, pass an empty Hash as a request object (see above).
1125
+ #
1126
+ # @param parent [::String]
1127
+ # Required. The project and location from which the `WasmPlugin` resources
1128
+ # are listed, specified in the following format:
1129
+ # `projects/{project}/locations/global`.
1130
+ # @param page_size [::Integer]
1131
+ # Maximum number of `WasmPlugin` resources to return per call.
1132
+ # If not specified, at most 50 `WasmPlugin` resources are returned.
1133
+ # The maximum value is 1000; values above 1000 are coerced to 1000.
1134
+ # @param page_token [::String]
1135
+ # The value returned by the last `ListWasmPluginsResponse` call.
1136
+ # Indicates that this is a continuation of a prior
1137
+ # `ListWasmPlugins` call, and that the
1138
+ # next page of data is to be returned.
1139
+ #
1140
+ # @yield [response, operation] Access the result along with the RPC operation
1141
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::NetworkServices::V1::WasmPlugin>]
1142
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1143
+ #
1144
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::NetworkServices::V1::WasmPlugin>]
1145
+ #
1146
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1147
+ #
1148
+ # @example Basic example
1149
+ # require "google/cloud/network_services/v1"
1150
+ #
1151
+ # # Create a client object. The client can be reused for multiple calls.
1152
+ # client = Google::Cloud::NetworkServices::V1::NetworkServices::Client.new
1153
+ #
1154
+ # # Create a request. To set request fields, pass in keyword arguments.
1155
+ # request = Google::Cloud::NetworkServices::V1::ListWasmPluginsRequest.new
1156
+ #
1157
+ # # Call the list_wasm_plugins method.
1158
+ # result = client.list_wasm_plugins request
1159
+ #
1160
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1161
+ # # over elements, and API calls will be issued to fetch pages as needed.
1162
+ # result.each do |item|
1163
+ # # Each element is of type ::Google::Cloud::NetworkServices::V1::WasmPlugin.
1164
+ # p item
1165
+ # end
1166
+ #
1167
+ def list_wasm_plugins request, options = nil
1168
+ raise ::ArgumentError, "request must be provided" if request.nil?
1169
+
1170
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetworkServices::V1::ListWasmPluginsRequest
1171
+
1172
+ # Converts hash and nil to an options object
1173
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1174
+
1175
+ # Customize the options with defaults
1176
+ metadata = @config.rpcs.list_wasm_plugins.metadata.to_h
1177
+
1178
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1179
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1180
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1181
+ gapic_version: ::Google::Cloud::NetworkServices::V1::VERSION
1182
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1183
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1184
+
1185
+ header_params = {}
1186
+ if request.parent
1187
+ header_params["parent"] = request.parent
1188
+ end
1189
+
1190
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1191
+ metadata[:"x-goog-request-params"] ||= request_params_header
1192
+
1193
+ options.apply_defaults timeout: @config.rpcs.list_wasm_plugins.timeout,
1194
+ metadata: metadata,
1195
+ retry_policy: @config.rpcs.list_wasm_plugins.retry_policy
1196
+
1197
+ options.apply_defaults timeout: @config.timeout,
1198
+ metadata: @config.metadata,
1199
+ retry_policy: @config.retry_policy
1200
+
1201
+ @network_services_stub.call_rpc :list_wasm_plugins, request, options: options do |response, operation|
1202
+ response = ::Gapic::PagedEnumerable.new @network_services_stub, :list_wasm_plugins, request, response, operation, options
1203
+ yield response, operation if block_given?
1204
+ throw :response, response
1205
+ end
1206
+ rescue ::GRPC::BadStatus => e
1207
+ raise ::Google::Cloud::Error.from_error(e)
1208
+ end
1209
+
1210
+ ##
1211
+ # Gets details of the specified `WasmPlugin` resource.
1212
+ #
1213
+ # @overload get_wasm_plugin(request, options = nil)
1214
+ # Pass arguments to `get_wasm_plugin` via a request object, either of type
1215
+ # {::Google::Cloud::NetworkServices::V1::GetWasmPluginRequest} or an equivalent Hash.
1216
+ #
1217
+ # @param request [::Google::Cloud::NetworkServices::V1::GetWasmPluginRequest, ::Hash]
1218
+ # A request object representing the call parameters. Required. To specify no
1219
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1220
+ # @param options [::Gapic::CallOptions, ::Hash]
1221
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1222
+ #
1223
+ # @overload get_wasm_plugin(name: nil, view: nil)
1224
+ # Pass arguments to `get_wasm_plugin` via keyword arguments. Note that at
1225
+ # least one keyword argument is required. To specify no parameters, or to keep all
1226
+ # the default parameter values, pass an empty Hash as a request object (see above).
1227
+ #
1228
+ # @param name [::String]
1229
+ # Required. A name of the `WasmPlugin` resource to get. Must be in the
1230
+ # format `projects/{project}/locations/global/wasmPlugins/{wasm_plugin}`.
1231
+ # @param view [::Google::Cloud::NetworkServices::V1::WasmPluginView]
1232
+ # Determines how much data must be returned in the response. See
1233
+ # [AIP-157](https://google.aip.dev/157).
1234
+ #
1235
+ # @yield [response, operation] Access the result along with the RPC operation
1236
+ # @yieldparam response [::Google::Cloud::NetworkServices::V1::WasmPlugin]
1237
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1238
+ #
1239
+ # @return [::Google::Cloud::NetworkServices::V1::WasmPlugin]
1240
+ #
1241
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1242
+ #
1243
+ # @example Basic example
1244
+ # require "google/cloud/network_services/v1"
1245
+ #
1246
+ # # Create a client object. The client can be reused for multiple calls.
1247
+ # client = Google::Cloud::NetworkServices::V1::NetworkServices::Client.new
1248
+ #
1249
+ # # Create a request. To set request fields, pass in keyword arguments.
1250
+ # request = Google::Cloud::NetworkServices::V1::GetWasmPluginRequest.new
1251
+ #
1252
+ # # Call the get_wasm_plugin method.
1253
+ # result = client.get_wasm_plugin request
1254
+ #
1255
+ # # The returned object is of type Google::Cloud::NetworkServices::V1::WasmPlugin.
1256
+ # p result
1257
+ #
1258
+ def get_wasm_plugin request, options = nil
1259
+ raise ::ArgumentError, "request must be provided" if request.nil?
1260
+
1261
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetworkServices::V1::GetWasmPluginRequest
1262
+
1263
+ # Converts hash and nil to an options object
1264
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1265
+
1266
+ # Customize the options with defaults
1267
+ metadata = @config.rpcs.get_wasm_plugin.metadata.to_h
1268
+
1269
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1270
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1271
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1272
+ gapic_version: ::Google::Cloud::NetworkServices::V1::VERSION
1273
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1274
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1275
+
1276
+ header_params = {}
1277
+ if request.name
1278
+ header_params["name"] = request.name
1279
+ end
1280
+
1281
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1282
+ metadata[:"x-goog-request-params"] ||= request_params_header
1283
+
1284
+ options.apply_defaults timeout: @config.rpcs.get_wasm_plugin.timeout,
1285
+ metadata: metadata,
1286
+ retry_policy: @config.rpcs.get_wasm_plugin.retry_policy
1287
+
1288
+ options.apply_defaults timeout: @config.timeout,
1289
+ metadata: @config.metadata,
1290
+ retry_policy: @config.retry_policy
1291
+
1292
+ @network_services_stub.call_rpc :get_wasm_plugin, request, options: options do |response, operation|
1293
+ yield response, operation if block_given?
1294
+ end
1295
+ rescue ::GRPC::BadStatus => e
1296
+ raise ::Google::Cloud::Error.from_error(e)
1297
+ end
1298
+
1299
+ ##
1300
+ # Creates a new `WasmPlugin` resource in a given project
1301
+ # and location.
1302
+ #
1303
+ # @overload create_wasm_plugin(request, options = nil)
1304
+ # Pass arguments to `create_wasm_plugin` via a request object, either of type
1305
+ # {::Google::Cloud::NetworkServices::V1::CreateWasmPluginRequest} or an equivalent Hash.
1306
+ #
1307
+ # @param request [::Google::Cloud::NetworkServices::V1::CreateWasmPluginRequest, ::Hash]
1308
+ # A request object representing the call parameters. Required. To specify no
1309
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1310
+ # @param options [::Gapic::CallOptions, ::Hash]
1311
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1312
+ #
1313
+ # @overload create_wasm_plugin(parent: nil, wasm_plugin_id: nil, wasm_plugin: nil)
1314
+ # Pass arguments to `create_wasm_plugin` via keyword arguments. Note that at
1315
+ # least one keyword argument is required. To specify no parameters, or to keep all
1316
+ # the default parameter values, pass an empty Hash as a request object (see above).
1317
+ #
1318
+ # @param parent [::String]
1319
+ # Required. The parent resource of the `WasmPlugin` resource. Must be in the
1320
+ # format `projects/{project}/locations/global`.
1321
+ # @param wasm_plugin_id [::String]
1322
+ # Required. User-provided ID of the `WasmPlugin` resource to be created.
1323
+ # @param wasm_plugin [::Google::Cloud::NetworkServices::V1::WasmPlugin, ::Hash]
1324
+ # Required. `WasmPlugin` resource to be created.
1325
+ #
1326
+ # @yield [response, operation] Access the result along with the RPC operation
1327
+ # @yieldparam response [::Gapic::Operation]
1328
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1329
+ #
1330
+ # @return [::Gapic::Operation]
1331
+ #
1332
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1333
+ #
1334
+ # @example Basic example
1335
+ # require "google/cloud/network_services/v1"
1336
+ #
1337
+ # # Create a client object. The client can be reused for multiple calls.
1338
+ # client = Google::Cloud::NetworkServices::V1::NetworkServices::Client.new
1339
+ #
1340
+ # # Create a request. To set request fields, pass in keyword arguments.
1341
+ # request = Google::Cloud::NetworkServices::V1::CreateWasmPluginRequest.new
1342
+ #
1343
+ # # Call the create_wasm_plugin method.
1344
+ # result = client.create_wasm_plugin request
1345
+ #
1346
+ # # The returned object is of type Gapic::Operation. You can use it to
1347
+ # # check the status of an operation, cancel it, or wait for results.
1348
+ # # Here is how to wait for a response.
1349
+ # result.wait_until_done! timeout: 60
1350
+ # if result.response?
1351
+ # p result.response
1352
+ # else
1353
+ # puts "No response received."
1354
+ # end
1355
+ #
1356
+ def create_wasm_plugin request, options = nil
1357
+ raise ::ArgumentError, "request must be provided" if request.nil?
1358
+
1359
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetworkServices::V1::CreateWasmPluginRequest
1360
+
1361
+ # Converts hash and nil to an options object
1362
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1363
+
1364
+ # Customize the options with defaults
1365
+ metadata = @config.rpcs.create_wasm_plugin.metadata.to_h
1366
+
1367
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1368
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1369
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1370
+ gapic_version: ::Google::Cloud::NetworkServices::V1::VERSION
1371
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1372
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1373
+
1374
+ header_params = {}
1375
+ if request.parent
1376
+ header_params["parent"] = request.parent
1377
+ end
1378
+
1379
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1380
+ metadata[:"x-goog-request-params"] ||= request_params_header
1381
+
1382
+ options.apply_defaults timeout: @config.rpcs.create_wasm_plugin.timeout,
1383
+ metadata: metadata,
1384
+ retry_policy: @config.rpcs.create_wasm_plugin.retry_policy
1385
+
1386
+ options.apply_defaults timeout: @config.timeout,
1387
+ metadata: @config.metadata,
1388
+ retry_policy: @config.retry_policy
1389
+
1390
+ @network_services_stub.call_rpc :create_wasm_plugin, request, options: options do |response, operation|
1391
+ response = ::Gapic::Operation.new response, @operations_client, options: options
1392
+ yield response, operation if block_given?
1393
+ throw :response, response
1394
+ end
1395
+ rescue ::GRPC::BadStatus => e
1396
+ raise ::Google::Cloud::Error.from_error(e)
1397
+ end
1398
+
1399
+ ##
1400
+ # Updates the parameters of the specified `WasmPlugin` resource.
1401
+ #
1402
+ # @overload update_wasm_plugin(request, options = nil)
1403
+ # Pass arguments to `update_wasm_plugin` via a request object, either of type
1404
+ # {::Google::Cloud::NetworkServices::V1::UpdateWasmPluginRequest} or an equivalent Hash.
1405
+ #
1406
+ # @param request [::Google::Cloud::NetworkServices::V1::UpdateWasmPluginRequest, ::Hash]
1407
+ # A request object representing the call parameters. Required. To specify no
1408
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1409
+ # @param options [::Gapic::CallOptions, ::Hash]
1410
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1411
+ #
1412
+ # @overload update_wasm_plugin(update_mask: nil, wasm_plugin: nil)
1413
+ # Pass arguments to `update_wasm_plugin` via keyword arguments. Note that at
1414
+ # least one keyword argument is required. To specify no parameters, or to keep all
1415
+ # the default parameter values, pass an empty Hash as a request object (see above).
1416
+ #
1417
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
1418
+ # Optional. Used to specify the fields to be overwritten in the
1419
+ # `WasmPlugin` resource by the update.
1420
+ # The fields specified in the `update_mask` field are relative to the
1421
+ # resource, not the full request.
1422
+ # An omitted `update_mask` field is treated as an implied `update_mask`
1423
+ # field equivalent to all fields that are populated (that have a non-empty
1424
+ # value).
1425
+ # The `update_mask` field supports a special value `*`, which means that
1426
+ # each field in the given `WasmPlugin` resource (including the empty ones)
1427
+ # replaces the current value.
1428
+ # @param wasm_plugin [::Google::Cloud::NetworkServices::V1::WasmPlugin, ::Hash]
1429
+ # Required. Updated `WasmPlugin` resource.
1430
+ #
1431
+ # @yield [response, operation] Access the result along with the RPC operation
1432
+ # @yieldparam response [::Gapic::Operation]
1433
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1434
+ #
1435
+ # @return [::Gapic::Operation]
1436
+ #
1437
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1438
+ #
1439
+ # @example Basic example
1440
+ # require "google/cloud/network_services/v1"
1441
+ #
1442
+ # # Create a client object. The client can be reused for multiple calls.
1443
+ # client = Google::Cloud::NetworkServices::V1::NetworkServices::Client.new
1444
+ #
1445
+ # # Create a request. To set request fields, pass in keyword arguments.
1446
+ # request = Google::Cloud::NetworkServices::V1::UpdateWasmPluginRequest.new
1447
+ #
1448
+ # # Call the update_wasm_plugin method.
1449
+ # result = client.update_wasm_plugin request
1450
+ #
1451
+ # # The returned object is of type Gapic::Operation. You can use it to
1452
+ # # check the status of an operation, cancel it, or wait for results.
1453
+ # # Here is how to wait for a response.
1454
+ # result.wait_until_done! timeout: 60
1455
+ # if result.response?
1456
+ # p result.response
1457
+ # else
1458
+ # puts "No response received."
1459
+ # end
1460
+ #
1461
+ def update_wasm_plugin request, options = nil
1462
+ raise ::ArgumentError, "request must be provided" if request.nil?
1463
+
1464
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetworkServices::V1::UpdateWasmPluginRequest
1465
+
1466
+ # Converts hash and nil to an options object
1467
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1468
+
1469
+ # Customize the options with defaults
1470
+ metadata = @config.rpcs.update_wasm_plugin.metadata.to_h
1471
+
1472
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1473
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1474
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1475
+ gapic_version: ::Google::Cloud::NetworkServices::V1::VERSION
1476
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1477
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1478
+
1479
+ header_params = {}
1480
+ if request.wasm_plugin&.name
1481
+ header_params["wasm_plugin.name"] = request.wasm_plugin.name
1482
+ end
1483
+
1484
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1485
+ metadata[:"x-goog-request-params"] ||= request_params_header
1486
+
1487
+ options.apply_defaults timeout: @config.rpcs.update_wasm_plugin.timeout,
1488
+ metadata: metadata,
1489
+ retry_policy: @config.rpcs.update_wasm_plugin.retry_policy
1490
+
1491
+ options.apply_defaults timeout: @config.timeout,
1492
+ metadata: @config.metadata,
1493
+ retry_policy: @config.retry_policy
1494
+
1495
+ @network_services_stub.call_rpc :update_wasm_plugin, request, options: options do |response, operation|
1496
+ response = ::Gapic::Operation.new response, @operations_client, options: options
1497
+ yield response, operation if block_given?
1498
+ throw :response, response
1499
+ end
1500
+ rescue ::GRPC::BadStatus => e
1501
+ raise ::Google::Cloud::Error.from_error(e)
1502
+ end
1503
+
1504
+ ##
1505
+ # Deletes the specified `WasmPlugin` resource.
1506
+ #
1507
+ # @overload delete_wasm_plugin(request, options = nil)
1508
+ # Pass arguments to `delete_wasm_plugin` via a request object, either of type
1509
+ # {::Google::Cloud::NetworkServices::V1::DeleteWasmPluginRequest} or an equivalent Hash.
1510
+ #
1511
+ # @param request [::Google::Cloud::NetworkServices::V1::DeleteWasmPluginRequest, ::Hash]
1512
+ # A request object representing the call parameters. Required. To specify no
1513
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1514
+ # @param options [::Gapic::CallOptions, ::Hash]
1515
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1516
+ #
1517
+ # @overload delete_wasm_plugin(name: nil)
1518
+ # Pass arguments to `delete_wasm_plugin` via keyword arguments. Note that at
1519
+ # least one keyword argument is required. To specify no parameters, or to keep all
1520
+ # the default parameter values, pass an empty Hash as a request object (see above).
1521
+ #
1522
+ # @param name [::String]
1523
+ # Required. A name of the `WasmPlugin` resource to delete. Must be in the
1524
+ # format `projects/{project}/locations/global/wasmPlugins/{wasm_plugin}`.
1525
+ #
1526
+ # @yield [response, operation] Access the result along with the RPC operation
1527
+ # @yieldparam response [::Gapic::Operation]
1528
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1529
+ #
1530
+ # @return [::Gapic::Operation]
1531
+ #
1532
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1533
+ #
1534
+ # @example Basic example
1535
+ # require "google/cloud/network_services/v1"
1536
+ #
1537
+ # # Create a client object. The client can be reused for multiple calls.
1538
+ # client = Google::Cloud::NetworkServices::V1::NetworkServices::Client.new
1539
+ #
1540
+ # # Create a request. To set request fields, pass in keyword arguments.
1541
+ # request = Google::Cloud::NetworkServices::V1::DeleteWasmPluginRequest.new
1542
+ #
1543
+ # # Call the delete_wasm_plugin method.
1544
+ # result = client.delete_wasm_plugin request
1545
+ #
1546
+ # # The returned object is of type Gapic::Operation. You can use it to
1547
+ # # check the status of an operation, cancel it, or wait for results.
1548
+ # # Here is how to wait for a response.
1549
+ # result.wait_until_done! timeout: 60
1550
+ # if result.response?
1551
+ # p result.response
1552
+ # else
1553
+ # puts "No response received."
1554
+ # end
1555
+ #
1556
+ def delete_wasm_plugin request, options = nil
1557
+ raise ::ArgumentError, "request must be provided" if request.nil?
1558
+
1559
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetworkServices::V1::DeleteWasmPluginRequest
1560
+
1561
+ # Converts hash and nil to an options object
1562
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1563
+
1564
+ # Customize the options with defaults
1565
+ metadata = @config.rpcs.delete_wasm_plugin.metadata.to_h
1566
+
1567
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1568
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1569
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1570
+ gapic_version: ::Google::Cloud::NetworkServices::V1::VERSION
1571
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1572
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1573
+
1574
+ header_params = {}
1575
+ if request.name
1576
+ header_params["name"] = request.name
1577
+ end
1578
+
1579
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1580
+ metadata[:"x-goog-request-params"] ||= request_params_header
1581
+
1582
+ options.apply_defaults timeout: @config.rpcs.delete_wasm_plugin.timeout,
1583
+ metadata: metadata,
1584
+ retry_policy: @config.rpcs.delete_wasm_plugin.retry_policy
1585
+
1586
+ options.apply_defaults timeout: @config.timeout,
1587
+ metadata: @config.metadata,
1588
+ retry_policy: @config.retry_policy
1589
+
1590
+ @network_services_stub.call_rpc :delete_wasm_plugin, request, options: options do |response, operation|
1591
+ response = ::Gapic::Operation.new response, @operations_client, options: options
1592
+ yield response, operation if block_given?
1593
+ throw :response, response
1594
+ end
1595
+ rescue ::GRPC::BadStatus => e
1596
+ raise ::Google::Cloud::Error.from_error(e)
1597
+ end
1598
+
718
1599
  ##
719
1600
  # Lists Gateways in a given project and location.
720
1601
  #
@@ -5127,6 +6008,51 @@ module Google
5127
6008
  #
5128
6009
  attr_reader :delete_endpoint_policy
5129
6010
  ##
6011
+ # RPC-specific configuration for `list_wasm_plugin_versions`
6012
+ # @return [::Gapic::Config::Method]
6013
+ #
6014
+ attr_reader :list_wasm_plugin_versions
6015
+ ##
6016
+ # RPC-specific configuration for `get_wasm_plugin_version`
6017
+ # @return [::Gapic::Config::Method]
6018
+ #
6019
+ attr_reader :get_wasm_plugin_version
6020
+ ##
6021
+ # RPC-specific configuration for `create_wasm_plugin_version`
6022
+ # @return [::Gapic::Config::Method]
6023
+ #
6024
+ attr_reader :create_wasm_plugin_version
6025
+ ##
6026
+ # RPC-specific configuration for `delete_wasm_plugin_version`
6027
+ # @return [::Gapic::Config::Method]
6028
+ #
6029
+ attr_reader :delete_wasm_plugin_version
6030
+ ##
6031
+ # RPC-specific configuration for `list_wasm_plugins`
6032
+ # @return [::Gapic::Config::Method]
6033
+ #
6034
+ attr_reader :list_wasm_plugins
6035
+ ##
6036
+ # RPC-specific configuration for `get_wasm_plugin`
6037
+ # @return [::Gapic::Config::Method]
6038
+ #
6039
+ attr_reader :get_wasm_plugin
6040
+ ##
6041
+ # RPC-specific configuration for `create_wasm_plugin`
6042
+ # @return [::Gapic::Config::Method]
6043
+ #
6044
+ attr_reader :create_wasm_plugin
6045
+ ##
6046
+ # RPC-specific configuration for `update_wasm_plugin`
6047
+ # @return [::Gapic::Config::Method]
6048
+ #
6049
+ attr_reader :update_wasm_plugin
6050
+ ##
6051
+ # RPC-specific configuration for `delete_wasm_plugin`
6052
+ # @return [::Gapic::Config::Method]
6053
+ #
6054
+ attr_reader :delete_wasm_plugin
6055
+ ##
5130
6056
  # RPC-specific configuration for `list_gateways`
5131
6057
  # @return [::Gapic::Config::Method]
5132
6058
  #
@@ -5359,6 +6285,24 @@ module Google
5359
6285
  @update_endpoint_policy = ::Gapic::Config::Method.new update_endpoint_policy_config
5360
6286
  delete_endpoint_policy_config = parent_rpcs.delete_endpoint_policy if parent_rpcs.respond_to? :delete_endpoint_policy
5361
6287
  @delete_endpoint_policy = ::Gapic::Config::Method.new delete_endpoint_policy_config
6288
+ list_wasm_plugin_versions_config = parent_rpcs.list_wasm_plugin_versions if parent_rpcs.respond_to? :list_wasm_plugin_versions
6289
+ @list_wasm_plugin_versions = ::Gapic::Config::Method.new list_wasm_plugin_versions_config
6290
+ get_wasm_plugin_version_config = parent_rpcs.get_wasm_plugin_version if parent_rpcs.respond_to? :get_wasm_plugin_version
6291
+ @get_wasm_plugin_version = ::Gapic::Config::Method.new get_wasm_plugin_version_config
6292
+ create_wasm_plugin_version_config = parent_rpcs.create_wasm_plugin_version if parent_rpcs.respond_to? :create_wasm_plugin_version
6293
+ @create_wasm_plugin_version = ::Gapic::Config::Method.new create_wasm_plugin_version_config
6294
+ delete_wasm_plugin_version_config = parent_rpcs.delete_wasm_plugin_version if parent_rpcs.respond_to? :delete_wasm_plugin_version
6295
+ @delete_wasm_plugin_version = ::Gapic::Config::Method.new delete_wasm_plugin_version_config
6296
+ list_wasm_plugins_config = parent_rpcs.list_wasm_plugins if parent_rpcs.respond_to? :list_wasm_plugins
6297
+ @list_wasm_plugins = ::Gapic::Config::Method.new list_wasm_plugins_config
6298
+ get_wasm_plugin_config = parent_rpcs.get_wasm_plugin if parent_rpcs.respond_to? :get_wasm_plugin
6299
+ @get_wasm_plugin = ::Gapic::Config::Method.new get_wasm_plugin_config
6300
+ create_wasm_plugin_config = parent_rpcs.create_wasm_plugin if parent_rpcs.respond_to? :create_wasm_plugin
6301
+ @create_wasm_plugin = ::Gapic::Config::Method.new create_wasm_plugin_config
6302
+ update_wasm_plugin_config = parent_rpcs.update_wasm_plugin if parent_rpcs.respond_to? :update_wasm_plugin
6303
+ @update_wasm_plugin = ::Gapic::Config::Method.new update_wasm_plugin_config
6304
+ delete_wasm_plugin_config = parent_rpcs.delete_wasm_plugin if parent_rpcs.respond_to? :delete_wasm_plugin
6305
+ @delete_wasm_plugin = ::Gapic::Config::Method.new delete_wasm_plugin_config
5362
6306
  list_gateways_config = parent_rpcs.list_gateways if parent_rpcs.respond_to? :list_gateways
5363
6307
  @list_gateways = ::Gapic::Config::Method.new list_gateways_config
5364
6308
  get_gateway_config = parent_rpcs.get_gateway if parent_rpcs.respond_to? :get_gateway