google-apis-baremetalsolution_v1 0.6.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cbbf85d59345054a8c131a6c0dd723d4066e6d726fd555084c93ea66a781d5a0
4
- data.tar.gz: 638ce6c95c2c5ad011173bbb4dcfa2f9013a71007a3d73402e682e5264418440
3
+ metadata.gz: 42a04dbecc43ffec99f8efd33f6379a1de005d970e4329824eeb18649d39ae4c
4
+ data.tar.gz: c758c915abd2fd7b042f2c801dffa082ad3ebd70a938719f3500fb89d3a67c2c
5
5
  SHA512:
6
- metadata.gz: 1bd9d57a64f0708d9f1d134326a8069a721241958bf77ae9d8219aa8921e559fb79c9eb3e24d7e37bf8ab31163d43d9b4335f57fcf6f93548bb9b95459e6ea87
7
- data.tar.gz: 57a3e40c81587cfb61951d1ce2635700e81b9d3ffca703b0dfdb4b3c3f4d8234fd111b4db14f627942bd687576aa61b8a9515afefc087e7719eb0c5b21da18c8
6
+ metadata.gz: 8e74cb2a1ad991750437d268c9129422f5fbbacba744d37ae9a12a25d529b68d4ccba89586eb59ae6188c748ca0f4a84ae3be0d0a56cff707583f7c82fff1fac
7
+ data.tar.gz: 1ddbca9e327544244b688e31064ad100ca61b86de32dd6abb0abf74f8bbcfc6c2f82adbbd94368ca5c926fe2d9df813400d46c82a961d4e002ce2949778ed023
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-baremetalsolution_v1
2
2
 
3
+ ### v0.7.0 (2022-01-24)
4
+
5
+ * Regenerated from discovery document revision 20220118
6
+ * Regenerated using generator version 0.4.1
7
+
3
8
  ### v0.6.0 (2021-12-14)
4
9
 
5
10
  * Unspecified changes
@@ -22,6 +22,123 @@ module Google
22
22
  module Apis
23
23
  module BaremetalsolutionV1
24
24
 
25
+ # The request message for Operations.CancelOperation.
26
+ class CancelOperationRequest
27
+ include Google::Apis::Core::Hashable
28
+
29
+ def initialize(**args)
30
+ update!(**args)
31
+ end
32
+
33
+ # Update properties of this object
34
+ def update!(**args)
35
+ end
36
+ end
37
+
38
+ # A generic empty message that you can re-use to avoid defining duplicated empty
39
+ # messages in your APIs. A typical example is to use it as the request or the
40
+ # response type of an API method. For instance: service Foo ` rpc Bar(google.
41
+ # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
42
+ # `Empty` is empty JSON object ````.
43
+ class Empty
44
+ include Google::Apis::Core::Hashable
45
+
46
+ def initialize(**args)
47
+ update!(**args)
48
+ end
49
+
50
+ # Update properties of this object
51
+ def update!(**args)
52
+ end
53
+ end
54
+
55
+ # The response message for Operations.ListOperations.
56
+ class ListOperationsResponse
57
+ include Google::Apis::Core::Hashable
58
+
59
+ # The standard List next-page token.
60
+ # Corresponds to the JSON property `nextPageToken`
61
+ # @return [String]
62
+ attr_accessor :next_page_token
63
+
64
+ # A list of operations that matches the specified filter in the request.
65
+ # Corresponds to the JSON property `operations`
66
+ # @return [Array<Google::Apis::BaremetalsolutionV1::Operation>]
67
+ attr_accessor :operations
68
+
69
+ def initialize(**args)
70
+ update!(**args)
71
+ end
72
+
73
+ # Update properties of this object
74
+ def update!(**args)
75
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
76
+ @operations = args[:operations] if args.key?(:operations)
77
+ end
78
+ end
79
+
80
+ # This resource represents a long-running operation that is the result of a
81
+ # network API call.
82
+ class Operation
83
+ include Google::Apis::Core::Hashable
84
+
85
+ # If the value is `false`, it means the operation is still in progress. If `true`
86
+ # , the operation is completed, and either `error` or `response` is available.
87
+ # Corresponds to the JSON property `done`
88
+ # @return [Boolean]
89
+ attr_accessor :done
90
+ alias_method :done?, :done
91
+
92
+ # The `Status` type defines a logical error model that is suitable for different
93
+ # programming environments, including REST APIs and RPC APIs. It is used by [
94
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
95
+ # data: error code, error message, and error details. You can find out more
96
+ # about this error model and how to work with it in the [API Design Guide](https:
97
+ # //cloud.google.com/apis/design/errors).
98
+ # Corresponds to the JSON property `error`
99
+ # @return [Google::Apis::BaremetalsolutionV1::Status]
100
+ attr_accessor :error
101
+
102
+ # Service-specific metadata associated with the operation. It typically contains
103
+ # progress information and common metadata such as create time. Some services
104
+ # might not provide such metadata. Any method that returns a long-running
105
+ # operation should document the metadata type, if any.
106
+ # Corresponds to the JSON property `metadata`
107
+ # @return [Hash<String,Object>]
108
+ attr_accessor :metadata
109
+
110
+ # The server-assigned name, which is only unique within the same service that
111
+ # originally returns it. If you use the default HTTP mapping, the `name` should
112
+ # be a resource name ending with `operations/`unique_id``.
113
+ # Corresponds to the JSON property `name`
114
+ # @return [String]
115
+ attr_accessor :name
116
+
117
+ # The normal response of the operation in case of success. If the original
118
+ # method returns no data on success, such as `Delete`, the response is `google.
119
+ # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
120
+ # the response should be the resource. For other methods, the response should
121
+ # have the type `XxxResponse`, where `Xxx` is the original method name. For
122
+ # example, if the original method name is `TakeSnapshot()`, the inferred
123
+ # response type is `TakeSnapshotResponse`.
124
+ # Corresponds to the JSON property `response`
125
+ # @return [Hash<String,Object>]
126
+ attr_accessor :response
127
+
128
+ def initialize(**args)
129
+ update!(**args)
130
+ end
131
+
132
+ # Update properties of this object
133
+ def update!(**args)
134
+ @done = args[:done] if args.key?(:done)
135
+ @error = args[:error] if args.key?(:error)
136
+ @metadata = args[:metadata] if args.key?(:metadata)
137
+ @name = args[:name] if args.key?(:name)
138
+ @response = args[:response] if args.key?(:response)
139
+ end
140
+ end
141
+
25
142
  # Request for ResetInstance.
