google-cloud-vm_migration-v1 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -19,6 +19,69 @@
19
19
 
20
20
  module Google
21
21
  module Rpc
22
+ # Describes the cause of the error with structured details.
23
+ #
24
+ # Example of an error when contacting the "pubsub.googleapis.com" API when it
25
+ # is not enabled:
26
+ #
27
+ # { "reason": "API_DISABLED"
28
+ # "domain": "googleapis.com"
29
+ # "metadata": {
30
+ # "resource": "projects/123",
31
+ # "service": "pubsub.googleapis.com"
32
+ # }
33
+ # }
34
+ #
35
+ # This response indicates that the pubsub.googleapis.com API is not enabled.
36
+ #
37
+ # Example of an error that is returned when attempting to create a Spanner
38
+ # instance in a region that is out of stock:
39
+ #
40
+ # { "reason": "STOCKOUT"
41
+ # "domain": "spanner.googleapis.com",
42
+ # "metadata": {
43
+ # "availableRegions": "us-central1,us-east2"
44
+ # }
45
+ # }
46
+ # @!attribute [rw] reason
47
+ # @return [::String]
48
+ # The reason of the error. This is a constant value that identifies the
49
+ # proximate cause of the error. Error reasons are unique within a particular
50
+ # domain of errors. This should be at most 63 characters and match a
51
+ # regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, which represents
52
+ # UPPER_SNAKE_CASE.
53
+ # @!attribute [rw] domain
54
+ # @return [::String]
55
+ # The logical grouping to which the "reason" belongs. The error domain
56
+ # is typically the registered service name of the tool or product that
57
+ # generates the error. Example: "pubsub.googleapis.com". If the error is
58
+ # generated by some common infrastructure, the error domain must be a
59
+ # globally unique value that identifies the infrastructure. For Google API
60
+ # infrastructure, the error domain is "googleapis.com".
61
+ # @!attribute [rw] metadata
62
+ # @return [::Google::Protobuf::Map{::String => ::String}]
63
+ # Additional structured details about this error.
64
+ #
65
+ # Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
66
+ # length. When identifying the current value of an exceeded limit, the units
67
+ # should be contained in the key, not the value. For example, rather than
68
+ # \\{"instanceLimit": "100/request"}, should be returned as,
69
+ # \\{"instanceLimitPerRequest": "100"}, if the client exceeds the number of
70
+ # instances that can be created in a single (batch) request.
71
+ class ErrorInfo
72
+ include ::Google::Protobuf::MessageExts
73
+ extend ::Google::Protobuf::MessageExts::ClassMethods
74
+
75
+ # @!attribute [rw] key
76
+ # @return [::String]
77
+ # @!attribute [rw] value
78
+ # @return [::String]
79
+ class MetadataEntry
80
+ include ::Google::Protobuf::MessageExts
81
+ extend ::Google::Protobuf::MessageExts::ClassMethods
82
+ end
83
+ end
84
+
22
85
  # Describes when the clients can retry a failed request. Clients could ignore
23
86
  # the recommendation here or retry when this information is missing from error
24
87
  # responses.
@@ -92,68 +155,6 @@ module Google
92
155
  end
93
156
  end
94
157
 
95
- # Describes the cause of the error with structured details.
96
- #
97
- # Example of an error when contacting the "pubsub.googleapis.com" API when it
98
- # is not enabled:
99
- #
100
- # { "reason": "API_DISABLED"
101
- # "domain": "googleapis.com"
102
- # "metadata": {
103
- # "resource": "projects/123",
104
- # "service": "pubsub.googleapis.com"
105
- # }
106
- # }
107
- #
108
- # This response indicates that the pubsub.googleapis.com API is not enabled.
109
- #
110
- # Example of an error that is returned when attempting to create a Spanner
111
- # instance in a region that is out of stock:
112
- #
113
- # { "reason": "STOCKOUT"
114
- # "domain": "spanner.googleapis.com",
115
- # "metadata": {
116
- # "availableRegions": "us-central1,us-east2"
117
- # }
118
- # }
119
- # @!attribute [rw] reason
120
- # @return [::String]
121
- # The reason of the error. This is a constant value that identifies the
122
- # proximate cause of the error. Error reasons are unique within a particular
123
- # domain of errors. This should be at most 63 characters and match
124
- # /[A-Z0-9_]+/.
125
- # @!attribute [rw] domain
126
- # @return [::String]
127
- # The logical grouping to which the "reason" belongs. The error domain
128
- # is typically the registered service name of the tool or product that
129
- # generates the error. Example: "pubsub.googleapis.com". If the error is
130
- # generated by some common infrastructure, the error domain must be a
131
- # globally unique value that identifies the infrastructure. For Google API
132
- # infrastructure, the error domain is "googleapis.com".
133
- # @!attribute [rw] metadata
134
- # @return [::Google::Protobuf::Map{::String => ::String}]
135
- # Additional structured details about this error.
136
- #
137
- # Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
138
- # length. When identifying the current value of an exceeded limit, the units
139
- # should be contained in the key, not the value. For example, rather than
140
- # \\{"instanceLimit": "100/request"}, should be returned as,
141
- # \\{"instanceLimitPerRequest": "100"}, if the client exceeds the number of
142
- # instances that can be created in a single (batch) request.
143
- class ErrorInfo
144
- include ::Google::Protobuf::MessageExts
145
- extend ::Google::Protobuf::MessageExts::ClassMethods
146
-
147
- # @!attribute [rw] key
148
- # @return [::String]
149
- # @!attribute [rw] value
150
- # @return [::String]
151
- class MetadataEntry
152
- include ::Google::Protobuf::MessageExts
153
- extend ::Google::Protobuf::MessageExts::ClassMethods
154
- end
155
- end
156
-
157
158
  # Describes what preconditions have failed.
