Skip to content

Commit

Permalink
chore: remove unused imports from google/monitoring/v3
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 431809723
  • Loading branch information
Google APIs authored and Copybara-Service committed Mar 2, 2022
1 parent 513fc46 commit 5a64eb3
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 23 deletions.
2 changes: 0 additions & 2 deletions google/monitoring/v3/metric.proto
Expand Up @@ -16,12 +16,10 @@ syntax = "proto3";

package google.monitoring.v3;

import "google/api/distribution.proto";
import "google/api/label.proto";
import "google/api/metric.proto";
import "google/api/monitored_resource.proto";
import "google/monitoring/v3/common.proto";
import "google/protobuf/duration.proto";

option csharp_namespace = "Google.Cloud.Monitoring.V3";
option go_package = "google.golang.org/genproto/googleapis/monitoring/v3;monitoring";
Expand Down
2 changes: 0 additions & 2 deletions google/monitoring/v3/metric_service.proto
Expand Up @@ -22,10 +22,8 @@ import "google/api/field_behavior.proto";
import "google/api/metric.proto";
import "google/api/monitored_resource.proto";
import "google/api/resource.proto";
import "google/monitoring/v3/alert.proto";
import "google/monitoring/v3/common.proto";
import "google/monitoring/v3/metric.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/empty.proto";
import "google/rpc/status.proto";

Expand Down
1 change: 0 additions & 1 deletion google/monitoring/v3/notification_service.proto
Expand Up @@ -23,7 +23,6 @@ import "google/api/resource.proto";
import "google/monitoring/v3/notification.proto";
import "google/protobuf/empty.proto";
import "google/protobuf/field_mask.proto";
import "google/protobuf/struct.proto";
import "google/protobuf/timestamp.proto";

option csharp_namespace = "Google.Cloud.Monitoring.V3";
Expand Down
2 changes: 0 additions & 2 deletions google/monitoring/v3/query_service.proto
Expand Up @@ -17,8 +17,6 @@ syntax = "proto3";
package google.monitoring.v3;

import "google/api/annotations.proto";
import "google/api/label.proto";
import "google/monitoring/v3/metric.proto";
import "google/monitoring/v3/metric_service.proto";
import "google/api/client.proto";

Expand Down
2 changes: 0 additions & 2 deletions google/monitoring/v3/service.proto
Expand Up @@ -16,10 +16,8 @@ syntax = "proto3";

package google.monitoring.v3;

import "google/api/field_behavior.proto";
import "google/api/resource.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/timestamp.proto";
import "google/type/calendar_period.proto";

option csharp_namespace = "Google.Cloud.Monitoring.V3";
Expand Down
36 changes: 22 additions & 14 deletions google/monitoring/v3/uptime_service.proto
Expand Up @@ -20,9 +20,7 @@ import "google/api/annotations.proto";
import "google/api/client.proto";
import "google/api/field_behavior.proto";
import "google/api/resource.proto";
import "google/longrunning/operations.proto";
import "google/monitoring/v3/uptime.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/empty.proto";
import "google/protobuf/field_mask.proto";

