google-apis-monitoring_v3 0.30.0 → 0.33.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 832f27b277488b70dce1355f016c6f4efaf9e6ca85b24faa5afc64895dd7d5ba
4
- data.tar.gz: a960922101a054f1dc4d3ad39344cea01c46dc9ba864706991b334b8aae2cd05
3
+ metadata.gz: f2ca874e6ddf9c5e16d0e9108cdd8022a96970d0ea9a38d0235363bfcf20f0ca
4
+ data.tar.gz: acd2d1234d85ea7466bd827e21dc2ae0f3e1cd8353b85512d37da97ade36f104
5
5
  SHA512:
6
- metadata.gz: cfaf0f47430b0f86471941d9a0cd84c55624eedefbae38df0b0bfd8a40c7c2abec6cb1b5f57eb61dc9bd4b6f98792a9bc27ec344535982ad399d75c745961189
7
- data.tar.gz: 2ffe2f83b5a457b172830d06cf832c6f3d2826fcc3a1da6baf033d3c0074c1236d8b20cd4483601b754475b3ea47181490746e072b93fb0f7bae010568d9b84d
6
+ metadata.gz: 8ced947500e88db41b7e91f61565682d544fc5be8f755861d25e8d94e3d40023ad920e214022abce890d1f13e88f750d82e1aae9c1d9e6216067bb60830867ea
7
+ data.tar.gz: 7fb14b698274123c2754510997a0028d31a5ef12dcd1199a448b27eee3480e22efff0f1e99d23b80c55f1112b6295824b79dd0e15504abad024c652bb5e532d0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Release history for google-apis-monitoring_v3
2
2
 
3
+ ### v0.33.0 (2022-08-24)
4
+
5
+ * Regenerated from discovery document revision 20220819
6
+
7
+ ### v0.32.0 (2022-07-28)
8
+
9
+ * Regenerated from discovery document revision 20220725
10
+
11
+ ### v0.31.0 (2022-07-21)
12
+
13
+ * Regenerated from discovery document revision 20220715
14
+ * Regenerated using generator version 0.9.0
15
+
3
16
  ### v0.30.0 (2022-06-30)
4
17
 
5
18
  * Regenerated from discovery document revision 20220626
@@ -1648,6 +1648,13 @@ module Google
1648
1648
  class HttpCheck
1649
1649
  include Google::Apis::Core::Hashable
1650
1650
 
1651
+ # If present, the check will only pass if the HTTP response status code is in
1652
+ # this set of status codes. If empty, the HTTP status code will only pass if the
1653
+ # HTTP status code is 200-299.
1654
+ # Corresponds to the JSON property `acceptedResponseStatusCodes`
1655
+ # @return [Array<Google::Apis::MonitoringV3::ResponseStatusCode>]
1656
+ attr_accessor :accepted_response_status_codes
1657
+
1651
1658
  # The authentication parameters to provide to the specified resource or URL that
1652
1659
  # requires a username and password. Currently, only Basic HTTP authentication (
1653
1660
  # https://tools.ietf.org/html/rfc7617) is supported in Uptime checks.
@@ -1706,6 +1713,12 @@ module Google
1706
1713
  # @return [String]
1707
1714
  attr_accessor :path
1708
1715
 
1716
+ # Information involved in sending ICMP pings alongside public HTTP/TCP checks.
1717
+ # For HTTP, the pings are performed for each part of the redirect chain.
1718
+ # Corresponds to the JSON property `pingConfig`
1719
+ # @return [Google::Apis::MonitoringV3::PingConfig]
1720
+ attr_accessor :ping_config
1721
+
1709
1722
  # Optional (defaults to 80 when use_ssl is false, and 443 when use_ssl is true).
1710
1723
  # The TCP port on the HTTP server against which to run the check. Will be
1711
1724
  # combined with host (specified within the monitored_resource) and path to
@@ -1740,12 +1753,14 @@ module Google
1740
1753
 
1741
1754
  # Update properties of this object
1742
1755
  def update!(**args)
1756
+ @accepted_response_status_codes = args[:accepted_response_status_codes] if args.key?(:accepted_response_status_codes)
1743
1757
  @auth_info = args[:auth_info] if args.key?(:auth_info)
1744
1758
  @body = args[:body] if args.key?(:body)
