google-apis-baremetalsolution_v2 0.11.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/lib/google/apis/baremetalsolution_v2/classes.rb +211 -227
- data/lib/google/apis/baremetalsolution_v2/gem_version.rb +2 -2
- data/lib/google/apis/baremetalsolution_v2/representations.rb +68 -103
- data/lib/google/apis/baremetalsolution_v2/service.rb +36 -337
- metadata +4 -4
@@ -154,6 +154,39 @@ module Google
|
|
154
154
|
execute_or_queue_command(command, &block)
|
155
155
|
end
|
156
156
|
|
157
|
+
# Detach LUN from Instance.
|
158
|
+
# @param [String] instance
|
159
|
+
# Required. Name of the instance.
|
160
|
+
# @param [Google::Apis::BaremetalsolutionV2::DetachLunRequest] detach_lun_request_object
|
161
|
+
# @param [String] fields
|
162
|
+
# Selector specifying which fields to include in a partial response.
|
163
|
+
# @param [String] quota_user
|
164
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
165
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
166
|
+
# @param [Google::Apis::RequestOptions] options
|
167
|
+
# Request-specific options
|
168
|
+
#
|
169
|
+
# @yield [result, err] Result & error if block supplied
|
170
|
+
# @yieldparam result [Google::Apis::BaremetalsolutionV2::Operation] parsed result object
|
171
|
+
# @yieldparam err [StandardError] error object if request failed
|
172
|
+
#
|
173
|
+
# @return [Google::Apis::BaremetalsolutionV2::Operation]
|
174
|
+
#
|
175
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
176
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
177
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
178
|
+
def detach_instance_lun(instance, detach_lun_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
179
|
+
command = make_simple_command(:post, 'v2/{+instance}:detachLun', options)
|
180
|
+
command.request_representation = Google::Apis::BaremetalsolutionV2::DetachLunRequest::Representation
|
181
|
+
command.request_object = detach_lun_request_object
|
182
|
+
command.response_representation = Google::Apis::BaremetalsolutionV2::Operation::Representation
|
183
|
+
command.response_class = Google::Apis::BaremetalsolutionV2::Operation
|
184
|
+
command.params['instance'] = instance unless instance.nil?
|
185
|
+
command.query['fields'] = fields unless fields.nil?
|
186
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
187
|
+
execute_or_queue_command(command, &block)
|
188
|
+
end
|
189
|
+
|
157
190
|
# Get details about a single server.
|
158
191
|
# @param [String] name
|
159
192
|
# Required. Name of the resource.
|
@@ -232,8 +265,8 @@ module Google
|
|
232
265
|
# instances/`instance``
|
233
266
|
# @param [Google::Apis::BaremetalsolutionV2::Instance] instance_object
|
234
267
|
# @param [String] update_mask
|
235
|
-
# The list of fields to update. The
|
236
|
-
#
|
268
|
+
# The list of fields to update. The currently supported fields are: `labels` `
|
269
|
+
# hyperthreading_enabled` `os_image`
|
237
270
|
# @param [String] fields
|
238
271
|
# Selector specifying which fields to include in a partial response.
|
239
272
|
# @param [String] quota_user
|
@@ -474,6 +507,7 @@ module Google
|
|
474
507
|
# @param [Google::Apis::BaremetalsolutionV2::Network] network_object
|
475
508
|
# @param [String] update_mask
|
476
509
|
# The list of fields to update. The only currently supported fields are: `labels`
|
510
|
+
# , `reservations`
|
477
511
|
# @param [String] fields
|
478
512
|
# Selector specifying which fields to include in a partial response.
|
479
513
|
# @param [String] quota_user
|
@@ -787,178 +821,6 @@ module Google
|
|
787
821
|
execute_or_queue_command(command, &block)
|
788
822
|
end
|
789
823
|
|
790
|
-
# Create a snapshot schedule policy in the specified project.
|
791
|
-
# @param [String] parent
|
792
|
-
# Required. The parent project and location containing the
|
793
|
-
# SnapshotSchedulePolicy.
|
794
|
-
# @param [Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy] snapshot_schedule_policy_object
|
795
|
-
# @param [String] snapshot_schedule_policy_id
|
796
|
-
# Required. Snapshot policy ID
|
797
|
-
# @param [String] fields
|
798
|
-
# Selector specifying which fields to include in a partial response.
|
799
|
-
# @param [String] quota_user
|
800
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
801
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
802
|
-
# @param [Google::Apis::RequestOptions] options
|
803
|
-
# Request-specific options
|
804
|
-
#
|
805
|
-
# @yield [result, err] Result & error if block supplied
|
806
|
-
# @yieldparam result [Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy] parsed result object
|
807
|
-
# @yieldparam err [StandardError] error object if request failed
|
808
|
-
#
|
809
|
-
# @return [Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy]
|
810
|
-
#
|
811
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
812
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
813
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
814
|
-
def create_project_location_snapshot_schedule_policy(parent, snapshot_schedule_policy_object = nil, snapshot_schedule_policy_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
815
|
-
command = make_simple_command(:post, 'v2/{+parent}/snapshotSchedulePolicies', options)
|
816
|
-
command.request_representation = Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy::Representation
|
817
|
-
command.request_object = snapshot_schedule_policy_object
|
818
|
-
command.response_representation = Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy::Representation
|
819
|
-
command.response_class = Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy
|
820
|
-
command.params['parent'] = parent unless parent.nil?
|
821
|
-
command.query['snapshotSchedulePolicyId'] = snapshot_schedule_policy_id unless snapshot_schedule_policy_id.nil?
|
822
|
-
command.query['fields'] = fields unless fields.nil?
|
823
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
824
|
-
execute_or_queue_command(command, &block)
|
825
|
-
end
|
826
|
-
|
827
|
-
# Delete a named snapshot schedule policy.
|
828
|
-
# @param [String] name
|
829
|
-
# Required. The name of the snapshot schedule policy to delete.
|
830
|
-
# @param [String] fields
|
831
|
-
# Selector specifying which fields to include in a partial response.
|
832
|
-
# @param [String] quota_user
|
833
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
834
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
835
|
-
# @param [Google::Apis::RequestOptions] options
|
836
|
-
# Request-specific options
|
837
|
-
#
|
838
|
-
# @yield [result, err] Result & error if block supplied
|
839
|
-
# @yieldparam result [Google::Apis::BaremetalsolutionV2::Empty] parsed result object
|
840
|
-
# @yieldparam err [StandardError] error object if request failed
|
841
|
-
#
|
842
|
-
# @return [Google::Apis::BaremetalsolutionV2::Empty]
|
843
|
-
#
|
844
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
845
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
846
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
847
|
-
def delete_project_location_snapshot_schedule_policy(name, fields: nil, quota_user: nil, options: nil, &block)
|
848
|
-
command = make_simple_command(:delete, 'v2/{+name}', options)
|
849
|
-
command.response_representation = Google::Apis::BaremetalsolutionV2::Empty::Representation
|
850
|
-
command.response_class = Google::Apis::BaremetalsolutionV2::Empty
|
851
|
-
command.params['name'] = name unless name.nil?
|
852
|
-
command.query['fields'] = fields unless fields.nil?
|
853
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
854
|
-
execute_or_queue_command(command, &block)
|
855
|
-
end
|
856
|
-
|
857
|
-
# Get details of a single snapshot schedule policy.
|
858
|
-
# @param [String] name
|
859
|
-
# Required. Name of the resource.
|
860
|
-
# @param [String] fields
|
861
|
-
# Selector specifying which fields to include in a partial response.
|
862
|
-
# @param [String] quota_user
|
863
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
864
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
865
|
-
# @param [Google::Apis::RequestOptions] options
|
866
|
-
# Request-specific options
|
867
|
-
#
|
868
|
-
# @yield [result, err] Result & error if block supplied
|
869
|
-
# @yieldparam result [Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy] parsed result object
|
870
|
-
# @yieldparam err [StandardError] error object if request failed
|
871
|
-
#
|
872
|
-
# @return [Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy]
|
873
|
-
#
|
874
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
875
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
876
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
877
|
-
def get_project_location_snapshot_schedule_policy(name, fields: nil, quota_user: nil, options: nil, &block)
|
878
|
-
command = make_simple_command(:get, 'v2/{+name}', options)
|
879
|
-
command.response_representation = Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy::Representation
|
880
|
-
command.response_class = Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy
|
881
|
-
command.params['name'] = name unless name.nil?
|
882
|
-
command.query['fields'] = fields unless fields.nil?
|
883
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
884
|
-
execute_or_queue_command(command, &block)
|
885
|
-
end
|
886
|
-
|
887
|
-
# List snapshot schedule policies in a given project and location.
|
888
|
-
# @param [String] parent
|
889
|
-
# Required. The parent project containing the Snapshot Schedule Policies.
|
890
|
-
# @param [String] filter
|
891
|
-
# List filter.
|
892
|
-
# @param [Fixnum] page_size
|
893
|
-
# The maximum number of items to return.
|
894
|
-
# @param [String] page_token
|
895
|
-
# The next_page_token value returned from a previous List request, if any.
|
896
|
-
# @param [String] fields
|
897
|
-
# Selector specifying which fields to include in a partial response.
|
898
|
-
# @param [String] quota_user
|
899
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
900
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
901
|
-
# @param [Google::Apis::RequestOptions] options
|
902
|
-
# Request-specific options
|
903
|
-
#
|
904
|
-
# @yield [result, err] Result & error if block supplied
|
905
|
-
# @yieldparam result [Google::Apis::BaremetalsolutionV2::ListSnapshotSchedulePoliciesResponse] parsed result object
|
906
|
-
# @yieldparam err [StandardError] error object if request failed
|
907
|
-
#
|
908
|
-
# @return [Google::Apis::BaremetalsolutionV2::ListSnapshotSchedulePoliciesResponse]
|
909
|
-
#
|
910
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
911
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
912
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
913
|
-
def list_project_location_snapshot_schedule_policies(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
914
|
-
command = make_simple_command(:get, 'v2/{+parent}/snapshotSchedulePolicies', options)
|
915
|
-
command.response_representation = Google::Apis::BaremetalsolutionV2::ListSnapshotSchedulePoliciesResponse::Representation
|
916
|
-
command.response_class = Google::Apis::BaremetalsolutionV2::ListSnapshotSchedulePoliciesResponse
|
917
|
-
command.params['parent'] = parent unless parent.nil?
|
918
|
-
command.query['filter'] = filter unless filter.nil?
|
919
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
920
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
921
|
-
command.query['fields'] = fields unless fields.nil?
|
922
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
923
|
-
execute_or_queue_command(command, &block)
|
924
|
-
end
|
925
|
-
|
926
|
-
# Update a snapshot schedule policy in the specified project.
|
927
|
-
# @param [String] name
|
928
|
-
# Output only. The name of the snapshot schedule policy.
|
929
|
-
# @param [Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy] snapshot_schedule_policy_object
|
930
|
-
# @param [String] update_mask
|
931
|
-
# Required. The list of fields to update.
|
932
|
-
# @param [String] fields
|
933
|
-
# Selector specifying which fields to include in a partial response.
|
934
|
-
# @param [String] quota_user
|
935
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
936
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
937
|
-
# @param [Google::Apis::RequestOptions] options
|
938
|
-
# Request-specific options
|
939
|
-
#
|
940
|
-
# @yield [result, err] Result & error if block supplied
|
941
|
-
# @yieldparam result [Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy] parsed result object
|
942
|
-
# @yieldparam err [StandardError] error object if request failed
|
943
|
-
#
|
944
|
-
# @return [Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy]
|
945
|
-
#
|
946
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
947
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
948
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
949
|
-
def patch_project_location_snapshot_schedule_policy(name, snapshot_schedule_policy_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
950
|
-
command = make_simple_command(:patch, 'v2/{+name}', options)
|
951
|
-
command.request_representation = Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy::Representation
|
952
|
-
command.request_object = snapshot_schedule_policy_object
|
953
|
-
command.response_representation = Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy::Representation
|
954
|
-
command.response_class = Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy
|
955
|
-
command.params['name'] = name unless name.nil?
|
956
|
-
command.query['updateMask'] = update_mask unless update_mask.nil?
|
957
|
-
command.query['fields'] = fields unless fields.nil?
|
958
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
959
|
-
execute_or_queue_command(command, &block)
|
960
|
-
end
|
961
|
-
|
962
824
|
# Get details of a single storage volume.
|
963
825
|
# @param [String] name
|
964
826
|
# Required. Name of the resource.
|
@@ -1137,169 +999,6 @@ module Google
|
|
1137
999
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1138
1000
|
execute_or_queue_command(command, &block)
|
1139
1001
|
end
|
1140
|
-
|
1141
|
-
# Create a storage volume snapshot in a containing volume.
|
1142
|
-
# @param [String] parent
|
1143
|
-
# Required. The volume to snapshot.
|
1144
|
-
# @param [Google::Apis::BaremetalsolutionV2::VolumeSnapshot] volume_snapshot_object
|
1145
|
-
# @param [String] fields
|
1146
|
-
# Selector specifying which fields to include in a partial response.
|
1147
|
-
# @param [String] quota_user
|
1148
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1149
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1150
|
-
# @param [Google::Apis::RequestOptions] options
|
1151
|
-
# Request-specific options
|
1152
|
-
#
|
1153
|
-
# @yield [result, err] Result & error if block supplied
|
1154
|
-
# @yieldparam result [Google::Apis::BaremetalsolutionV2::VolumeSnapshot] parsed result object
|
1155
|
-
# @yieldparam err [StandardError] error object if request failed
|
1156
|
-
#
|
1157
|
-
# @return [Google::Apis::BaremetalsolutionV2::VolumeSnapshot]
|
1158
|
-
#
|
1159
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1160
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1161
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1162
|
-
def create_project_location_volume_snapshot(parent, volume_snapshot_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1163
|
-
command = make_simple_command(:post, 'v2/{+parent}/snapshots', options)
|
1164
|
-
command.request_representation = Google::Apis::BaremetalsolutionV2::VolumeSnapshot::Representation
|
1165
|
-
command.request_object = volume_snapshot_object
|
1166
|
-
command.response_representation = Google::Apis::BaremetalsolutionV2::VolumeSnapshot::Representation
|
1167
|
-
command.response_class = Google::Apis::BaremetalsolutionV2::VolumeSnapshot
|
1168
|
-
command.params['parent'] = parent unless parent.nil?
|
1169
|
-
command.query['fields'] = fields unless fields.nil?
|
1170
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1171
|
-
execute_or_queue_command(command, &block)
|
1172
|
-
end
|
1173
|
-
|
1174
|
-
# Deletes a storage volume snapshot for a given volume.
|
1175
|
-
# @param [String] name
|
1176
|
-
# Required. The name of the snapshot to delete.
|
1177
|
-
# @param [String] fields
|
1178
|
-
# Selector specifying which fields to include in a partial response.
|
1179
|
-
# @param [String] quota_user
|
1180
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1181
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1182
|
-
# @param [Google::Apis::RequestOptions] options
|
1183
|
-
# Request-specific options
|
1184
|
-
#
|
1185
|
-
# @yield [result, err] Result & error if block supplied
|
1186
|
-
# @yieldparam result [Google::Apis::BaremetalsolutionV2::Empty] parsed result object
|
1187
|
-
# @yieldparam err [StandardError] error object if request failed
|
1188
|
-
#
|
1189
|
-
# @return [Google::Apis::BaremetalsolutionV2::Empty]
|
1190
|
-
#
|
1191
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1192
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1193
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1194
|
-
def delete_project_location_volume_snapshot(name, fields: nil, quota_user: nil, options: nil, &block)
|
1195
|
-
command = make_simple_command(:delete, 'v2/{+name}', options)
|
1196
|
-
command.response_representation = Google::Apis::BaremetalsolutionV2::Empty::Representation
|
1197
|
-
command.response_class = Google::Apis::BaremetalsolutionV2::Empty
|
1198
|
-
command.params['name'] = name unless name.nil?
|
1199
|
-
command.query['fields'] = fields unless fields.nil?
|
1200
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1201
|
-
execute_or_queue_command(command, &block)
|
1202
|
-
end
|
1203
|
-
|
1204
|
-
# Get details of a single storage volume snapshot.
|
1205
|
-
# @param [String] name
|
1206
|
-
# Required. Name of the resource.
|
1207
|
-
# @param [String] fields
|
1208
|
-
# Selector specifying which fields to include in a partial response.
|
1209
|
-
# @param [String] quota_user
|
1210
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1211
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1212
|
-
# @param [Google::Apis::RequestOptions] options
|
1213
|
-
# Request-specific options
|
1214
|
-
#
|
1215
|
-
# @yield [result, err] Result & error if block supplied
|
1216
|
-
# @yieldparam result [Google::Apis::BaremetalsolutionV2::VolumeSnapshot] parsed result object
|
1217
|
-
# @yieldparam err [StandardError] error object if request failed
|
1218
|
-
#
|
1219
|
-
# @return [Google::Apis::BaremetalsolutionV2::VolumeSnapshot]
|
1220
|
-
#
|
1221
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1222
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1223
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1224
|
-
def get_project_location_volume_snapshot(name, fields: nil, quota_user: nil, options: nil, &block)
|
1225
|
-
command = make_simple_command(:get, 'v2/{+name}', options)
|
1226
|
-
command.response_representation = Google::Apis::BaremetalsolutionV2::VolumeSnapshot::Representation
|
1227
|
-
command.response_class = Google::Apis::BaremetalsolutionV2::VolumeSnapshot
|
1228
|
-
command.params['name'] = name unless name.nil?
|
1229
|
-
command.query['fields'] = fields unless fields.nil?
|
1230
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1231
|
-
execute_or_queue_command(command, &block)
|
1232
|
-
end
|
1233
|
-
|
1234
|
-
# List storage volume snapshots for given storage volume.
|
1235
|
-
# @param [String] parent
|
1236
|
-
# Required. Parent value for ListVolumesRequest.
|
1237
|
-
# @param [Fixnum] page_size
|
1238
|
-
# Requested page size. The server might return fewer items than requested. If
|
1239
|
-
# unspecified, server will pick an appropriate default.
|
1240
|
-
# @param [String] page_token
|
1241
|
-
# A token identifying a page of results from the server.
|
1242
|
-
# @param [String] fields
|
1243
|
-
# Selector specifying which fields to include in a partial response.
|
1244
|
-
# @param [String] quota_user
|
1245
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1246
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1247
|
-
# @param [Google::Apis::RequestOptions] options
|
1248
|
-
# Request-specific options
|
1249
|
-
#
|
1250
|
-
# @yield [result, err] Result & error if block supplied
|
1251
|
-
# @yieldparam result [Google::Apis::BaremetalsolutionV2::ListVolumeSnapshotsResponse] parsed result object
|
1252
|
-
# @yieldparam err [StandardError] error object if request failed
|
1253
|
-
#
|
1254
|
-
# @return [Google::Apis::BaremetalsolutionV2::ListVolumeSnapshotsResponse]
|
1255
|
-
#
|
1256
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1257
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1258
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1259
|
-
def list_project_location_volume_snapshots(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1260
|
-
command = make_simple_command(:get, 'v2/{+parent}/snapshots', options)
|
1261
|
-
command.response_representation = Google::Apis::BaremetalsolutionV2::ListVolumeSnapshotsResponse::Representation
|
1262
|
-
command.response_class = Google::Apis::BaremetalsolutionV2::ListVolumeSnapshotsResponse
|
1263
|
-
command.params['parent'] = parent unless parent.nil?
|
1264
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
1265
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
1266
|
-
command.query['fields'] = fields unless fields.nil?
|
1267
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1268
|
-
execute_or_queue_command(command, &block)
|
1269
|
-
end
|
1270
|
-
|
1271
|
-
# Restore a storage volume snapshot to its containing volume.
|
1272
|
-
# @param [String] volume_snapshot
|
1273
|
-
# Required. Name of the resource.
|
1274
|
-
# @param [Google::Apis::BaremetalsolutionV2::RestoreVolumeSnapshotRequest] restore_volume_snapshot_request_object
|
1275
|
-
# @param [String] fields
|
1276
|
-
# Selector specifying which fields to include in a partial response.
|
1277
|
-
# @param [String] quota_user
|
1278
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1279
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1280
|
-
# @param [Google::Apis::RequestOptions] options
|
1281
|
-
# Request-specific options
|
1282
|
-
#
|
1283
|
-
# @yield [result, err] Result & error if block supplied
|
1284
|
-
# @yieldparam result [Google::Apis::BaremetalsolutionV2::Operation] parsed result object
|
1285
|
-
# @yieldparam err [StandardError] error object if request failed
|
1286
|
-
#
|
1287
|
-
# @return [Google::Apis::BaremetalsolutionV2::Operation]
|
1288
|
-
#
|
1289
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1290
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1291
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1292
|
-
def restore_volume_snapshot(volume_snapshot, restore_volume_snapshot_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1293
|
-
command = make_simple_command(:post, 'v2/{+volumeSnapshot}:restoreVolumeSnapshot', options)
|
1294
|
-
command.request_representation = Google::Apis::BaremetalsolutionV2::RestoreVolumeSnapshotRequest::Representation
|
1295
|
-
command.request_object = restore_volume_snapshot_request_object
|
1296
|
-
command.response_representation = Google::Apis::BaremetalsolutionV2::Operation::Representation
|
1297
|
-
command.response_class = Google::Apis::BaremetalsolutionV2::Operation
|
1298
|
-
command.params['volumeSnapshot'] = volume_snapshot unless volume_snapshot.nil?
|
1299
|
-
command.query['fields'] = fields unless fields.nil?
|
1300
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1301
|
-
execute_or_queue_command(command, &block)
|
1302
|
-
end
|
1303
1002
|
|
1304
1003
|
protected
|
1305
1004
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-baremetalsolution_v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.14.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-05-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-baremetalsolution_v2/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-baremetalsolution_v2/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-baremetalsolution_v2/v0.14.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-baremetalsolution_v2
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.3.
|
78
|
+
rubygems_version: 3.3.14
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Bare Metal Solution API V2
|