26
143
  class ResetInstanceRequest
27
144
  include Google::Apis::Core::Hashable
@@ -47,6 +164,45 @@ module Google
47
164
  def update!(**args)
48
165
  end
49
166
  end
167
+
168
+ # The `Status` type defines a logical error model that is suitable for different
169
+ # programming environments, including REST APIs and RPC APIs. It is used by [
170
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
171
+ # data: error code, error message, and error details. You can find out more
172
+ # about this error model and how to work with it in the [API Design Guide](https:
173
+ # //cloud.google.com/apis/design/errors).
174
+ class Status
175
+ include Google::Apis::Core::Hashable
176
+
177
+ # The status code, which should be an enum value of google.rpc.Code.
178
+ # Corresponds to the JSON property `code`
179
+ # @return [Fixnum]
180
+ attr_accessor :code
181
+
182
+ # A list of messages that carry the error details. There is a common set of
183
+ # message types for APIs to use.
184
+ # Corresponds to the JSON property `details`
185
+ # @return [Array<Hash<String,Object>>]
186
+ attr_accessor :details
187
+
188
+ # A developer-facing error message, which should be in English. Any user-facing
189
+ # error message should be localized and sent in the google.rpc.Status.details
190
+ # field, or localized by the client.
191
+ # Corresponds to the JSON property `message`
192
+ # @return [String]
193
+ attr_accessor :message
194
+
195
+ def initialize(**args)
196
+ update!(**args)
197
+ end
198
+
199
+ # Update properties of this object
200
+ def update!(**args)
201
+ @code = args[:code] if args.key?(:code)
202
+ @details = args[:details] if args.key?(:details)
203
+ @message = args[:message] if args.key?(:message)
204
+ end
205
+ end
50
206
  end
51
207
  end
52
208
  end
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module BaremetalsolutionV1
18
18
  # Version of the google-apis-baremetalsolution_v1 gem
19
- GEM_VERSION = "0.6.0"
19
+ GEM_VERSION = "0.7.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.0"
22
+ GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210802"
25
+ REVISION = "20220118"
26
26
  end
27
27
  end
28
28
  end
@@ -22,6 +22,30 @@ module Google
22
22
  module Apis
23
23
  module BaremetalsolutionV1
24
24
 
25
+ class CancelOperationRequest
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class Empty
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class ListOperationsResponse
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class Operation
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
25
49
  class ResetInstanceRequest
26
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
51
 
