google-apis-monitoring_v1 0.36.0 → 0.37.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5ae0bb770aac242b033db51eff7609e744da61f90c91581ffa2d200a0cbc1c5d
4
- data.tar.gz: 173975270960c34298fb4ee81fea6c5026d1ac09d1ed79532d3cfd6c1ebbf980
3
+ metadata.gz: 71c5948219eeb676f8893ddc5c42a833a5cb6b432062b4b7d6d8970dce7e789a
4
+ data.tar.gz: f5696fb018eba6c5cfe39ee0c1c1f9749a5f1105e86bd91e82f39f18dcd86df7
5
5
  SHA512:
6
- metadata.gz: 011c909740f5daad3bbe7968b18fb5d7caa5d92a56c173acbca00729b13fe846303f45b9a902503b88a05254e92586189a4c105fb2d580b0fefb907f1aa79a03
7
- data.tar.gz: 03e1c8027f181256b8ee5a5b6c6082d7f4d1a0e4e00f8a899d09b4fa0c15421dc911d5409cc66e59255496253734db938e75c89a73b847f86c15b24f4a530928
6
+ metadata.gz: cc5aca201d706b515515185a67b6124a0fa03a32e474bba08bc0d3de4f99ef5401a0a17d691fdf89fca51cd4ae370a6862499f7af35ffa2f7f632f045036f9ee
7
+ data.tar.gz: a94544e3b81de1afae42ee1e96dad6f4f3259d9def1e8a0b8c342425eb1c89830a5e08fb22d4ab7ed714bea7f6a734a936504385321ae13ef0b833ea290552fe
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-monitoring_v1
2
2
 
3
+ ### v0.37.0 (2023-08-06)
4
+
5
+ * Regenerated from discovery document revision 20230731
6
+
3
7
  ### v0.36.0 (2023-03-26)
4
8
 
5
9
  * Regenerated from discovery document revision 20230320
@@ -725,41 +725,6 @@ module Google
725
725
  end
726
726
  end
727
727
 
728
- # ListLabelsRequest holds all parameters of the Prometheus upstream API for
729
- # returning a list of label names.
730
- class ListLabelsRequest
731
- include Google::Apis::Core::Hashable
732
-
733
- # The end time to evaluate the query for. Either floating point UNIX seconds or
734
- # RFC3339 formatted timestamp.
735
- # Corresponds to the JSON property `end`
736
- # @return [String]
737
- attr_accessor :end
738
-
739
- # A list of matchers encoded in the Prometheus label matcher format to constrain
740
- # the values to series that satisfy them.
741
- # Corresponds to the JSON property `match`
742
- # @return [String]
743
- attr_accessor :match
744
-
745
- # The start time to evaluate the query for. Either floating point UNIX seconds
746
- # or RFC3339 formatted timestamp.
747
- # Corresponds to the JSON property `start`
748
- # @return [String]
749
- attr_accessor :start
750
-
751
- def initialize(**args)
752
- update!(**args)
753
- end
754
-
755
- # Update properties of this object
756
- def update!(**args)
757
- @end = args[:end] if args.key?(:end)
758
- @match = args[:match] if args.key?(:match)
759
- @start = args[:start] if args.key?(:start)
760
- end
761
- end
762
-
763
728
  # Response for the ListMetricsScopesByMonitoredProject method.
764
729
  class ListMetricsScopesByMonitoredProjectResponse
765
730
  include Google::Apis::Core::Hashable
@@ -1184,6 +1149,41 @@ module Google
1184
1149
  end
1185
1150
  end
1186
1151
 
