google-apis-monitoring_v1 0.10.0 → 0.11.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: 117c3bf79a45ece85be2d9e255f427e4db7cb8884d9aed0ce44dbd85e7e5fe2d
4
- data.tar.gz: 12ba177729be73c4761a9678c11c22c4dbeb769460619691ae0c2d80c60ff21b
3
+ metadata.gz: 3cf6a27e01685ea3a88c1c8858410b8c4f5cc6523557e8eb747639316f2cc95c
4
+ data.tar.gz: ab15eea73d9cf1db00e308c17a6a38f514f35a2cc618565dadca3fa9edb8da20
5
5
  SHA512:
6
- metadata.gz: 206d67d3927a318745f52a5c1712a394e1db279960080c6cfbd99e2b1d24978af7197a1495f9ab46b34c7b50a93bbb8e04048ef8ea3fcd8c3333e90df1caf571
7
- data.tar.gz: ce0e5d87d44c201f3cb75d7821c3f5d76d5da0d90b14a2c25c324ac3519324bd00ceea5b04e33e9c351180a7f3534878c6d141eb46637fd03026bf5935afbc52
6
+ metadata.gz: 1361aaaa3556055609b8e79a4b4c67e661aad6050eb4f252189ac8f3c879868362f3812251de2ca0d5d46e33217b14aa2e7e6d9b4fe5155b8fa089296e09377b
7
+ data.tar.gz: 97456ce5cb27455736a3302b0a8b25355b170f2295c18d527fde90f4d72103ec9126bd08b7307cdae16ddffd5c6572b5f6180c343f5b0f0c218be6b78e5eacfa
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-monitoring_v1
2
2
 
3
+ ### v0.11.0 (2021-07-30)
4
+
5
+ * Regenerated from discovery document revision 20210727
6
+
3
7
  ### v0.10.0 (2021-07-16)
4
8
 
5
9
  * Regenerated from discovery document revision 20210712
@@ -544,6 +544,98 @@ module Google
544
544
  end
545
545
  end
546
546
 
