google-api-client 0.9.26 → 0.9.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -0
  3. data/README.md +1 -1
  4. data/api_names.yaml +36326 -36213
  5. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +155 -155
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +32 -32
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +104 -104
  9. data/generated/google/apis/adsense_v1_4.rb +1 -1
  10. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  11. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  12. data/generated/google/apis/appstate_v1.rb +1 -1
  13. data/generated/google/apis/calendar_v3.rb +1 -1
  14. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  15. data/generated/google/apis/cloudbuild_v1/classes.rb +260 -248
  16. data/generated/google/apis/cloudbuild_v1/representations.rb +47 -45
  17. data/generated/google/apis/cloudbuild_v1/service.rb +167 -167
  18. data/generated/google/apis/clouddebugger_v2.rb +3 -3
  19. data/generated/google/apis/clouddebugger_v2/classes.rb +569 -569
  20. data/generated/google/apis/clouddebugger_v2/representations.rb +146 -146
  21. data/generated/google/apis/clouddebugger_v2/service.rb +145 -145
  22. data/generated/google/apis/cloudkms_v1beta1.rb +4 -3
  23. data/generated/google/apis/cloudkms_v1beta1/classes.rb +428 -428
  24. data/generated/google/apis/cloudkms_v1beta1/representations.rb +115 -115
  25. data/generated/google/apis/cloudkms_v1beta1/service.rb +161 -160
  26. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  27. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  28. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +583 -583
  29. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +100 -100
  30. data/generated/google/apis/cloudresourcemanager_v1/service.rb +116 -116
  31. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  32. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +195 -195
  33. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +58 -58
  34. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +316 -316
  35. data/generated/google/apis/content_v2.rb +1 -1
  36. data/generated/google/apis/content_v2/classes.rb +12 -0
  37. data/generated/google/apis/content_v2/representations.rb +2 -0
  38. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  39. data/generated/google/apis/dataflow_v1b3/classes.rb +2833 -2694
  40. data/generated/google/apis/dataflow_v1b3/representations.rb +666 -666
  41. data/generated/google/apis/dataflow_v1b3/service.rb +351 -349
  42. data/generated/google/apis/datastore_v1.rb +1 -1
  43. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  44. data/generated/google/apis/deploymentmanager_v2/classes.rb +21 -12
  45. data/generated/google/apis/deploymentmanager_v2/representations.rb +1 -0
  46. data/generated/google/apis/deploymentmanager_v2/service.rb +5 -5
  47. data/generated/google/apis/dns_v1.rb +1 -1
  48. data/generated/google/apis/dns_v2beta1.rb +1 -1
  49. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  50. data/generated/google/apis/doubleclicksearch_v2/classes.rb +6 -4
  51. data/generated/google/apis/drive_v2.rb +1 -1
  52. data/generated/google/apis/drive_v2/classes.rb +26 -0
  53. data/generated/google/apis/drive_v2/representations.rb +14 -0
  54. data/generated/google/apis/drive_v2/service.rb +38 -2
  55. data/generated/google/apis/drive_v3.rb +1 -1
  56. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  57. data/generated/google/apis/games_management_v1management.rb +1 -1
  58. data/generated/google/apis/games_v1.rb +1 -1
  59. data/generated/google/apis/genomics_v1.rb +4 -4
  60. data/generated/google/apis/genomics_v1/classes.rb +2317 -2317
  61. data/generated/google/apis/genomics_v1/representations.rb +476 -476
  62. data/generated/google/apis/genomics_v1/service.rb +1038 -1038
  63. data/generated/google/apis/gmail_v1.rb +1 -1
  64. data/generated/google/apis/gmail_v1/classes.rb +82 -1
  65. data/generated/google/apis/gmail_v1/representations.rb +33 -0
  66. data/generated/google/apis/gmail_v1/service.rb +215 -5
  67. data/generated/google/apis/iam_v1.rb +1 -1
  68. data/generated/google/apis/iam_v1/classes.rb +446 -343
  69. data/generated/google/apis/iam_v1/representations.rb +112 -85
  70. data/generated/google/apis/iam_v1/service.rb +248 -192
  71. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  72. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  73. data/generated/google/apis/kgsearch_v1/service.rb +15 -15
  74. data/generated/google/apis/language_v1beta1.rb +1 -1
  75. data/generated/google/apis/language_v1beta1/classes.rb +396 -396
  76. data/generated/google/apis/language_v1beta1/representations.rb +97 -97
  77. data/generated/google/apis/language_v1beta1/service.rb +42 -42
  78. data/generated/google/apis/logging_v2beta1.rb +1 -1
  79. data/generated/google/apis/logging_v2beta1/classes.rb +855 -855
  80. data/generated/google/apis/logging_v2beta1/representations.rb +155 -155
  81. data/generated/google/apis/logging_v2beta1/service.rb +214 -214
  82. data/generated/google/apis/monitoring_v3.rb +4 -4
  83. data/generated/google/apis/monitoring_v3/classes.rb +551 -551
  84. data/generated/google/apis/monitoring_v3/representations.rb +123 -123
  85. data/generated/google/apis/monitoring_v3/service.rb +80 -80
  86. data/generated/google/apis/plus_domains_v1.rb +1 -1
  87. data/generated/google/apis/plus_v1.rb +1 -1
  88. data/generated/google/apis/pubsub_v1.rb +3 -3
  89. data/generated/google/apis/pubsub_v1/classes.rb +391 -391
  90. data/generated/google/apis/pubsub_v1/representations.rb +83 -83
  91. data/generated/google/apis/pubsub_v1/service.rb +257 -257
  92. data/generated/google/apis/sheets_v4.rb +1 -1
  93. data/generated/google/apis/sheets_v4/classes.rb +4334 -4334
  94. data/generated/google/apis/sheets_v4/representations.rb +861 -861
  95. data/generated/google/apis/sheets_v4/service.rb +191 -191
  96. data/generated/google/apis/slides_v1.rb +7 -7
  97. data/generated/google/apis/slides_v1/classes.rb +2726 -2555
  98. data/generated/google/apis/slides_v1/representations.rb +678 -607
  99. data/generated/google/apis/slides_v1/service.rb +16 -16
  100. data/generated/google/apis/speech_v1beta1.rb +1 -1
  101. data/generated/google/apis/speech_v1beta1/classes.rb +57 -59
  102. data/generated/google/apis/speech_v1beta1/representations.rb +9 -9
  103. data/generated/google/apis/speech_v1beta1/service.rb +63 -63
  104. data/generated/google/apis/storage_v1.rb +1 -1
  105. data/generated/google/apis/storage_v1/classes.rb +4 -3
  106. data/generated/google/apis/vision_v1/classes.rb +925 -925
  107. data/generated/google/apis/vision_v1/representations.rb +134 -134
  108. data/generated/google/apis/vision_v1/service.rb +4 -4
  109. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  110. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  111. data/generated/google/apis/youtube_v3.rb +1 -1
  112. data/generated/google/apis/youtube_v3/classes.rb +234 -1
  113. data/generated/google/apis/youtube_v3/representations.rb +83 -0
  114. data/generated/google/apis/youtube_v3/service.rb +55 -0
  115. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  116. data/generated/google/apis/youtubereporting_v1/classes.rb +105 -105
  117. data/generated/google/apis/youtubereporting_v1/representations.rb +31 -31
  118. data/generated/google/apis/youtubereporting_v1/service.rb +78 -78
  119. data/lib/google/apis/core/api_command.rb +11 -5
  120. data/lib/google/apis/core/base_service.rb +7 -5
  121. data/lib/google/apis/errors.rb +4 -0
  122. data/lib/google/apis/version.rb +1 -1
  123. metadata +28 -28
@@ -27,10 +27,7 @@ module Google
27
27
  # @see https://cloud.google.com/monitoring/api/
28
28
  module MonitoringV3
29
29
  VERSION = 'V3'
30
- REVISION = '20170126'
31
-
32
- # View and write monitoring data for all of your Google and third-party Cloud and API projects
33
- AUTH_MONITORING = 'https://www.googleapis.com/auth/monitoring'
30
+ REVISION = '20170203'
34
31
 
35
32
  # Publish metric data to your Google Cloud projects
36
33
  AUTH_MONITORING_WRITE = 'https://www.googleapis.com/auth/monitoring.write'
@@ -40,6 +37,9 @@ module Google
40
37
 
41
38
  # View monitoring data for all of your Google Cloud and third-party projects
42
39
  AUTH_MONITORING_READ = 'https://www.googleapis.com/auth/monitoring.read'
40
+
41
+ # View and write monitoring data for all of your Google and third-party Cloud and API projects
42
+ AUTH_MONITORING = 'https://www.googleapis.com/auth/monitoring'
43
43
  end
44
44
  end
45
45
  end
@@ -22,258 +22,21 @@ module Google
22
22
  module Apis
23
23
  module MonitoringV3
24
24
 
