google-cloud-service_management-v1 0.3.3 → 0.3.7
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 +4 -4
- data/.yardopts +1 -1
- data/AUTHENTICATION.md +7 -25
- data/README.md +1 -1
- data/lib/google/api/servicemanagement/v1/resources_pb.rb +2 -10
- data/lib/google/api/servicemanagement/v1/servicemanager_pb.rb +2 -20
- data/lib/google/api/servicemanagement/v1/servicemanager_services_pb.rb +11 -21
- data/lib/google/cloud/service_management/v1/service_manager/client.rb +393 -275
- data/lib/google/cloud/service_management/v1/service_manager/operations.rb +145 -33
- data/lib/google/cloud/service_management/v1/service_manager.rb +1 -1
- data/lib/google/cloud/service_management/v1/version.rb +1 -1
- data/proto_docs/google/api/resource.rb +10 -71
- data/proto_docs/google/api/servicemanagement/v1/resources.rb +1 -1
- data/proto_docs/google/api/servicemanagement/v1/servicemanager.rb +11 -65
- metadata +5 -6
- data/proto_docs/google/protobuf/field_mask.rb +0 -229
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4a92f6582f903346c7e3547155696edf19537c79a35f94c76e98cea7dd4bf1e
|
4
|
+
data.tar.gz: f06b7281924b03ed8fed80168dd4ca321852c843b0ae1b99f2cfc9f4c530782f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c79d8cdc0a6feb0fd0470d699e1eb78ef11ff253b85107149505a8e251564b7413aab83af937f7c3331c5b078a544c8e3bbd684dbb09ae25bbff1b78468dd7b
|
7
|
+
data.tar.gz: c786b52cda3a07f09c3d0a205d0dc2ed8fd570925c1107e4d7eeed534d1a606d3431255372dca8514ca26a0ae8bc70946747206cafedb09291375fff3866134c
|
data/.yardopts
CHANGED
data/AUTHENTICATION.md
CHANGED
@@ -120,15 +120,6 @@ To configure your system for this, simply:
|
|
120
120
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
121
121
|
*should* only be used during development.
|
122
122
|
|
123
|
-
[gce-how-to]: https://cloud.google.com/compute/docs/authentication#using
|
124
|
-
[dev-console]: https://console.cloud.google.com/project
|
125
|
-
|
126
|
-
[enable-apis]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/enable-apis.png
|
127
|
-
|
128
|
-
[create-new-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account.png
|
129
|
-
[create-new-service-account-existing-keys]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account-existing-keys.png
|
130
|
-
[reuse-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/reuse-service-account.png
|
131
|
-
|
132
123
|
## Creating a Service Account
|
133
124
|
|
134
125
|
Google Cloud requires **Service Account Credentials** to
|
@@ -139,31 +130,22 @@ If you are not running this client within
|
|
139
130
|
[Google Cloud Platform environments](#google-cloud-platform-environments), you
|
140
131
|
need a Google Developers service account.
|
141
132
|
|
142
|
-
1. Visit the [Google
|
133
|
+
1. Visit the [Google Cloud Console](https://console.cloud.google.com/project).
|
143
134
|
2. Create a new project or click on an existing project.
|
144
|
-
3. Activate the
|
135
|
+
3. Activate the menu in the upper left and select **APIs & Services**. From
|
145
136
|
here, you will enable the APIs that your application requires.
|
146
137
|
|
147
|
-
![Enable the APIs that your application requires][enable-apis]
|
148
|
-
|
149
138
|
*Note: You may need to enable billing in order to use these services.*
|
150
139
|
|
151
140
|
4. Select **Credentials** from the side navigation.
|
152
141
|
|
153
|
-
|
154
|
-
|
155
|
-
![Create a new service account][create-new-service-account]
|
156
|
-
|
157
|
-
![Create a new service account With Existing Keys][create-new-service-account-existing-keys]
|
158
|
-
|
159
|
-
Find the "Add credentials" drop down and select "Service account" to be
|
160
|
-
guided through downloading a new JSON key file.
|
142
|
+
Find the "Create credentials" drop down near the top of the page, and select
|
143
|
+
"Service account" to be guided through downloading a new JSON key file.
|
161
144
|
|
162
145
|
If you want to re-use an existing service account, you can easily generate a
|
163
|
-
new key file. Just select the account you wish to re-use,
|
164
|
-
|
165
|
-
|
166
|
-
![Re-use an existing service account][reuse-service-account]
|
146
|
+
new key file. Just select the account you wish to re-use, click the pencil
|
147
|
+
tool on the right side to edit the service account, select the **Keys** tab,
|
148
|
+
and then select **Add Key**.
|
167
149
|
|
168
150
|
The key file you download will be used by this library to authenticate API
|
169
151
|
requests and should be stored in a secure location.
|
data/README.md
CHANGED
@@ -37,7 +37,7 @@ request = ::Google::Cloud::ServiceManagement::V1::ListServicesRequest.new # (req
|
|
37
37
|
response = client.list_services request
|
38
38
|
```
|
39
39
|
|
40
|
-
View the [Client Library Documentation](https://
|
40
|
+
View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-service_management-v1/latest)
|
41
41
|
for class and method documentation.
|
42
42
|
|
43
43
|
See also the [Product Documentation](https://cloud.google.com/service-infrastructure/docs/overview/)
|
@@ -1,19 +1,11 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/api/servicemanagement/v1/resources.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
|
-
require 'google/api/annotations_pb'
|
7
4
|
require 'google/api/config_change_pb'
|
8
5
|
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
6
|
require 'google/protobuf/timestamp_pb'
|
16
|
-
require 'google/
|
7
|
+
require 'google/protobuf'
|
8
|
+
|
17
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
18
10
|
add_file("google/api/servicemanagement/v1/resources.proto", :syntax => :proto3) do
|
19
11
|
add_message "google.api.servicemanagement.v1.ManagedService" do
|
@@ -1,8 +1,6 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/api/servicemanagement/v1/servicemanager.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/client_pb'
|
8
6
|
require 'google/api/field_behavior_pb'
|
@@ -10,8 +8,8 @@ require 'google/api/service_pb'
|
|
10
8
|
require 'google/api/servicemanagement/v1/resources_pb'
|
11
9
|
require 'google/longrunning/operations_pb'
|
12
10
|
require 'google/protobuf/any_pb'
|
13
|
-
require 'google/protobuf
|
14
|
-
|
11
|
+
require 'google/protobuf'
|
12
|
+
|
15
13
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
16
14
|
add_file("google/api/servicemanagement/v1/servicemanager.proto", :syntax => :proto3) do
|
17
15
|
add_message "google.api.servicemanagement.v1.ListServicesRequest" do
|
@@ -87,18 +85,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
87
85
|
optional :service_name, :string, 1
|
88
86
|
optional :rollout_id, :string, 2
|
89
87
|
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
88
|
add_message "google.api.servicemanagement.v1.GenerateConfigReportRequest" do
|
103
89
|
optional :new_config, :message, 1, "google.protobuf.Any"
|
104
90
|
optional :old_config, :message, 2, "google.protobuf.Any"
|
@@ -134,10 +120,6 @@ module Google
|
|
134
120
|
ListServiceRolloutsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.servicemanagement.v1.ListServiceRolloutsRequest").msgclass
|
135
121
|
ListServiceRolloutsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.servicemanagement.v1.ListServiceRolloutsResponse").msgclass
|
136
122
|
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
123
|
GenerateConfigReportRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.servicemanagement.v1.GenerateConfigReportRequest").msgclass
|
142
124
|
GenerateConfigReportResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.servicemanagement.v1.GenerateConfigReportResponse").msgclass
|
143
125
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# Source: google/api/servicemanagement/v1/servicemanager.proto for package 'Google.Cloud.ServiceManagement.V1'
|
3
3
|
# Original file comments:
|
4
|
-
# Copyright
|
4
|
+
# Copyright 2022 Google LLC
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
7
|
# you may not use this file except in compliance with the License.
|
@@ -24,10 +24,10 @@ module Google
|
|
24
24
|
module ServiceManagement
|
25
25
|
module V1
|
26
26
|
module ServiceManager
|
27
|
-
# [Google Service Management API](
|
27
|
+
# [Google Service Management API](/service-management/overview)
|
28
28
|
class Service
|
29
29
|
|
30
|
-
include GRPC::GenericService
|
30
|
+
include ::GRPC::GenericService
|
31
31
|
|
32
32
|
self.marshal_class_method = :encode
|
33
33
|
self.unmarshal_class_method = :decode
|
@@ -38,16 +38,19 @@ module Google
|
|
38
38
|
# Returns all public services. For authenticated users, also returns all
|
39
39
|
# services the calling user has "servicemanagement.services.get" permission
|
40
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
41
|
rpc :ListServices, ::Google::Cloud::ServiceManagement::V1::ListServicesRequest, ::Google::Cloud::ServiceManagement::V1::ListServicesResponse
|
46
42
|
# Gets a managed service. Authentication is required unless the service is
|
47
43
|
# public.
|
48
44
|
rpc :GetService, ::Google::Cloud::ServiceManagement::V1::GetServiceRequest, ::Google::Cloud::ServiceManagement::V1::ManagedService
|
49
45
|
# Creates a new managed service.
|
50
|
-
#
|
46
|
+
#
|
47
|
+
# A managed service is immutable, and is subject to mandatory 30-day
|
48
|
+
# data retention. You cannot move a service or recreate it within 30 days
|
49
|
+
# after deletion.
|
50
|
+
#
|
51
|
+
# One producer project can own no more than 500 services. For security and
|
52
|
+
# reliability purposes, a production service should be hosted in a
|
53
|
+
# dedicated producer project.
|
51
54
|
#
|
52
55
|
# Operation<response: ManagedService>
|
53
56
|
rpc :CreateService, ::Google::Cloud::ServiceManagement::V1::CreateServiceRequest, ::Google::Longrunning::Operation
|
@@ -125,19 +128,6 @@ module Google
|
|
125
128
|
# will compare GenerateConfigReportRequest.new_value with the last pushed
|
126
129
|
# service configuration.
|
127
130
|
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
131
|
end
|
142
132
|
|
143
133
|
Stub = Service.rpc_stub_class
|