158
159
  #
159
160
  # For example, if an RPC failed because it required the Terms of Service to be
@@ -201,9 +202,43 @@ module Google
201
202
  # A message type used to describe a single bad request field.
202
203
  # @!attribute [rw] field
203
204
  # @return [::String]
204
- # A path leading to a field in the request body. The value will be a
205
+ # A path that leads to a field in the request body. The value will be a
205
206
  # sequence of dot-separated identifiers that identify a protocol buffer
206
- # field. E.g., "field_violations.field" would identify this field.
207
+ # field.
208
+ #
209
+ # Consider the following:
210
+ #
211
+ # message CreateContactRequest {
212
+ # message EmailAddress {
213
+ # enum Type {
214
+ # TYPE_UNSPECIFIED = 0;
215
+ # HOME = 1;
216
+ # WORK = 2;
217
+ # }
218
+ #
219
+ # optional string email = 1;
220
+ # repeated EmailType type = 2;
221
+ # }
222
+ #
223
+ # string full_name = 1;
224
+ # repeated EmailAddress email_addresses = 2;
225
+ # }
226
+ #
227
+ # In this example, in proto `field` could take one of the following values:
228
+ #
229
+ # * `full_name` for a violation in the `full_name` value
230
+ # * `email_addresses[1].email` for a violation in the `email` field of the
231
+ # first `email_addresses` message
232
+ # * `email_addresses[3].type[2]` for a violation in the second `type`
233
+ # value in the third `email_addresses` message.
234
+ #
235
+ # In JSON, the same values are represented as:
236
+ #
237
+ # * `fullName` for a violation in the `fullName` value
238
+ # * `emailAddresses[1].email` for a violation in the `email` field of the
239
+ # first `emailAddresses` message
240
+ # * `emailAddresses[3].type[2]` for a violation in the second `type`
241
+ # value in the third `emailAddresses` message.
207
242
  # @!attribute [rw] description
208
243
  # @return [::String]
209
244
  # A description of why the request element is bad.
@@ -238,7 +273,8 @@ module Google
238
273
  # @return [::String]
239
274
  # The name of the resource being accessed. For example, a shared calendar
240
275
  # name: "example.com_4fghdhgsrgh@group.calendar.google.com", if the current
241
- # error is [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].
276
+ # error is
277
+ # [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].
242
278
  # @!attribute [rw] owner
243
279
  # @return [::String]
244
280
  # The owner of the resource (optional).
@@ -284,7 +320,7 @@ module Google
284
320
  # @!attribute [rw] locale
285
321
  # @return [::String]
286
322
  # The locale used following the specification defined at
287
- # http://www.rfc-editor.org/rfc/bcp/bcp47.txt.
323
+ # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
288
324
  # Examples are: "en-US", "fr-CH", "es-MX"
289
325
  # @!attribute [rw] message
290
326
  # @return [::String]
@@ -28,12 +28,14 @@ module Google
28
28
  # [API Design Guide](https://cloud.google.com/apis/design/errors).
29
29
  # @!attribute [rw] code
30
30
  # @return [::Integer]
31
- # The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
31
+ # The status code, which should be an enum value of
32
+ # [google.rpc.Code][google.rpc.Code].
32
33
  # @!attribute [rw] message
33
34
  # @return [::String]
34
35
  # A developer-facing error message, which should be in English. Any
35
36
  # user-facing error message should be localized and sent in the
36
- # {::Google::Rpc::Status#details google.rpc.Status.details} field, or localized by the client.
37
+ # {::Google::Rpc::Status#details google.rpc.Status.details} field, or localized
38
+ # by the client.
37
39
  # @!attribute [rw] details
38
40
  # @return [::Array<::Google::Protobuf::Any>]
39
41
  # A list of messages that carry the error details. There is a common set of