25
- # A Distribution may optionally contain a histogram of the values in the
26
- # population. The histogram is given in bucket_counts as counts of values that
27
- # fall into one of a sequence of non-overlapping buckets. The sequence of
28
- # buckets is described by bucket_options.A bucket specifies an inclusive lower
29
- # bound and exclusive upper bound for the values that are counted for that
30
- # bucket. The upper bound of a bucket is strictly greater than the lower bound.
31
- # The sequence of N buckets for a Distribution consists of an underflow bucket (
32
- # number 0), zero or more finite buckets (number 1 through N - 2) and an
33
- # overflow bucket (number N - 1). The buckets are contiguous: the lower bound of
34
- # bucket i (i > 0) is the same as the upper bound of bucket i - 1. The buckets
35
- # span the whole range of finite values: lower bound of the underflow bucket is -
36
- # infinity and the upper bound of the overflow bucket is +infinity. The finite
37
- # buckets are so-called because both bounds are finite.BucketOptions describes
38
- # bucket boundaries in one of three ways. Two describe the boundaries by giving
39
- # parameters for a formula to generate boundaries and one gives the bucket
40
- # boundaries explicitly.If bucket_options is not given, then no bucket_counts
41
- # may be given.
42
- class BucketOptions
43
- include Google::Apis::Core::Hashable
44
-
45
- # Specify a sequence of buckets that have a width that is proportional to the
46
- # value of the lower bound. Each bucket represents a constant relative
47
- # uncertainty on a specific value in the bucket.Defines num_finite_buckets + 2 (=
48
- # N) buckets with these boundaries for bucket i:Upper bound (0 <= i < N-1):
49
- # scale * (growth_factor ^ i). Lower bound (1 <= i < N): scale * (growth_factor
50
- # ^ (i - 1)).
51
- # Corresponds to the JSON property `exponentialBuckets`
52
- # @return [Google::Apis::MonitoringV3::Exponential]
53
- attr_accessor :exponential_buckets
54
-
55
- # Specify a sequence of buckets that all have the same width (except overflow
56
- # and underflow). Each bucket represents a constant absolute uncertainty on the
57
- # specific value in the bucket.Defines num_finite_buckets + 2 (= N) buckets with
58
- # these boundaries for bucket i:Upper bound (0 <= i < N-1): offset + (width * i).
59
- # Lower bound (1 <= i < N): offset + (width * (i - 1)).
60
- # Corresponds to the JSON property `linearBuckets`
61
- # @return [Google::Apis::MonitoringV3::Linear]
62
- attr_accessor :linear_buckets
63
-
64
- # A set of buckets with arbitrary widths.Defines size(bounds) + 1 (= N) buckets
65
- # with these boundaries for bucket i:Upper bound (0 <= i < N-1): boundsi Lower
66
- # bound (1 <= i < N); boundsi - 1There must be at least one element in bounds.
67
- # If bounds has only one element, there are no finite buckets, and that single
68
- # element is the common boundary of the overflow and underflow buckets.
69
- # Corresponds to the JSON property `explicitBuckets`
70
- # @return [Google::Apis::MonitoringV3::Explicit]
71
- attr_accessor :explicit_buckets
72
-
73
- def initialize(**args)
74
- update!(**args)
75
- end
76
-
77
- # Update properties of this object
78
- def update!(**args)
79
- @exponential_buckets = args[:exponential_buckets] if args.key?(:exponential_buckets)
80
- @linear_buckets = args[:linear_buckets] if args.key?(:linear_buckets)
81
- @explicit_buckets = args[:explicit_buckets] if args.key?(:explicit_buckets)
82
- end
83
- end
84
-
85
- # A single data point from a collectd-based plugin.
86
- class CollectdValue
87
- include Google::Apis::Core::Hashable
88
-
89
- # The data source for the collectd value. For example there are two data sources
90
- # for network measurements: "rx" and "tx".
91
- # Corresponds to the JSON property `dataSourceName`
92
- # @return [String]
93
- attr_accessor :data_source_name
94
-
95
- # A single strongly-typed value.
96
- # Corresponds to the JSON property `value`
97
- # @return [Google::Apis::MonitoringV3::TypedValue]
98
- attr_accessor :value
99
-
100
- # The type of measurement.
101
- # Corresponds to the JSON property `dataSourceType`
102
- # @return [String]
103
- attr_accessor :data_source_type
104
-
105
- def initialize(**args)
106
- update!(**args)
107
- end
108
-
109
- # Update properties of this object
110
- def update!(**args)
111
- @data_source_name = args[:data_source_name] if args.key?(:data_source_name)
112
- @value = args[:value] if args.key?(:value)
113
- @data_source_type = args[:data_source_type] if args.key?(:data_source_type)
114
- end
115
- end
116
-
117
- # SourceContext represents information about the source of a protobuf element,
118
- # like the file in which it is defined.
119
- class SourceContext
120
- include Google::Apis::Core::Hashable
121
-
122
- # The path-qualified name of the .proto file that contained the associated
123
- # protobuf element. For example: "google/protobuf/source_context.proto".
124
- # Corresponds to the JSON property `fileName`
125
- # @return [String]
126
- attr_accessor :file_name
127
-
128
- def initialize(**args)
129
- update!(**args)
130
- end
131
-
132
- # Update properties of this object
133
- def update!(**args)
134
- @file_name = args[:file_name] if args.key?(:file_name)
135
- end
136
- end
137
-
138
- # Defines a metric type and its schema. Once a metric descriptor is created,
139
- # deleting or altering it stops data collection and makes the metric type's
140
- # existing data unusable.
141
- class MetricDescriptor
25
+ # The ListGroups response.
26
+ class ListGroupsResponse
142
27
  include Google::Apis::Core::Hashable
143
28
 
144
- # The unit in which the metric value is reported. It is only applicable if the
145
- # value_type is INT64, DOUBLE, or DISTRIBUTION. The supported units are a subset
146
- # of The Unified Code for Units of Measure (http://unitsofmeasure.org/ucum.html)
147
- # standard:Basic units (UNIT)
148
- # bit bit
149
- # By byte
150
- # s second
151
- # min minute
152
- # h hour
153
- # d dayPrefixes (PREFIX)
154
- # k kilo (10**3)
155
- # M mega (10**6)
156
- # G giga (10**9)
157
- # T tera (10**12)
158
- # P peta (10**15)
159
- # E exa (10**18)
160
- # Z zetta (10**21)
161
- # Y yotta (10**24)
162
- # m milli (10**-3)
163
- # u micro (10**-6)
164
- # n nano (10**-9)
165
- # p pico (10**-12)
166
- # f femto (10**-15)
167
- # a atto (10**-18)
168
- # z zepto (10**-21)
169
- # y yocto (10**-24)
170
- # Ki kibi (2**10)
171
- # Mi mebi (2**20)
172
- # Gi gibi (2**30)
173
- # Ti tebi (2**40)GrammarThe grammar includes the dimensionless unit 1, such as 1/
174
- # s.The grammar also includes these connectors:
175
- # / division (as an infix operator, e.g. 1/s).
176
- # . multiplication (as an infix operator, e.g. GBy.d)The grammar for a unit is
177
- # as follows:
178
- # Expression = Component ` "." Component ` ` "/" Component ` ;
179
- # Component = [ PREFIX ] UNIT [ Annotation ]
180
- # | Annotation
181
- # | "1"
182
- # ;
183
- # Annotation = "`" NAME "`" ;
184
- # Notes:
185
- # Annotation is just a comment if it follows a UNIT and is equivalent to 1 if
186
- # it is used alone. For examples, `requests`/s == 1/s, By`transmitted`/s == By/
187
- # s.
188
- # NAME is a sequence of non-blank printable ASCII characters not containing '`'
189
- # or '`'.
190
- # Corresponds to the JSON property `unit`
191
- # @return [String]
192
- attr_accessor :unit
193
-
194
- # The set of labels that can be used to describe a specific instance of this
195
- # metric type. For example, the appengine.googleapis.com/http/server/
196
- # response_latencies metric type has a label for the HTTP response code,
197
- # response_code, so you can look at latencies for successful responses or just
198
- # for responses that failed.
199
- # Corresponds to the JSON property `labels`
200
- # @return [Array<Google::Apis::MonitoringV3::LabelDescriptor>]
201
- attr_accessor :labels
202
-
203
- # The resource name of the metric descriptor. Depending on the implementation,
204
- # the name typically includes: (1) the parent resource name that defines the
205
- # scope of the metric type or of its data; and (2) the metric's URL-encoded type,
206
- # which also appears in the type field of this descriptor. For example,
207
- # following is the resource name of a custom metric within the GCP project my-
208
- # project-id:
209
- # "projects/my-project-id/metricDescriptors/custom.googleapis.com%2Finvoice%
210
- # 2Fpaid%2Famount"
211
- # Corresponds to the JSON property `name`
212
- # @return [String]
213
- attr_accessor :name
214
-
215
- # The metric type, including its DNS name prefix. The type is not URL-encoded.
216
- # All user-defined custom metric types have the DNS name custom.googleapis.com.
217
- # Metric types should use a natural hierarchical grouping. For example:
218
- # "custom.googleapis.com/invoice/paid/amount"
219
- # "appengine.googleapis.com/http/server/response_latencies"
220
- # Corresponds to the JSON property `type`
221
- # @return [String]
222
- attr_accessor :type
223
-
224
- # Whether the measurement is an integer, a floating-point number, etc. Some
225
- # combinations of metric_kind and value_type might not be supported.
226
- # Corresponds to the JSON property `valueType`
227
- # @return [String]
228
- attr_accessor :value_type
229
-
230
- # Whether the metric records instantaneous values, changes to a value, etc. Some
231
- # combinations of metric_kind and value_type might not be supported.
232
- # Corresponds to the JSON property `metricKind`
233
- # @return [String]
234
- attr_accessor :metric_kind
235
-
236
- # A concise name for the metric, which can be displayed in user interfaces. Use
237
- # sentence case without an ending period, for example "Request count".
238
- # Corresponds to the JSON property `displayName`
239
- # @return [String]
240
- attr_accessor :display_name
241
-
242
- # A detailed description of the metric, which can be used in documentation.
243
- # Corresponds to the JSON property `description`
29
+ # If there are more results than have been returned, then this field is set to a
30
+ # non-empty value. To see the additional results, use that value as pageToken in
31
+ # the next call to this method.
32
+ # Corresponds to the JSON property `nextPageToken`
244
33
  # @return [String]
