google-apis-baremetalsolution_v2 0.9.0 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -85,8 +85,8 @@ module Google
85
85
  # The resource that owns the locations collection, if applicable.
86
86
  # @param [String] filter
87
87
  # A filter to narrow down results to a preferred subset. The filtering language
88
- # accepts strings like "displayName=tokyo", and is documented in more detail in [
89
- # AIP-160](https://google.aip.dev/160).
88
+ # accepts strings like `"displayName=tokyo"`, and is documented in more detail
89
+ # in [AIP-160](https://google.aip.dev/160).
90
90
  # @param [Fixnum] page_size
91
91
  # The maximum number of results to return. If not set, the service selects a
92
92
  # default.
@@ -123,6 +123,70 @@ module Google
123
123
  execute_or_queue_command(command, &block)
124
124
  end
125
125
 
126
+ # Get instance provisioning settings for a given project. This is hidden method
127
+ # used by UI only.
128
+ # @param [String] location
129
+ # Required. The parent project and location containing the ProvisioningSettings.
130
+ # @param [String] fields
131
+ # Selector specifying which fields to include in a partial response.
132
+ # @param [String] quota_user
133
+ # Available to use for quota purposes for server-side applications. Can be any
134
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
135
+ # @param [Google::Apis::RequestOptions] options
136
+ # Request-specific options
137
+ #
138
+ # @yield [result, err] Result & error if block supplied
139
+ # @yieldparam result [Google::Apis::BaremetalsolutionV2::FetchInstanceProvisioningSettingsResponse] parsed result object
140
+ # @yieldparam err [StandardError] error object if request failed
141
+ #
142
+ # @return [Google::Apis::BaremetalsolutionV2::FetchInstanceProvisioningSettingsResponse]
143
+ #
144
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
145
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
146
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
147
+ def fetch_project_location_instance_provisioning_setting(location, fields: nil, quota_user: nil, options: nil, &block)
148
+ command = make_simple_command(:get, 'v2/{+location}/instanceProvisioningSettings:fetch', options)
149
+ command.response_representation = Google::Apis::BaremetalsolutionV2::FetchInstanceProvisioningSettingsResponse::Representation
150
+ command.response_class = Google::Apis::BaremetalsolutionV2::FetchInstanceProvisioningSettingsResponse
151
+ command.params['location'] = location unless location.nil?
152
+ command.query['fields'] = fields unless fields.nil?
153
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
154
+ execute_or_queue_command(command, &block)
155
+ end
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
+
126
190
  # Get details about a single server.
127
191
  # @param [String] name
128
192
  # Required. Name of the resource.
@@ -202,6 +266,7 @@ module Google
202
266
  # @param [Google::Apis::BaremetalsolutionV2::Instance] instance_object
203
267
  # @param [String] update_mask
204
268
  # The list of fields to update. The only currently supported fields are: `labels`
269
+ # `hyperthreading_enabled`
205
270
  # @param [String] fields
206
271
  # Selector specifying which fields to include in a partial response.
207
272
  # @param [String] quota_user
@@ -299,6 +364,39 @@ module Google
299
364
  execute_or_queue_command(command, &block)
300
365
  end
301
366
 