547
+ # Response for the ListMetricsScopesByMonitoredProject method.
548
+ class ListMetricsScopesByMonitoredProjectResponse
549
+ include Google::Apis::Core::Hashable
550
+
551
+ # A set of all metrics scopes that the specified monitored project has been
552
+ # added to.
553
+ # Corresponds to the JSON property `metricsScopes`
554
+ # @return [Array<Google::Apis::MonitoringV1::MetricsScope>]
555
+ attr_accessor :metrics_scopes
556
+
557
+ def initialize(**args)
558
+ update!(**args)
559
+ end
560
+
561
+ # Update properties of this object
562
+ def update!(**args)
563
+ @metrics_scopes = args[:metrics_scopes] if args.key?(:metrics_scopes)
564
+ end
565
+ end
566
+
567
+ # Represents a Metrics Scope (https://cloud.google.com/monitoring/settings#
568
+ # concept-scope) in Cloud Monitoring, which specifies one or more Google
569
+ # projects and zero or more AWS accounts to monitor together.
570
+ class MetricsScope
571
+ include Google::Apis::Core::Hashable
572
+
573
+ # Output only. The time when this Metrics Scope was created.
574
+ # Corresponds to the JSON property `createTime`
575
+ # @return [String]
576
+ attr_accessor :create_time
577
+
578
+ # Output only. The list of projects monitored by this Metrics Scope.
579
+ # Corresponds to the JSON property `monitoredProjects`
580
+ # @return [Array<Google::Apis::MonitoringV1::MonitoredProject>]
581
+ attr_accessor :monitored_projects
582
+
583
+ # Immutable. The resource name of the Monitoring Metrics Scope. On input, the
584
+ # resource name can be specified with the scoping project ID or number. On
585
+ # output, the resource name is specified with the scoping project number.
586
+ # Example: locations/global/metricsScopes/`SCOPING_PROJECT_ID_OR_NUMBER`
587
+ # Corresponds to the JSON property `name`
588
+ # @return [String]
589
+ attr_accessor :name
590
+
591
+ # Output only. The time when this Metrics Scope record was last updated.
592
+ # Corresponds to the JSON property `updateTime`
593
+ # @return [String]
594
+ attr_accessor :update_time
595
+
596
+ def initialize(**args)
597
+ update!(**args)
598
+ end
599
+
600
+ # Update properties of this object
601
+ def update!(**args)
602
+ @create_time = args[:create_time] if args.key?(:create_time)
603
+ @monitored_projects = args[:monitored_projects] if args.key?(:monitored_projects)
604
+ @name = args[:name] if args.key?(:name)
605
+ @update_time = args[:update_time] if args.key?(:update_time)
606
+ end
607
+ end
608
+
609
+ # A project being monitored (https://cloud.google.com/monitoring/settings/
610
+ # multiple-projects#create-multi) by a Metrics Scope.
611
+ class MonitoredProject
612
+ include Google::Apis::Core::Hashable
613
+
614
+ # Output only. The time when this MonitoredProject was created.
615
+ # Corresponds to the JSON property `createTime`
616
+ # @return [String]
617
+ attr_accessor :create_time
618
+
619
+ # Immutable. The resource name of the MonitoredProject. On input, the resource
620
+ # name includes the scoping project ID and monitored project ID. On output, it
621
+ # contains the equivalent project numbers. Example: locations/global/
622
+ # metricsScopes/`SCOPING_PROJECT_ID_OR_NUMBER`/projects/`
623
+ # MONITORED_PROJECT_ID_OR_NUMBER`
624
+ # Corresponds to the JSON property `name`
625
+ # @return [String]
626
+ attr_accessor :name
627
+
628
+ def initialize(**args)
629
+ update!(**args)
630
+ end
631
+
632
+ # Update properties of this object
633
+ def update!(**args)
634
+ @create_time = args[:create_time] if args.key?(:create_time)
635
+ @name = args[:name] if args.key?(:name)
636
+ end
637
+ end
638
+
547
639
  # A mosaic layout divides the available space into a grid of blocks, and
548
640
  # overlays the grid with tiles. Unlike GridLayout, tiles may span multiple grid
549
641
  # blocks and can be placed at arbitrary locations in the grid.
@@ -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.10.0"
19
+ GEM_VERSION = "0.11.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210712"
25
+ REVISION = "20210727"
26
26
  end
27
27
  end
28
28
  end
@@ -106,6 +106,24 @@ module Google
106
106
  include Google::Apis::Core::JsonObjectSupport
107
107
  end
108
108
 
109
+ class ListMetricsScopesByMonitoredProjectResponse
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class MetricsScope
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class MonitoredProject
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
109
127
  class MosaicLayout
110
128
  class Representation < Google::Apis::Core::JsonRepresentation; end
111
129
 
@@ -377,6 +395,33 @@ module Google
377
395
  end
378
396
  end
379
397
 
398
+ class ListMetricsScopesByMonitoredProjectResponse
399
+ # @private
400
+ class Representation < Google::Apis::Core::JsonRepresentation
401
+ collection :metrics_scopes, as: 'metricsScopes', class: Google::Apis::MonitoringV1::MetricsScope, decorator: Google::Apis::MonitoringV1::MetricsScope::Representation
402
+
403
+ end
404
+ end
405
+
406
+ class MetricsScope
407
+ # @private
408
+ class Representation < Google::Apis::Core::JsonRepresentation
409
+ property :create_time, as: 'createTime'
410
+ collection :monitored_projects, as: 'monitoredProjects', class: Google::Apis::MonitoringV1::MonitoredProject, decorator: Google::Apis::MonitoringV1::MonitoredProject::Representation
411
+
412
+ property :name, as: 'name'
413
+ property :update_time, as: 'updateTime'
414
+ end
415
+ end
416
+
417
+ class MonitoredProject
418
+ # @private
419
+ class Representation < Google::Apis::Core::JsonRepresentation
420
+ property :create_time, as: 'createTime'
421
+ property :name, as: 'name'
422
+ end
423
+ end
424
+
380
425
  class MosaicLayout