245
- attr_accessor :description
246
-
247
- def initialize(**args)
248
- update!(**args)
249
- end
250
-
251
- # Update properties of this object
252
- def update!(**args)
253
- @unit = args[:unit] if args.key?(:unit)
254
- @labels = args[:labels] if args.key?(:labels)
255
- @name = args[:name] if args.key?(:name)
256
- @type = args[:type] if args.key?(:type)
257
- @value_type = args[:value_type] if args.key?(:value_type)
258
- @metric_kind = args[:metric_kind] if args.key?(:metric_kind)
259
- @display_name = args[:display_name] if args.key?(:display_name)
260
- @description = args[:description] if args.key?(:description)
261
- end
262
- end
263
-
264
- # The range of the population values.
265
- class Range
266
- include Google::Apis::Core::Hashable
267
-
268
- # The minimum of the population values.
269
- # Corresponds to the JSON property `min`
270
- # @return [Float]
271
- attr_accessor :min
34
+ attr_accessor :next_page_token
272
35
 
273
- # The maximum of the population values.
274
- # Corresponds to the JSON property `max`
275
- # @return [Float]
276
- attr_accessor :max
36
+ # The groups that match the specified filters.
37
+ # Corresponds to the JSON property `group`
38
+ # @return [Array<Google::Apis::MonitoringV3::Group>]
39
+ attr_accessor :group
277
40
 
278
41
  def initialize(**args)
279
42
  update!(**args)
@@ -281,19 +44,19 @@ module Google
281
44
 
282
45
  # Update properties of this object
283
46
  def update!(**args)
284
- @min = args[:min] if args.key?(:min)
285
- @max = args[:max] if args.key?(:max)
47
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
48
+ @group = args[:group] if args.key?(:group)
286
49
  end
287
50
  end
288
51
 
289
- # The ListGroups response.
290
- class ListGroupsResponse
52
+ # The ListGroupMembers response.
53
+ class ListGroupMembersResponse
291
54
  include Google::Apis::Core::Hashable
292
55
 
293
- # The groups that match the specified filters.
294
- # Corresponds to the JSON property `group`
295
- # @return [Array<Google::Apis::MonitoringV3::Group>]
296
- attr_accessor :group
56
+ # A set of monitored resources in the group.
57
+ # Corresponds to the JSON property `members`
58
+ # @return [Array<Google::Apis::MonitoringV3::MonitoredResource>]
59
+ attr_accessor :members
297
60
 
298
61
  # If there are more results than have been returned, then this field is set to a
299
62
  # non-empty value. To see the additional results, use that value as pageToken in
@@ -302,14 +65,20 @@ module Google
302
65
  # @return [String]
303
66
  attr_accessor :next_page_token
304
67
 
68
+ # The total number of elements matching this request.
69
+ # Corresponds to the JSON property `totalSize`
70
+ # @return [Fixnum]
71
+ attr_accessor :total_size
72
+
305
73
  def initialize(**args)
306
74
  update!(**args)
307
75
  end
308
76
 
309
77
  # Update properties of this object
310
78
  def update!(**args)
311
- @group = args[:group] if args.key?(:group)
79
+ @members = args[:members] if args.key?(:members)
312
80
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
81
+ @total_size = args[:total_size] if args.key?(:total_size)
313
82
  end
314
83
  end
315
84
 
@@ -358,43 +127,16 @@ module Google
358
127
  end
359
128
  end
360
129
 
361
- # The ListGroupMembers response.
362
- class ListGroupMembersResponse
363
- include Google::Apis::Core::Hashable
364
-
365
- # If there are more results than have been returned, then this field is set to a
366
- # non-empty value. To see the additional results, use that value as pageToken in
367
- # the next call to this method.
368
- # Corresponds to the JSON property `nextPageToken`
369
- # @return [String]
370
- attr_accessor :next_page_token
371
-
372
- # The total number of elements matching this request.
373
- # Corresponds to the JSON property `totalSize`
374
- # @return [Fixnum]
375
- attr_accessor :total_size
376
-
377
- # A set of monitored resources in the group.
378
- # Corresponds to the JSON property `members`
379
- # @return [Array<Google::Apis::MonitoringV3::MonitoredResource>]
380
- attr_accessor :members
381
-
382
- def initialize(**args)
383
- update!(**args)
384
- end
385
-
386
- # Update properties of this object
387
- def update!(**args)
388
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
389
- @total_size = args[:total_size] if args.key?(:total_size)
390
- @members = args[:members] if args.key?(:members)
391
- end
392
- end
393
-
394
130
  # The ListMonitoredResourcDescriptors response.
395
131
  class ListMonitoredResourceDescriptorsResponse
396
132
  include Google::Apis::Core::Hashable
397
133
 
134
+ # The monitored resource descriptors that are available to this project and that
135
+ # match filter, if present.
136
+ # Corresponds to the JSON property `resourceDescriptors`
137
+ # @return [Array<Google::Apis::MonitoringV3::MonitoredResourceDescriptor>]
138
+ attr_accessor :resource_descriptors
139
+
398
140
  # If there are more results than have been returned, then this field is set to a
399
141
  # non-empty value. To see the additional results, use that value as pageToken in
400
142
  # the next call to this method.
@@ -402,20 +144,14 @@ module Google
402
144
  # @return [String]
403
145
  attr_accessor :next_page_token
404
146
 
405
- # The monitored resource descriptors that are available to this project and that
406
- # match filter, if present.
407
- # Corresponds to the JSON property `resourceDescriptors`
408
- # @return [Array<Google::Apis::MonitoringV3::MonitoredResourceDescriptor>]
409
- attr_accessor :resource_descriptors
410
-
411
147
  def initialize(**args)
412
148
  update!(**args)
413
149
  end
414
150
 
415
151
  # Update properties of this object
416
152
  def update!(**args)
417
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
418
153
  @resource_descriptors = args[:resource_descriptors] if args.key?(:resource_descriptors)
154
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
419
155
  end
420
156
  end
421
157
 
@@ -426,6 +162,22 @@ module Google
426
162
  class TimeSeries
427
163
  include Google::Apis::Core::Hashable
428
164
 
165
+ # An object representing a resource that can be used for monitoring, logging,
166
+ # billing, or other purposes. Examples include virtual machine instances,
167
+ # databases, and storage devices such as disks. The type field identifies a
168
+ # MonitoredResourceDescriptor object that describes the resource's schema.
169
+ # Information in the labels field identifies the actual resource and its
170
+ # attributes according to the schema. For example, a particular Compute Engine
171
+ # VM instance could be represented by the following object, because the
172
+ # MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and "
173
+ # zone":
174
+ # ` "type": "gce_instance",
175
+ # "labels": ` "instance_id": "12345678901234",
176
+ # "zone": "us-central1-a" ``
177
+ # Corresponds to the JSON property `resource`
178
+ # @return [Google::Apis::MonitoringV3::MonitoredResource]
179
+ attr_accessor :resource
180
+
429
181
  # The metric kind of the time series. When listing time series, this metric kind
430
182
  # might be different from the metric kind of the associated metric if this time
431
183
  # series is an alignment or reduction of other time series.When creating a time
@@ -462,33 +214,17 @@ module Google
462
214
  # @return [String]
463
215
  attr_accessor :value_type
464
216
 
465
- # An object representing a resource that can be used for monitoring, logging,
466
- # billing, or other purposes. Examples include virtual machine instances,
467
- # databases, and storage devices such as disks. The type field identifies a
468
- # MonitoredResourceDescriptor object that describes the resource's schema.
469
- # Information in the labels field identifies the actual resource and its
470
- # attributes according to the schema. For example, a particular Compute Engine
471
- # VM instance could be represented by the following object, because the
472
- # MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and "
473
- # zone":
474
- # ` "type": "gce_instance",
475
- # "labels": ` "instance_id": "12345678901234",
476
- # "zone": "us-central1-a" ``
477
- # Corresponds to the JSON property `resource`
478
- # @return [Google::Apis::MonitoringV3::MonitoredResource]
479
- attr_accessor :resource
480
-
481
217
  def initialize(**args)
482
218
  update!(**args)
483
219
  end
484
220
 
485
221
  # Update properties of this object
486
222
  def update!(**args)
