Skip to content

Commit da5878b

Browse files
feat: Automated regeneration of monitoring v1 client (googleapis#21118)
Auto-created at 2024-12-22 10:09:02 +0000 using the toys pull request generator.
1 parent 1dd8ab8 commit da5878b

File tree

5 files changed

+60
-2
lines changed

5 files changed

+60
-2
lines changed

api_names_out.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265973,6 +265973,9 @@
265973265973
"/monitoring:v1/ColumnSettings/thresholds": thresholds
265974265974
"/monitoring:v1/ColumnSettings/thresholds/threshold": threshold
265975265975
"/monitoring:v1/ColumnSettings/visible": visible
265976+
"/monitoring:v1/ColumnSortingOptions": column_sorting_options
265977+
"/monitoring:v1/ColumnSortingOptions/column": column
265978+
"/monitoring:v1/ColumnSortingOptions/direction": direction
265976265979
"/monitoring:v1/Dashboard": dashboard
265977265980
"/monitoring:v1/Dashboard/annotations": annotations
265978265981
"/monitoring:v1/Dashboard/columnLayout": column_layout
@@ -266011,6 +266014,8 @@
266011266014
"/monitoring:v1/DataSet/measures/measure": measure
266012266015
"/monitoring:v1/DataSet/minAlignmentPeriod": min_alignment_period
266013266016
"/monitoring:v1/DataSet/plotType": plot_type
266017+
"/monitoring:v1/DataSet/sort": sort
266018+
"/monitoring:v1/DataSet/sort/sort": sort
266014266019
"/monitoring:v1/DataSet/targetAxis": target_axis
266015266020
"/monitoring:v1/DataSet/timeSeriesQuery": time_series_query
266016266021
"/monitoring:v1/Dimension": dimension

generated/google-apis-monitoring_v1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-monitoring_v1
22

3+
### v0.53.0 (2024-12-22)
4+
5+
* Regenerated from discovery document revision 20241212
6+
37
### v0.52.0 (2024-12-02)
48

59
* Regenerated from discovery document revision 20241003

generated/google-apis-monitoring_v1/lib/google/apis/monitoring_v1/classes.rb

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,32 @@ def update!(**args)
382382
end
383383
end
384384

385+
# Data structure to storing column's sort strategy
386+
class ColumnSortingOptions
387+
include Google::Apis::Core::Hashable
388+
389+
# Optional. Column name to sort data by
390+
# Corresponds to the JSON property `column`
391+
# @return [String]
392+
attr_accessor :column
393+
394+
# Optional. A sorting direction that determines ascending or descending order.
395+
# This is a legacy field kept for backwards compatibility with table.
396+
# Corresponds to the JSON property `direction`
397+
# @return [String]
398+
attr_accessor :direction
399+
400+
def initialize(**args)
401+
update!(**args)
402+
end
403+
404+
# Update properties of this object
405+
def update!(**args)
406+
@column = args[:column] if args.key?(:column)
407+
@direction = args[:direction] if args.key?(:direction)
408+
end
409+
end
410+
385411
# A Google Stackdriver dashboard. Dashboards define the content and layout of
386412
# pages in the Stackdriver web application.
387413
class Dashboard
@@ -604,6 +630,12 @@ class DataSet
604630
# @return [String]
605631
attr_accessor :plot_type
606632

633+
# Optional. A collection of sort options, affects the order of the data and
634+
# legend.
635+
# Corresponds to the JSON property `sort`
636+
# @return [Array<Google::Apis::MonitoringV1::ColumnSortingOptions>]
637+
attr_accessor :sort
638+
607639
# Optional. The target axis to use for plotting the metric.
608640
# Corresponds to the JSON property `targetAxis`
609641
# @return [String]
@@ -627,6 +659,7 @@ def update!(**args)
627659
@measures = args[:measures] if args.key?(:measures)
628660
@min_alignment_period = args[:min_alignment_period] if args.key?(:min_alignment_period)
629661
@plot_type = args[:plot_type] if args.key?(:plot_type)
662+
@sort = args[:sort] if args.key?(:sort)
630663
@target_axis = args[:target_axis] if args.key?(:target_axis)
631664
@time_series_query = args[:time_series_query] if args.key?(:time_series_query)
632665
end

generated/google-apis-monitoring_v1/lib/google/apis/monitoring_v1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module MonitoringV1
1818
# Version of the google-apis-monitoring_v1 gem
19-
GEM_VERSION = "0.52.0"
19+
GEM_VERSION = "0.53.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.15.1"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20241003"
25+
REVISION = "20241212"
2626
end
2727
end
2828
end

generated/google-apis-monitoring_v1/lib/google/apis/monitoring_v1/representations.rb

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
8282
include Google::Apis::Core::JsonObjectSupport
8383
end
8484

85+
class ColumnSortingOptions
86+
class Representation < Google::Apis::Core::JsonRepresentation; end
87+
88+
include Google::Apis::Core::JsonObjectSupport
89+
end
90+
8591
class Dashboard
8692
class Representation < Google::Apis::Core::JsonRepresentation; end
8793

@@ -537,6 +543,14 @@ class Representation < Google::Apis::Core::JsonRepresentation
537543
end
538544
end
539545

546+
class ColumnSortingOptions
547+
# @private
548+
class Representation < Google::Apis::Core::JsonRepresentation
549+
property :column, as: 'column'
550+
property :direction, as: 'direction'
551+
end
552+
end
553+
540554
class Dashboard
541555
# @private
542556
class Representation < Google::Apis::Core::JsonRepresentation
@@ -597,6 +611,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
597611

598612
property :min_alignment_period, as: 'minAlignmentPeriod'
599613
property :plot_type, as: 'plotType'
614+
collection :sort, as: 'sort', class: Google::Apis::MonitoringV1::ColumnSortingOptions, decorator: Google::Apis::MonitoringV1::ColumnSortingOptions::Representation
615+
600616
property :target_axis, as: 'targetAxis'
601617
property :time_series_query, as: 'timeSeriesQuery', class: Google::Apis::MonitoringV1::TimeSeriesQuery, decorator: Google::Apis::MonitoringV1::TimeSeriesQuery::Representation
602618

0 commit comments

Comments
 (0)