1152
+ # QueryLabelsRequest holds all parameters of the Prometheus upstream API for
1153
+ # returning a list of label names.
1154
+ class QueryLabelsRequest
1155
+ include Google::Apis::Core::Hashable
1156
+
1157
+ # The end time to evaluate the query for. Either floating point UNIX seconds or
1158
+ # RFC3339 formatted timestamp.
1159
+ # Corresponds to the JSON property `end`
1160
+ # @return [String]
1161
+ attr_accessor :end
1162
+
1163
+ # A list of matchers encoded in the Prometheus label matcher format to constrain
1164
+ # the values to series that satisfy them.
1165
+ # Corresponds to the JSON property `match`
1166
+ # @return [String]
1167
+ attr_accessor :match
1168
+
1169
+ # The start time to evaluate the query for. Either floating point UNIX seconds
1170
+ # or RFC3339 formatted timestamp.
1171
+ # Corresponds to the JSON property `start`
1172
+ # @return [String]
1173
+ attr_accessor :start
1174
+
1175
+ def initialize(**args)
1176
+ update!(**args)
1177
+ end
1178
+
1179
+ # Update properties of this object
1180
+ def update!(**args)
1181
+ @end = args[:end] if args.key?(:end)
1182
+ @match = args[:match] if args.key?(:match)
1183
+ @start = args[:start] if args.key?(:start)
1184
+ end
1185
+ end
1186
+
1187
1187
  # QueryRangeRequest holds all parameters of the Prometheus upstream range query
1188
1188
  # API plus GCM specific parameters.
1189
1189
  class QueryRangeRequest
@@ -1643,6 +1643,11 @@ module Google
1643
1643
  # @return [String]
1644
1644
  attr_accessor :format
1645
1645
 
1646
+ # Properties that determine how the title and content are styled
1647
+ # Corresponds to the JSON property `style`
1648
+ # @return [Google::Apis::MonitoringV1::TextStyle]
1649
+ attr_accessor :style
1650
+
1646
1651
  def initialize(**args)
1647
1652
  update!(**args)
1648
1653
  end
@@ -1651,6 +1656,57 @@ module Google
1651
1656
  def update!(**args)
1652
1657
  @content = args[:content] if args.key?(:content)
1653
1658
  @format = args[:format] if args.key?(:format)
1659
+ @style = args[:style] if args.key?(:style)
1660
+ end
1661
+ end
1662
+
1663
+ # Properties that determine how the title and content are styled
1664
+ class TextStyle
1665
+ include Google::Apis::Core::Hashable
1666
+
1667
+ # The background color as a hex string. "#RRGGBB" or "#RGB"
1668
+ # Corresponds to the JSON property `backgroundColor`
1669
+ # @return [String]
1670
+ attr_accessor :background_color
1671
+
1672
+ # Font sizes for both the title and content. The title will still be larger
1673
+ # relative to the content.
1674
+ # Corresponds to the JSON property `fontSize`
1675
+ # @return [String]
1676
+ attr_accessor :font_size
1677
+
1678
+ # The horizontal alignment of both the title and content
1679
+ # Corresponds to the JSON property `horizontalAlignment`
1680
+ # @return [String]
1681
+ attr_accessor :horizontal_alignment
1682
+
1683
+ # The amount of padding around the widget
1684
+ # Corresponds to the JSON property `padding`
1685
+ # @return [String]
1686
+ attr_accessor :padding
1687
+
1688
+ # The text color as a hex string. "#RRGGBB" or "#RGB"
1689
+ # Corresponds to the JSON property `textColor`
1690
+ # @return [String]
1691
+ attr_accessor :text_color
1692
+
1693
+ # The vertical alignment of both the title and content
1694
+ # Corresponds to the JSON property `verticalAlignment`
1695
+ # @return [String]
1696
+ attr_accessor :vertical_alignment
1697
+
1698
+ def initialize(**args)
1699
+ update!(**args)
1700
+ end
1701
+
1702
+ # Update properties of this object
1703
+ def update!(**args)
1704
+ @background_color = args[:background_color] if args.key?(:background_color)
1705
+ @font_size = args[:font_size] if args.key?(:font_size)
1706
+ @horizontal_alignment = args[:horizontal_alignment] if args.key?(:horizontal_alignment)
1707
+ @padding = args[:padding] if args.key?(:padding)
1708
+ @text_color = args[:text_color] if args.key?(:text_color)
1709
+ @vertical_alignment = args[:vertical_alignment] if args.key?(:vertical_alignment)
1654
1710
  end
1655
1711
  end
1656
1712
 
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module MonitoringV1
18
18
  # Version of the google-apis-monitoring_v1 gem