223
+ @resource = args[:resource] if args.key?(:resource)
487
224
  @metric_kind = args[:metric_kind] if args.key?(:metric_kind)
488
225
  @metric = args[:metric] if args.key?(:metric)
489
226
  @points = args[:points] if args.key?(:points)
490
227
  @value_type = args[:value_type] if args.key?(:value_type)
491
- @resource = args[:resource] if args.key?(:resource)
492
228
  end
493
229
  end
494
230
 
@@ -529,6 +265,33 @@ module Google
529
265
  class Distribution
530
266
  include Google::Apis::Core::Hashable
531
267
 
268
+ # The range of the population values.
269
+ # Corresponds to the JSON property `range`
270
+ # @return [Google::Apis::MonitoringV3::Range]
271
+ attr_accessor :range
272
+
273
+ # The arithmetic mean of the values in the population. If count is zero then
274
+ # this field must be zero.
275
+ # Corresponds to the JSON property `mean`
276
+ # @return [Float]
277
+ attr_accessor :mean
278
+
279
+ # The number of values in the population. Must be non-negative.
280
+ # Corresponds to the JSON property `count`
281
+ # @return [String]
282
+ attr_accessor :count
283
+
284
+ # If bucket_options is given, then the sum of the values in bucket_counts must
285
+ # equal the value in count. If bucket_options is not given, no bucket_counts
286
+ # fields may be given.Bucket counts are given in order under the numbering
287
+ # scheme described above (the underflow bucket has number 0; the finite buckets,
288
+ # if any, have numbers 1 through N-2; the overflow bucket has number N-1).The
289
+ # size of bucket_counts must be no greater than N as defined in bucket_options.
290
+ # Any suffix of trailing zero bucket_count fields may be omitted.
291
+ # Corresponds to the JSON property `bucketCounts`
292
+ # @return [Array<String>]
293
+ attr_accessor :bucket_counts
294
+
532
295
  # A Distribution may optionally contain a histogram of the values in the
533
296
  # population. The histogram is given in bucket_counts as counts of values that
534
297
  # fall into one of a sequence of non-overlapping buckets. The sequence of
@@ -560,45 +323,18 @@ module Google
560
323
  # @return [Float]
561
324
  attr_accessor :sum_of_squared_deviation
562
325
 
563
- # The range of the population values.
564
- # Corresponds to the JSON property `range`
565
- # @return [Google::Apis::MonitoringV3::Range]
566
- attr_accessor :range
567
-
568
- # The number of values in the population. Must be non-negative.
569
- # Corresponds to the JSON property `count`
570
- # @return [String]
571
- attr_accessor :count
572
-
573
- # The arithmetic mean of the values in the population. If count is zero then
574
- # this field must be zero.
575
- # Corresponds to the JSON property `mean`
576
- # @return [Float]
577
- attr_accessor :mean
578
-
579
- # If bucket_options is given, then the sum of the values in bucket_counts must
580
- # equal the value in count. If bucket_options is not given, no bucket_counts
581
- # fields may be given.Bucket counts are given in order under the numbering
582
- # scheme described above (the underflow bucket has number 0; the finite buckets,
583
- # if any, have numbers 1 through N-2; the overflow bucket has number N-1).The
584
- # size of bucket_counts must be no greater than N as defined in bucket_options.
585
- # Any suffix of trailing zero bucket_count fields may be omitted.
586
- # Corresponds to the JSON property `bucketCounts`
587
- # @return [Array<String>]
588
- attr_accessor :bucket_counts
589
-
590
326
  def initialize(**args)
591
327
  update!(**args)
592
328
  end
593
329
 
594
330
  # Update properties of this object
595
331
  def update!(**args)
596
- @bucket_options = args[:bucket_options] if args.key?(:bucket_options)
597
- @sum_of_squared_deviation = args[:sum_of_squared_deviation] if args.key?(:sum_of_squared_deviation)
598
332
  @range = args[:range] if args.key?(:range)
599
- @count = args[:count] if args.key?(:count)
600
333
  @mean = args[:mean] if args.key?(:mean)
334
+ @count = args[:count] if args.key?(:count)
601
335
  @bucket_counts = args[:bucket_counts] if args.key?(:bucket_counts)
336
+ @bucket_options = args[:bucket_options] if args.key?(:bucket_options)
337
+ @sum_of_squared_deviation = args[:sum_of_squared_deviation] if args.key?(:sum_of_squared_deviation)
602
338
  end
603
339
  end
604
340
 
@@ -617,13 +353,6 @@ module Google
617
353
  class MonitoredResource
618
354
  include Google::Apis::Core::Hashable
619
355
 
620
- # Required. The monitored resource type. This field must match the type field of
621
- # a MonitoredResourceDescriptor object. For example, the type of a Cloud SQL
622
- # database is "cloudsql_database".
623
- # Corresponds to the JSON property `type`
624
- # @return [String]
625
- attr_accessor :type
626
-
627
356
  # Required. Values for all of the labels listed in the associated monitored
628
357
  # resource descriptor. For example, Cloud SQL databases use the labels "
629
358
  # database_id" and "zone".
@@ -631,14 +360,21 @@ module Google
631
360
  # @return [Hash<String,String>]
632
361
  attr_accessor :labels
633
362
 
363
+ # Required. The monitored resource type. This field must match the type field of
364
+ # a MonitoredResourceDescriptor object. For example, the type of a Cloud SQL
365
+ # database is "cloudsql_database".
366
+ # Corresponds to the JSON property `type`
367
+ # @return [String]
368
+ attr_accessor :type
369
+
634
370
  def initialize(**args)
635
371
  update!(**args)
636
372
  end
637
373
 
638
374
  # Update properties of this object
639
375
  def update!(**args)
640
- @type = args[:type] if args.key?(:type)
641
376
  @labels = args[:labels] if args.key?(:labels)
377
+ @type = args[:type] if args.key?(:type)
642
378
  end
643
379
  end
644
380
 
@@ -680,6 +416,13 @@ module Google
680
416
  class MonitoredResourceDescriptor
681
417
  include Google::Apis::Core::Hashable
682
418
 
419
+ # Required. The monitored resource type. For example, the type "
420
+ # cloudsql_database" represents databases in Google Cloud SQL. The maximum
421
+ # length of this value is 256 characters.
422
+ # Corresponds to the JSON property `type`
423
+ # @return [String]
424
+ attr_accessor :type
425
+
683
426
  # Required. A set of labels used to describe instances of this monitored
684
427
  # resource type. For example, an individual Google Cloud SQL database is
685
428
  # identified by values for the labels "database_id" and "zone".
@@ -710,24 +453,17 @@ module Google
710
453
  # @return [String]
711
454
  attr_accessor :description
712
455
 
713
- # Required. The monitored resource type. For example, the type "
714
- # cloudsql_database" represents databases in Google Cloud SQL. The maximum
715
- # length of this value is 256 characters.
716
- # Corresponds to the JSON property `type`
717
- # @return [String]
718
- attr_accessor :type
719
-
720
456
  def initialize(**args)
721
457
  update!(**args)
722
458
  end
723
459
 
724
460
  # Update properties of this object
725
461
  def update!(**args)
462
+ @type = args[:type] if args.key?(:type)
726
463
  @labels = args[:labels] if args.key?(:labels)
727
464
  @name = args[:name] if args.key?(:name)
728
465
  @display_name = args[:display_name] if args.key?(:display_name)
729
466
  @description = args[:description] if args.key?(:description)
730
- @type = args[:type] if args.key?(:type)
731
467
  end
732
468
  end
733
469
 
@@ -735,6 +471,13 @@ module Google
735
471
  class TypedValue
736
472
  include Google::Apis::Core::Hashable
737
473
 
474
+ # A 64-bit double-precision floating-point number. Its magnitude is
475
+ # approximately &plusmn;10<sup>&plusmn;300</sup> and it has 16 significant
476
+ # digits of precision.
477
+ # Corresponds to the JSON property `doubleValue`
478
+ # @return [Float]
479
+ attr_accessor :double_value
480
+
738
481
  # A 64-bit integer. Its range is approximately &plusmn;9.2x10<sup>18</sup>.
739
482
  # Corresponds to the JSON property `int64Value`
740
483
  # @return [String]
@@ -766,24 +509,17 @@ module Google
766
509
  # @return [String]
767
510
  attr_accessor :string_value
768
511
 
769
- # A 64-bit double-precision floating-point number. Its magnitude is
770
- # approximately &plusmn;10<sup>&plusmn;300</sup> and it has 16 significant
771
- # digits of precision.
772
- # Corresponds to the JSON property `doubleValue`
773
- # @return [Float]
774
- attr_accessor :double_value
775
-
776
512
  def initialize(**args)
777
513
  update!(**args)
778
514
  end
779
515
 
780
516
  # Update properties of this object
781
517
  def update!(**args)
518
+ @double_value = args[:double_value] if args.key?(:double_value)
782
519
  @int64_value = args[:int64_value] if args.key?(:int64_value)
783
520
  @distribution_value = args[:distribution_value] if args.key?(:distribution_value)
784
521
  @bool_value = args[:bool_value] if args.key?(:bool_value)
785
522
  @string_value = args[:string_value] if args.key?(:string_value)
786
- @double_value = args[:double_value] if args.key?(:double_value)
787
523
  end
