google-apis-baremetalsolution_v1 0.5.0 → 0.8.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: eda59c4f929aa51db618b039fdc2db52413086b927a304d58b289f63bfefeff0
4
- data.tar.gz: 4c9ee3f1982e77841a6ccc73426032e78315c8111936ef42140cea71a006d17e
3
+ metadata.gz: 05d2ce873bb07812b989410650111811192e86fc0f6b18de0b679afb02c711ed
4
+ data.tar.gz: 5adb211ca48f7bc8ed9b2d00757a9095aa20cf5ba5e5d07bd046d0b58fbffc53
5
5
  SHA512:
6
- metadata.gz: 8ded84414e888264c9c2e5883415ff1cd5eb942a6fbf795d9184800c7e45cb268988db5615d2e95b987632a50384af253e67228a0b7d587f8bb49a5ef5159abc
7
- data.tar.gz: 6f9601778512a071a0a5f0dc7213a512a04c731db25924ac6e48b742a472d6a02b1ff6c3ad3406ceee8b5d7a6ceabb633cc6f19097698c7ff93a619beb978f41
6
+ metadata.gz: 77053f8fd18c93c0e82c7b50a32e0a1fb991cfb529d4e8b1d30fe4f283ce560741bc99c82d88fbb5d4d4fbd4450ab133b17ec360324028844a1b0134949b582d
7
+ data.tar.gz: 95861ac9189b3238dc626d40d62488949ee66ceda9612bd375443deefba1895316f8422bd368e77367a1d0b20c57bb08a3e520cefd5e5d20faf97bb22a6db747
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Release history for google-apis-baremetalsolution_v1
2
2
 
3
+ ### v0.8.0 (2022-03-27)
4
+
5
+ * Regenerated from discovery document revision 20220322
6
+
7
+ ### v0.7.0 (2022-01-24)
8
+
9
+ * Regenerated from discovery document revision 20220118
10
+ * Regenerated using generator version 0.4.1
11
+
12
+ ### v0.6.0 (2021-12-14)
13
+
14
+ * Unspecified changes
15
+
3
16
  ### v0.5.0 (2021-10-20)
4
17
 
5
18
  * Unspecified changes
data/OVERVIEW.md CHANGED
@@ -51,7 +51,7 @@ require "google/apis/baremetalsolution_v1"
51
51
  client = Google::Apis::BaremetalsolutionV1::BaremetalsolutionService.new
52
52
 
53
53
  # Authenticate calls
