google-cloud-service_management-v1 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +169 -0
- data/LICENSE.md +203 -0
- data/README.md +75 -0
- data/lib/google-cloud-service_management-v1.rb +21 -0
- data/lib/google/api/servicemanagement/v1/resources_pb.rb +123 -0
- data/lib/google/api/servicemanagement/v1/servicemanager_pb.rb +146 -0
- data/lib/google/api/servicemanagement/v1/servicemanager_services_pb.rb +148 -0
- data/lib/google/cloud/service_management/v1.rb +35 -0
- data/lib/google/cloud/service_management/v1/service_manager.rb +49 -0
- data/lib/google/cloud/service_management/v1/service_manager/client.rb +1563 -0
- data/lib/google/cloud/service_management/v1/service_manager/credentials.rb +54 -0
- data/lib/google/cloud/service_management/v1/service_manager/operations.rb +570 -0
- data/lib/google/cloud/service_management/v1/version.rb +28 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/auth.rb +192 -0
- data/proto_docs/google/api/backend.rb +55 -0
- data/proto_docs/google/api/billing.rb +69 -0
- data/proto_docs/google/api/config_change.rb +89 -0
- data/proto_docs/google/api/context.rb +67 -0
- data/proto_docs/google/api/control.rb +34 -0
- data/proto_docs/google/api/documentation.rb +164 -0
- data/proto_docs/google/api/endpoint.rb +70 -0
- data/proto_docs/google/api/field_behavior.rb +59 -0
- data/proto_docs/google/api/label.rb +49 -0
- data/proto_docs/google/api/log.rb +54 -0
- data/proto_docs/google/api/logging.rb +85 -0
- data/proto_docs/google/api/metric.rb +203 -0
- data/proto_docs/google/api/monitored_resource.rb +137 -0
- data/proto_docs/google/api/monitoring.rb +91 -0
- data/proto_docs/google/api/quota.rb +281 -0
- data/proto_docs/google/api/resource.rb +283 -0
- data/proto_docs/google/api/service.rb +151 -0
- data/proto_docs/google/api/servicemanagement/v1/resources.rb +326 -0
- data/proto_docs/google/api/servicemanagement/v1/servicemanager.rb +370 -0
- data/proto_docs/google/api/source_info.rb +31 -0
- data/proto_docs/google/api/system_parameter.rb +103 -0
- data/proto_docs/google/api/usage.rb +94 -0
- data/proto_docs/google/longrunning/operations.rb +150 -0
- data/proto_docs/google/protobuf/any.rb +138 -0
- data/proto_docs/google/protobuf/api.rb +194 -0
- data/proto_docs/google/protobuf/empty.rb +36 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/source_context.rb +33 -0
- data/proto_docs/google/protobuf/struct.rb +96 -0
- data/proto_docs/google/protobuf/timestamp.rb +120 -0
- data/proto_docs/google/protobuf/type.rb +223 -0
- data/proto_docs/google/protobuf/wrappers.rb +121 -0
- data/proto_docs/google/rpc/status.rb +46 -0
- metadata +232 -0
@@ -0,0 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
# This gem does not autoload during Bundler.require. To load this gem,
|
20
|
+
# issue explicit require statements for the packages desired, e.g.:
|
21
|
+
# require "google/cloud/service_management/v1"
|
@@ -0,0 +1,123 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/api/servicemanagement/v1/resources.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/annotations_pb'
|
7
|
+
require 'google/api/config_change_pb'
|
8
|
+
require 'google/api/field_behavior_pb'
|
9
|
+
require 'google/api/metric_pb'
|
10
|
+
require 'google/api/quota_pb'
|
11
|
+
require 'google/api/service_pb'
|
12
|
+
require 'google/longrunning/operations_pb'
|
13
|
+
require 'google/protobuf/any_pb'
|
14
|
+
require 'google/protobuf/field_mask_pb'
|
15
|
+
require 'google/protobuf/timestamp_pb'
|
16
|
+
require 'google/rpc/status_pb'
|
17
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
18
|
+
add_file("google/api/servicemanagement/v1/resources.proto", :syntax => :proto3) do
|
19
|
+
add_message "google.api.servicemanagement.v1.ManagedService" do
|
20
|
+
optional :service_name, :string, 2
|
21
|
+
optional :producer_project_id, :string, 3
|
22
|
+
end
|
23
|
+
add_message "google.api.servicemanagement.v1.OperationMetadata" do
|
24
|
+
repeated :resource_names, :string, 1
|
25
|
+
repeated :steps, :message, 2, "google.api.servicemanagement.v1.OperationMetadata.Step"
|
26
|
+
optional :progress_percentage, :int32, 3
|
27
|
+
optional :start_time, :message, 4, "google.protobuf.Timestamp"
|
28
|
+
end
|
29
|
+
add_message "google.api.servicemanagement.v1.OperationMetadata.Step" do
|
30
|
+
optional :description, :string, 2
|
31
|
+
optional :status, :enum, 4, "google.api.servicemanagement.v1.OperationMetadata.Status"
|
32
|
+
end
|
33
|
+
add_enum "google.api.servicemanagement.v1.OperationMetadata.Status" do
|
34
|
+
value :STATUS_UNSPECIFIED, 0
|
35
|
+
value :DONE, 1
|
36
|
+
value :NOT_STARTED, 2
|
37
|
+
value :IN_PROGRESS, 3
|
38
|
+
value :FAILED, 4
|
39
|
+
value :CANCELLED, 5
|
40
|
+
end
|
41
|
+
add_message "google.api.servicemanagement.v1.Diagnostic" do
|
42
|
+
optional :location, :string, 1
|
43
|
+
optional :kind, :enum, 2, "google.api.servicemanagement.v1.Diagnostic.Kind"
|
44
|
+
optional :message, :string, 3
|
45
|
+
end
|
46
|
+
add_enum "google.api.servicemanagement.v1.Diagnostic.Kind" do
|
47
|
+
value :WARNING, 0
|
48
|
+
value :ERROR, 1
|
49
|
+
end
|
50
|
+
add_message "google.api.servicemanagement.v1.ConfigSource" do
|
51
|
+
optional :id, :string, 5
|
52
|
+
repeated :files, :message, 2, "google.api.servicemanagement.v1.ConfigFile"
|
53
|
+
end
|
54
|
+
add_message "google.api.servicemanagement.v1.ConfigFile" do
|
55
|
+
optional :file_path, :string, 1
|
56
|
+
optional :file_contents, :bytes, 3
|
57
|
+
optional :file_type, :enum, 4, "google.api.servicemanagement.v1.ConfigFile.FileType"
|
58
|
+
end
|
59
|
+
add_enum "google.api.servicemanagement.v1.ConfigFile.FileType" do
|
60
|
+
value :FILE_TYPE_UNSPECIFIED, 0
|
61
|
+
value :SERVICE_CONFIG_YAML, 1
|
62
|
+
value :OPEN_API_JSON, 2
|
63
|
+
value :OPEN_API_YAML, 3
|
64
|
+
value :FILE_DESCRIPTOR_SET_PROTO, 4
|
65
|
+
value :PROTO_FILE, 6
|
66
|
+
end
|
67
|
+
add_message "google.api.servicemanagement.v1.ConfigRef" do
|
68
|
+
optional :name, :string, 1
|
69
|
+
end
|
70
|
+
add_message "google.api.servicemanagement.v1.ChangeReport" do
|
71
|
+
repeated :config_changes, :message, 1, "google.api.ConfigChange"
|
72
|
+
end
|
73
|
+
add_message "google.api.servicemanagement.v1.Rollout" do
|
74
|
+
optional :rollout_id, :string, 1
|
75
|
+
optional :create_time, :message, 2, "google.protobuf.Timestamp"
|
76
|
+
optional :created_by, :string, 3
|
77
|
+
optional :status, :enum, 4, "google.api.servicemanagement.v1.Rollout.RolloutStatus"
|
78
|
+
optional :service_name, :string, 8
|
79
|
+
oneof :strategy do
|
80
|
+
optional :traffic_percent_strategy, :message, 5, "google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy"
|
81
|
+
optional :delete_service_strategy, :message, 200, "google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy"
|
82
|
+
end
|
83
|
+
end
|
84
|
+
add_message "google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy" do
|
85
|
+
map :percentages, :string, :double, 1
|
86
|
+
end
|
87
|
+
add_message "google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy" do
|
88
|
+
end
|
89
|
+
add_enum "google.api.servicemanagement.v1.Rollout.RolloutStatus" do
|
90
|
+
value :ROLLOUT_STATUS_UNSPECIFIED, 0
|
91
|
+
value :IN_PROGRESS, 1
|
92
|
+
value :SUCCESS, 2
|
93
|
+
value :CANCELLED, 3
|
94
|
+
value :FAILED, 4
|
95
|
+
value :PENDING, 5
|
96
|
+
value :FAILED_ROLLED_BACK, 6
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
module Google
|
102
|
+
module Cloud
|
103
|
+
module ServiceManagement
|
104
|
+
module V1
|
105
|
+
ManagedService = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.servicemanagement.v1.ManagedService").msgclass
|
106
|
+
OperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.servicemanagement.v1.OperationMetadata").msgclass
|
107
|
+
OperationMetadata::Step = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.servicemanagement.v1.OperationMetadata.Step").msgclass
|
108
|
+
OperationMetadata::Status = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.servicemanagement.v1.OperationMetadata.Status").enummodule
|
109
|
+
Diagnostic = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.servicemanagement.v1.Diagnostic").msgclass
|
110
|
+
Diagnostic::Kind = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.servicemanagement.v1.Diagnostic.Kind").enummodule
|
111
|
+
ConfigSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.servicemanagement.v1.ConfigSource").msgclass
|
112
|
+
ConfigFile = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.servicemanagement.v1.ConfigFile").msgclass
|
113
|
+
ConfigFile::FileType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.servicemanagement.v1.ConfigFile.FileType").enummodule
|
114
|
+
ConfigRef = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.servicemanagement.v1.ConfigRef").msgclass
|
115
|
+
ChangeReport = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.servicemanagement.v1.ChangeReport").msgclass
|
116
|
+
Rollout = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.servicemanagement.v1.Rollout").msgclass
|
117
|
+
Rollout::TrafficPercentStrategy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy").msgclass
|
118
|
+
Rollout::DeleteServiceStrategy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy").msgclass
|
119
|
+
Rollout::RolloutStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.servicemanagement.v1.Rollout.RolloutStatus").enummodule
|
120
|
+
end
|
121
|
+
end
|
122
|
+
end
|
123
|
+
end
|
@@ -0,0 +1,146 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/api/servicemanagement/v1/servicemanager.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/annotations_pb'
|
7
|
+
require 'google/api/client_pb'
|
8
|
+
require 'google/api/field_behavior_pb'
|
9
|
+
require 'google/api/service_pb'
|
10
|
+
require 'google/api/servicemanagement/v1/resources_pb'
|
11
|
+
require 'google/longrunning/operations_pb'
|
12
|
+
require 'google/protobuf/any_pb'
|
13
|
+
require 'google/protobuf/field_mask_pb'
|
14
|
+
require 'google/rpc/status_pb'
|
15
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
16
|
+
add_file("google/api/servicemanagement/v1/servicemanager.proto", :syntax => :proto3) do
|
17
|
+
add_message "google.api.servicemanagement.v1.ListServicesRequest" do
|
18
|
+
optional :producer_project_id, :string, 1
|
19
|
+
optional :page_size, :int32, 5
|
20
|
+
optional :page_token, :string, 6
|
21
|
+
optional :consumer_id, :string, 7
|
22
|
+
end
|
23
|
+
add_message "google.api.servicemanagement.v1.ListServicesResponse" do
|
24
|
+
repeated :services, :message, 1, "google.api.servicemanagement.v1.ManagedService"
|
25
|
+
optional :next_page_token, :string, 2
|
26
|
+
end
|
27
|
+
add_message "google.api.servicemanagement.v1.GetServiceRequest" do
|
28
|
+
optional :service_name, :string, 1
|
29
|
+
end
|
30
|
+
add_message "google.api.servicemanagement.v1.CreateServiceRequest" do
|
31
|
+
optional :service, :message, 1, "google.api.servicemanagement.v1.ManagedService"
|
32
|
+
end
|
33
|
+
add_message "google.api.servicemanagement.v1.DeleteServiceRequest" do
|
34
|
+
optional :service_name, :string, 1
|
35
|
+
end
|
36
|
+
add_message "google.api.servicemanagement.v1.UndeleteServiceRequest" do
|
37
|
+
optional :service_name, :string, 1
|
38
|
+
end
|
39
|
+
add_message "google.api.servicemanagement.v1.UndeleteServiceResponse" do
|
40
|
+
optional :service, :message, 1, "google.api.servicemanagement.v1.ManagedService"
|
41
|
+
end
|
42
|
+
add_message "google.api.servicemanagement.v1.GetServiceConfigRequest" do
|
43
|
+
optional :service_name, :string, 1
|
44
|
+
optional :config_id, :string, 2
|
45
|
+
optional :view, :enum, 3, "google.api.servicemanagement.v1.GetServiceConfigRequest.ConfigView"
|
46
|
+
end
|
47
|
+
add_enum "google.api.servicemanagement.v1.GetServiceConfigRequest.ConfigView" do
|
48
|
+
value :BASIC, 0
|
49
|
+
value :FULL, 1
|
50
|
+
end
|
51
|
+
add_message "google.api.servicemanagement.v1.ListServiceConfigsRequest" do
|
52
|
+
optional :service_name, :string, 1
|
53
|
+
optional :page_token, :string, 2
|
54
|
+
optional :page_size, :int32, 3
|
55
|
+
end
|
56
|
+
add_message "google.api.servicemanagement.v1.ListServiceConfigsResponse" do
|
57
|
+
repeated :service_configs, :message, 1, "google.api.Service"
|
58
|
+
optional :next_page_token, :string, 2
|
59
|
+
end
|
60
|
+
add_message "google.api.servicemanagement.v1.CreateServiceConfigRequest" do
|
61
|
+
optional :service_name, :string, 1
|
62
|
+
optional :service_config, :message, 2, "google.api.Service"
|
63
|
+
end
|
64
|
+
add_message "google.api.servicemanagement.v1.SubmitConfigSourceRequest" do
|
65
|
+
optional :service_name, :string, 1
|
66
|
+
optional :config_source, :message, 2, "google.api.servicemanagement.v1.ConfigSource"
|
67
|
+
optional :validate_only, :bool, 3
|
68
|
+
end
|
69
|
+
add_message "google.api.servicemanagement.v1.SubmitConfigSourceResponse" do
|
70
|
+
optional :service_config, :message, 1, "google.api.Service"
|
71
|
+
end
|
72
|
+
add_message "google.api.servicemanagement.v1.CreateServiceRolloutRequest" do
|
73
|
+
optional :service_name, :string, 1
|
74
|
+
optional :rollout, :message, 2, "google.api.servicemanagement.v1.Rollout"
|
75
|
+
end
|
76
|
+
add_message "google.api.servicemanagement.v1.ListServiceRolloutsRequest" do
|
77
|
+
optional :service_name, :string, 1
|
78
|
+
optional :page_token, :string, 2
|
79
|
+
optional :page_size, :int32, 3
|
80
|
+
optional :filter, :string, 4
|
81
|
+
end
|
82
|
+
add_message "google.api.servicemanagement.v1.ListServiceRolloutsResponse" do
|
83
|
+
repeated :rollouts, :message, 1, "google.api.servicemanagement.v1.Rollout"
|
84
|
+
optional :next_page_token, :string, 2
|
85
|
+
end
|
86
|
+
add_message "google.api.servicemanagement.v1.GetServiceRolloutRequest" do
|
87
|
+
optional :service_name, :string, 1
|
88
|
+
optional :rollout_id, :string, 2
|
89
|
+
end
|
90
|
+
add_message "google.api.servicemanagement.v1.EnableServiceRequest" do
|
91
|
+
optional :service_name, :string, 1
|
92
|
+
optional :consumer_id, :string, 2
|
93
|
+
end
|
94
|
+
add_message "google.api.servicemanagement.v1.EnableServiceResponse" do
|
95
|
+
end
|
96
|
+
add_message "google.api.servicemanagement.v1.DisableServiceRequest" do
|
97
|
+
optional :service_name, :string, 1
|
98
|
+
optional :consumer_id, :string, 2
|
99
|
+
end
|
100
|
+
add_message "google.api.servicemanagement.v1.DisableServiceResponse" do
|
101
|
+
end
|
102
|
+
add_message "google.api.servicemanagement.v1.GenerateConfigReportRequest" do
|
103
|
+
optional :new_config, :message, 1, "google.protobuf.Any"
|
104
|
+
optional :old_config, :message, 2, "google.protobuf.Any"
|
105
|
+
end
|
106
|
+
add_message "google.api.servicemanagement.v1.GenerateConfigReportResponse" do
|
107
|
+
optional :service_name, :string, 1
|
108
|
+
optional :id, :string, 2
|
109
|
+
repeated :change_reports, :message, 3, "google.api.servicemanagement.v1.ChangeReport"
|
110
|
+
repeated :diagnostics, :message, 4, "google.api.servicemanagement.v1.Diagnostic"
|
111
|
+
end
|
112
|
+
end
|
113
|
+
end
|
114
|
+
|
115
|
+
module Google
|
116
|
+
module Cloud
|
117
|
+
module ServiceManagement
|
118
|
+
module V1
|
119
|
+
ListServicesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.servicemanagement.v1.ListServicesRequest").msgclass
|
120
|
+
ListServicesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.servicemanagement.v1.ListServicesResponse").msgclass
|
121
|
+
GetServiceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.servicemanagement.v1.GetServiceRequest").msgclass
|
122
|
+
CreateServiceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.servicemanagement.v1.CreateServiceRequest").msgclass
|
123
|
+
DeleteServiceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.servicemanagement.v1.DeleteServiceRequest").msgclass
|
124
|
+
UndeleteServiceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.servicemanagement.v1.UndeleteServiceRequest").msgclass
|
125
|
+
UndeleteServiceResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.servicemanagement.v1.UndeleteServiceResponse").msgclass
|
126
|
+
GetServiceConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.servicemanagement.v1.GetServiceConfigRequest").msgclass
|
127
|
+
GetServiceConfigRequest::ConfigView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.servicemanagement.v1.GetServiceConfigRequest.ConfigView").enummodule
|
128
|
+
ListServiceConfigsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.servicemanagement.v1.ListServiceConfigsRequest").msgclass
|
129
|
+
ListServiceConfigsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.servicemanagement.v1.ListServiceConfigsResponse").msgclass
|
130
|
+
CreateServiceConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.servicemanagement.v1.CreateServiceConfigRequest").msgclass
|
131
|
+
SubmitConfigSourceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.servicemanagement.v1.SubmitConfigSourceRequest").msgclass
|
132
|
+
SubmitConfigSourceResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.servicemanagement.v1.SubmitConfigSourceResponse").msgclass
|
133
|
+
CreateServiceRolloutRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.servicemanagement.v1.CreateServiceRolloutRequest").msgclass
|
134
|
+
ListServiceRolloutsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.servicemanagement.v1.ListServiceRolloutsRequest").msgclass
|
135
|
+
ListServiceRolloutsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.servicemanagement.v1.ListServiceRolloutsResponse").msgclass
|
136
|
+
GetServiceRolloutRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.servicemanagement.v1.GetServiceRolloutRequest").msgclass
|
137
|
+
EnableServiceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.servicemanagement.v1.EnableServiceRequest").msgclass
|
138
|
+
EnableServiceResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.servicemanagement.v1.EnableServiceResponse").msgclass
|
139
|
+
DisableServiceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.servicemanagement.v1.DisableServiceRequest").msgclass
|
140
|
+
DisableServiceResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.servicemanagement.v1.DisableServiceResponse").msgclass
|
141
|
+
GenerateConfigReportRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.servicemanagement.v1.GenerateConfigReportRequest").msgclass
|
142
|
+
GenerateConfigReportResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.servicemanagement.v1.GenerateConfigReportResponse").msgclass
|
143
|
+
end
|
144
|
+
end
|
145
|
+
end
|
146
|
+
end
|
@@ -0,0 +1,148 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/api/servicemanagement/v1/servicemanager.proto for package 'Google.Cloud.ServiceManagement.V1'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright 2019 Google LLC.
|
5
|
+
#
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
# you may not use this file except in compliance with the License.
|
8
|
+
# You may obtain a copy of the License at
|
9
|
+
#
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
#
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
# See the License for the specific language governing permissions and
|
16
|
+
# limitations under the License.
|
17
|
+
#
|
18
|
+
|
19
|
+
require 'grpc'
|
20
|
+
require 'google/api/servicemanagement/v1/servicemanager_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module ServiceManagement
|
25
|
+
module V1
|
26
|
+
module ServiceManager
|
27
|
+
# [Google Service Management API](/service-management/overview)
|
28
|
+
class Service
|
29
|
+
|
30
|
+
include GRPC::GenericService
|
31
|
+
|
32
|
+
self.marshal_class_method = :encode
|
33
|
+
self.unmarshal_class_method = :decode
|
34
|
+
self.service_name = 'google.api.servicemanagement.v1.ServiceManager'
|
35
|
+
|
36
|
+
# Lists managed services.
|
37
|
+
#
|
38
|
+
# Returns all public services. For authenticated users, also returns all
|
39
|
+
# services the calling user has "servicemanagement.services.get" permission
|
40
|
+
# for.
|
41
|
+
#
|
42
|
+
# **BETA:** If the caller specifies the `consumer_id`, it returns only the
|
43
|
+
# services enabled on the consumer. The `consumer_id` must have the format
|
44
|
+
# of "project:{PROJECT-ID}".
|
45
|
+
rpc :ListServices, ::Google::Cloud::ServiceManagement::V1::ListServicesRequest, ::Google::Cloud::ServiceManagement::V1::ListServicesResponse
|
46
|
+
# Gets a managed service. Authentication is required unless the service is
|
47
|
+
# public.
|
48
|
+
rpc :GetService, ::Google::Cloud::ServiceManagement::V1::GetServiceRequest, ::Google::Cloud::ServiceManagement::V1::ManagedService
|
49
|
+
# Creates a new managed service.
|
50
|
+
# Please note one producer project can own no more than 20 services.
|
51
|
+
#
|
52
|
+
# Operation<response: ManagedService>
|
53
|
+
rpc :CreateService, ::Google::Cloud::ServiceManagement::V1::CreateServiceRequest, ::Google::Longrunning::Operation
|
54
|
+
# Deletes a managed service. This method will change the service to the
|
55
|
+
# `Soft-Delete` state for 30 days. Within this period, service producers may
|
56
|
+
# call [UndeleteService][google.api.servicemanagement.v1.ServiceManager.UndeleteService] to restore the service.
|
57
|
+
# After 30 days, the service will be permanently deleted.
|
58
|
+
#
|
59
|
+
# Operation<response: google.protobuf.Empty>
|
60
|
+
rpc :DeleteService, ::Google::Cloud::ServiceManagement::V1::DeleteServiceRequest, ::Google::Longrunning::Operation
|
61
|
+
# Revives a previously deleted managed service. The method restores the
|
62
|
+
# service using the configuration at the time the service was deleted.
|
63
|
+
# The target service must exist and must have been deleted within the
|
64
|
+
# last 30 days.
|
65
|
+
#
|
66
|
+
# Operation<response: UndeleteServiceResponse>
|
67
|
+
rpc :UndeleteService, ::Google::Cloud::ServiceManagement::V1::UndeleteServiceRequest, ::Google::Longrunning::Operation
|
68
|
+
# Lists the history of the service configuration for a managed service,
|
69
|
+
# from the newest to the oldest.
|
70
|
+
rpc :ListServiceConfigs, ::Google::Cloud::ServiceManagement::V1::ListServiceConfigsRequest, ::Google::Cloud::ServiceManagement::V1::ListServiceConfigsResponse
|
71
|
+
# Gets a service configuration (version) for a managed service.
|
72
|
+
rpc :GetServiceConfig, ::Google::Cloud::ServiceManagement::V1::GetServiceConfigRequest, ::Google::Api::Service
|
73
|
+
# Creates a new service configuration (version) for a managed service.
|
74
|
+
# This method only stores the service configuration. To roll out the service
|
75
|
+
# configuration to backend systems please call
|
76
|
+
# [CreateServiceRollout][google.api.servicemanagement.v1.ServiceManager.CreateServiceRollout].
|
77
|
+
#
|
78
|
+
# Only the 100 most recent service configurations and ones referenced by
|
79
|
+
# existing rollouts are kept for each service. The rest will be deleted
|
80
|
+
# eventually.
|
81
|
+
rpc :CreateServiceConfig, ::Google::Cloud::ServiceManagement::V1::CreateServiceConfigRequest, ::Google::Api::Service
|
82
|
+
# Creates a new service configuration (version) for a managed service based
|
83
|
+
# on
|
84
|
+
# user-supplied configuration source files (for example: OpenAPI
|
85
|
+
# Specification). This method stores the source configurations as well as the
|
86
|
+
# generated service configuration. To rollout the service configuration to
|
87
|
+
# other services,
|
88
|
+
# please call [CreateServiceRollout][google.api.servicemanagement.v1.ServiceManager.CreateServiceRollout].
|
89
|
+
#
|
90
|
+
# Only the 100 most recent configuration sources and ones referenced by
|
91
|
+
# existing service configurtions are kept for each service. The rest will be
|
92
|
+
# deleted eventually.
|
93
|
+
#
|
94
|
+
# Operation<response: SubmitConfigSourceResponse>
|
95
|
+
rpc :SubmitConfigSource, ::Google::Cloud::ServiceManagement::V1::SubmitConfigSourceRequest, ::Google::Longrunning::Operation
|
96
|
+
# Lists the history of the service configuration rollouts for a managed
|
97
|
+
# service, from the newest to the oldest.
|
98
|
+
rpc :ListServiceRollouts, ::Google::Cloud::ServiceManagement::V1::ListServiceRolloutsRequest, ::Google::Cloud::ServiceManagement::V1::ListServiceRolloutsResponse
|
99
|
+
# Gets a service configuration [rollout][google.api.servicemanagement.v1.Rollout].
|
100
|
+
rpc :GetServiceRollout, ::Google::Cloud::ServiceManagement::V1::GetServiceRolloutRequest, ::Google::Cloud::ServiceManagement::V1::Rollout
|
101
|
+
# Creates a new service configuration rollout. Based on rollout, the
|
102
|
+
# Google Service Management will roll out the service configurations to
|
103
|
+
# different backend services. For example, the logging configuration will be
|
104
|
+
# pushed to Google Cloud Logging.
|
105
|
+
#
|
106
|
+
# Please note that any previous pending and running Rollouts and associated
|
107
|
+
# Operations will be automatically cancelled so that the latest Rollout will
|
108
|
+
# not be blocked by previous Rollouts.
|
109
|
+
#
|
110
|
+
# Only the 100 most recent (in any state) and the last 10 successful (if not
|
111
|
+
# already part of the set of 100 most recent) rollouts are kept for each
|
112
|
+
# service. The rest will be deleted eventually.
|
113
|
+
#
|
114
|
+
# Operation<response: Rollout>
|
115
|
+
rpc :CreateServiceRollout, ::Google::Cloud::ServiceManagement::V1::CreateServiceRolloutRequest, ::Google::Longrunning::Operation
|
116
|
+
# Generates and returns a report (errors, warnings and changes from
|
117
|
+
# existing configurations) associated with
|
118
|
+
# GenerateConfigReportRequest.new_value
|
119
|
+
#
|
120
|
+
# If GenerateConfigReportRequest.old_value is specified,
|
121
|
+
# GenerateConfigReportRequest will contain a single ChangeReport based on the
|
122
|
+
# comparison between GenerateConfigReportRequest.new_value and
|
123
|
+
# GenerateConfigReportRequest.old_value.
|
124
|
+
# If GenerateConfigReportRequest.old_value is not specified, this method
|
125
|
+
# will compare GenerateConfigReportRequest.new_value with the last pushed
|
126
|
+
# service configuration.
|
127
|
+
rpc :GenerateConfigReport, ::Google::Cloud::ServiceManagement::V1::GenerateConfigReportRequest, ::Google::Cloud::ServiceManagement::V1::GenerateConfigReportResponse
|
128
|
+
# Enables a [service][google.api.servicemanagement.v1.ManagedService] for a project, so it can be used
|
129
|
+
# for the project. See
|
130
|
+
# [Cloud Auth Guide](https://cloud.google.com/docs/authentication) for
|
131
|
+
# more information.
|
132
|
+
#
|
133
|
+
# Operation<response: EnableServiceResponse>
|
134
|
+
rpc :EnableService, ::Google::Cloud::ServiceManagement::V1::EnableServiceRequest, ::Google::Longrunning::Operation
|
135
|
+
# Disables a [service][google.api.servicemanagement.v1.ManagedService] for a project, so it can no longer be
|
136
|
+
# be used for the project. It prevents accidental usage that may cause
|
137
|
+
# unexpected billing charges or security leaks.
|
138
|
+
#
|
139
|
+
# Operation<response: DisableServiceResponse>
|
140
|
+
rpc :DisableService, ::Google::Cloud::ServiceManagement::V1::DisableServiceRequest, ::Google::Longrunning::Operation
|
141
|
+
end
|
142
|
+
|
143
|
+
Stub = Service.rpc_stub_class
|
144
|
+
end
|
145
|
+
end
|
146
|
+
end
|
147
|
+
end
|
148
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "google/cloud/service_management/v1/service_manager"
|
20
|
+
require "google/cloud/service_management/v1/version"
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module ServiceManagement
|
25
|
+
##
|
26
|
+
# To load this package, including all its services, and instantiate a client:
|
27
|
+
#
|
28
|
+
# require "google/cloud/service_management/v1"
|
29
|
+
# client = ::Google::Cloud::ServiceManagement::V1::ServiceManager::Client.new
|
30
|
+
#
|
31
|
+
module V1
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|