788
524
  end
789
525
 
@@ -792,21 +528,27 @@ module Google
792
528
  class CollectdPayload
793
529
  include Google::Apis::Core::Hashable
794
530
 
531
+ # The measured values during this time interval. Each value must have a
532
+ # different dataSourceName.
533
+ # Corresponds to the JSON property `values`
534
+ # @return [Array<Google::Apis::MonitoringV3::CollectdValue>]
535
+ attr_accessor :values
536
+
795
537
  # The measurement type instance. Example: "used".
796
538
  # Corresponds to the JSON property `typeInstance`
797
539
  # @return [String]
798
540
  attr_accessor :type_instance
799
541
 
800
- # The measurement metadata. Example: "process_id" -> 12345
801
- # Corresponds to the JSON property `metadata`
802
- # @return [Hash<String,Google::Apis::MonitoringV3::TypedValue>]
803
- attr_accessor :metadata
804
-
805
542
  # The measurement type. Example: "memory".
806
543
  # Corresponds to the JSON property `type`
807
544
  # @return [String]
808
545
  attr_accessor :type
809
546
 
547
+ # The measurement metadata. Example: "process_id" -> 12345
548
+ # Corresponds to the JSON property `metadata`
549
+ # @return [Hash<String,Google::Apis::MonitoringV3::TypedValue>]
550
+ attr_accessor :metadata
551
+
810
552
  # The name of the plugin. Example: "disk".
811
553
  # Corresponds to the JSON property `plugin`
812
554
  # @return [String]
@@ -827,26 +569,20 @@ module Google
827
569
  # @return [String]
828
570
  attr_accessor :start_time
829
571
 
830
- # The measured values during this time interval. Each value must have a
831
- # different dataSourceName.
832
- # Corresponds to the JSON property `values`
833
- # @return [Array<Google::Apis::MonitoringV3::CollectdValue>]
834
- attr_accessor :values
835
-
836
572
  def initialize(**args)
837
573
  update!(**args)
838
574
  end
839
575
 
840
576
  # Update properties of this object
841
577
  def update!(**args)
578
+ @values = args[:values] if args.key?(:values)
842
579
  @type_instance = args[:type_instance] if args.key?(:type_instance)
843
- @metadata = args[:metadata] if args.key?(:metadata)
844
580
  @type = args[:type] if args.key?(:type)
581
+ @metadata = args[:metadata] if args.key?(:metadata)
845
582
  @plugin = args[:plugin] if args.key?(:plugin)
846
583
  @plugin_instance = args[:plugin_instance] if args.key?(:plugin_instance)
847
584
  @end_time = args[:end_time] if args.key?(:end_time)
848
585
  @start_time = args[:start_time] if args.key?(:start_time)
849
- @values = args[:values] if args.key?(:values)
850
586
  end
851
587
  end
852
588
 
@@ -885,25 +621,6 @@ module Google
885
621
  end
886
622
  end
887
623
 
888
- # A generic empty message that you can re-use to avoid defining duplicated empty
889
- # messages in your APIs. A typical example is to use it as the request or the
890
- # response type of an API method. For instance:
891
- # service Foo `
892
- # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
893
- # `
894
- # The JSON representation for Empty is empty JSON object ``.
895
- class Empty
896
- include Google::Apis::Core::Hashable
897
-
898
- def initialize(**args)
899
- update!(**args)
900
- end
901
-
902
- # Update properties of this object
903
- def update!(**args)
904
- end
905
- end
906
-
907
624
  # A protocol buffer option, which can be attached to a message, field,
908
625
  # enumeration, etc.
909
626
  class Option
@@ -936,31 +653,50 @@ module Google
936
653
  end
937
654
  end
938
655
 
656
+ # A generic empty message that you can re-use to avoid defining duplicated empty
657
+ # messages in your APIs. A typical example is to use it as the request or the
658
+ # response type of an API method. For instance:
659
+ # service Foo `
660
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
661
+ # `
662
+ # The JSON representation for Empty is empty JSON object ``.
663
+ class Empty
664
+ include Google::Apis::Core::Hashable
665
+
666
+ def initialize(**args)
667
+ update!(**args)
668
+ end
669
+
670
+ # Update properties of this object
671
+ def update!(**args)
672
+ end
673
+ end
674
+
939
675
  # A time interval extending just after a start time through an end time. If the
940
676
  # start time is the same as the end time, then the interval represents a single
941
677
  # point in time.
942
678
  class TimeInterval
943
679
  include Google::Apis::Core::Hashable
944
680
 
681
+ # Required. The end of the time interval.
682
+ # Corresponds to the JSON property `endTime`
683
+ # @return [String]
684
+ attr_accessor :end_time
685
+
945
686
  # Optional. The beginning of the time interval. The default value for the start
946
687
  # time is the end time. The start time must not be later than the end time.
947
688
  # Corresponds to the JSON property `startTime`
948
689
  # @return [String]
949
690
  attr_accessor :start_time
950
691
 
951
- # Required. The end of the time interval.
952
- # Corresponds to the JSON property `endTime`
953
- # @return [String]
954
- attr_accessor :end_time
955
-
956
692
  def initialize(**args)
957
693
  update!(**args)
958
694
  end
959
695
 
960
696
  # Update properties of this object
961
697
  def update!(**args)
962
- @start_time = args[:start_time] if args.key?(:start_time)
963
698
  @end_time = args[:end_time] if args.key?(:end_time)
699
+ @start_time = args[:start_time] if args.key?(:start_time)
964
700
  end
965
701
  end
966
702
 
@@ -996,11 +732,6 @@ module Google
996
732
  class Exponential
997
733
  include Google::Apis::Core::Hashable
998
734
 
999
- # Must be greater than 1.
1000
- # Corresponds to the JSON property `growthFactor`
1001
- # @return [Float]
1002
- attr_accessor :growth_factor
1003
-
1004
735
  # Must be greater than 0.
1005
736
  # Corresponds to the JSON property `scale`
1006
737
  # @return [Float]
@@ -1011,15 +742,20 @@ module Google
1011
742
  # @return [Fixnum]
1012
743
  attr_accessor :num_finite_buckets
1013
744
 
745
+ # Must be greater than 1.
746
+ # Corresponds to the JSON property `growthFactor`
747
+ # @return [Float]
748
+ attr_accessor :growth_factor
749
+
1014
750
  def initialize(**args)
1015
751
  update!(**args)
1016
752
  end
1017
753
 
1018
754
  # Update properties of this object
1019
755
  def update!(**args)
1020
- @growth_factor = args[:growth_factor] if args.key?(:growth_factor)
1021
756
  @scale = args[:scale] if args.key?(:scale)
1022
757
  @num_finite_buckets = args[:num_finite_buckets] if args.key?(:num_finite_buckets)
758
+ @growth_factor = args[:growth_factor] if args.key?(:growth_factor)
1023
759
  end
1024
760
  end
1025
761
 
@@ -1030,42 +766,14 @@ module Google
1030
766
  # A time interval extending just after a start time through an end time. If the
1031
767
  # start time is the same as the end time, then the interval represents a single
1032
768
  # point in time.
1033
- # Corresponds to the JSON property `interval`
1034
- # @return [Google::Apis::MonitoringV3::TimeInterval]
1035
- attr_accessor :interval
1036
-
1037
- # A single strongly-typed value.
1038
- # Corresponds to the JSON property `value`
1039
- # @return [Google::Apis::MonitoringV3::TypedValue]
1040
- attr_accessor :value
1041
-
1042
- def initialize(**args)
1043
- update!(**args)
1044
- end
1045
-
1046
- # Update properties of this object
1047
- def update!(**args)
1048
- @interval = args[:interval] if args.key?(:interval)
1049
- @value = args[:value] if args.key?(:value)
1050
- end
1051
- end
1052
-
1053
- # A specific metric, identified by specifying values for all of the labels of a
1054
- # MetricDescriptor.
1055
- class Metric
1056
- include Google::Apis::Core::Hashable
1057
-
1058
- # The set of label values that uniquely identify this metric. All labels listed
1059
- # in the MetricDescriptor must be assigned values.
1060
- # Corresponds to the JSON property `labels`
1061
- # @return [Hash<String,String>]
1062
- attr_accessor :labels
769
+ # Corresponds to the JSON property `interval`
770
+ # @return [Google::Apis::MonitoringV3::TimeInterval]
771
+ attr_accessor :interval
1063
772
 
1064
- # An existing metric type, see google.api.MetricDescriptor. For example, custom.
1065
- # googleapis.com/invoice/paid/amount.
1066
- # Corresponds to the JSON property `type`
1067
- # @return [String]
1068
- attr_accessor :type
773
+ # A single strongly-typed value.
774
+ # Corresponds to the JSON property `value`
775
+ # @return [Google::Apis::MonitoringV3::TypedValue]
776
+ attr_accessor :value
1069
777
 
1070
778
  def initialize(**args)
1071
779
  update!(**args)
@@ -1073,8 +781,8 @@ module Google
1073
781
 
1074
782
  # Update properties of this object
1075
783
  def update!(**args)