367
+ # Stop a running server.
368
+ # @param [String] name
369
+ # Required. Name of the resource.
370
+ # @param [Google::Apis::BaremetalsolutionV2::StopInstanceRequest] stop_instance_request_object
371
+ # @param [String] fields
372
+ # Selector specifying which fields to include in a partial response.
373
+ # @param [String] quota_user
374
+ # Available to use for quota purposes for server-side applications. Can be any
375
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
376
+ # @param [Google::Apis::RequestOptions] options
377
+ # Request-specific options
378
+ #
379
+ # @yield [result, err] Result & error if block supplied
380
+ # @yieldparam result [Google::Apis::BaremetalsolutionV2::Operation] parsed result object
381
+ # @yieldparam err [StandardError] error object if request failed
382
+ #
383
+ # @return [Google::Apis::BaremetalsolutionV2::Operation]
384
+ #
385
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
386
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
387
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
388
+ def stop_instance(name, stop_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
389
+ command = make_simple_command(:post, 'v2/{+name}:stop', options)
390
+ command.request_representation = Google::Apis::BaremetalsolutionV2::StopInstanceRequest::Representation
391
+ command.request_object = stop_instance_request_object
392
+ command.response_representation = Google::Apis::BaremetalsolutionV2::Operation::Representation
393
+ command.response_class = Google::Apis::BaremetalsolutionV2::Operation
394
+ command.params['name'] = name unless name.nil?
395
+ command.query['fields'] = fields unless fields.nil?
396
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
397
+ execute_or_queue_command(command, &block)
398
+ end
399
+
302
400
  # Get details of a single network.
303
401
  # @param [String] name
304
402
  # Required. Name of the resource.
@@ -722,178 +820,6 @@ module Google
722
820
  execute_or_queue_command(command, &block)
723
821
  end
724
822
 
725
- # Create a snapshot schedule policy in the specified project.
726
- # @param [String] parent
727
- # Required. The parent project and location containing the
728
- # SnapshotSchedulePolicy.
729
- # @param [Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy] snapshot_schedule_policy_object
730
- # @param [String] snapshot_schedule_policy_id
731
- # Required. Snapshot policy ID
732
- # @param [String] fields
733
- # Selector specifying which fields to include in a partial response.
734
- # @param [String] quota_user
735
- # Available to use for quota purposes for server-side applications. Can be any
736
- # arbitrary string assigned to a user, but should not exceed 40 characters.
737
- # @param [Google::Apis::RequestOptions] options
738
- # Request-specific options
739
- #
740
- # @yield [result, err] Result & error if block supplied
741
- # @yieldparam result [Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy] parsed result object
742
- # @yieldparam err [StandardError] error object if request failed
743
- #
744
- # @return [Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy]
745
- #
746
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
747
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
748
- # @raise [Google::Apis::AuthorizationError] Authorization is required
749
- 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)
750
- command = make_simple_command(:post, 'v2/{+parent}/snapshotSchedulePolicies', options)
751
- command.request_representation = Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy::Representation
752
- command.request_object = snapshot_schedule_policy_object
753
- command.response_representation = Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy::Representation
754
- command.response_class = Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy
755
- command.params['parent'] = parent unless parent.nil?
756
- command.query['snapshotSchedulePolicyId'] = snapshot_schedule_policy_id unless snapshot_schedule_policy_id.nil?
757
- command.query['fields'] = fields unless fields.nil?
758
- command.query['quotaUser'] = quota_user unless quota_user.nil?
759
- execute_or_queue_command(command, &block)
760
- end
761
-
762
- # Delete a named snapshot schedule policy.
763
- # @param [String] name
764
- # Required. The name of the snapshot schedule policy to delete.
765
- # @param [String] fields
766
- # Selector specifying which fields to include in a partial response.
767
- # @param [String] quota_user
768
- # Available to use for quota purposes for server-side applications. Can be any
769
- # arbitrary string assigned to a user, but should not exceed 40 characters.
770
- # @param [Google::Apis::RequestOptions] options
771
- # Request-specific options
772
- #
773
- # @yield [result, err] Result & error if block supplied
774
- # @yieldparam result [Google::Apis::BaremetalsolutionV2::Empty] parsed result object
775
- # @yieldparam err [StandardError] error object if request failed
776
- #
777
- # @return [Google::Apis::BaremetalsolutionV2::Empty]
778
- #
779
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
780
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
781
- # @raise [Google::Apis::AuthorizationError] Authorization is required
782
- def delete_project_location_snapshot_schedule_policy(name, fields: nil, quota_user: nil, options: nil, &block)
783
- command = make_simple_command(:delete, 'v2/{+name}', options)
784
- command.response_representation = Google::Apis::BaremetalsolutionV2::Empty::Representation
785
- command.response_class = Google::Apis::BaremetalsolutionV2::Empty
786
- command.params['name'] = name unless name.nil?
787
- command.query['fields'] = fields unless fields.nil?
788
- command.query['quotaUser'] = quota_user unless quota_user.nil?
789
- execute_or_queue_command(command, &block)
790
- end
791
-
792
- # Get details of a single snapshot schedule policy.
793
- # @param [String] name
794
- # Required. Name of the resource.
795
- # @param [String] fields
796
- # Selector specifying which fields to include in a partial response.
797
- # @param [String] quota_user
798
- # Available to use for quota purposes for server-side applications. Can be any
799
- # arbitrary string assigned to a user, but should not exceed 40 characters.
800
- # @param [Google::Apis::RequestOptions] options
801
- # Request-specific options
802
- #
803
- # @yield [result, err] Result & error if block supplied
804
- # @yieldparam result [Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy] parsed result object
805
- # @yieldparam err [StandardError] error object if request failed
806
- #
807
- # @return [Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy]
808
- #
809
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
810
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
811
- # @raise [Google::Apis::AuthorizationError] Authorization is required
812
- def get_project_location_snapshot_schedule_policy(name, fields: nil, quota_user: nil, options: nil, &block)
813
- command = make_simple_command(:get, 'v2/{+name}', options)
814
- command.response_representation = Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy::Representation
815
- command.response_class = Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy
816
- command.params['name'] = name unless name.nil?
817
- command.query['fields'] = fields unless fields.nil?
818
- command.query['quotaUser'] = quota_user unless quota_user.nil?
819
- execute_or_queue_command(command, &block)
820
- end
821
-
822
- # List snapshot schedule policies in a given project and location.
823
- # @param [String] parent
824
- # Required. The parent project containing the Snapshot Schedule Policies.
825
- # @param [String] filter
826
- # List filter.
827
- # @param [Fixnum] page_size
828
- # The maximum number of items to return.
829
- # @param [String] page_token
830
- # The next_page_token value returned from a previous List request, if any.
831
- # @param [String] fields
832
- # Selector specifying which fields to include in a partial response.
833
- # @param [String] quota_user
834
- # Available to use for quota purposes for server-side applications. Can be any
835
- # arbitrary string assigned to a user, but should not exceed 40 characters.
836
- # @param [Google::Apis::RequestOptions] options
837
- # Request-specific options
838
- #
839
- # @yield [result, err] Result & error if block supplied
840
- # @yieldparam result [Google::Apis::BaremetalsolutionV2::ListSnapshotSchedulePoliciesResponse] parsed result object
841
- # @yieldparam err [StandardError] error object if request failed
842
- #
843
- # @return [Google::Apis::BaremetalsolutionV2::ListSnapshotSchedulePoliciesResponse]
844
- #
845
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
846
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
847
- # @raise [Google::Apis::AuthorizationError] Authorization is required
848
- def list_project_location_snapshot_schedule_policies(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
849
- command = make_simple_command(:get, 'v2/{+parent}/snapshotSchedulePolicies', options)
850
- command.response_representation = Google::Apis::BaremetalsolutionV2::ListSnapshotSchedulePoliciesResponse::Representation
851
- command.response_class = Google::Apis::BaremetalsolutionV2::ListSnapshotSchedulePoliciesResponse
852
- command.params['parent'] = parent unless parent.nil?
853
- command.query['filter'] = filter unless filter.nil?
854
- command.query['pageSize'] = page_size unless page_size.nil?
855
- command.query['pageToken'] = page_token unless page_token.nil?
856
- command.query['fields'] = fields unless fields.nil?
857
- command.query['quotaUser'] = quota_user unless quota_user.nil?
858
- execute_or_queue_command(command, &block)
859
- end
860
-
861
- # Update a snapshot schedule policy in the specified project.
862
- # @param [String] name
863
- # Output only. The name of the snapshot schedule policy.
864
- # @param [Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy] snapshot_schedule_policy_object
865
- # @param [String] update_mask
866
- # Required. The list of fields to update.
867
- # @param [String] fields
868
- # Selector specifying which fields to include in a partial response.
869
- # @param [String] quota_user
870
- # Available to use for quota purposes for server-side applications. Can be any
871
- # arbitrary string assigned to a user, but should not exceed 40 characters.
872
- # @param [Google::Apis::RequestOptions] options
873
- # Request-specific options
874
- #
875
- # @yield [result, err] Result & error if block supplied
876
- # @yieldparam result [Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy] parsed result object
877
- # @yieldparam err [StandardError] error object if request failed
878
- #
879
- # @return [Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy]
880
- #
881
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
882
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
883
- # @raise [Google::Apis::AuthorizationError] Authorization is required
884
- def patch_project_location_snapshot_schedule_policy(name, snapshot_schedule_policy_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
885
- command = make_simple_command(:patch, 'v2/{+name}', options)
886
- command.request_representation = Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy::Representation
887
- command.request_object = snapshot_schedule_policy_object
888
- command.response_representation = Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy::Representation
889
- command.response_class = Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy
890
- command.params['name'] = name unless name.nil?
891
- command.query['updateMask'] = update_mask unless update_mask.nil?
892
- command.query['fields'] = fields unless fields.nil?
893
- command.query['quotaUser'] = quota_user unless quota_user.nil?
894
- execute_or_queue_command(command, &block)
895
- end
896
-
897
823
  # Get details of a single storage volume.
898
824
  # @param [String] name
899
825
  # Required. Name of the resource.
@@ -1072,169 +998,6 @@ module Google
1072
998
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1073
999
  execute_or_queue_command(command, &block)
1074
1000
  end
1075
-
1076
- # Create a storage volume snapshot in a containing volume.
1077
- # @param [String] parent
1078
- # Required. The volume to snapshot.
1079
- # @param [Google::Apis::BaremetalsolutionV2::VolumeSnapshot] volume_snapshot_object
1080
- # @param [String] fields
1081
- # Selector specifying which fields to include in a partial response.
1082
- # @param [String] quota_user
1083
- # Available to use for quota purposes for server-side applications. Can be any
1084
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1085
- # @param [Google::Apis::RequestOptions] options
1086
- # Request-specific options
1087
- #
1088
- # @yield [result, err] Result & error if block supplied
1089
- # @yieldparam result [Google::Apis::BaremetalsolutionV2::VolumeSnapshot] parsed result object
1090
- # @yieldparam err [StandardError] error object if request failed
1091
- #
1092
- # @return [Google::Apis::BaremetalsolutionV2::VolumeSnapshot]
1093
- #
1094
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1095
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1096
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1097
- def create_project_location_volume_snapshot(parent, volume_snapshot_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1098
- command = make_simple_command(:post, 'v2/{+parent}/snapshots', options)
1099
- command.request_representation = Google::Apis::BaremetalsolutionV2::VolumeSnapshot::Representation
1100
- command.request_object = volume_snapshot_object
1101
- command.response_representation = Google::Apis::BaremetalsolutionV2::VolumeSnapshot::Representation
1102
- command.response_class = Google::Apis::BaremetalsolutionV2::VolumeSnapshot
1103
- command.params['parent'] = parent unless parent.nil?
1104
- command.query['fields'] = fields unless fields.nil?
1105
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1106
- execute_or_queue_command(command, &block)
1107
- end
1108
-
1109
- # Deletes a storage volume snapshot for a given volume.
1110
- # @param [String] name
1111
- # Required. The name of the snapshot to delete.
1112
- # @param [String] fields
1113
- # Selector specifying which fields to include in a partial response.
1114
- # @param [String] quota_user
1115
- # Available to use for quota purposes for server-side applications. Can be any
1116
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1117
- # @param [Google::Apis::RequestOptions] options
1118
- # Request-specific options
1119
- #
1120
- # @yield [result, err] Result & error if block supplied
1121
- # @yieldparam result [Google::Apis::BaremetalsolutionV2::Empty] parsed result object
1122
- # @yieldparam err [StandardError] error object if request failed
1123
- #
1124
- # @return [Google::Apis::BaremetalsolutionV2::Empty]
1125
- #
1126
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1127
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1128
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1129
- def delete_project_location_volume_snapshot(name, fields: nil, quota_user: nil, options: nil, &block)
1130
- command = make_simple_command(:delete, 'v2/{+name}', options)
1131
- command.response_representation = Google::Apis::BaremetalsolutionV2::Empty::Representation
1132
- command.response_class = Google::Apis::BaremetalsolutionV2::Empty
1133
- command.params['name'] = name unless name.nil?
1134
- command.query['fields'] = fields unless fields.nil?
1135
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1136
- execute_or_queue_command(command, &block)
1137
- end
1138
-
1139
- # Get details of a single storage volume snapshot.
1140
- # @param [String] name
1141
- # Required. Name of the resource.
1142
- # @param [String] fields
1143
- # Selector specifying which fields to include in a partial response.
1144
- # @param [String] quota_user
1145
- # Available to use for quota purposes for server-side applications. Can be any
1146
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1147
- # @param [Google::Apis::RequestOptions] options
1148
- # Request-specific options
1149
- #
1150
- # @yield [result, err] Result & error if block supplied
1151
- # @yieldparam result [Google::Apis::BaremetalsolutionV2::VolumeSnapshot] parsed result object
1152
- # @yieldparam err [StandardError] error object if request failed
1153
- #
1154
- # @return [Google::Apis::BaremetalsolutionV2::VolumeSnapshot]
1155
- #
1156
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1157
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1158
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1159
- def get_project_location_volume_snapshot(name, fields: nil, quota_user: nil, options: nil, &block)
1160
- command = make_simple_command(:get, 'v2/{+name}', options)
1161
- command.response_representation = Google::Apis::BaremetalsolutionV2::VolumeSnapshot::Representation
1162
- command.response_class = Google::Apis::BaremetalsolutionV2::VolumeSnapshot
1163
- command.params['name'] = name unless name.nil?
1164
- command.query['fields'] = fields unless fields.nil?
1165
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1166
- execute_or_queue_command(command, &block)
1167
- end
1168
-
1169
- # List storage volume snapshots for given storage volume.
1170
- # @param [String] parent
1171
- # Required. Parent value for ListVolumesRequest.
1172
- # @param [Fixnum] page_size
1173
- # Requested page size. The server might return fewer items than requested. If
1174
- # unspecified, server will pick an appropriate default.
1175
- # @param [String] page_token
1176
- # A token identifying a page of results from the server.
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::ListVolumeSnapshotsResponse] parsed result object
1187
- # @yieldparam err [StandardError] error object if request failed
1188
- #
1189
- # @return [Google::Apis::BaremetalsolutionV2::ListVolumeSnapshotsResponse]
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 list_project_location_volume_snapshots(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1195
- command = make_simple_command(:get, 'v2/{+parent}/snapshots', options)
1196
- command.response_representation = Google::Apis::BaremetalsolutionV2::ListVolumeSnapshotsResponse::Representation
1197
- command.response_class = Google::Apis::BaremetalsolutionV2::ListVolumeSnapshotsResponse
1198
- command.params['parent'] = parent unless parent.nil?
1199
- command.query['pageSize'] = page_size unless page_size.nil?
1200
- command.query['pageToken'] = page_token unless page_token.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
- # Restore a storage volume snapshot to its containing volume.
1207
- # @param [String] volume_snapshot
1208
- # Required. Name of the resource.
1209
- # @param [Google::Apis::BaremetalsolutionV2::RestoreVolumeSnapshotRequest] restore_volume_snapshot_request_object
1210
- # @param [String] fields
1211
- # Selector specifying which fields to include in a partial response.
1212
- # @param [String] quota_user
1213
- # Available to use for quota purposes for server-side applications. Can be any
1214
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1215
- # @param [Google::Apis::RequestOptions] options
1216
- # Request-specific options
1217
- #
1218
- # @yield [result, err] Result & error if block supplied
1219
- # @yieldparam result [Google::Apis::BaremetalsolutionV2::Operation] parsed result object
1220
- # @yieldparam err [StandardError] error object if request failed
1221
- #
1222
- # @return [Google::Apis::BaremetalsolutionV2::Operation]
1223
- #
1224
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1225
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1226
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1227
- def restore_volume_snapshot(volume_snapshot, restore_volume_snapshot_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1228
- command = make_simple_command(:post, 'v2/{+volumeSnapshot}:restoreVolumeSnapshot', options)
1229
- command.request_representation = Google::Apis::BaremetalsolutionV2::RestoreVolumeSnapshotRequest::Representation
1230
- command.request_object = restore_volume_snapshot_request_object
1231
- command.response_representation = Google::Apis::BaremetalsolutionV2::Operation::Representation
1232
- command.response_class = Google::Apis::BaremetalsolutionV2::Operation
1233
- command.params['volumeSnapshot'] = volume_snapshot unless volume_snapshot.nil?
1234
- command.query['fields'] = fields unless fields.nil?
1235
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1236
- execute_or_queue_command(command, &block)
1237
- end
1238
1001
 
1239
1002
  protected
1240
1003
 
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.9.0
4
+ version: 0.12.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-03-21 00:00:00.000000000 Z
11
+ date: 2022-05-09 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.9.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-baremetalsolution_v2/v0.12.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: []