From 9d0450822c2d04d3df28371e83ecc8bce211d6cb Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Thu, 8 Nov 2018 10:58:10 -0800 Subject: [PATCH] [CHANGE ME] Re-generated Monitoring to pick up changes in the API or client library generator. --- .../metadata/V3/NotificationService.php | 6 +- Monitoring/metadata/V3/Uptime.php | 122 ++++++------- .../src/V3/AlertPolicyServiceGrpcClient.php | 3 +- .../NotificationChannelServiceGapicClient.php | 2 +- Monitoring/src/V3/GroupServiceGrpcClient.php | 3 +- Monitoring/src/V3/InternalChecker.php | 163 ++++++++++-------- Monitoring/src/V3/MetricServiceGrpcClient.php | 3 +- .../NotificationChannelServiceGrpcClient.php | 5 +- Monitoring/src/V3/ServiceTier.php | 8 +- Monitoring/src/V3/UptimeCheckConfig.php | 40 +++-- .../V3/UptimeCheckConfig/ContentMatcher.php | 13 +- .../src/V3/UptimeCheckServiceGrpcClient.php | 3 +- 12 files changed, 209 insertions(+), 162 deletions(-) diff --git a/Monitoring/metadata/V3/NotificationService.php b/Monitoring/metadata/V3/NotificationService.php index d242ffa46029..6a117d25403b 100644 --- a/Monitoring/metadata/V3/NotificationService.php +++ b/Monitoring/metadata/V3/NotificationService.php @@ -18,14 +18,16 @@ public static function initOnce() { \GPBMetadata\Google\Monitoring\V3\Notification::initOnce(); \GPBMetadata\Google\Protobuf\GPBEmpty::initOnce(); \GPBMetadata\Google\Protobuf\FieldMask::initOnce(); + \GPBMetadata\Google\Protobuf\Struct::initOnce(); \GPBMetadata\Google\Protobuf\Timestamp::initOnce(); $pool->internalAddGeneratedFile(hex2bin( - "0aeb1d0a2f676f6f676c652f6d6f6e69746f72696e672f76332f6e6f7469" . + "0a891e0a2f676f6f676c652f6d6f6e69746f72696e672f76332f6e6f7469" . "6669636174696f6e5f736572766963652e70726f746f1214676f6f676c65" . "2e6d6f6e69746f72696e672e76331a27676f6f676c652f6d6f6e69746f72" . "696e672f76332f6e6f74696669636174696f6e2e70726f746f1a1b676f6f" . "676c652f70726f746f6275662f656d7074792e70726f746f1a20676f6f67" . - "6c652f70726f746f6275662f6669656c645f6d61736b2e70726f746f1a1f" . + "6c652f70726f746f6275662f6669656c645f6d61736b2e70726f746f1a1c" . + "676f6f676c652f70726f746f6275662f7374727563742e70726f746f1a1f" . "676f6f676c652f70726f746f6275662f74696d657374616d702e70726f74" . "6f22600a294c6973744e6f74696669636174696f6e4368616e6e656c4465" . "7363726970746f727352657175657374120c0a046e616d65180420012809" . diff --git a/Monitoring/metadata/V3/Uptime.php b/Monitoring/metadata/V3/Uptime.php index b22e51f139d3..6fa0eeda1e15 100644 --- a/Monitoring/metadata/V3/Uptime.php +++ b/Monitoring/metadata/V3/Uptime.php @@ -17,70 +17,70 @@ public static function initOnce() { \GPBMetadata\Google\Api\MonitoredResource::initOnce(); \GPBMetadata\Google\Protobuf\Duration::initOnce(); $pool->internalAddGeneratedFile(hex2bin( - "0af30e0a21676f6f676c652f6d6f6e69746f72696e672f76332f75707469" . + "0af20e0a21676f6f676c652f6d6f6e69746f72696e672f76332f75707469" . "6d652e70726f746f1214676f6f676c652e6d6f6e69746f72696e672e7633" . "1a1e676f6f676c652f70726f746f6275662f6475726174696f6e2e70726f" . - "746f22720a0f496e7465726e616c436865636b657212120a0a70726f6a65" . - "63745f6964180120012809120f0a076e6574776f726b1802200128091210" . - "0a086763705f7a6f6e6518032001280912120a0a636865636b65725f6964" . - "18042001280912140a0c646973706c61795f6e616d6518052001280922c1" . - "090a11557074696d65436865636b436f6e666967120c0a046e616d651801" . - "2001280912140a0c646973706c61795f6e616d65180220012809123b0a12" . - "6d6f6e69746f7265645f7265736f7572636518032001280b321d2e676f6f" . - "676c652e6170692e4d6f6e69746f7265645265736f757263654800124f0a" . - "0e7265736f757263655f67726f757018042001280b32352e676f6f676c65" . - "2e6d6f6e69746f72696e672e76332e557074696d65436865636b436f6e66" . - "69672e5265736f7572636547726f7570480012470a0a687474705f636865" . - "636b18052001280b32312e676f6f676c652e6d6f6e69746f72696e672e76" . - "332e557074696d65436865636b436f6e6669672e48747470436865636b48" . - "0112450a097463705f636865636b18062001280b32302e676f6f676c652e" . + "746f22710a0f496e7465726e616c436865636b6572120c0a046e616d6518" . + "012001280912140a0c646973706c61795f6e616d65180220012809120f0a" . + "076e6574776f726b18032001280912100a086763705f7a6f6e6518042001" . + "280912170a0f706565725f70726f6a6563745f696418062001280922c109" . + "0a11557074696d65436865636b436f6e666967120c0a046e616d65180120" . + "01280912140a0c646973706c61795f6e616d65180220012809123b0a126d" . + "6f6e69746f7265645f7265736f7572636518032001280b321d2e676f6f67" . + "6c652e6170692e4d6f6e69746f7265645265736f757263654800124f0a0e" . + "7265736f757263655f67726f757018042001280b32352e676f6f676c652e" . "6d6f6e69746f72696e672e76332e557074696d65436865636b436f6e6669" . - "672e546370436865636b480112290a06706572696f6418072001280b3219" . - "2e676f6f676c652e70726f746f6275662e4475726174696f6e122a0a0774" . - "696d656f757418082001280b32192e676f6f676c652e70726f746f627566" . - "2e4475726174696f6e12500a10636f6e74656e745f6d6174636865727318" . - "092003280b32362e676f6f676c652e6d6f6e69746f72696e672e76332e55" . - "7074696d65436865636b436f6e6669672e436f6e74656e744d6174636865" . - "7212410a1073656c65637465645f726567696f6e73180a2003280e32272e" . - "676f6f676c652e6d6f6e69746f72696e672e76332e557074696d65436865" . - "636b526567696f6e12130a0b69735f696e7465726e616c180f2001280812" . - "400a11696e7465726e616c5f636865636b657273180e2003280b32252e67" . - "6f6f676c652e6d6f6e69746f72696e672e76332e496e7465726e616c4368" . - "65636b65721a610a0d5265736f7572636547726f757012100a0867726f75" . - "705f6964180120012809123e0a0d7265736f757263655f74797065180220" . - "01280e32272e676f6f676c652e6d6f6e69746f72696e672e76332e47726f" . - "75705265736f75726365547970651ae4020a0948747470436865636b120f" . - "0a077573655f73736c180120012808120c0a047061746818022001280912" . - "0c0a04706f727418032001280512580a09617574685f696e666f18042001" . - "280b32452e676f6f676c652e6d6f6e69746f72696e672e76332e55707469" . - "6d65436865636b436f6e6669672e48747470436865636b2e426173696341" . - "757468656e7469636174696f6e12140a0c6d61736b5f6865616465727318" . - "0520012808124f0a076865616465727318062003280b323e2e676f6f676c" . - "652e6d6f6e69746f72696e672e76332e557074696d65436865636b436f6e" . - "6669672e48747470436865636b2e48656164657273456e7472791a390a13" . - "426173696341757468656e7469636174696f6e12100a08757365726e616d" . - "6518012001280912100a0870617373776f72641802200128091a2e0a0c48" . - "656164657273456e747279120b0a036b6579180120012809120d0a057661" . - "6c75651802200128093a0238011a180a08546370436865636b120c0a0470" . - "6f72741801200128051a210a0e436f6e74656e744d617463686572120f0a" . - "07636f6e74656e74180120012809420a0a087265736f7572636542140a12" . - "636865636b5f726571756573745f74797065226e0a0d557074696d654368" . - "65636b497012370a06726567696f6e18012001280e32272e676f6f676c65" . - "2e6d6f6e69746f72696e672e76332e557074696d65436865636b52656769" . - "6f6e12100a086c6f636174696f6e18022001280912120a0a69705f616464" . - "726573731803200128092a650a11557074696d65436865636b526567696f" . - "6e12160a12524547494f4e5f554e535045434946494544100012070a0355" . - "53411001120a0a064555524f5045100212110a0d534f5554485f414d4552" . - "494341100312100a0c415349415f5041434946494310042a5b0a1147726f" . - "75705265736f7572636554797065121d0a195245534f555243455f545950" . - "455f554e5350454349464945441000120c0a08494e5354414e4345100112" . - "190a154157535f454c425f4c4f41445f42414c414e434552100242a3010a" . - "18636f6d2e676f6f676c652e6d6f6e69746f72696e672e7633420b557074" . - "696d6550726f746f50015a3e676f6f676c652e676f6c616e672e6f72672f" . - "67656e70726f746f2f676f6f676c65617069732f6d6f6e69746f72696e67" . - "2f76333b6d6f6e69746f72696e67aa021a476f6f676c652e436c6f75642e" . - "4d6f6e69746f72696e672e5633ca021a476f6f676c655c436c6f75645c4d" . - "6f6e69746f72696e675c5633620670726f746f33" + "672e5265736f7572636547726f7570480012470a0a687474705f63686563" . + "6b18052001280b32312e676f6f676c652e6d6f6e69746f72696e672e7633" . + "2e557074696d65436865636b436f6e6669672e48747470436865636b4801" . + "12450a097463705f636865636b18062001280b32302e676f6f676c652e6d" . + "6f6e69746f72696e672e76332e557074696d65436865636b436f6e666967" . + "2e546370436865636b480112290a06706572696f6418072001280b32192e" . + "676f6f676c652e70726f746f6275662e4475726174696f6e122a0a077469" . + "6d656f757418082001280b32192e676f6f676c652e70726f746f6275662e" . + "4475726174696f6e12500a10636f6e74656e745f6d617463686572731809" . + "2003280b32362e676f6f676c652e6d6f6e69746f72696e672e76332e5570" . + "74696d65436865636b436f6e6669672e436f6e74656e744d617463686572" . + "12410a1073656c65637465645f726567696f6e73180a2003280e32272e67" . + "6f6f676c652e6d6f6e69746f72696e672e76332e557074696d6543686563" . + "6b526567696f6e12130a0b69735f696e7465726e616c180f200128081240" . + "0a11696e7465726e616c5f636865636b657273180e2003280b32252e676f" . + "6f676c652e6d6f6e69746f72696e672e76332e496e7465726e616c436865" . + "636b65721a610a0d5265736f7572636547726f757012100a0867726f7570" . + "5f6964180120012809123e0a0d7265736f757263655f7479706518022001" . + "280e32272e676f6f676c652e6d6f6e69746f72696e672e76332e47726f75" . + "705265736f75726365547970651ae4020a0948747470436865636b120f0a" . + "077573655f73736c180120012808120c0a0470617468180220012809120c" . + "0a04706f727418032001280512580a09617574685f696e666f1804200128" . + "0b32452e676f6f676c652e6d6f6e69746f72696e672e76332e557074696d" . + "65436865636b436f6e6669672e48747470436865636b2e42617369634175" . + "7468656e7469636174696f6e12140a0c6d61736b5f686561646572731805" . + "20012808124f0a076865616465727318062003280b323e2e676f6f676c65" . + "2e6d6f6e69746f72696e672e76332e557074696d65436865636b436f6e66" . + "69672e48747470436865636b2e48656164657273456e7472791a390a1342" . + "6173696341757468656e7469636174696f6e12100a08757365726e616d65" . + "18012001280912100a0870617373776f72641802200128091a2e0a0c4865" . + "6164657273456e747279120b0a036b6579180120012809120d0a0576616c" . + "75651802200128093a0238011a180a08546370436865636b120c0a04706f" . + "72741801200128051a210a0e436f6e74656e744d617463686572120f0a07" . + "636f6e74656e74180120012809420a0a087265736f7572636542140a1263" . + "6865636b5f726571756573745f74797065226e0a0d557074696d65436865" . + "636b497012370a06726567696f6e18012001280e32272e676f6f676c652e" . + "6d6f6e69746f72696e672e76332e557074696d65436865636b526567696f" . + "6e12100a086c6f636174696f6e18022001280912120a0a69705f61646472" . + "6573731803200128092a650a11557074696d65436865636b526567696f6e" . + "12160a12524547494f4e5f554e535045434946494544100012070a035553" . + "411001120a0a064555524f5045100212110a0d534f5554485f414d455249" . + "4341100312100a0c415349415f5041434946494310042a5b0a1147726f75" . + "705265736f7572636554797065121d0a195245534f555243455f54595045" . + "5f554e5350454349464945441000120c0a08494e5354414e434510011219" . + "0a154157535f454c425f4c4f41445f42414c414e434552100242a3010a18" . + "636f6d2e676f6f676c652e6d6f6e69746f72696e672e7633420b55707469" . + "6d6550726f746f50015a3e676f6f676c652e676f6c616e672e6f72672f67" . + "656e70726f746f2f676f6f676c65617069732f6d6f6e69746f72696e672f" . + "76333b6d6f6e69746f72696e67aa021a476f6f676c652e436c6f75642e4d" . + "6f6e69746f72696e672e5633ca021a476f6f676c655c436c6f75645c4d6f" . + "6e69746f72696e675c5633620670726f746f33" )); static::$is_initialized = true; diff --git a/Monitoring/src/V3/AlertPolicyServiceGrpcClient.php b/Monitoring/src/V3/AlertPolicyServiceGrpcClient.php index ed7675a57204..349afc1c7268 100644 --- a/Monitoring/src/V3/AlertPolicyServiceGrpcClient.php +++ b/Monitoring/src/V3/AlertPolicyServiceGrpcClient.php @@ -2,7 +2,7 @@ // GENERATED CODE -- DO NOT EDIT! // Original file comments: -// Copyright 2018 Google LLC +// Copyright 2018 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // See the License for the specific language governing permissions and // limitations under the License. // +// namespace Google\Cloud\Monitoring\V3; /** diff --git a/Monitoring/src/V3/Gapic/NotificationChannelServiceGapicClient.php b/Monitoring/src/V3/Gapic/NotificationChannelServiceGapicClient.php index 0aa419f9473c..5e5881f89d9d 100644 --- a/Monitoring/src/V3/Gapic/NotificationChannelServiceGapicClient.php +++ b/Monitoring/src/V3/Gapic/NotificationChannelServiceGapicClient.php @@ -611,7 +611,7 @@ public function getNotificationChannel($name, array $optionalArgs = []) /** * Creates a new notification channel, representing a single notification - * endpoint such as an email address, SMS number, or pagerduty service. + * endpoint such as an email address, SMS number, or PagerDuty service. * * Sample code: * ``` diff --git a/Monitoring/src/V3/GroupServiceGrpcClient.php b/Monitoring/src/V3/GroupServiceGrpcClient.php index fd4712ea87ef..fad9cea8b483 100644 --- a/Monitoring/src/V3/GroupServiceGrpcClient.php +++ b/Monitoring/src/V3/GroupServiceGrpcClient.php @@ -2,7 +2,7 @@ // GENERATED CODE -- DO NOT EDIT! // Original file comments: -// Copyright 2018 Google LLC +// Copyright 2018 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // See the License for the specific language governing permissions and // limitations under the License. // +// namespace Google\Cloud\Monitoring\V3; /** diff --git a/Monitoring/src/V3/InternalChecker.php b/Monitoring/src/V3/InternalChecker.php index 50d2c72cd882..29e76c8ba49e 100644 --- a/Monitoring/src/V3/InternalChecker.php +++ b/Monitoring/src/V3/InternalChecker.php @@ -9,44 +9,51 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Nimbus InternalCheckers. + * An internal checker allows uptime checks to run on private/internal GCP + * resources. * * Generated from protobuf message google.monitoring.v3.InternalChecker */ class InternalChecker extends \Google\Protobuf\Internal\Message { /** - * The GCP project ID. Not necessarily the same as the project_id for the - * config. + * A unique resource name for this InternalChecker. The format is: + * `projects/[PROJECT_ID]/internalCheckers/[INTERNAL_CHECKER_ID]`. + * PROJECT_ID is the stackdriver workspace project for the + * uptime check config associated with the internal checker. * - * Generated from protobuf field string project_id = 1; + * Generated from protobuf field string name = 1; */ - private $project_id = ''; + private $name = ''; /** - * The internal network to perform this uptime check on. + * The checker's human-readable name. The display name + * should be unique within a Stackdriver Workspace in order to make it easier + * to identify; however, uniqueness is not enforced. * - * Generated from protobuf field string network = 2; + * Generated from protobuf field string display_name = 2; + */ + private $display_name = ''; + /** + * The [GCP VPC network](https://cloud.google.com/vpc/docs/vpc) where the + * internal resource lives (ex: "default"). + * + * Generated from protobuf field string network = 3; */ private $network = ''; /** * The GCP zone the uptime check should egress from. Only respected for * internal uptime checks, where internal_network is specified. * - * Generated from protobuf field string gcp_zone = 3; + * Generated from protobuf field string gcp_zone = 4; */ private $gcp_zone = ''; /** - * The checker ID. + * The GCP project_id where the internal checker lives. Not necessary + * the same as the workspace project. * - * Generated from protobuf field string checker_id = 4; + * Generated from protobuf field string peer_project_id = 6; */ - private $checker_id = ''; - /** - * The checker's human-readable name. - * - * Generated from protobuf field string display_name = 5; - */ - private $display_name = ''; + private $peer_project_id = ''; /** * Constructor. @@ -54,18 +61,24 @@ class InternalChecker extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type string $project_id - * The GCP project ID. Not necessarily the same as the project_id for the - * config. + * @type string $name + * A unique resource name for this InternalChecker. The format is: + * `projects/[PROJECT_ID]/internalCheckers/[INTERNAL_CHECKER_ID]`. + * PROJECT_ID is the stackdriver workspace project for the + * uptime check config associated with the internal checker. + * @type string $display_name + * The checker's human-readable name. The display name + * should be unique within a Stackdriver Workspace in order to make it easier + * to identify; however, uniqueness is not enforced. * @type string $network - * The internal network to perform this uptime check on. + * The [GCP VPC network](https://cloud.google.com/vpc/docs/vpc) where the + * internal resource lives (ex: "default"). * @type string $gcp_zone * The GCP zone the uptime check should egress from. Only respected for * internal uptime checks, where internal_network is specified. - * @type string $checker_id - * The checker ID. - * @type string $display_name - * The checker's human-readable name. + * @type string $peer_project_id + * The GCP project_id where the internal checker lives. Not necessary + * the same as the workspace project. * } */ public function __construct($data = NULL) { @@ -74,135 +87,147 @@ public function __construct($data = NULL) { } /** - * The GCP project ID. Not necessarily the same as the project_id for the - * config. + * A unique resource name for this InternalChecker. The format is: + * `projects/[PROJECT_ID]/internalCheckers/[INTERNAL_CHECKER_ID]`. + * PROJECT_ID is the stackdriver workspace project for the + * uptime check config associated with the internal checker. * - * Generated from protobuf field string project_id = 1; + * Generated from protobuf field string name = 1; * @return string */ - public function getProjectId() + public function getName() { - return $this->project_id; + return $this->name; } /** - * The GCP project ID. Not necessarily the same as the project_id for the - * config. + * A unique resource name for this InternalChecker. The format is: + * `projects/[PROJECT_ID]/internalCheckers/[INTERNAL_CHECKER_ID]`. + * PROJECT_ID is the stackdriver workspace project for the + * uptime check config associated with the internal checker. * - * Generated from protobuf field string project_id = 1; + * Generated from protobuf field string name = 1; * @param string $var * @return $this */ - public function setProjectId($var) + public function setName($var) { GPBUtil::checkString($var, True); - $this->project_id = $var; + $this->name = $var; return $this; } /** - * The internal network to perform this uptime check on. + * The checker's human-readable name. The display name + * should be unique within a Stackdriver Workspace in order to make it easier + * to identify; however, uniqueness is not enforced. * - * Generated from protobuf field string network = 2; + * Generated from protobuf field string display_name = 2; * @return string */ - public function getNetwork() + public function getDisplayName() { - return $this->network; + return $this->display_name; } /** - * The internal network to perform this uptime check on. + * The checker's human-readable name. The display name + * should be unique within a Stackdriver Workspace in order to make it easier + * to identify; however, uniqueness is not enforced. * - * Generated from protobuf field string network = 2; + * Generated from protobuf field string display_name = 2; * @param string $var * @return $this */ - public function setNetwork($var) + public function setDisplayName($var) { GPBUtil::checkString($var, True); - $this->network = $var; + $this->display_name = $var; return $this; } /** - * The GCP zone the uptime check should egress from. Only respected for - * internal uptime checks, where internal_network is specified. + * The [GCP VPC network](https://cloud.google.com/vpc/docs/vpc) where the + * internal resource lives (ex: "default"). * - * Generated from protobuf field string gcp_zone = 3; + * Generated from protobuf field string network = 3; * @return string */ - public function getGcpZone() + public function getNetwork() { - return $this->gcp_zone; + return $this->network; } /** - * The GCP zone the uptime check should egress from. Only respected for - * internal uptime checks, where internal_network is specified. + * The [GCP VPC network](https://cloud.google.com/vpc/docs/vpc) where the + * internal resource lives (ex: "default"). * - * Generated from protobuf field string gcp_zone = 3; + * Generated from protobuf field string network = 3; * @param string $var * @return $this */ - public function setGcpZone($var) + public function setNetwork($var) { GPBUtil::checkString($var, True); - $this->gcp_zone = $var; + $this->network = $var; return $this; } /** - * The checker ID. + * The GCP zone the uptime check should egress from. Only respected for + * internal uptime checks, where internal_network is specified. * - * Generated from protobuf field string checker_id = 4; + * Generated from protobuf field string gcp_zone = 4; * @return string */ - public function getCheckerId() + public function getGcpZone() { - return $this->checker_id; + return $this->gcp_zone; } /** - * The checker ID. + * The GCP zone the uptime check should egress from. Only respected for + * internal uptime checks, where internal_network is specified. * - * Generated from protobuf field string checker_id = 4; + * Generated from protobuf field string gcp_zone = 4; * @param string $var * @return $this */ - public function setCheckerId($var) + public function setGcpZone($var) { GPBUtil::checkString($var, True); - $this->checker_id = $var; + $this->gcp_zone = $var; return $this; } /** - * The checker's human-readable name. + * The GCP project_id where the internal checker lives. Not necessary + * the same as the workspace project. * - * Generated from protobuf field string display_name = 5; + * Generated from protobuf field string peer_project_id = 6; * @return string */ - public function getDisplayName() + public function getPeerProjectId() { - return $this->display_name; + return $this->peer_project_id; } /** - * The checker's human-readable name. + * The GCP project_id where the internal checker lives. Not necessary + * the same as the workspace project. * - * Generated from protobuf field string display_name = 5; + * Generated from protobuf field string peer_project_id = 6; * @param string $var * @return $this */ - public function setDisplayName($var) + public function setPeerProjectId($var) { GPBUtil::checkString($var, True); - $this->display_name = $var; + $this->peer_project_id = $var; return $this; } diff --git a/Monitoring/src/V3/MetricServiceGrpcClient.php b/Monitoring/src/V3/MetricServiceGrpcClient.php index 1fdfef59a85b..c2c2531688b3 100644 --- a/Monitoring/src/V3/MetricServiceGrpcClient.php +++ b/Monitoring/src/V3/MetricServiceGrpcClient.php @@ -2,7 +2,7 @@ // GENERATED CODE -- DO NOT EDIT! // Original file comments: -// Copyright 2018 Google LLC +// Copyright 2018 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // See the License for the specific language governing permissions and // limitations under the License. // +// namespace Google\Cloud\Monitoring\V3; /** diff --git a/Monitoring/src/V3/NotificationChannelServiceGrpcClient.php b/Monitoring/src/V3/NotificationChannelServiceGrpcClient.php index 06284abb1b1c..6ec26d4d0143 100644 --- a/Monitoring/src/V3/NotificationChannelServiceGrpcClient.php +++ b/Monitoring/src/V3/NotificationChannelServiceGrpcClient.php @@ -2,7 +2,7 @@ // GENERATED CODE -- DO NOT EDIT! // Original file comments: -// Copyright 2018 Google LLC +// Copyright 2018 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // See the License for the specific language governing permissions and // limitations under the License. // +// namespace Google\Cloud\Monitoring\V3; /** @@ -97,7 +98,7 @@ public function GetNotificationChannel(\Google\Cloud\Monitoring\V3\GetNotificati /** * Creates a new notification channel, representing a single notification - * endpoint such as an email address, SMS number, or pagerduty service. + * endpoint such as an email address, SMS number, or PagerDuty service. * @param \Google\Cloud\Monitoring\V3\CreateNotificationChannelRequest $argument input argument * @param array $metadata metadata * @param array $options call options diff --git a/Monitoring/src/V3/ServiceTier.php b/Monitoring/src/V3/ServiceTier.php index 93a10cba6dc4..456819f8eb58 100644 --- a/Monitoring/src/V3/ServiceTier.php +++ b/Monitoring/src/V3/ServiceTier.php @@ -5,8 +5,8 @@ namespace Google\Cloud\Monitoring\V3; /** - * The tier of service for a Stackdriver account. Please see the - * [service tiers documentation](https://cloud.google.com/monitoring/accounts/tiers) + * The tier of service for a Workspace. Please see the + * [service tiers documentation](https://cloud.google.com/monitoring/workspaces/tiers) * for more details. * * Protobuf type google.monitoring.v3.ServiceTier @@ -24,7 +24,7 @@ class ServiceTier * The Stackdriver Basic tier, a free tier of service that provides basic * features, a moderate allotment of logs, and access to built-in metrics. * A number of features are not available in this tier. For more details, - * see [the service tiers documentation](https://cloud.google.com/monitoring/accounts/tiers). + * see [the service tiers documentation](https://cloud.google.com/monitoring/workspaces/tiers). * * Generated from protobuf enum SERVICE_TIER_BASIC = 1; */ @@ -33,7 +33,7 @@ class ServiceTier * The Stackdriver Premium tier, a higher, more expensive tier of service * that provides access to all Stackdriver features, lets you use Stackdriver * with AWS accounts, and has a larger allotments for logs and metrics. For - * more details, see [the service tiers documentation](https://cloud.google.com/monitoring/accounts/tiers). + * more details, see [the service tiers documentation](https://cloud.google.com/monitoring/workspaces/tiers). * * Generated from protobuf enum SERVICE_TIER_PREMIUM = 2; */ diff --git a/Monitoring/src/V3/UptimeCheckConfig.php b/Monitoring/src/V3/UptimeCheckConfig.php index 20b47dc99122..63e9ee8f310f 100644 --- a/Monitoring/src/V3/UptimeCheckConfig.php +++ b/Monitoring/src/V3/UptimeCheckConfig.php @@ -28,7 +28,7 @@ class UptimeCheckConfig extends \Google\Protobuf\Internal\Message private $name = ''; /** * A human-friendly name for the uptime check configuration. The display name - * should be unique within a Stackdriver Account in order to make it easier + * should be unique within a Stackdriver Workspace in order to make it easier * to identify; however, uniqueness is not enforced. Required. * * Generated from protobuf field string display_name = 2; @@ -62,6 +62,7 @@ class UptimeCheckConfig extends \Google\Protobuf\Internal\Message private $content_matchers; /** * The list of regions from which the check will be run. + * Some regions contain one location, and others contain more than one. * If this field is specified, enough regions to include a minimum of * 3 locations must be provided, or an error message is returned. * Not specifying this field will result in uptime checks running from all @@ -71,14 +72,17 @@ class UptimeCheckConfig extends \Google\Protobuf\Internal\Message */ private $selected_regions; /** - * Denotes whether this is a check that egresses from InternalCheckers. + * If this is true, then checks are made only from the 'internal_checkers'. + * If it is false, then checks are made only from the 'selected_regions'. + * It is an error to provide 'selected_regions' when is_internal is true, + * or to provide 'internal_checkers' when is_internal is false. * * Generated from protobuf field bool is_internal = 15; */ private $is_internal = false; /** * The internal checkers that this check will egress from. If `is_internal` is - * true and this list is empty, the check will egress from all + * true and this list is empty, the check will egress from all the * InternalCheckers configured for the project that owns this CheckConfig. * * Generated from protobuf field repeated .google.monitoring.v3.InternalChecker internal_checkers = 14; @@ -101,7 +105,7 @@ class UptimeCheckConfig extends \Google\Protobuf\Internal\Message * response. * @type string $display_name * A human-friendly name for the uptime check configuration. The display name - * should be unique within a Stackdriver Account in order to make it easier + * should be unique within a Stackdriver Workspace in order to make it easier * to identify; however, uniqueness is not enforced. Required. * @type \Google\Api\MonitoredResource $monitored_resource * The [monitored @@ -135,15 +139,19 @@ class UptimeCheckConfig extends \Google\Protobuf\Internal\Message * specified if a content match is required. * @type int[]|\Google\Protobuf\Internal\RepeatedField $selected_regions * The list of regions from which the check will be run. + * Some regions contain one location, and others contain more than one. * If this field is specified, enough regions to include a minimum of * 3 locations must be provided, or an error message is returned. * Not specifying this field will result in uptime checks running from all * regions. * @type bool $is_internal - * Denotes whether this is a check that egresses from InternalCheckers. + * If this is true, then checks are made only from the 'internal_checkers'. + * If it is false, then checks are made only from the 'selected_regions'. + * It is an error to provide 'selected_regions' when is_internal is true, + * or to provide 'internal_checkers' when is_internal is false. * @type \Google\Cloud\Monitoring\V3\InternalChecker[]|\Google\Protobuf\Internal\RepeatedField $internal_checkers * The internal checkers that this check will egress from. If `is_internal` is - * true and this list is empty, the check will egress from all + * true and this list is empty, the check will egress from all the * InternalCheckers configured for the project that owns this CheckConfig. * } */ @@ -188,7 +196,7 @@ public function setName($var) /** * A human-friendly name for the uptime check configuration. The display name - * should be unique within a Stackdriver Account in order to make it easier + * should be unique within a Stackdriver Workspace in order to make it easier * to identify; however, uniqueness is not enforced. Required. * * Generated from protobuf field string display_name = 2; @@ -201,7 +209,7 @@ public function getDisplayName() /** * A human-friendly name for the uptime check configuration. The display name - * should be unique within a Stackdriver Account in order to make it easier + * should be unique within a Stackdriver Workspace in order to make it easier * to identify; however, uniqueness is not enforced. Required. * * Generated from protobuf field string display_name = 2; @@ -432,6 +440,7 @@ public function setContentMatchers($var) /** * The list of regions from which the check will be run. + * Some regions contain one location, and others contain more than one. * If this field is specified, enough regions to include a minimum of * 3 locations must be provided, or an error message is returned. * Not specifying this field will result in uptime checks running from all @@ -447,6 +456,7 @@ public function getSelectedRegions() /** * The list of regions from which the check will be run. + * Some regions contain one location, and others contain more than one. * If this field is specified, enough regions to include a minimum of * 3 locations must be provided, or an error message is returned. * Not specifying this field will result in uptime checks running from all @@ -465,7 +475,10 @@ public function setSelectedRegions($var) } /** - * Denotes whether this is a check that egresses from InternalCheckers. + * If this is true, then checks are made only from the 'internal_checkers'. + * If it is false, then checks are made only from the 'selected_regions'. + * It is an error to provide 'selected_regions' when is_internal is true, + * or to provide 'internal_checkers' when is_internal is false. * * Generated from protobuf field bool is_internal = 15; * @return bool @@ -476,7 +489,10 @@ public function getIsInternal() } /** - * Denotes whether this is a check that egresses from InternalCheckers. + * If this is true, then checks are made only from the 'internal_checkers'. + * If it is false, then checks are made only from the 'selected_regions'. + * It is an error to provide 'selected_regions' when is_internal is true, + * or to provide 'internal_checkers' when is_internal is false. * * Generated from protobuf field bool is_internal = 15; * @param bool $var @@ -492,7 +508,7 @@ public function setIsInternal($var) /** * The internal checkers that this check will egress from. If `is_internal` is - * true and this list is empty, the check will egress from all + * true and this list is empty, the check will egress from all the * InternalCheckers configured for the project that owns this CheckConfig. * * Generated from protobuf field repeated .google.monitoring.v3.InternalChecker internal_checkers = 14; @@ -505,7 +521,7 @@ public function getInternalCheckers() /** * The internal checkers that this check will egress from. If `is_internal` is - * true and this list is empty, the check will egress from all + * true and this list is empty, the check will egress from all the * InternalCheckers configured for the project that owns this CheckConfig. * * Generated from protobuf field repeated .google.monitoring.v3.InternalChecker internal_checkers = 14; diff --git a/Monitoring/src/V3/UptimeCheckConfig/ContentMatcher.php b/Monitoring/src/V3/UptimeCheckConfig/ContentMatcher.php index 397067e0f4c4..74d91a8fe6c5 100644 --- a/Monitoring/src/V3/UptimeCheckConfig/ContentMatcher.php +++ b/Monitoring/src/V3/UptimeCheckConfig/ContentMatcher.php @@ -9,16 +9,15 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Used to perform string matching. Currently, this matches on the exact - * content. In the future, it can be expanded to allow for regular expressions - * and more complex matching. + * Used to perform string matching. It allows substring and regular + * expressions, together with their negations. * * Generated from protobuf message google.monitoring.v3.UptimeCheckConfig.ContentMatcher */ class ContentMatcher extends \Google\Protobuf\Internal\Message { /** - * String content to match (max 1024 bytes) + * String or regex content to match (max 1024 bytes) * * Generated from protobuf field string content = 1; */ @@ -31,7 +30,7 @@ class ContentMatcher extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type string $content - * String content to match (max 1024 bytes) + * String or regex content to match (max 1024 bytes) * } */ public function __construct($data = NULL) { @@ -40,7 +39,7 @@ public function __construct($data = NULL) { } /** - * String content to match (max 1024 bytes) + * String or regex content to match (max 1024 bytes) * * Generated from protobuf field string content = 1; * @return string @@ -51,7 +50,7 @@ public function getContent() } /** - * String content to match (max 1024 bytes) + * String or regex content to match (max 1024 bytes) * * Generated from protobuf field string content = 1; * @param string $var diff --git a/Monitoring/src/V3/UptimeCheckServiceGrpcClient.php b/Monitoring/src/V3/UptimeCheckServiceGrpcClient.php index e5de553e1579..97b7ee551fa5 100644 --- a/Monitoring/src/V3/UptimeCheckServiceGrpcClient.php +++ b/Monitoring/src/V3/UptimeCheckServiceGrpcClient.php @@ -2,7 +2,7 @@ // GENERATED CODE -- DO NOT EDIT! // Original file comments: -// Copyright 2018 Google LLC +// Copyright 2018 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // See the License for the specific language governing permissions and // limitations under the License. // +// namespace Google\Cloud\Monitoring\V3; /**