54
- client.authentication = # ... use the googleauth gem to create credentials
54
+ client.authorization = # ... use the googleauth gem to create credentials
55
55
  ```
56
56
 
57
57
  See the class reference docs for information on the methods you can call from a client.
@@ -22,6 +22,122 @@ 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); `
42
+ class Empty
43
+ include Google::Apis::Core::Hashable
44
+
45
+ def initialize(**args)
46
+ update!(**args)
47
+ end
48
+
49
+ # Update properties of this object
50
+ def update!(**args)
51
+ end
52
+ end
53
+
54
+ # The response message for Operations.ListOperations.
55
+ class ListOperationsResponse
56
+ include Google::Apis::Core::Hashable
57
+
58
+ # The standard List next-page token.
59
+ # Corresponds to the JSON property `nextPageToken`
60
+ # @return [String]
61
+ attr_accessor :next_page_token
62
+
63
+ # A list of operations that matches the specified filter in the request.
64
+ # Corresponds to the JSON property `operations`
65
+ # @return [Array<Google::Apis::BaremetalsolutionV1::Operation>]
66
+ attr_accessor :operations
67
+
68
+ def initialize(**args)
69
+ update!(**args)
70
+ end
71
+
72
+ # Update properties of this object
73
+ def update!(**args)
74
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
75
+ @operations = args[:operations] if args.key?(:operations)
76
+ end
77
+ end
78
+
79
+ # This resource represents a long-running operation that is the result of a
80
+ # network API call.
81
+ class Operation
82
+ include Google::Apis::Core::Hashable
83
+
84
+ # If the value is `false`, it means the operation is still in progress. If `true`
85
+ # , the operation is completed, and either `error` or `response` is available.
86
+ # Corresponds to the JSON property `done`
87
+ # @return [Boolean]
88
+ attr_accessor :done
89
+ alias_method :done?, :done
90
+
91
+ # The `Status` type defines a logical error model that is suitable for different
92
+ # programming environments, including REST APIs and RPC APIs. It is used by [
93
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
94
+ # data: error code, error message, and error details. You can find out more
95
+ # about this error model and how to work with it in the [API Design Guide](https:
96
+ # //cloud.google.com/apis/design/errors).
97
+ # Corresponds to the JSON property `error`
98
+ # @return [Google::Apis::BaremetalsolutionV1::Status]
99
+ attr_accessor :error
100
+
101
+ # Service-specific metadata associated with the operation. It typically contains
102
+ # progress information and common metadata such as create time. Some services
103
+ # might not provide such metadata. Any method that returns a long-running
104
+ # operation should document the metadata type, if any.
105
+ # Corresponds to the JSON property `metadata`
106
+ # @return [Hash<String,Object>]
107
+ attr_accessor :metadata
108
+
109
+ # The server-assigned name, which is only unique within the same service that
110
+ # originally returns it. If you use the default HTTP mapping, the `name` should
111
+ # be a resource name ending with `operations/`unique_id``.
112
+ # Corresponds to the JSON property `name`
113
+ # @return [String]
114
+ attr_accessor :name
115
+
116
+ # The normal response of the operation in case of success. If the original
117
+ # method returns no data on success, such as `Delete`, the response is `google.
118
+ # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
119
+ # the response should be the resource. For other methods, the response should
120
+ # have the type `XxxResponse`, where `Xxx` is the original method name. For
121
+ # example, if the original method name is `TakeSnapshot()`, the inferred
122
+ # response type is `TakeSnapshotResponse`.
123
+ # Corresponds to the JSON property `response`
124
+ # @return [Hash<String,Object>]
125
+ attr_accessor :response
126
+
127
+ def initialize(**args)
128
+ update!(**args)
129
+ end
130
+
131
+ # Update properties of this object
132
+ def update!(**args)
133
+ @done = args[:done] if args.key?(:done)
134
+ @error = args[:error] if args.key?(:error)
135
+ @metadata = args[:metadata] if args.key?(:metadata)
136
+ @name = args[:name] if args.key?(:name)
137
+ @response = args[:response] if args.key?(:response)
138
+ end
139
+ end
140
+
25
141
  # Request for ResetInstance.
26
142
  class ResetInstanceRequest
27
143
  include Google::Apis::Core::Hashable
@@ -47,6 +163,45 @@ module Google
47
163
  def update!(**args)
48
164
  end
49
165
  end
166
+
167
+ # The `Status` type defines a logical error model that is suitable for different
168
+ # programming environments, including REST APIs and RPC APIs. It is used by [
169
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
170
+ # data: error code, error message, and error details. You can find out more
171
+ # about this error model and how to work with it in the [API Design Guide](https:
172
+ # //cloud.google.com/apis/design/errors).
173
+ class Status
174
+ include Google::Apis::Core::Hashable
175
+
176
+ # The status code, which should be an enum value of google.rpc.Code.
177
+ # Corresponds to the JSON property `code`
178
+ # @return [Fixnum]
179
+ attr_accessor :code
180
+
181
+ # A list of messages that carry the error details. There is a common set of
182
+ # message types for APIs to use.
183
+ # Corresponds to the JSON property `details`
184
+ # @return [Array<Hash<String,Object>>]
185
+ attr_accessor :details
186
+
187
+ # A developer-facing error message, which should be in English. Any user-facing
188
+ # error message should be localized and sent in the google.rpc.Status.details
189
+ # field, or localized by the client.
190
+ # Corresponds to the JSON property `message`
191
+ # @return [String]
192
+ attr_accessor :message
193
+
194
+ def initialize(**args)
195
+ update!(**args)
196
+ end
197
+
198
+ # Update properties of this object
199
+ def update!(**args)
200
+ @code = args[:code] if args.key?(:code)
201
+ @details = args[:details] if args.key?(:details)
202
+ @message = args[:message] if args.key?(:message)
203
+ end
204
+ end
50
205
  end
51
206
  end
52
207
  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.5.0"
19
+ GEM_VERSION = "0.8.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 = "20220322"
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.5.0
4
+ version: 0.8.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: 2021-10-27 00:00:00.000000000 Z
11
+ date: 2022-03-28 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.5.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-baremetalsolution_v1/v0.8.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.2.17
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