19
- GEM_VERSION = "0.36.0"
19
+ GEM_VERSION = "0.37.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230320"
25
+ REVISION = "20230731"
26
26
  end
27
27
  end
28
28
  end
@@ -136,12 +136,6 @@ module Google
136
136
  include Google::Apis::Core::JsonObjectSupport
137
137
  end
138
138
 
139
- class ListLabelsRequest
140
- class Representation < Google::Apis::Core::JsonRepresentation; end
141
-
142
- include Google::Apis::Core::JsonObjectSupport
143
- end
144
-
145
139
  class ListMetricsScopesByMonitoredProjectResponse
146
140
  class Representation < Google::Apis::Core::JsonRepresentation; end
147
141
 
@@ -214,6 +208,12 @@ module Google
214
208
  include Google::Apis::Core::JsonObjectSupport
215
209
  end
216
210
 
211
+ class QueryLabelsRequest
212
+ class Representation < Google::Apis::Core::JsonRepresentation; end
213
+
214
+ include Google::Apis::Core::JsonObjectSupport
215
+ end
216
+
217
217
  class QueryRangeRequest
218
218
  class Representation < Google::Apis::Core::JsonRepresentation; end
219
219
 
@@ -298,6 +298,12 @@ module Google
298
298
  include Google::Apis::Core::JsonObjectSupport
299
299
  end
300
300
 
301
+ class TextStyle
302
+ class Representation < Google::Apis::Core::JsonRepresentation; end
303
+
304
+ include Google::Apis::Core::JsonObjectSupport
305
+ end
306
+
301
307
  class Threshold
302
308
  class Representation < Google::Apis::Core::JsonRepresentation; end
303
309
 
@@ -532,15 +538,6 @@ module Google
532
538
  end
533
539
  end
534
540
 
535
- class ListLabelsRequest
536
- # @private
537
- class Representation < Google::Apis::Core::JsonRepresentation
538
- property :end, as: 'end'
539
- property :match, as: 'match'
540
- property :start, as: 'start'
541
- end
542
- end
543
-
544
541
  class ListMetricsScopesByMonitoredProjectResponse
545
542
  # @private
546
543
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -649,6 +646,15 @@ module Google
649
646
  end
650
647
  end
651
648
 
649
+ class QueryLabelsRequest
650
+ # @private
651
+ class Representation < Google::Apis::Core::JsonRepresentation
652
+ property :end, as: 'end'
653
+ property :match, as: 'match'
654
+ property :start, as: 'start'
655
+ end
656
+ end
657
+
652
658
  class QueryRangeRequest
653
659
  # @private
654
660
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -771,6 +777,20 @@ module Google
771
777
  class Representation < Google::Apis::Core::JsonRepresentation
772
778
  property :content, as: 'content'
773
779
  property :format, as: 'format'
780
+ property :style, as: 'style', class: Google::Apis::MonitoringV1::TextStyle, decorator: Google::Apis::MonitoringV1::TextStyle::Representation
781
+
782
+ end
783
+ end
784
+
785
+ class TextStyle
786
+ # @private
787
+ class Representation < Google::Apis::Core::JsonRepresentation
788
+ property :background_color, as: 'backgroundColor'
789
+ property :font_size, as: 'fontSize'
790
+ property :horizontal_alignment, as: 'horizontalAlignment'
791
+ property :padding, as: 'padding'
792
+ property :text_color, as: 'textColor'
793
+ property :vertical_alignment, as: 'verticalAlignment'
774
794
  end
775
795
  end
776
796
 
@@ -416,7 +416,7 @@ module Google
416
416
  # PROJECT_ID_OR_NUMBER.
417
417
  # @param [String] location
418
418
  # Location of the resource information. Has to be "global" now.
419
- # @param [Google::Apis::MonitoringV1::ListLabelsRequest] list_labels_request_object
419
+ # @param [Google::Apis::MonitoringV1::QueryLabelsRequest] query_labels_request_object
420
420
  # @param [String] fields
421
421
  # Selector specifying which fields to include in a partial response.
422
422
  # @param [String] quota_user