Expand Down Expand Up @@ -51,23 +49,26 @@ service UptimeCheckService {

// Lists the existing valid Uptime check configurations for the project
// (leaving out any invalid configurations).
rpc ListUptimeCheckConfigs(ListUptimeCheckConfigsRequest) returns (ListUptimeCheckConfigsResponse) {
rpc ListUptimeCheckConfigs(ListUptimeCheckConfigsRequest)
returns (ListUptimeCheckConfigsResponse) {
option (google.api.http) = {
get: "/v3/{parent=projects/*}/uptimeCheckConfigs"
};
option (google.api.method_signature) = "parent";
}

// Gets a single Uptime check configuration.
rpc GetUptimeCheckConfig(GetUptimeCheckConfigRequest) returns (UptimeCheckConfig) {
rpc GetUptimeCheckConfig(GetUptimeCheckConfigRequest)
returns (UptimeCheckConfig) {
option (google.api.http) = {
get: "/v3/{name=projects/*/uptimeCheckConfigs/*}"
};
option (google.api.method_signature) = "name";
}

// Creates a new Uptime check configuration.
rpc CreateUptimeCheckConfig(CreateUptimeCheckConfigRequest) returns (UptimeCheckConfig) {
rpc CreateUptimeCheckConfig(CreateUptimeCheckConfigRequest)
returns (UptimeCheckConfig) {
option (google.api.http) = {
post: "/v3/{parent=projects/*}/uptimeCheckConfigs"
body: "uptime_check_config"
Expand All @@ -79,7 +80,8 @@ service UptimeCheckService {
// configuration with a new one or replace only certain fields in the current
// configuration by specifying the fields to be updated via `updateMask`.
// Returns the updated configuration.
rpc UpdateUptimeCheckConfig(UpdateUptimeCheckConfigRequest) returns (UptimeCheckConfig) {
rpc UpdateUptimeCheckConfig(UpdateUptimeCheckConfigRequest)
returns (UptimeCheckConfig) {
option (google.api.http) = {
patch: "/v3/{uptime_check_config.name=projects/*/uptimeCheckConfigs/*}"
body: "uptime_check_config"
Expand All @@ -90,15 +92,17 @@ service UptimeCheckService {
// Deletes an Uptime check configuration. Note that this method will fail
// if the Uptime check configuration is referenced by an alert policy or
// other dependent configs that would be rendered invalid by the deletion.
rpc DeleteUptimeCheckConfig(DeleteUptimeCheckConfigRequest) returns (google.protobuf.Empty) {
rpc DeleteUptimeCheckConfig(DeleteUptimeCheckConfigRequest)
returns (google.protobuf.Empty) {
option (google.api.http) = {
delete: "/v3/{name=projects/*/uptimeCheckConfigs/*}"
};
option (google.api.method_signature) = "name";
}

// Returns the list of IP addresses that checkers run from
rpc ListUptimeCheckIps(ListUptimeCheckIpsRequest) returns (ListUptimeCheckIpsResponse) {
rpc ListUptimeCheckIps(ListUptimeCheckIpsRequest)
returns (ListUptimeCheckIpsResponse) {
option (google.api.http) = {
get: "/v3/uptimeCheckIps"
};
Expand All @@ -107,8 +111,9 @@ service UptimeCheckService {

// The protocol for the `ListUptimeCheckConfigs` request.
message ListUptimeCheckConfigsRequest {
// Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
// whose Uptime check configurations are listed. The format is:
// Required. The
// [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
// Uptime check configurations are listed. The format is:
//
// projects/[PROJECT_ID_OR_NUMBER]
string parent = 1 [
Expand Down Expand Up @@ -162,8 +167,9 @@ message GetUptimeCheckConfigRequest {

// The protocol for the `CreateUptimeCheckConfig` request.
message CreateUptimeCheckConfigRequest {
// Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
// which to create the Uptime check. The format is:
// Required. The
// [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
// to create the Uptime check. The format is:
//
// projects/[PROJECT_ID_OR_NUMBER]
string parent = 1 [
Expand All @@ -174,7 +180,8 @@ message CreateUptimeCheckConfigRequest {
];

// Required. The new Uptime check configuration.
UptimeCheckConfig uptime_check_config = 2 [(google.api.field_behavior) = REQUIRED];
UptimeCheckConfig uptime_check_config = 2
[(google.api.field_behavior) = REQUIRED];
}

// The protocol for the `UpdateUptimeCheckConfig` request.
Expand All @@ -196,7 +203,8 @@ message UpdateUptimeCheckConfigRequest {
// The following fields can be updated: `display_name`,
// `http_check`, `tcp_check`, `timeout`, `content_matchers`, and
// `selected_regions`.
UptimeCheckConfig uptime_check_config = 3 [(google.api.field_behavior) = REQUIRED];
UptimeCheckConfig uptime_check_config = 3
[(google.api.field_behavior) = REQUIRED];
}

// The protocol for the `DeleteUptimeCheckConfig` request.
Expand Down

0 comments on commit 5a64eb3

Please sign in to comment.