1076
- @labels = args[:labels] if args.key?(:labels)
1077
- @type = args[:type] if args.key?(:type)
784
+ @interval = args[:interval] if args.key?(:interval)
785
+ @value = args[:value] if args.key?(:value)
1078
786
  end
1079
787
  end
1080
788
 
@@ -1082,11 +790,6 @@ module Google
1082
790
  class Field
1083
791
  include Google::Apis::Core::Hashable
1084
792
 
1085
- # The field name.
1086
- # Corresponds to the JSON property `name`
1087
- # @return [String]
1088
- attr_accessor :name
1089
-
1090
793
  # The field type URL, without the scheme, for message or enumeration types.
1091
794
  # Example: "type.googleapis.com/google.protobuf.Timestamp".
1092
795
  # Corresponds to the JSON property `typeUrl`
@@ -1135,13 +838,17 @@ module Google
1135
838
  # @return [String]
1136
839
  attr_accessor :default_value
1137
840
 
841
+ # The field name.
842
+ # Corresponds to the JSON property `name`
843
+ # @return [String]
844
+ attr_accessor :name
845
+
1138
846
  def initialize(**args)
1139
847
  update!(**args)
1140
848
  end
1141
849
 
1142
850
  # Update properties of this object
1143
851
  def update!(**args)
1144
- @name = args[:name] if args.key?(:name)
1145
852
  @type_url = args[:type_url] if args.key?(:type_url)
1146
853
  @number = args[:number] if args.key?(:number)
1147
854
  @kind = args[:kind] if args.key?(:kind)
@@ -1151,6 +858,66 @@ module Google
1151
858
  @packed = args[:packed] if args.key?(:packed)
1152
859
  @cardinality = args[:cardinality] if args.key?(:cardinality)
1153
860
  @default_value = args[:default_value] if args.key?(:default_value)
861
+ @name = args[:name] if args.key?(:name)
862
+ end
863
+ end
864
+
865
+ # A specific metric, identified by specifying values for all of the labels of a
866
+ # MetricDescriptor.
867
+ class Metric
868
+ include Google::Apis::Core::Hashable
869
+
870
+ # The set of label values that uniquely identify this metric. All labels listed
871
+ # in the MetricDescriptor must be assigned values.
872
+ # Corresponds to the JSON property `labels`
873
+ # @return [Hash<String,String>]
874
+ attr_accessor :labels
875
+
876
+ # An existing metric type, see google.api.MetricDescriptor. For example, custom.
877
+ # googleapis.com/invoice/paid/amount.
878
+ # Corresponds to the JSON property `type`
879
+ # @return [String]
880
+ attr_accessor :type
881
+
882
+ def initialize(**args)
883
+ update!(**args)
884
+ end
885
+
886
+ # Update properties of this object
887
+ def update!(**args)
888
+ @labels = args[:labels] if args.key?(:labels)
889
+ @type = args[:type] if args.key?(:type)
890
+ end
891
+ end
892
+
893
+ # A description of a label.
894
+ class LabelDescriptor
895
+ include Google::Apis::Core::Hashable
896
+
897
+ # The label key.
898
+ # Corresponds to the JSON property `key`
899
+ # @return [String]
900
+ attr_accessor :key
901
+
902
+ # A human-readable description for the label.
903
+ # Corresponds to the JSON property `description`
904
+ # @return [String]
905
+ attr_accessor :description
906
+
907
+ # The type of data that can be assigned to the label.
908
+ # Corresponds to the JSON property `valueType`
909
+ # @return [String]
910
+ attr_accessor :value_type
911
+
912
+ def initialize(**args)
913
+ update!(**args)
914
+ end
915
+
916
+ # Update properties of this object
917
+ def update!(**args)
918
+ @key = args[:key] if args.key?(:key)
919
+ @description = args[:description] if args.key?(:description)
920
+ @value_type = args[:value_type] if args.key?(:value_type)
1154
921
  end
1155
922
  end
1156
923
 
@@ -1176,29 +943,209 @@ module Google
1176
943
 
1177
944
  # Update properties of this object
1178
945
  def update!(**args)
1179
- @time_series = args[:time_series] if args.key?(:time_series)
1180
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
946
+ @time_series = args[:time_series] if args.key?(:time_series)
947
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
948
+ end
949
+ end
950
+
951
+ # A protocol buffer message type.
952
+ class Type
953
+ include Google::Apis::Core::Hashable
954
+
955
+ # The protocol buffer options.
956
+ # Corresponds to the JSON property `options`
957
+ # @return [Array<Google::Apis::MonitoringV3::Option>]
958
+ attr_accessor :options
959
+
960
+ # The list of fields.
961
+ # Corresponds to the JSON property `fields`
962
+ # @return [Array<Google::Apis::MonitoringV3::Field>]
963
+ attr_accessor :fields
964
+
965
+ # The fully qualified message name.
966
+ # Corresponds to the JSON property `name`
967
+ # @return [String]
968
+ attr_accessor :name
969
+
970
+ # The list of types appearing in oneof definitions in this type.
971
+ # Corresponds to the JSON property `oneofs`
972
+ # @return [Array<String>]
973
+ attr_accessor :oneofs
974
+
975
+ # The source syntax.
976
+ # Corresponds to the JSON property `syntax`
977
+ # @return [String]
978
+ attr_accessor :syntax
979
+
980
+ # SourceContext represents information about the source of a protobuf element,
981
+ # like the file in which it is defined.
982
+ # Corresponds to the JSON property `sourceContext`
983
+ # @return [Google::Apis::MonitoringV3::SourceContext]
984
+ attr_accessor :source_context
985
+
986
+ def initialize(**args)
987
+ update!(**args)
988
+ end
989
+
990
+ # Update properties of this object
991
+ def update!(**args)
992
+ @options = args[:options] if args.key?(:options)
993
+ @fields = args[:fields] if args.key?(:fields)
994
+ @name = args[:name] if args.key?(:name)
995
+ @oneofs = args[:oneofs] if args.key?(:oneofs)
996
+ @syntax = args[:syntax] if args.key?(:syntax)
997
+ @source_context = args[:source_context] if args.key?(:source_context)
998
+ end
999
+ end
1000
+
1001
+ # The description of a dynamic collection of monitored resources. Each group has
1002
+ # a filter that is matched against monitored resources and their associated
1003
+ # metadata. If a group's filter matches an available monitored resource, then
1004
+ # that resource is a member of that group. Groups can contain any number of
1005
+ # monitored resources, and each monitored resource can be a member of any number
1006
+ # of groups.Groups can be nested in parent-child hierarchies. The parentName
1007
+ # field identifies an optional parent for each group. If a group has a parent,
1008
+ # then the only monitored resources available to be matched by the group's
1009
+ # filter are the resources contained in the parent group. In other words, a
1010
+ # group contains the monitored resources that match its filter and the filters
1011
+ # of all the group's ancestors. A group without a parent can contain any
1012
+ # monitored resource.For example, consider an infrastructure running a set of
1013
+ # instances with two user-defined tags: "environment" and "role". A parent group
1014
+ # has a filter, environment="production". A child of that parent group has a
1015
+ # filter, role="transcoder". The parent group contains all instances in the
1016
+ # production environment, regardless of their roles. The child group contains
1017
+ # instances that have the transcoder role and are in the production environment.
1018
+ # The monitored resources contained in a group can change at any moment,
1019
+ # depending on what resources exist and what filters are associated with the
1020
+ # group and its ancestors.
1021
+ class Group
1022
+ include Google::Apis::Core::Hashable
1023
+
1024
+ # Output only. The name of this group. The format is "projects/`
1025
+ # project_id_or_number`/groups/`group_id`". When creating a group, this field is
1026
+ # ignored and a new name is created consisting of the project specified in the
1027
+ # call to CreateGroup and a unique `group_id` that is generated automatically.
1028
+ # Corresponds to the JSON property `name`
1029
+ # @return [String]
1030
+ attr_accessor :name
1031
+
1032
+ # The name of the group's parent, if it has one. The format is "projects/`
1033
+ # project_id_or_number`/groups/`group_id`". For groups with no parent,
1034
+ # parentName is the empty string, "".
1035
+ # Corresponds to the JSON property `parentName`
1036
+ # @return [String]
1037
+ attr_accessor :parent_name
1038
+
1039
+ # A user-assigned name for this group, used only for display purposes.
1040
+ # Corresponds to the JSON property `displayName`
1041
+ # @return [String]
1042
+ attr_accessor :display_name
1043
+
1044
+ # If true, the members of this group are considered to be a cluster. The system
1045
+ # can perform additional analysis on groups that are clusters.
1046
+ # Corresponds to the JSON property `isCluster`
1047
+ # @return [Boolean]
1048
+ attr_accessor :is_cluster
1049
+ alias_method :is_cluster?, :is_cluster
1050
+
1051
+ # The filter used to determine which monitored resources belong to this group.
1052
+ # Corresponds to the JSON property `filter`
1053
+ # @return [String]
1054
+ attr_accessor :filter
1055
+
1056
+ def initialize(**args)
1057
+ update!(**args)
1058
+ end
1059
+
1060
+ # Update properties of this object
1061
+ def update!(**args)
1062
+ @name = args[:name] if args.key?(:name)
1063
+ @parent_name = args[:parent_name] if args.key?(:parent_name)
1064
+ @display_name = args[:display_name] if args.key?(:display_name)
1065
+ @is_cluster = args[:is_cluster] if args.key?(:is_cluster)
1066
+ @filter = args[:filter] if args.key?(:filter)
1067
+ end
1068
+ end
1069
+
1070
+ # A Distribution may optionally contain a histogram of the values in the
1071
+ # population. The histogram is given in bucket_counts as counts of values that
1072
+ # fall into one of a sequence of non-overlapping buckets. The sequence of
1073
+ # buckets is described by bucket_options.A bucket specifies an inclusive lower
1074
+ # bound and exclusive upper bound for the values that are counted for that
1075
+ # bucket. The upper bound of a bucket is strictly greater than the lower bound.
1076
+ # The sequence of N buckets for a Distribution consists of an underflow bucket (
1077
+ # number 0), zero or more finite buckets (number 1 through N - 2) and an
1078
+ # overflow bucket (number N - 1). The buckets are contiguous: the lower bound of
1079
+ # bucket i (i > 0) is the same as the upper bound of bucket i - 1. The buckets
1080
+ # span the whole range of finite values: lower bound of the underflow bucket is -
1081
+ # infinity and the upper bound of the overflow bucket is +infinity. The finite
1082
+ # buckets are so-called because both bounds are finite.BucketOptions describes
1083
+ # bucket boundaries in one of three ways. Two describe the boundaries by giving
1084
+ # parameters for a formula to generate boundaries and one gives the bucket
1085
+ # boundaries explicitly.If bucket_options is not given, then no bucket_counts
1086
+ # may be given.
1087
+ class BucketOptions
1088
+ include Google::Apis::Core::Hashable
1089
+
1090
+ # Specify a sequence of buckets that have a width that is proportional to the
1091
+ # value of the lower bound. Each bucket represents a constant relative
1092
+ # uncertainty on a specific value in the bucket.Defines num_finite_buckets + 2 (=
1093
+ # N) buckets with these boundaries for bucket i:Upper bound (0 <= i < N-1):
1094
+ # scale * (growth_factor ^ i). Lower bound (1 <= i < N): scale * (growth_factor
1095
+ # ^ (i - 1)).
1096
+ # Corresponds to the JSON property `exponentialBuckets`
1097
+ # @return [Google::Apis::MonitoringV3::Exponential]
1098
+ attr_accessor :exponential_buckets
1099
+
1100
+ # Specify a sequence of buckets that all have the same width (except overflow
1101
+ # and underflow). Each bucket represents a constant absolute uncertainty on the
1102
+ # specific value in the bucket.Defines num_finite_buckets + 2 (= N) buckets with
1103
+ # these boundaries for bucket i:Upper bound (0 <= i < N-1): offset + (width * i).
1104
+ # Lower bound (1 <= i < N): offset + (width * (i - 1)).
1105
+ # Corresponds to the JSON property `linearBuckets`
1106
+ # @return [Google::Apis::MonitoringV3::Linear]
1107
+ attr_accessor :linear_buckets
1108
+
1109
+ # A set of buckets with arbitrary widths.Defines size(bounds) + 1 (= N) buckets
1110
+ # with these boundaries for bucket i:Upper bound (0 <= i < N-1): boundsi Lower
1111
+ # bound (1 <= i < N); boundsi - 1There must be at least one element in bounds.
1112
+ # If bounds has only one element, there are no finite buckets, and that single
1113
+ # element is the common boundary of the overflow and underflow buckets.
1114
+ # Corresponds to the JSON property `explicitBuckets`
1115
+ # @return [Google::Apis::MonitoringV3::Explicit]
1116
+ attr_accessor :explicit_buckets
1117
+
1118
+ def initialize(**args)
1119
+ update!(**args)
1120
+ end
1121
+
1122
+ # Update properties of this object
1123
+ def update!(**args)
1124
+ @exponential_buckets = args[:exponential_buckets] if args.key?(:exponential_buckets)
1125
+ @linear_buckets = args[:linear_buckets] if args.key?(:linear_buckets)
1126
+ @explicit_buckets = args[:explicit_buckets] if args.key?(:explicit_buckets)
1181
1127
  end