1745
1759
  @content_type = args[:content_type] if args.key?(:content_type)
1746
1760
  @headers = args[:headers] if args.key?(:headers)
1747
1761
  @mask_headers = args[:mask_headers] if args.key?(:mask_headers)
1748
1762
  @path = args[:path] if args.key?(:path)
1763
+ @ping_config = args[:ping_config] if args.key?(:ping_config)
1749
1764
  @port = args[:port] if args.key?(:port)
1750
1765
  @request_method = args[:request_method] if args.key?(:request_method)
1751
1766
  @use_ssl = args[:use_ssl] if args.key?(:use_ssl)
@@ -3358,6 +3373,26 @@ module Google
3358
3373
  end
3359
3374
  end
3360
3375
 
3376
+ # Information involved in sending ICMP pings alongside public HTTP/TCP checks.
3377
+ # For HTTP, the pings are performed for each part of the redirect chain.
3378
+ class PingConfig
3379
+ include Google::Apis::Core::Hashable
3380
+
3381
+ # Number of ICMP pings. A maximum of 3 ICMP pings is currently supported.
3382
+ # Corresponds to the JSON property `pingsCount`
3383
+ # @return [Fixnum]
3384
+ attr_accessor :pings_count
3385
+
3386
+ def initialize(**args)
3387
+ update!(**args)
3388
+ end
3389
+
3390
+ # Update properties of this object
3391
+ def update!(**args)
3392
+ @pings_count = args[:pings_count] if args.key?(:pings_count)
3393
+ end
3394
+ end
3395
+
3361
3396
  # A single data point in a time series.
3362
3397
  class Point
3363
3398
  include Google::Apis::Core::Hashable
@@ -3627,6 +3662,32 @@ module Google
3627
3662
  end
3628
3663
  end
3629
3664
 
3665
+ # A status to accept. Either a status code class like "2xx", or an integer
3666
+ # status code like "200".
3667
+ class ResponseStatusCode
3668
+ include Google::Apis::Core::Hashable
3669
+
3670
+ # A class of status codes to accept.
3671
+ # Corresponds to the JSON property `statusClass`
3672
+ # @return [String]
3673
+ attr_accessor :status_class
3674
+
3675
+ # A status code to accept.
3676
+ # Corresponds to the JSON property `statusValue`
3677
+ # @return [Fixnum]
3678
+ attr_accessor :status_value
3679
+
3680
+ def initialize(**args)
3681
+ update!(**args)
3682
+ end
3683
+
3684
+ # Update properties of this object
3685
+ def update!(**args)
3686
+ @status_class = args[:status_class] if args.key?(:status_class)
3687
+ @status_value = args[:status_value] if args.key?(:status_value)
3688
+ end
3689
+ end
3690
+
3630
3691
  # The SendNotificationChannelVerificationCode request.
3631
3692
  class SendNotificationChannelVerificationCodeRequest
3632
3693
  include Google::Apis::Core::Hashable
@@ -3976,6 +4037,12 @@ module Google
3976
4037
  class TcpCheck
3977
4038
  include Google::Apis::Core::Hashable
3978
4039
 
4040
+ # Information involved in sending ICMP pings alongside public HTTP/TCP checks.
4041
+ # For HTTP, the pings are performed for each part of the redirect chain.
4042
+ # Corresponds to the JSON property `pingConfig`
4043
+ # @return [Google::Apis::MonitoringV3::PingConfig]
4044
+ attr_accessor :ping_config
4045
+
3979
4046
  # The TCP port on the server against which to run the check. Will be combined
3980
4047
  # with host (specified within the monitored_resource) to construct the full URL.
3981
4048
  # Required.
@@ -3989,6 +4056,7 @@ module Google
3989
4056
 
3990
4057
  # Update properties of this object
3991
4058
  def update!(**args)
4059
+ @ping_config = args[:ping_config] if args.key?(:ping_config)
3992
4060
  @port = args[:port] if args.key?(:port)
3993
4061
  end
3994
4062
  end
@@ -4491,6 +4559,15 @@ module Google
4491
4559
  # @return [String]
4492
4560
  attr_accessor :timeout
4493
4561
 