@@ -34,6 +58,45 @@ module Google
34
58
  include Google::Apis::Core::JsonObjectSupport
35
59
  end
36
60
 
61
+ class Status
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class CancelOperationRequest
68
+ # @private
69
+ class Representation < Google::Apis::Core::JsonRepresentation
70
+ end
71
+ end
72
+
73
+ class Empty
74
+ # @private
75
+ class Representation < Google::Apis::Core::JsonRepresentation
76
+ end
77
+ end
78
+
79
+ class ListOperationsResponse
80
+ # @private
81
+ class Representation < Google::Apis::Core::JsonRepresentation
82
+ property :next_page_token, as: 'nextPageToken'
83
+ collection :operations, as: 'operations', class: Google::Apis::BaremetalsolutionV1::Operation, decorator: Google::Apis::BaremetalsolutionV1::Operation::Representation
84
+
85
+ end
86
+ end
87
+
88
+ class Operation
89
+ # @private
90
+ class Representation < Google::Apis::Core::JsonRepresentation
91
+ property :done, as: 'done'
92
+ property :error, as: 'error', class: Google::Apis::BaremetalsolutionV1::Status, decorator: Google::Apis::BaremetalsolutionV1::Status::Representation
93
+
94
+ hash :metadata, as: 'metadata'
95
+ property :name, as: 'name'
96
+ hash :response, as: 'response'
97
+ end
98
+ end
99
+
37
100
  class ResetInstanceRequest
38
101
  # @private
39
102
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -45,6 +108,15 @@ module Google
45
108
  class Representation < Google::Apis::Core::JsonRepresentation
46
109
  end
47
110
  end
111
+
112
+ class Status
113
+ # @private
114
+ class Representation < Google::Apis::Core::JsonRepresentation
115
+ property :code, as: 'code'
116
+ collection :details, as: 'details'
117
+ property :message, as: 'message'
118
+ end
119
+ end
48
120
  end
49
121
  end
50
122
  end
@@ -50,6 +50,156 @@ module Google
50
50
  @batch_path = 'batch'
51
51
  end
52
52
 
