google-cloud-service_usage-v1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +169 -0
  4. data/LICENSE.md +201 -0
  5. data/README.md +139 -0
  6. data/lib/google-cloud-service_usage-v1.rb +21 -0
  7. data/lib/google/api/serviceusage/v1/resources_pb.rb +57 -0
  8. data/lib/google/api/serviceusage/v1/serviceusage_pb.rb +86 -0
  9. data/lib/google/api/serviceusage/v1/serviceusage_services_pb.rb +80 -0
  10. data/lib/google/cloud/service_usage/v1.rb +38 -0
  11. data/lib/google/cloud/service_usage/v1/service_usage.rb +53 -0
  12. data/lib/google/cloud/service_usage/v1/service_usage/client.rb +850 -0
  13. data/lib/google/cloud/service_usage/v1/service_usage/credentials.rb +53 -0
  14. data/lib/google/cloud/service_usage/v1/service_usage/operations.rb +655 -0
  15. data/lib/google/cloud/service_usage/v1/version.rb +28 -0
  16. data/proto_docs/README.md +4 -0
  17. data/proto_docs/google/api/auth.rb +247 -0
  18. data/proto_docs/google/api/documentation.rb +170 -0
  19. data/proto_docs/google/api/endpoint.rb +70 -0
  20. data/proto_docs/google/api/label.rb +49 -0
  21. data/proto_docs/google/api/launch_stage.rb +71 -0
  22. data/proto_docs/google/api/monitored_resource.rb +138 -0
  23. data/proto_docs/google/api/monitoring.rb +110 -0
  24. data/proto_docs/google/api/quota.rb +207 -0
  25. data/proto_docs/google/api/resource.rb +283 -0
  26. data/proto_docs/google/api/serviceusage/v1/resources.rb +122 -0
  27. data/proto_docs/google/api/serviceusage/v1/serviceusage.rb +242 -0
  28. data/proto_docs/google/api/usage.rb +100 -0
  29. data/proto_docs/google/longrunning/operations.rb +164 -0
  30. data/proto_docs/google/protobuf/any.rb +141 -0
  31. data/proto_docs/google/protobuf/api.rb +194 -0
  32. data/proto_docs/google/protobuf/duration.rb +98 -0
  33. data/proto_docs/google/protobuf/empty.rb +36 -0
  34. data/proto_docs/google/protobuf/source_context.rb +33 -0
  35. data/proto_docs/google/protobuf/struct.rb +96 -0
  36. data/proto_docs/google/protobuf/type.rb +223 -0
  37. data/proto_docs/google/rpc/status.rb +46 -0
  38. metadata +229 -0