1182
1128
  end
1183
1129
 
1184
- # A description of a label.
1185
- class LabelDescriptor
1130
+ # A single data point from a collectd-based plugin.
1131
+ class CollectdValue
1186
1132
  include Google::Apis::Core::Hashable
1187
1133
 
1188
- # The label key.
1189
- # Corresponds to the JSON property `key`
1190
- # @return [String]
1191
- attr_accessor :key
1134
+ # A single strongly-typed value.
1135
+ # Corresponds to the JSON property `value`
1136
+ # @return [Google::Apis::MonitoringV3::TypedValue]
1137
+ attr_accessor :value
1192
1138
 
1193
- # A human-readable description for the label.
1194
- # Corresponds to the JSON property `description`
1139
+ # The type of measurement.
1140
+ # Corresponds to the JSON property `dataSourceType`
1195
1141
  # @return [String]
1196
- attr_accessor :description
1142
+ attr_accessor :data_source_type
1197
1143
 
1198
- # The type of data that can be assigned to the label.
1199
- # Corresponds to the JSON property `valueType`
1144
+ # The data source for the collectd value. For example there are two data sources
1145
+ # for network measurements: "rx" and "tx".
1146
+ # Corresponds to the JSON property `dataSourceName`
1200
1147
  # @return [String]
1201
- attr_accessor :value_type
1148
+ attr_accessor :data_source_name
1202
1149
 
1203
1150
  def initialize(**args)
1204
1151
  update!(**args)
@@ -1206,66 +1153,120 @@ module Google
1206
1153
 
1207
1154
  # Update properties of this object
1208
1155
  def update!(**args)
1209
- @key = args[:key] if args.key?(:key)
1210
- @description = args[:description] if args.key?(:description)
1211
- @value_type = args[:value_type] if args.key?(:value_type)
1156
+ @value = args[:value] if args.key?(:value)
1157
+ @data_source_type = args[:data_source_type] if args.key?(:data_source_type)
1158
+ @data_source_name = args[:data_source_name] if args.key?(:data_source_name)
1212
1159
  end
1213
1160
  end
1214
1161
 
1215
- # The description of a dynamic collection of monitored resources. Each group has
1216
- # a filter that is matched against monitored resources and their associated
1217
- # metadata. If a group's filter matches an available monitored resource, then
1218
- # that resource is a member of that group. Groups can contain any number of
1219
- # monitored resources, and each monitored resource can be a member of any number
1220
- # of groups.Groups can be nested in parent-child hierarchies. The parentName
1221
- # field identifies an optional parent for each group. If a group has a parent,
1222
- # then the only monitored resources available to be matched by the group's
1223
- # filter are the resources contained in the parent group. In other words, a
1224
- # group contains the monitored resources that match its filter and the filters
1225
- # of all the group's ancestors. A group without a parent can contain any
1226
- # monitored resource.For example, consider an infrastructure running a set of
1227
- # instances with two user-defined tags: "environment" and "role". A parent group
1228
- # has a filter, environment="production". A child of that parent group has a
1229
- # filter, role="transcoder". The parent group contains all instances in the
1230
- # production environment, regardless of their roles. The child group contains
1231
- # instances that have the transcoder role and are in the production environment.
1232
- # The monitored resources contained in a group can change at any moment,
1233
- # depending on what resources exist and what filters are associated with the
1234
- # group and its ancestors.
1235
- class Group
1162
+ # Defines a metric type and its schema. Once a metric descriptor is created,
1163
+ # deleting or altering it stops data collection and makes the metric type's
1164
+ # existing data unusable.
1165
+ class MetricDescriptor
1236
1166
  include Google::Apis::Core::Hashable
1237
1167
 
1238
- # The filter used to determine which monitored resources belong to this group.
1239
- # Corresponds to the JSON property `filter`
1168
+ # A concise name for the metric, which can be displayed in user interfaces. Use
1169
+ # sentence case without an ending period, for example "Request count".
1170
+ # Corresponds to the JSON property `displayName`
1240
1171
  # @return [String]
1241
- attr_accessor :filter
1172
+ attr_accessor :display_name
1242
1173
 