@@ -0,0 +1,75 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Type
22
+ # Represents a textual expression in the Common Expression Language (CEL)
23
+ # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
24
+ # are documented at https://github.com/google/cel-spec.
25
+ #
26
+ # Example (Comparison):
27
+ #
28
+ # title: "Summary size limit"
29
+ # description: "Determines if a summary is less than 100 chars"
30
+ # expression: "document.summary.size() < 100"
31
+ #
32
+ # Example (Equality):
33
+ #
34
+ # title: "Requestor is owner"
35
+ # description: "Determines if requestor is the document owner"
36
+ # expression: "document.owner == request.auth.claims.email"
37
+ #
38
+ # Example (Logic):
39
+ #
40
+ # title: "Public documents"
41
+ # description: "Determine whether the document should be publicly visible"
42
+ # expression: "document.type != 'private' && document.type != 'internal'"
43
+ #
44
+ # Example (Data Manipulation):
45
+ #
46
+ # title: "Notification string"
47
+ # description: "Create a notification string with a timestamp."
48
+ # expression: "'New message received at ' + string(document.create_time)"
49
+ #
50
+ # The exact variables and functions that may be referenced within an expression
51
+ # are determined by the service that evaluates it. See the service
52
+ # documentation for additional information.
53
+ # @!attribute [rw] expression
54
+ # @return [::String]
55
+ # Textual representation of an expression in Common Expression Language
56
+ # syntax.
57
+ # @!attribute [rw] title
58
+ # @return [::String]
59
+ # Optional. Title for the expression, i.e. a short string describing
60
+ # its purpose. This can be used e.g. in UIs which allow to enter the
61
+ # expression.
62
+ # @!attribute [rw] description
63
+ # @return [::String]
64
+ # Optional. Description of the expression. This is a longer text which
65
+ # describes the expression, e.g. when hovered over it in a UI.
66
+ # @!attribute [rw] location
67
+ # @return [::String]
68
+ # Optional. String indicating the location of the expression for error
69
+ # reporting, e.g. a file name and a position in the file.
70
+ class Expr
71
+ include ::Google::Protobuf::MessageExts
72
+ extend ::Google::Protobuf::MessageExts::ClassMethods
73
+ end
74
+ end
75
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-vm_migration-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.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-07-21 00:00:00.000000000 Z
11
+ date: 2023-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.10'
19
+ version: 0.16.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.10'
29
+ version: 0.16.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -44,6 +44,46 @@ dependencies:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
46
  version: '1.0'
47
+ - !ruby/object:Gem::Dependency
48
+ name: google-cloud-location
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: '0.0'
54
+ - - "<"
55
+ - !ruby/object:Gem::Version
56
+ version: 2.a
57
+ type: :runtime
58
+ prerelease: false
59
+ version_requirements: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ version: '0.0'
64
+ - - "<"
65
+ - !ruby/object:Gem::Version
66
+ version: 2.a
67
+ - !ruby/object:Gem::Dependency
68
+ name: google-iam-v1
69
+ requirement: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ version: '0.0'
74
+ - - "<"
75
+ - !ruby/object:Gem::Version
76
+ version: 2.a
77
+ type: :runtime
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ version: '0.0'
84
+ - - "<"
85
+ - !ruby/object:Gem::Version
86
+ version: 2.a
47
87
  - !ruby/object:Gem::Dependency
48
88
  name: google-style
49
89
  requirement: !ruby/object:Gem::Requirement
@@ -181,7 +221,9 @@ files:
181
221
  - lib/google/cloud/vmmigration/v1/vmmigration_pb.rb
182
222
  - lib/google/cloud/vmmigration/v1/vmmigration_services_pb.rb
183
223
  - proto_docs/README.md
224
+ - proto_docs/google/api/client.rb
184
225
  - proto_docs/google/api/field_behavior.rb
226
+ - proto_docs/google/api/launch_stage.rb
185
227
  - proto_docs/google/api/resource.rb
186
228
  - proto_docs/google/cloud/vmmigration/v1/vmmigration.rb
187
229
  - proto_docs/google/longrunning/operations.rb
@@ -192,6 +234,7 @@ files:
192
234
  - proto_docs/google/protobuf/timestamp.rb
193
235
  - proto_docs/google/rpc/error_details.rb
194
236
  - proto_docs/google/rpc/status.rb
237
+ - proto_docs/google/type/expr.rb
195
238
  homepage: https://github.com/googleapis/google-cloud-ruby
196
239
  licenses:
197
240
  - Apache-2.0
@@ -211,7 +254,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
211
254
  - !ruby/object:Gem::Version
212
255
  version: '0'
213
256
  requirements: []
214
- rubygems_version: 3.3.14
257
+ rubygems_version: 3.4.2
215
258
  signing_key:
216
259
  specification_version: 4
217
260
  summary: API Client library for the Migrate for Compute Engine V1 API