@@ -0,0 +1,98 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 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 Protobuf
22
+ # A Duration represents a signed, fixed-length span of time represented
23
+ # as a count of seconds and fractions of seconds at nanosecond
24
+ # resolution. It is independent of any calendar and concepts like "day"
25
+ # or "month". It is related to Timestamp in that the difference between
26
+ # two Timestamp values is a Duration and it can be added or subtracted
27
+ # from a Timestamp. Range is approximately +-10,000 years.
28
+ #
29
+ # # Examples
30
+ #
31
+ # Example 1: Compute Duration from two Timestamps in pseudo code.
32
+ #
33
+ # Timestamp start = ...;
34
+ # Timestamp end = ...;
35
+ # Duration duration = ...;
36
+ #
37
+ # duration.seconds = end.seconds - start.seconds;
38
+ # duration.nanos = end.nanos - start.nanos;
39
+ #
40
+ # if (duration.seconds < 0 && duration.nanos > 0) {
41
+ # duration.seconds += 1;
42
+ # duration.nanos -= 1000000000;
43
+ # } else if (duration.seconds > 0 && duration.nanos < 0) {
44
+ # duration.seconds -= 1;
45
+ # duration.nanos += 1000000000;
46
+ # }
47
+ #
48
+ # Example 2: Compute Timestamp from Timestamp + Duration in pseudo code.
49
+ #
50
+ # Timestamp start = ...;
51
+ # Duration duration = ...;
52
+ # Timestamp end = ...;
53
+ #
54
+ # end.seconds = start.seconds + duration.seconds;
55
+ # end.nanos = start.nanos + duration.nanos;
56
+ #
57
+ # if (end.nanos < 0) {
58
+ # end.seconds -= 1;
59
+ # end.nanos += 1000000000;
60
+ # } else if (end.nanos >= 1000000000) {
61
+ # end.seconds += 1;
62
+ # end.nanos -= 1000000000;
63
+ # }
64
+ #
65
+ # Example 3: Compute Duration from datetime.timedelta in Python.
66
+ #
67
+ # td = datetime.timedelta(days=3, minutes=10)
68
+ # duration = Duration()
69
+ # duration.FromTimedelta(td)
70
+ #
71
+ # # JSON Mapping
72
+ #
73
+ # In JSON format, the Duration type is encoded as a string rather than an
74
+ # object, where the string ends in the suffix "s" (indicating seconds) and
75
+ # is preceded by the number of seconds, with nanoseconds expressed as
76
+ # fractional seconds. For example, 3 seconds with 0 nanoseconds should be
77
+ # encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should
78
+ # be expressed in JSON format as "3.000000001s", and 3 seconds and 1
79
+ # microsecond should be expressed in JSON format as "3.000001s".
80
+ # @!attribute [rw] seconds
81
+ # @return [::Integer]
82
+ # Signed seconds of the span of time. Must be from -315,576,000,000
83
+ # to +315,576,000,000 inclusive. Note: these bounds are computed from:
84
+ # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
85
+ # @!attribute [rw] nanos
86
+ # @return [::Integer]
87
+ # Signed fractions of a second at nanosecond resolution of the span
88
+ # of time. Durations less than one second are represented with a 0
89
+ # `seconds` field and a positive or negative `nanos` field. For durations
90
+ # of one second or more, a non-zero value for the `nanos` field must be
91
+ # of the same sign as the `seconds` field. Must be from -999,999,999
92
+ # to +999,999,999 inclusive.
93
+ class Duration
94
+ include ::Google::Protobuf::MessageExts
95
+ extend ::Google::Protobuf::MessageExts::ClassMethods
96
+ end
97
+ end
98
+ end
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 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 Protobuf
22
+ # A generic empty message that you can re-use to avoid defining duplicated
23
+ # empty messages in your APIs. A typical example is to use it as the request
24
+ # or the response type of an API method. For instance:
25
+ #
26
+ # service Foo {
27
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
28
+ # }
29
+ #
30
+ # The JSON representation for `Empty` is empty JSON object `{}`.
31
+ class Empty
32
+ include ::Google::Protobuf::MessageExts
33
+ extend ::Google::Protobuf::MessageExts::ClassMethods
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,33 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 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 Protobuf
22
+ # `SourceContext` represents information about the source of a
23
+ # protobuf element, like the file in which it is defined.
24
+ # @!attribute [rw] file_name
25
+ # @return [::String]
26
+ # The path-qualified name of the .proto file that contained the associated
27
+ # protobuf element. For example: `"google/protobuf/source_context.proto"`.
28
+ class SourceContext
29
+ include ::Google::Protobuf::MessageExts
30
+ extend ::Google::Protobuf::MessageExts::ClassMethods
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,96 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 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 Protobuf
22
+ # `Struct` represents a structured data value, consisting of fields
23
+ # which map to dynamically typed values. In some languages, `Struct`
24
+ # might be supported by a native representation. For example, in
25
+ # scripting languages like JS a struct is represented as an
26
+ # object. The details of that representation are described together
27
+ # with the proto support for the language.
28
+ #
29
+ # The JSON representation for `Struct` is JSON object.
30
+ # @!attribute [rw] fields
31
+ # @return [::Google::Protobuf::Map{::String => ::Google::Protobuf::Value}]
32
+ # Unordered map of dynamically typed values.
33
+ class Struct
34
+ include ::Google::Protobuf::MessageExts
35
+ extend ::Google::Protobuf::MessageExts::ClassMethods
36
+
37
+ # @!attribute [rw] key
38
+ # @return [::String]
39
+ # @!attribute [rw] value
40
+ # @return [::Google::Protobuf::Value]
41
+ class FieldsEntry
42
+ include ::Google::Protobuf::MessageExts
43
+ extend ::Google::Protobuf::MessageExts::ClassMethods
44
+ end
45
+ end
46
+
47
+ # `Value` represents a dynamically typed value which can be either
48
+ # null, a number, a string, a boolean, a recursive struct value, or a
49
+ # list of values. A producer of value is expected to set one of that
50
+ # variants, absence of any variant indicates an error.
51
+ #
52
+ # The JSON representation for `Value` is JSON value.
53
+ # @!attribute [rw] null_value
54
+ # @return [::Google::Protobuf::NullValue]
55
+ # Represents a null value.
56
+ # @!attribute [rw] number_value
57
+ # @return [::Float]
58
+ # Represents a double value.
59
+ # @!attribute [rw] string_value
60
+ # @return [::String]
61
+ # Represents a string value.
62
+ # @!attribute [rw] bool_value
63
+ # @return [::Boolean]
64
+ # Represents a boolean value.
65
+ # @!attribute [rw] struct_value
66
+ # @return [::Google::Protobuf::Struct]
67
+ # Represents a structured value.
68
+ # @!attribute [rw] list_value
69
+ # @return [::Google::Protobuf::ListValue]
70
+ # Represents a repeated `Value`.
71
+ class Value
72
+ include ::Google::Protobuf::MessageExts
73
+ extend ::Google::Protobuf::MessageExts::ClassMethods
74
+ end
75
+
76
+ # `ListValue` is a wrapper around a repeated field of values.
77
+ #
78
+ # The JSON representation for `ListValue` is JSON array.
79
+ # @!attribute [rw] values
80
+ # @return [::Array<::Google::Protobuf::Value>]
81
+ # Repeated field of dynamically typed values.
82
+ class ListValue
83
+ include ::Google::Protobuf::MessageExts
84
+ extend ::Google::Protobuf::MessageExts::ClassMethods
85
+ end
86
+
87
+ # `NullValue` is a singleton enumeration to represent the null value for the
88
+ # `Value` type union.
89
+ #
90
+ # The JSON representation for `NullValue` is JSON `null`.
91
+ module NullValue
92
+ # Null value.
93
+ NULL_VALUE = 0
94
+ end
95
+ end
96
+ end
@@ -0,0 +1,223 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 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 Protobuf
22
+ # A protocol buffer message type.
23
+ # @!attribute [rw] name
24
+ # @return [::String]
25
+ # The fully qualified message name.
26
+ # @!attribute [rw] fields
27
+ # @return [::Array<::Google::Protobuf::Field>]
28
+ # The list of fields.
29
+ # @!attribute [rw] oneofs
30
+ # @return [::Array<::String>]
31
+ # The list of types appearing in `oneof` definitions in this type.
32
+ # @!attribute [rw] options
33
+ # @return [::Array<::Google::Protobuf::Option>]
34
+ # The protocol buffer options.
35
+ # @!attribute [rw] source_context
36
+ # @return [::Google::Protobuf::SourceContext]
37
+ # The source context.
38
+ # @!attribute [rw] syntax
39
+ # @return [::Google::Protobuf::Syntax]
40
+ # The source syntax.
41
+ class Type
42
+ include ::Google::Protobuf::MessageExts
43
+ extend ::Google::Protobuf::MessageExts::ClassMethods
44
+ end
45
+
46
+ # A single field of a message type.
47
+ # @!attribute [rw] kind
48
+ # @return [::Google::Protobuf::Field::Kind]
49
+ # The field type.
50
+ # @!attribute [rw] cardinality
51
+ # @return [::Google::Protobuf::Field::Cardinality]
52
+ # The field cardinality.
53
+ # @!attribute [rw] number
54
+ # @return [::Integer]
55
+ # The field number.
56
+ # @!attribute [rw] name
57
+ # @return [::String]
58
+ # The field name.
59
+ # @!attribute [rw] type_url
60
+ # @return [::String]
61
+ # The field type URL, without the scheme, for message or enumeration
62
+ # types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`.
63
+ # @!attribute [rw] oneof_index
64
+ # @return [::Integer]
65
+ # The index of the field type in `Type.oneofs`, for message or enumeration
66
+ # types. The first type has index 1; zero means the type is not in the list.
67
+ # @!attribute [rw] packed
68
+ # @return [::Boolean]
69
+ # Whether to use alternative packed wire representation.
70
+ # @!attribute [rw] options
71
+ # @return [::Array<::Google::Protobuf::Option>]
72
+ # The protocol buffer options.
73
+ # @!attribute [rw] json_name
74
+ # @return [::String]
75
+ # The field JSON name.
76
+ # @!attribute [rw] default_value
77
+ # @return [::String]
78
+ # The string value of the default value of this field. Proto2 syntax only.
79
+ class Field
80
+ include ::Google::Protobuf::MessageExts
81
+ extend ::Google::Protobuf::MessageExts::ClassMethods
82
+
83
+ # Basic field types.
84
+ module Kind
85
+ # Field type unknown.
86
+ TYPE_UNKNOWN = 0
87
+
88
+ # Field type double.
89
+ TYPE_DOUBLE = 1
90
+
91
+ # Field type float.
92
+ TYPE_FLOAT = 2
93
+
94
+ # Field type int64.
95
+ TYPE_INT64 = 3
96
+
97
+ # Field type uint64.
98
+ TYPE_UINT64 = 4
99
+
100
+ # Field type int32.
101
+ TYPE_INT32 = 5
102
+
103
+ # Field type fixed64.
104
+ TYPE_FIXED64 = 6
105
+
106
+ # Field type fixed32.
107
+ TYPE_FIXED32 = 7
108
+
109
+ # Field type bool.
110
+ TYPE_BOOL = 8
111
+
112
+ # Field type string.
113
+ TYPE_STRING = 9
114
+
115
+ # Field type group. Proto2 syntax only, and deprecated.
116
+ TYPE_GROUP = 10
117
+
118
+ # Field type message.
119
+ TYPE_MESSAGE = 11
120
+
121
+ # Field type bytes.
122
+ TYPE_BYTES = 12
123
+
124
+ # Field type uint32.
125
+ TYPE_UINT32 = 13
126
+
127
+ # Field type enum.
128
+ TYPE_ENUM = 14
129
+
130
+ # Field type sfixed32.
131
+ TYPE_SFIXED32 = 15
132
+
133
+ # Field type sfixed64.
134
+ TYPE_SFIXED64 = 16
135
+
136
+ # Field type sint32.
137
+ TYPE_SINT32 = 17
138
+
139
+ # Field type sint64.
140
+ TYPE_SINT64 = 18
141
+ end
142
+
143
+ # Whether a field is optional, required, or repeated.
144
+ module Cardinality
145
+ # For fields with unknown cardinality.
146
+ CARDINALITY_UNKNOWN = 0
147
+
148
+ # For optional fields.
149
+ CARDINALITY_OPTIONAL = 1
150
+
151
+ # For required fields. Proto2 syntax only.
152
+ CARDINALITY_REQUIRED = 2
153
+
154
+ # For repeated fields.
155
+ CARDINALITY_REPEATED = 3
156
+ end
157
+ end
158
+
159
+ # Enum type definition.
160
+ # @!attribute [rw] name
161
+ # @return [::String]
162
+ # Enum type name.
163
+ # @!attribute [rw] enumvalue
164
+ # @return [::Array<::Google::Protobuf::EnumValue>]
165
+ # Enum value definitions.
166
+ # @!attribute [rw] options
167
+ # @return [::Array<::Google::Protobuf::Option>]
168
+ # Protocol buffer options.
169
+ # @!attribute [rw] source_context
170
+ # @return [::Google::Protobuf::SourceContext]
171
+ # The source context.
172
+ # @!attribute [rw] syntax
173
+ # @return [::Google::Protobuf::Syntax]
174
+ # The source syntax.
175
+ class Enum
176
+ include ::Google::Protobuf::MessageExts
177
+ extend ::Google::Protobuf::MessageExts::ClassMethods
178
+ end
179
+
180
+ # Enum value definition.
181
+ # @!attribute [rw] name
182
+ # @return [::String]
183
+ # Enum value name.
184
+ # @!attribute [rw] number
185
+ # @return [::Integer]
186
+ # Enum value number.
187
+ # @!attribute [rw] options
188
+ # @return [::Array<::Google::Protobuf::Option>]
189
+ # Protocol buffer options.
190
+ class EnumValue
191
+ include ::Google::Protobuf::MessageExts
192
+ extend ::Google::Protobuf::MessageExts::ClassMethods
193
+ end
194
+
195
+ # A protocol buffer option, which can be attached to a message, field,
196
+ # enumeration, etc.
197
+ # @!attribute [rw] name
198
+ # @return [::String]
199
+ # The option's name. For protobuf built-in options (options defined in
200
+ # descriptor.proto), this is the short name. For example, `"map_entry"`.
201
+ # For custom options, it should be the fully-qualified name. For example,
202
+ # `"google.api.http"`.
203
+ # @!attribute [rw] value
204
+ # @return [::Google::Protobuf::Any]
205
+ # The option's value packed in an Any message. If the value is a primitive,
206
+ # the corresponding wrapper type defined in google/protobuf/wrappers.proto
207
+ # should be used. If the value is an enum, it should be stored as an int32
208
+ # value using the google.protobuf.Int32Value type.
209
+ class Option
210
+ include ::Google::Protobuf::MessageExts
211
+ extend ::Google::Protobuf::MessageExts::ClassMethods
212
+ end
213
+
214
+ # The syntax in which a protocol buffer element is defined.
215
+ module Syntax
216
+ # Syntax `proto2`.
217
+ SYNTAX_PROTO2 = 0
218
+
219
+ # Syntax `proto3`.
220
+ SYNTAX_PROTO3 = 1
221
+ end
222
+ end
223
+ end