1243
- # Output only. The name of this group. The format is "projects/`
1244
- # project_id_or_number`/groups/`group_id`". When creating a group, this field is
1245
- # ignored and a new name is created consisting of the project specified in the
1246
- # call to CreateGroup and a unique `group_id` that is generated automatically.
1174
+ # A detailed description of the metric, which can be used in documentation.
1175
+ # Corresponds to the JSON property `description`
1176
+ # @return [String]
1177
+ attr_accessor :description
1178
+
1179
+ # The unit in which the metric value is reported. It is only applicable if the
1180
+ # value_type is INT64, DOUBLE, or DISTRIBUTION. The supported units are a subset
1181
+ # of The Unified Code for Units of Measure (http://unitsofmeasure.org/ucum.html)
1182
+ # standard:Basic units (UNIT)
1183
+ # bit bit
1184
+ # By byte
1185
+ # s second
1186
+ # min minute
1187
+ # h hour
1188
+ # d dayPrefixes (PREFIX)
1189
+ # k kilo (10**3)
1190
+ # M mega (10**6)
1191
+ # G giga (10**9)
1192
+ # T tera (10**12)
1193
+ # P peta (10**15)
1194
+ # E exa (10**18)
1195
+ # Z zetta (10**21)
1196
+ # Y yotta (10**24)
1197
+ # m milli (10**-3)
1198
+ # u micro (10**-6)
1199
+ # n nano (10**-9)
1200
+ # p pico (10**-12)
1201
+ # f femto (10**-15)
1202
+ # a atto (10**-18)
1203
+ # z zepto (10**-21)
1204
+ # y yocto (10**-24)
1205
+ # Ki kibi (2**10)
1206
+ # Mi mebi (2**20)
1207
+ # Gi gibi (2**30)
1208
+ # Ti tebi (2**40)GrammarThe grammar includes the dimensionless unit 1, such as 1/
1209
+ # s.The grammar also includes these connectors:
1210
+ # / division (as an infix operator, e.g. 1/s).
1211
+ # . multiplication (as an infix operator, e.g. GBy.d)The grammar for a unit is
1212
+ # as follows:
1213
+ # Expression = Component ` "." Component ` ` "/" Component ` ;
1214
+ # Component = [ PREFIX ] UNIT [ Annotation ]
1215
+ # | Annotation
1216
+ # | "1"
1217
+ # ;
1218
+ # Annotation = "`" NAME "`" ;
1219
+ # Notes:
1220
+ # Annotation is just a comment if it follows a UNIT and is equivalent to 1 if
1221
+ # it is used alone. For examples, `requests`/s == 1/s, By`transmitted`/s == By/
1222
+ # s.
1223
+ # NAME is a sequence of non-blank printable ASCII characters not containing '`'
1224
+ # or '`'.
1225
+ # Corresponds to the JSON property `unit`
1226
+ # @return [String]
1227
+ attr_accessor :unit
1228
+
1229
+ # The set of labels that can be used to describe a specific instance of this
1230
+ # metric type. For example, the appengine.googleapis.com/http/server/
1231
+ # response_latencies metric type has a label for the HTTP response code,
1232
+ # response_code, so you can look at latencies for successful responses or just
1233
+ # for responses that failed.
1234
+ # Corresponds to the JSON property `labels`
1235
+ # @return [Array<Google::Apis::MonitoringV3::LabelDescriptor>]
1236
+ attr_accessor :labels
1237
+
1238
+ # The resource name of the metric descriptor. Depending on the implementation,
1239
+ # the name typically includes: (1) the parent resource name that defines the
1240
+ # scope of the metric type or of its data; and (2) the metric's URL-encoded type,
1241
+ # which also appears in the type field of this descriptor. For example,
1242
+ # following is the resource name of a custom metric within the GCP project my-
1243
+ # project-id:
1244
+ # "projects/my-project-id/metricDescriptors/custom.googleapis.com%2Finvoice%
1245
+ # 2Fpaid%2Famount"
1247
1246
  # Corresponds to the JSON property `name`
1248
1247
  # @return [String]
1249
1248
  attr_accessor :name
1250
1249
 
1251
- # The name of the group's parent, if it has one. The format is "projects/`
1252
- # project_id_or_number`/groups/`group_id`". For groups with no parent,
1253
- # parentName is the empty string, "".
1254
- # Corresponds to the JSON property `parentName`
1250
+ # The metric type, including its DNS name prefix. The type is not URL-encoded.
1251
+ # All user-defined custom metric types have the DNS name custom.googleapis.com.
1252
+ # Metric types should use a natural hierarchical grouping. For example:
1253
+ # "custom.googleapis.com/invoice/paid/amount"
1254
+ # "appengine.googleapis.com/http/server/response_latencies"
1255
+ # Corresponds to the JSON property `type`
1255
1256
  # @return [String]
1256
- attr_accessor :parent_name
1257
+ attr_accessor :type
1257
1258
 
1258
- # A user-assigned name for this group, used only for display purposes.
1259
- # Corresponds to the JSON property `displayName`
1259
+ # Whether the measurement is an integer, a floating-point number, etc. Some
1260
+ # combinations of metric_kind and value_type might not be supported.
1261
+ # Corresponds to the JSON property `valueType`
1260
1262
  # @return [String]
1261
- attr_accessor :display_name
1263
+ attr_accessor :value_type
1262
1264
 
1263
- # If true, the members of this group are considered to be a cluster. The system
1264
- # can perform additional analysis on groups that are clusters.
1265
- # Corresponds to the JSON property `isCluster`
1266
- # @return [Boolean]
1267
- attr_accessor :is_cluster
1268
- alias_method :is_cluster?, :is_cluster
1265
+ # Whether the metric records instantaneous values, changes to a value, etc. Some
1266
+ # combinations of metric_kind and value_type might not be supported.
1267
+ # Corresponds to the JSON property `metricKind`
1268
+ # @return [String]
1269
+ attr_accessor :metric_kind
1269
1270
 
1270
1271
  def initialize(**args)
1271
1272
  update!(**args)
@@ -1273,48 +1274,51 @@ module Google
1273
1274
 
1274
1275
  # Update properties of this object
1275
1276
  def update!(**args)
1276
- @filter = args[:filter] if args.key?(:filter)
1277
- @name = args[:name] if args.key?(:name)
1278
- @parent_name = args[:parent_name] if args.key?(:parent_name)
1279
1277
  @display_name = args[:display_name] if args.key?(:display_name)
1280
- @is_cluster = args[:is_cluster] if args.key?(:is_cluster)
1278
+ @description = args[:description] if args.key?(:description)
1279
+ @unit = args[:unit] if args.key?(:unit)
1280
+ @labels = args[:labels] if args.key?(:labels)
1281
+ @name = args[:name] if args.key?(:name)
1282
+ @type = args[:type] if args.key?(:type)
1283
+ @value_type = args[:value_type] if args.key?(:value_type)
1284
+ @metric_kind = args[:metric_kind] if args.key?(:metric_kind)
1281
1285
  end
1282
1286
  end
1283
1287
 
1284
- # A protocol buffer message type.
1285
- class Type
1288
+ # SourceContext represents information about the source of a protobuf element,
1289
+ # like the file in which it is defined.
1290
+ class SourceContext
1286
1291
  include Google::Apis::Core::Hashable
1287
1292
 
1288
- # The list of fields.
1289
- # Corresponds to the JSON property `fields`
1290
- # @return [Array<Google::Apis::MonitoringV3::Field>]
1291
- attr_accessor :fields
1292
-
1293
- # The fully qualified message name.
1294
- # Corresponds to the JSON property `name`
1293
+ # The path-qualified name of the .proto file that contained the associated
1294
+ # protobuf element. For example: "google/protobuf/source_context.proto".
1295
+ # Corresponds to the JSON property `fileName`
1295
1296
  # @return [String]
1296
- attr_accessor :name
1297
+ attr_accessor :file_name
1297
1298
 
1298
- # The list of types appearing in oneof definitions in this type.
1299
- # Corresponds to the JSON property `oneofs`
1300
- # @return [Array<String>]
1301
- attr_accessor :oneofs
1299
+ def initialize(**args)
1300
+ update!(**args)
1301
+ end
1302
1302
 
1303
- # SourceContext represents information about the source of a protobuf element,
1304
- # like the file in which it is defined.
1305
- # Corresponds to the JSON property `sourceContext`
1306
- # @return [Google::Apis::MonitoringV3::SourceContext]
1307
- attr_accessor :source_context
1303
+ # Update properties of this object
1304
+ def update!(**args)
1305
+ @file_name = args[:file_name] if args.key?(:file_name)
1306
+ end
1307
+ end
1308
1308
 
1309
- # The source syntax.
1310
- # Corresponds to the JSON property `syntax`
1311
- # @return [String]
1312
- attr_accessor :syntax
1309
+ # The range of the population values.
1310
+ class Range
1311
+ include Google::Apis::Core::Hashable
1313
1312
 
1314
- # The protocol buffer options.
1315
- # Corresponds to the JSON property `options`
1316
- # @return [Array<Google::Apis::MonitoringV3::Option>]
1317
- attr_accessor :options
1313
+ # The minimum of the population values.
1314
+ # Corresponds to the JSON property `min`
1315
+ # @return [Float]
1316
+ attr_accessor :min
1317
+
1318
+ # The maximum of the population values.
1319
+ # Corresponds to the JSON property `max`
1320
+ # @return [Float]
1321
+ attr_accessor :max
1318
1322
 
1319
1323
  def initialize(**args)
1320
1324
  update!(**args)
@@ -1322,12 +1326,8 @@ module Google
1322
1326
 
1323
1327
  # Update properties of this object
1324
1328
  def update!(**args)
1325
- @fields = args[:fields] if args.key?(:fields)
1326
- @name = args[:name] if args.key?(:name)
1327
- @oneofs = args[:oneofs] if args.key?(:oneofs)
1328
- @source_context = args[:source_context] if args.key?(:source_context)
1329
- @syntax = args[:syntax] if args.key?(:syntax)
1330
- @options = args[:options] if args.key?(:options)
1329
+ @min = args[:min] if args.key?(:min)
1330
+ @max = args[:max] if args.key?(:max)
1331
1331
  end
1332
1332
  end
1333
1333
  end