@@ -434,10 +434,10 @@ module Google
434
434
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
435
435
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
436
436
  # @raise [Google::Apis::AuthorizationError] Authorization is required
437
- def labels_project_location_prometheu_api_v1(name, location, list_labels_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
437
+ def labels_project_location_prometheu_api_v1(name, location, query_labels_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
438
438
  command = make_simple_command(:post, 'v1/{+name}/location/{location}/prometheus/api/v1/labels', options)
439
- command.request_representation = Google::Apis::MonitoringV1::ListLabelsRequest::Representation
440
- command.request_object = list_labels_request_object
439
+ command.request_representation = Google::Apis::MonitoringV1::QueryLabelsRequest::Representation
440
+ command.request_object = query_labels_request_object
441
441
  command.response_representation = Google::Apis::MonitoringV1::HttpBody::Representation
442
442
  command.response_class = Google::Apis::MonitoringV1::HttpBody
443
443
  command.params['name'] = name unless name.nil?
@@ -654,54 +654,6 @@ module Google
654
654
  execute_or_queue_command(command, &block)
655
655
  end
656
656
 
657
- # Lists labels for metrics.
658
- # @param [String] name
659
- # The workspace on which to execute the request. It is not part of the open
660
- # source API but used as a request path prefix to distinguish different virtual
661
- # Prometheus instances of Google Prometheus Engine. The format is: projects/
662
- # PROJECT_ID_OR_NUMBER.
663
- # @param [String] location
664
- # Location of the resource information. Has to be "global" now.
665
- # @param [String] end_
666
- # The end time to evaluate the query for. Either floating point UNIX seconds or
667
- # RFC3339 formatted timestamp.
668
- # @param [String] match
669
- # A list of matchers encoded in the Prometheus label matcher format to constrain
670
- # the values to series that satisfy them.
671
- # @param [String] start
672
- # The start time to evaluate the query for. Either floating point UNIX seconds
673
- # or RFC3339 formatted timestamp.
674
- # @param [String] fields
675
- # Selector specifying which fields to include in a partial response.
676
- # @param [String] quota_user
677
- # Available to use for quota purposes for server-side applications. Can be any
678
- # arbitrary string assigned to a user, but should not exceed 40 characters.
679
- # @param [Google::Apis::RequestOptions] options
680
- # Request-specific options
681
- #
682
- # @yield [result, err] Result & error if block supplied
683
- # @yieldparam result [Google::Apis::MonitoringV1::HttpBody] parsed result object
684
- # @yieldparam err [StandardError] error object if request failed
685
- #
686
- # @return [Google::Apis::MonitoringV1::HttpBody]
687
- #
688
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
689
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
690
- # @raise [Google::Apis::AuthorizationError] Authorization is required
691
- def list_project_location_prometheu_api_v1_labels(name, location, end_: nil, match: nil, start: nil, fields: nil, quota_user: nil, options: nil, &block)
692
- command = make_simple_command(:get, 'v1/{+name}/location/{location}/prometheus/api/v1/labels', options)
693
- command.response_representation = Google::Apis::MonitoringV1::HttpBody::Representation
694
- command.response_class = Google::Apis::MonitoringV1::HttpBody
695
- command.params['name'] = name unless name.nil?
696
- command.params['location'] = location unless location.nil?
697
- command.query['end'] = end_ unless end_.nil?
698
- command.query['match'] = match unless match.nil?
699
- command.query['start'] = start unless start.nil?
700
- command.query['fields'] = fields unless fields.nil?
701
- command.query['quotaUser'] = quota_user unless quota_user.nil?
702
- execute_or_queue_command(command, &block)
703
- end
704
-
705
657
  # Lists metadata for metrics.
706
658
  # @param [String] name
707
659
  # Required. The workspace on which to execute the request. It is not part of the
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-monitoring_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.36.0
4
+ version: 0.37.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: 2023-03-26 00:00:00.000000000 Z
11
+ date: 2023-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-monitoring_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-monitoring_v1/v0.36.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-monitoring_v1/v0.37.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-monitoring_v1
63
63
  post_install_message:
64
64
  rdoc_options: []