google-apis-monitoring_v1 0.2.0 → 0.7.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: '00558a802f431e8eca51ef685397703dda96d8f7bda20c61ba20d70183818b97'
4
- data.tar.gz: 55f87e4bd019c35146ad3db0d51fe6b7faca9436882ea558d827fc4b6da85c8d
3
+ metadata.gz: 03db8c26a0197340c476901e429f21d439c39c4e0ac000e0f85cc75c2b5bcb73
4
+ data.tar.gz: 9ac1f2f85877c3c1a6a327814408882138e319a8eeb28425b1448b3ed7512555
5
5
  SHA512:
6
- metadata.gz: c18dfeee0c2ad03d30df7e1ba80b7c2482f1d50dcc3476e51e5877f483ee3fe597cd6a4f003559e9f8db3d521fc37534c69d0f7c8d6d843f8b67f19202edc79d
7
- data.tar.gz: f9609915bff24bb9a5ec6ebbfd0c755ac5a5dc2f02d29b502e0113f50787864dc85f294a8bc3e0fa40ee7b1a59dff8a78fde653e1ce54a0b22f312438b0c3689
6
+ metadata.gz: 381855ed9e40034737db4e16202a41c5ddfffb2df20a9056faf207a66e0f91887815eb9e65ee86768f654a6c6ca4b77cb37c8d9176d4ccf3497900b45bb66d71
7
+ data.tar.gz: 3cd83fa9b03e53fc9c04ce83149f040b395b8e7fdd61e3fde7cad79e6635b29669a075e36c4c4b5c8fcdf6f81a4e21720c1dd271b6c604a0b363576f53d37461
data/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # Release history for google-apis-monitoring_v1
2
2
 
3
+ ### v0.7.0 (2021-06-18)
4
+
5
+ * Regenerated from discovery document revision 20210614
6
+ * Regenerated using generator version 0.3.0
7
+
8
+ ### v0.6.0 (2021-05-19)
9
+
10
+ * Unspecified changes
11
+
12
+ ### v0.5.0 (2021-05-08)
13
+
14
+ * Regenerated from discovery document revision 20210501
15
+
16
+ ### v0.4.0 (2021-03-26)
17
+
18
+ * Regenerated from discovery document revision 20210322
19
+
20
+ ### v0.3.0 (2021-03-19)
21
+
22
+ * Regenerated from discovery document revision 20210316
23
+ * Regenerated using generator version 0.2.0
24
+
3
25
  ### v0.2.0 (2021-03-05)
4
26
 
5
27
  * Regenerated from discovery document revision 20210227
@@ -33,7 +33,7 @@ module Google
33
33
  # This is NOT the gem version.
34
34
  VERSION = 'V1'
35
35
 
36
- # View and manage your data across Google Cloud Platform services
36
+ # See, edit, configure, and delete your Google Cloud Platform data
37
37
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
38
38
 
39
39
  # View and write monitoring data for all of your Google and third-party Cloud and API projects
@@ -552,6 +552,38 @@ module Google
552
552
  end
553
553
  end
554
554
 
555
+ # Contains metadata for longrunning operation for the edit Metrics Scope
556
+ # endpoints.
557
+ class OperationMetadata
558
+ include Google::Apis::Core::Hashable
559
+
560
+ # The time when the batch request was received.
561
+ # Corresponds to the JSON property `createTime`
562
+ # @return [String]
563
+ attr_accessor :create_time
564
+
565
+ # Current state of the batch operation.
566
+ # Corresponds to the JSON property `state`
567
+ # @return [String]
568
+ attr_accessor :state
569
+
570
+ # The time when the operation result was last updated.
571
+ # Corresponds to the JSON property `updateTime`
572
+ # @return [String]
573
+ attr_accessor :update_time
574
+
575
+ def initialize(**args)
576
+ update!(**args)
577
+ end
578
+
579
+ # Update properties of this object
580
+ def update!(**args)
581
+ @create_time = args[:create_time] if args.key?(:create_time)
582
+ @state = args[:state] if args.key?(:state)
583
+ @update_time = args[:update_time] if args.key?(:update_time)
584
+ end
585
+ end
586
+
555
587
  # A protocol buffer option, which can be attached to a message, field,