53
+ # Starts asynchronous cancellation on a long-running operation. The server makes
54
+ # a best effort to cancel the operation, but success is not guaranteed. If the
55
+ # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
56
+ # Clients can use Operations.GetOperation or other methods to check whether the
57
+ # cancellation succeeded or whether the operation completed despite cancellation.
58
+ # On successful cancellation, the operation is not deleted; instead, it becomes
59
+ # an operation with an Operation.error value with a google.rpc.Status.code of 1,
60
+ # corresponding to `Code.CANCELLED`.
61
+ # @param [String] name
62
+ # The name of the operation resource to be cancelled.
63
+ # @param [Google::Apis::BaremetalsolutionV1::CancelOperationRequest] cancel_operation_request_object
64
+ # @param [String] fields
65
+ # Selector specifying which fields to include in a partial response.
66
+ # @param [String] quota_user
67
+ # Available to use for quota purposes for server-side applications. Can be any
68
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
69
+ # @param [Google::Apis::RequestOptions] options
70
+ # Request-specific options
71
+ #
72
+ # @yield [result, err] Result & error if block supplied
73
+ # @yieldparam result [Google::Apis::BaremetalsolutionV1::Empty] parsed result object
74
+ # @yieldparam err [StandardError] error object if request failed
75
+ #
76
+ # @return [Google::Apis::BaremetalsolutionV1::Empty]
77
+ #
78
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
79
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
80
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
81
+ def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
82
+ command = make_simple_command(:post, 'v1/{+name}:cancel', options)
83
+ command.request_representation = Google::Apis::BaremetalsolutionV1::CancelOperationRequest::Representation
84
+ command.request_object = cancel_operation_request_object
85
+ command.response_representation = Google::Apis::BaremetalsolutionV1::Empty::Representation
86
+ command.response_class = Google::Apis::BaremetalsolutionV1::Empty
87
+ command.params['name'] = name unless name.nil?
88
+ command.query['fields'] = fields unless fields.nil?
89
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
90
+ execute_or_queue_command(command, &block)
91
+ end
92
+
93
+ # Deletes a long-running operation. This method indicates that the client is no
94
+ # longer interested in the operation result. It does not cancel the operation.
95
+ # If the server doesn't support this method, it returns `google.rpc.Code.
96
+ # UNIMPLEMENTED`.
97
+ # @param [String] name
98
+ # The name of the operation resource to be deleted.
99
+ # @param [String] fields
100
+ # Selector specifying which fields to include in a partial response.
101
+ # @param [String] quota_user
102
+ # Available to use for quota purposes for server-side applications. Can be any
103
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
104
+ # @param [Google::Apis::RequestOptions] options
105
+ # Request-specific options
106
+ #
107
+ # @yield [result, err] Result & error if block supplied
108
+ # @yieldparam result [Google::Apis::BaremetalsolutionV1::Empty] parsed result object
109
+ # @yieldparam err [StandardError] error object if request failed
110
+ #
111
+ # @return [Google::Apis::BaremetalsolutionV1::Empty]
112
+ #
113
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
114
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
115
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
116
+ def delete_operation(name, fields: nil, quota_user: nil, options: nil, &block)
117
+ command = make_simple_command(:delete, 'v1/{+name}', options)
118
+ command.response_representation = Google::Apis::BaremetalsolutionV1::Empty::Representation
119
+ command.response_class = Google::Apis::BaremetalsolutionV1::Empty
120
+ command.params['name'] = name unless name.nil?
121
+ command.query['fields'] = fields unless fields.nil?
122
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
123
+ execute_or_queue_command(command, &block)
124
+ end
125
+
126
+ # Gets the latest state of a long-running operation. Clients can use this method
127
+ # to poll the operation result at intervals as recommended by the API service.
128
+ # @param [String] name
129
+ # The name of the operation resource.
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::BaremetalsolutionV1::Operation] parsed result object
140
+ # @yieldparam err [StandardError] error object if request failed
141
+ #
142
+ # @return [Google::Apis::BaremetalsolutionV1::Operation]
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 get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
148
+ command = make_simple_command(:get, 'v1/{+name}', options)
149
+ command.response_representation = Google::Apis::BaremetalsolutionV1::Operation::Representation
150
+ command.response_class = Google::Apis::BaremetalsolutionV1::Operation
151
+ command.params['name'] = name unless name.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
+ # Lists operations that match the specified filter in the request. If the server
158
+ # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
159
+ # binding allows API services to override the binding to use different resource
160
+ # name schemes, such as `users/*/operations`. To override the binding, API
161
+ # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
162
+ # service configuration. For backwards compatibility, the default name includes
163
+ # the operations collection id, however overriding users must ensure the name
164
+ # binding is the parent resource, without the operations collection id.
165
+ # @param [String] name
166
+ # The name of the operation's parent resource.
167
+ # @param [String] filter
168
+ # The standard list filter.
169
+ # @param [Fixnum] page_size
170
+ # The standard list page size.
171
+ # @param [String] page_token
172
+ # The standard list page token.
173
+ # @param [String] fields
174
+ # Selector specifying which fields to include in a partial response.
175
+ # @param [String] quota_user
176
+ # Available to use for quota purposes for server-side applications. Can be any
177
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
178
+ # @param [Google::Apis::RequestOptions] options
179
+ # Request-specific options
180
+ #
181
+ # @yield [result, err] Result & error if block supplied
182
+ # @yieldparam result [Google::Apis::BaremetalsolutionV1::ListOperationsResponse] parsed result object
183
+ # @yieldparam err [StandardError] error object if request failed
184
+ #
185
+ # @return [Google::Apis::BaremetalsolutionV1::ListOperationsResponse]
186
+ #
187
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
188
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
189
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
190
+ def list_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
191
+ command = make_simple_command(:get, 'v1/{+name}', options)
192
+ command.response_representation = Google::Apis::BaremetalsolutionV1::ListOperationsResponse::Representation
193
+ command.response_class = Google::Apis::BaremetalsolutionV1::ListOperationsResponse
194
+ command.params['name'] = name unless name.nil?
195
+ command.query['filter'] = filter unless filter.nil?
196
+ command.query['pageSize'] = page_size unless page_size.nil?
197
+ command.query['pageToken'] = page_token unless page_token.nil?
198
+ command.query['fields'] = fields unless fields.nil?
199
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
200
+ execute_or_queue_command(command, &block)
201
+ end
202
+
53
203
  # Perform an ungraceful, hard reset on a machine (equivalent to shutting the
54
204
  # power off, and then turning it back on).
55
205
  # @param [String] instance
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-baremetalsolution_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.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-01-10 00:00:00.000000000 Z
11
+ date: 2022-01-31 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_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-baremetalsolution_v1/v0.6.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-baremetalsolution_v1/v0.7.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-baremetalsolution_v1
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.4
78
+ rubygems_version: 3.3.5
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Bare Metal Solution API V1