4562
+ # User-supplied key/value data to be used for organizing and identifying the
4563
+ # UptimeCheckConfig objects.The field can contain up to 64 entries. Each key and
4564
+ # value is limited to 63 Unicode characters or 128 bytes, whichever is smaller.
4565
+ # Labels and values can contain only lowercase letters, numerals, underscores,
4566
+ # and dashes. Keys must begin with a letter.
4567
+ # Corresponds to the JSON property `userLabels`
4568
+ # @return [Hash<String,String>]
4569
+ attr_accessor :user_labels
4570
+
4494
4571
  def initialize(**args)
4495
4572
  update!(**args)
4496
4573
  end
@@ -4510,6 +4587,7 @@ module Google
4510
4587
  @selected_regions = args[:selected_regions] if args.key?(:selected_regions)
4511
4588
  @tcp_check = args[:tcp_check] if args.key?(:tcp_check)
4512
4589
  @timeout = args[:timeout] if args.key?(:timeout)
4590
+ @user_labels = args[:user_labels] if args.key?(:user_labels)
4513
4591
  end
4514
4592
  end
4515
4593
 
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module MonitoringV3
18
18
  # Version of the google-apis-monitoring_v3 gem
19
- GEM_VERSION = "0.30.0"
19
+ GEM_VERSION = "0.33.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.8.0"
22
+ GENERATOR_VERSION = "0.9.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220626"
25
+ REVISION = "20220819"
26
26
  end
27
27
  end
28
28
  end
@@ -490,6 +490,12 @@ module Google
490
490
  include Google::Apis::Core::JsonObjectSupport
491
491
  end
492
492
 
493
+ class PingConfig
494
+ class Representation < Google::Apis::Core::JsonRepresentation; end
495
+
496
+ include Google::Apis::Core::JsonObjectSupport
497
+ end
498
+
493
499
  class Point
494
500
  class Representation < Google::Apis::Core::JsonRepresentation; end
495
501
 
@@ -532,6 +538,12 @@ module Google
532
538
  include Google::Apis::Core::JsonObjectSupport
533
539
  end
534
540
 
541
+ class ResponseStatusCode
542
+ class Representation < Google::Apis::Core::JsonRepresentation; end
543
+
544
+ include Google::Apis::Core::JsonObjectSupport
545
+ end
546
+
535
547
  class SendNotificationChannelVerificationCodeRequest
536
548
  class Representation < Google::Apis::Core::JsonRepresentation; end
537
549
 
@@ -1062,6 +1074,8 @@ module Google
1062
1074
  class HttpCheck
1063
1075
  # @private
1064
1076
  class Representation < Google::Apis::Core::JsonRepresentation
1077
+ collection :accepted_response_status_codes, as: 'acceptedResponseStatusCodes', class: Google::Apis::MonitoringV3::ResponseStatusCode, decorator: Google::Apis::MonitoringV3::ResponseStatusCode::Representation
1078
+
1065
1079
  property :auth_info, as: 'authInfo', class: Google::Apis::MonitoringV3::BasicAuthentication, decorator: Google::Apis::MonitoringV3::BasicAuthentication::Representation
1066
1080
 
1067
1081
  property :body, :base64 => true, as: 'body'
@@ -1069,6 +1083,8 @@ module Google
1069
1083
  hash :headers, as: 'headers'
1070
1084
  property :mask_headers, as: 'maskHeaders'
1071
1085
  property :path, as: 'path'
1086
+ property :ping_config, as: 'pingConfig', class: Google::Apis::MonitoringV3::PingConfig, decorator: Google::Apis::MonitoringV3::PingConfig::Representation
1087
+
1072
1088
  property :port, as: 'port'
1073
1089
  property :request_method, as: 'requestMethod'
1074
1090
  property :use_ssl, as: 'useSsl'
@@ -1461,6 +1477,13 @@ module Google
1461
1477
  end
1462
1478
  end
1463
1479
 
1480
+ class PingConfig
1481
+ # @private
1482
+ class Representation < Google::Apis::Core::JsonRepresentation
1483
+ property :pings_count, as: 'pingsCount'
1484
+ end
1485
+ end
1486
+
1464
1487
  class Point
1465
1488
  # @private
1466
1489
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1529,6 +1552,14 @@ module Google
1529
1552
  end
1530
1553
  end