556
588
  # enumeration, etc.
557
589
  class Option
@@ -794,8 +826,8 @@ module Google
794
826
  end
795
827
  end
796
828
 
797
- # The context of a span, attached to Exemplars in Distribution values during
798
- # aggregation.It contains the name of a span with format: projects/[
829
+ # The context of a span. This is attached to an Exemplar in Distribution values
830
+ # during aggregation.It contains the name of a span with format: projects/[
799
831
  # PROJECT_ID_OR_NUMBER]/traces/[TRACE_ID]/spans/[SPAN_ID]
800
832
  class SpanContext
801
833
  include Google::Apis::Core::Hashable
@@ -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.2.0"
19
+ GEM_VERSION = "0.7.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.2"
22
+ GENERATOR_VERSION = "0.3.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210227"
25
+ REVISION = "20210614"
26
26
  end
27
27
  end
28
28
  end
@@ -106,6 +106,12 @@ module Google
106
106
  include Google::Apis::Core::JsonObjectSupport
107
107
  end
108
108
 
109
+ class OperationMetadata
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
109
115
  class Option
110
116
  class Representation < Google::Apis::Core::JsonRepresentation; end
111
117
 
@@ -355,6 +361,15 @@ module Google
355
361
  end
356
362
  end
357
363
 
364
+ class OperationMetadata
365
+ # @private
366
+ class Representation < Google::Apis::Core::JsonRepresentation
367
+ property :create_time, as: 'createTime'
368
+ property :state, as: 'state'
369
+ property :update_time, as: 'updateTime'
370
+ end
371
+ end
372
+
358
373
  class Option
359
374
  # @private
360
375
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -62,6 +62,9 @@ module Google
62
62
  # [PROJECT_ID_OR_NUMBER] The [PROJECT_ID_OR_NUMBER] must match the dashboard
63
63
  # resource name.
64
64
  # @param [Google::Apis::MonitoringV1::Dashboard] dashboard_object
65
+ # @param [Boolean] validate_only
66
+ # If set, validate the request and preview the review, but do not actually save
67
+ # it.
65
68
  # @param [String] fields
66
69
  # Selector specifying which fields to include in a partial response.
67
70
  # @param [String] quota_user
@@ -79,13 +82,14 @@ module Google
79
82
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
80
83
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
81
84
  # @raise [Google::Apis::AuthorizationError] Authorization is required