381
426
  # @private
382
427
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -54,6 +54,140 @@ module Google
54
54
  @batch_path = 'batch'
55
55
  end
56
56
 
57
+ # Returns a specific Metrics Scope.
58
+ # @param [String] name
59
+ # Required. The resource name of the Metrics Scope. Example: locations/global/
60
+ # metricsScopes/`SCOPING_PROJECT_ID_OR_NUMBER`
61
+ # @param [String] fields
62
+ # Selector specifying which fields to include in a partial response.
63
+ # @param [String] quota_user
64
+ # Available to use for quota purposes for server-side applications. Can be any
65
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
66
+ # @param [Google::Apis::RequestOptions] options
67
+ # Request-specific options
68
+ #
69
+ # @yield [result, err] Result & error if block supplied
70
+ # @yieldparam result [Google::Apis::MonitoringV1::MetricsScope] parsed result object
71
+ # @yieldparam err [StandardError] error object if request failed
72
+ #
73
+ # @return [Google::Apis::MonitoringV1::MetricsScope]
74
+ #
75
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
76
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
77
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
78
+ def get_location_global_metrics_scope(name, fields: nil, quota_user: nil, options: nil, &block)
79
+ command = make_simple_command(:get, 'v1/{+name}', options)
80
+ command.response_representation = Google::Apis::MonitoringV1::MetricsScope::Representation
81
+ command.response_class = Google::Apis::MonitoringV1::MetricsScope
82
+ command.params['name'] = name unless name.nil?
83
+ command.query['fields'] = fields unless fields.nil?
84
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
85
+ execute_or_queue_command(command, &block)
86
+ end
87
+
88
+ # Returns a list of every Metrics Scope that a specific MonitoredProject has
89
+ # been added to. The metrics scope representing the specified monitored project
90
+ # will always be the first entry in the response.
91
+ # @param [String] monitored_resource_container
92
+ # Required. The resource name of the Monitored Project being requested. Example:
93
+ # projects/`MONITORED_PROJECT_ID_OR_NUMBER`
94
+ # @param [String] fields
95
+ # Selector specifying which fields to include in a partial response.
96
+ # @param [String] quota_user
97
+ # Available to use for quota purposes for server-side applications. Can be any
98
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
99
+ # @param [Google::Apis::RequestOptions] options
100
+ # Request-specific options
101
+ #
102
+ # @yield [result, err] Result & error if block supplied
103
+ # @yieldparam result [Google::Apis::MonitoringV1::ListMetricsScopesByMonitoredProjectResponse] parsed result object
104
+ # @yieldparam err [StandardError] error object if request failed
105
+ #
106
+ # @return [Google::Apis::MonitoringV1::ListMetricsScopesByMonitoredProjectResponse]
107
+ #
108
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
109
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
110
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
111
+ def list_location_global_metrics_scope_metrics_scopes_by_monitored_project(monitored_resource_container: nil, fields: nil, quota_user: nil, options: nil, &block)
112
+ command = make_simple_command(:get, 'v1/locations/global/metricsScopes:listMetricsScopesByMonitoredProject', options)
113
+ command.response_representation = Google::Apis::MonitoringV1::ListMetricsScopesByMonitoredProjectResponse::Representation
114
+ command.response_class = Google::Apis::MonitoringV1::ListMetricsScopesByMonitoredProjectResponse
115
+ command.query['monitoredResourceContainer'] = monitored_resource_container unless monitored_resource_container.nil?
116
+ command.query['fields'] = fields unless fields.nil?
117
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
118
+ execute_or_queue_command(command, &block)
119
+ end
120
+
121
+ # Adds a MonitoredProject with the given project ID to the specified Metrics
122
+ # Scope.
123
+ # @param [String] parent
124
+ # Required. The resource name of the existing Metrics Scope that will monitor
125
+ # this project. Example: locations/global/metricsScopes/`
126
+ # SCOPING_PROJECT_ID_OR_NUMBER`
127
+ # @param [Google::Apis::MonitoringV1::MonitoredProject] monitored_project_object
128
+ # @param [String] fields
129
+ # Selector specifying which fields to include in a partial response.
130
+ # @param [String] quota_user
131
+ # Available to use for quota purposes for server-side applications. Can be any
132
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
133
+ # @param [Google::Apis::RequestOptions] options
134
+ # Request-specific options
135
+ #
136
+ # @yield [result, err] Result & error if block supplied
137
+ # @yieldparam result [Google::Apis::MonitoringV1::Operation] parsed result object
138
+ # @yieldparam err [StandardError] error object if request failed
139
+ #
140
+ # @return [Google::Apis::MonitoringV1::Operation]
141
+ #
142
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
143
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
144
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
145
+ def create_location_global_metrics_scope_project(parent, monitored_project_object = nil, fields: nil, quota_user: nil, options: nil, &block)
146
+ command = make_simple_command(:post, 'v1/{+parent}/projects', options)
147
+ command.request_representation = Google::Apis::MonitoringV1::MonitoredProject::Representation
148
+ command.request_object = monitored_project_object
149
+ command.response_representation = Google::Apis::MonitoringV1::Operation::Representation
150
+ command.response_class = Google::Apis::MonitoringV1::Operation
151
+ command.params['parent'] = parent unless parent.nil?
152
+ command.query['fields'] = fields unless fields.nil?
153
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
154
+ execute_or_queue_command(command, &block)
155
+ end
156
+
157
+ # Deletes a MonitoredProject from the specified Metrics Scope.
158
+ # @param [String] name
159
+ # Required. The resource name of the MonitoredProject. Example: locations/global/
160
+ # metricsScopes/`SCOPING_PROJECT_ID_OR_NUMBER`/projects/`
161
+ # MONITORED_PROJECT_ID_OR_NUMBER`Authorization requires the following Google IAM
162
+ # (https://cloud.google.com/iam) permissions on both the Metrics Scope and on
163
+ # the MonitoredProject: monitoring.metricsScopes.link
164
+ # @param [String] fields
165
+ # Selector specifying which fields to include in a partial response.
166
+ # @param [String] quota_user
167
+ # Available to use for quota purposes for server-side applications. Can be any
168
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
169
+ # @param [Google::Apis::RequestOptions] options
170
+ # Request-specific options
171
+ #
172
+ # @yield [result, err] Result & error if block supplied
173
+ # @yieldparam result [Google::Apis::MonitoringV1::Operation] parsed result object
174
+ # @yieldparam err [StandardError] error object if request failed
175
+ #
176
+ # @return [Google::Apis::MonitoringV1::Operation]
177
+ #
178
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
179
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
180
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
181
+ def delete_location_global_metrics_scope_project(name, fields: nil, quota_user: nil, options: nil, &block)
182
+ command = make_simple_command(:delete, 'v1/{+name}', options)
183
+ command.response_representation = Google::Apis::MonitoringV1::Operation::Representation
184
+ command.response_class = Google::Apis::MonitoringV1::Operation
185
+ command.params['name'] = name unless name.nil?
186
+ command.query['fields'] = fields unless fields.nil?
187
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
188
+ execute_or_queue_command(command, &block)
189
+ end
190
+
57
191
  # Gets the latest state of a long-running operation. Clients can use this method
58
192
  # to poll the operation result at intervals as recommended by the API service.
59
193
  # @param [String] name
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.10.0
4
+ version: 0.11.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: 2021-07-19 00:00:00.000000000 Z
11
+ date: 2021-08-02 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/master/generated/google-apis-monitoring_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-monitoring_v1/v0.10.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-monitoring_v1/v0.11.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-monitoring_v1
63
63
  post_install_message:
64
64
  rdoc_options: []