1531
1554
 
1555
+ class ResponseStatusCode
1556
+ # @private
1557
+ class Representation < Google::Apis::Core::JsonRepresentation
1558
+ property :status_class, as: 'statusClass'
1559
+ property :status_value, as: 'statusValue'
1560
+ end
1561
+ end
1562
+
1532
1563
  class SendNotificationChannelVerificationCodeRequest
1533
1564
  # @private
1534
1565
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1618,6 +1649,8 @@ module Google
1618
1649
  class TcpCheck
1619
1650
  # @private
1620
1651
  class Representation < Google::Apis::Core::JsonRepresentation
1652
+ property :ping_config, as: 'pingConfig', class: Google::Apis::MonitoringV3::PingConfig, decorator: Google::Apis::MonitoringV3::PingConfig::Representation
1653
+
1621
1654
  property :port, as: 'port'
1622
1655
  end
1623
1656
  end
@@ -1740,6 +1773,7 @@ module Google
1740
1773
  property :tcp_check, as: 'tcpCheck', class: Google::Apis::MonitoringV3::TcpCheck, decorator: Google::Apis::MonitoringV3::TcpCheck::Representation
1741
1774
 
1742
1775
  property :timeout, as: 'timeout'
1776
+ hash :user_labels, as: 'userLabels'
1743
1777
  end
1744
1778
  end
1745
1779
 
@@ -880,10 +880,10 @@ module Google
880
880
  execute_or_queue_command(command, &block)
881
881
  end
882
882
 
883
- # Creates a new metric descriptor. The creation is executed asynchronously and
884
- # callers may check the returned operation to track its progress. User-created
885
- # metric descriptors define custom metrics (https://cloud.google.com/monitoring/
886
- # custom-metrics).
883
+ # Creates a new metric descriptor. The creation is executed asynchronously. User-
884
+ # created metric descriptors define custom metrics (https://cloud.google.com/
885
+ # monitoring/custom-metrics). The metric descriptor is updated if it already
886
+ # exists, except that metric labels are never removed.
887
887
  # @param [String] name
888
888
  # Required. The project (https://cloud.google.com/monitoring/api/v3#project_name)
889
889
  # on which to execute the request. The format is: 4 projects/
@@ -1894,6 +1894,11 @@ module Google
1894
1894
  # Required. The project (https://cloud.google.com/monitoring/api/v3#project_name)
1895
1895
  # whose Uptime check configurations are listed. The format is: projects/[
1896
1896
  # PROJECT_ID_OR_NUMBER]
1897
+ # @param [String] filter
1898
+ # If provided, this field specifies the criteria that must be met by uptime
1899
+ # checks to be included in the response.For more details, see Filtering syntax (
1900
+ # https://cloud.google.com/monitoring/api/v3/sorting-and-filtering#filter_syntax)
1901
+ # .
1897
1902
  # @param [Fixnum] page_size
1898
1903
  # The maximum number of results to return in a single response. The server may
1899
1904
  # further constrain the maximum number of results returned in a single page. If
@@ -1920,11 +1925,12 @@ module Google
1920
1925
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1921
1926
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1922
1927
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1923
- def list_project_uptime_check_configs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1928
+ def list_project_uptime_check_configs(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1924
1929
  command = make_simple_command(:get, 'v3/{+parent}/uptimeCheckConfigs', options)
1925
1930
  command.response_representation = Google::Apis::MonitoringV3::ListUptimeCheckConfigsResponse::Representation
1926
1931
  command.response_class = Google::Apis::MonitoringV3::ListUptimeCheckConfigsResponse
1927
1932
  command.params['parent'] = parent unless parent.nil?
1933
+ command.query['filter'] = filter unless filter.nil?
1928
1934
  command.query['pageSize'] = page_size unless page_size.nil?
1929
1935
  command.query['pageToken'] = page_token unless page_token.nil?
1930
1936
  command.query['fields'] = fields unless fields.nil?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-monitoring_v3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.30.0
4
+ version: 0.33.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: 2022-07-04 00:00:00.000000000 Z
11
+ date: 2022-08-29 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_v3/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-monitoring_v3/v0.30.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-monitoring_v3/v0.33.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-monitoring_v3
63
63
  post_install_message:
64
64
  rdoc_options: []