82
- def create_project_dashboard(parent, dashboard_object = nil, fields: nil, quota_user: nil, options: nil, &block)
85
+ def create_project_dashboard(parent, dashboard_object = nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
83
86
  command = make_simple_command(:post, 'v1/{+parent}/dashboards', options)
84
87
  command.request_representation = Google::Apis::MonitoringV1::Dashboard::Representation
85
88
  command.request_object = dashboard_object
86
89
  command.response_representation = Google::Apis::MonitoringV1::Dashboard::Representation
87
90
  command.response_class = Google::Apis::MonitoringV1::Dashboard
88
91
  command.params['parent'] = parent unless parent.nil?
92
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
89
93
  command.query['fields'] = fields unless fields.nil?
90
94
  command.query['quotaUser'] = quota_user unless quota_user.nil?
91
95
  execute_or_queue_command(command, &block)
@@ -93,7 +97,7 @@ module Google
93
97
 
94
98
  # Deletes an existing custom dashboard.This method requires the monitoring.
95
99
  # dashboards.delete permission on the specified dashboard. For more information,
96
- # see Google Cloud IAM (https://cloud.google.com/iam).
100
+ # see Cloud Identity and Access Management (https://cloud.google.com/iam).
97
101
  # @param [String] name
98
102
  # Required. The resource name of the Dashboard. The format is: projects/[
99
103
  # PROJECT_ID_OR_NUMBER]/dashboards/[DASHBOARD_ID]
@@ -125,8 +129,8 @@ module Google
125
129
  end
126
130
 
127
131
  # Fetches a specific dashboard.This method requires the monitoring.dashboards.
128
- # get permission on the specified dashboard. For more information, see Google
129
- # Cloud IAM (https://cloud.google.com/iam).
132
+ # get permission on the specified dashboard. For more information, see Cloud
133
+ # Identity and Access Management (https://cloud.google.com/iam).
130
134
  # @param [String] name
131
135
  # Required. The resource name of the Dashboard. The format is one of: dashboards/
132
136
  # [DASHBOARD_ID] (for system dashboards) projects/[PROJECT_ID_OR_NUMBER]/
@@ -159,8 +163,8 @@ module Google
159
163
  end
160
164
 
161
165
  # Lists the existing dashboards.This method requires the monitoring.dashboards.
162
- # list permission on the specified project. For more information, see Google
163
- # Cloud IAM (https://cloud.google.com/iam).
166
+ # list permission on the specified project. For more information, see Cloud
167
+ # Identity and Access Management (https://cloud.google.com/iam).
164
168
  # @param [String] parent
165
169
  # Required. The scope of the dashboards to list. The format is: projects/[
166
170
  # PROJECT_ID_OR_NUMBER]
@@ -202,11 +206,14 @@ module Google
202
206
 
203
207
  # Replaces an existing custom dashboard with a new definition.This method
204
208
  # requires the monitoring.dashboards.update permission on the specified
205
- # dashboard. For more information, see Google Cloud IAM (https://cloud.google.
206
- # com/iam).
209
+ # dashboard. For more information, see Cloud Identity and Access Management (
210
+ # https://cloud.google.com/iam).
207
211
  # @param [String] name
208
212
  # Immutable. The resource name of the dashboard.
209
213
  # @param [Google::Apis::MonitoringV1::Dashboard] dashboard_object
214
+ # @param [Boolean] validate_only
215
+ # If set, validate the request and preview the review, but do not actually save
216
+ # it.
210
217
  # @param [String] fields
211
218
  # Selector specifying which fields to include in a partial response.
212
219
  # @param [String] quota_user
@@ -224,13 +231,14 @@ module Google
224
231
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
225
232
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
226
233
  # @raise [Google::Apis::AuthorizationError] Authorization is required
227
- def patch_project_dashboard(name, dashboard_object = nil, fields: nil, quota_user: nil, options: nil, &block)
234
+ def patch_project_dashboard(name, dashboard_object = nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
228
235
  command = make_simple_command(:patch, 'v1/{+name}', options)
229
236
  command.request_representation = Google::Apis::MonitoringV1::Dashboard::Representation
230
237
  command.request_object = dashboard_object
231
238
  command.response_representation = Google::Apis::MonitoringV1::Dashboard::Representation
232
239
  command.response_class = Google::Apis::MonitoringV1::Dashboard
233
240
  command.params['name'] = name unless name.nil?
241
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
234
242
  command.query['fields'] = fields unless fields.nil?
235
243
  command.query['quotaUser'] = quota_user unless quota_user.nil?
236
244
  execute_or_queue_command(command, &block)
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.2.0
4
+ version: 0.7.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-03-08 00:00:00.000000000 Z
11
+ date: 2021-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -52,7 +52,7 @@ licenses:
52
52
  metadata:
53
53
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
54
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-monitoring_v1/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-monitoring_v1/v0.2.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-monitoring_v1/v0.7.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-monitoring_v1
57
57
  post_install_message:
58
58
  rdoc_options: []
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.2.13
72
+ rubygems_version: 3.2.17
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Simple REST client for Cloud Monitoring API V1