google-apis-servicemanagement_v1 0.1.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +22 -0
- data/lib/google/apis/servicemanagement_v1/classes.rb +21 -52
- data/lib/google/apis/servicemanagement_v1/gem_version.rb +3 -3
- data/lib/google/apis/servicemanagement_v1/representations.rb +0 -25
- data/lib/google/apis/servicemanagement_v1/service.rb +0 -36
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ec2516b21e06c340be047e56f6d00b002c8ef95d0d7aafb45853b8c4f76a5b4
|
4
|
+
data.tar.gz: 648fcef34fa70dfe801603a5f8f34d74a79d634bd026a8fca16b14271633f18a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b8b67f47dddb8cb35f384b41dc2bde755340591dcccdb619e240a160f08e0e18144f8b1afd21ae7911df08fb0c10fdaf7bc793aec1c2ecef7fccf23e4c48c5e
|
7
|
+
data.tar.gz: 939ec51aabdf1c95ae70e52ee15ecf6664655eb90cdfedf829def9706de3a86bccfb54d27c40810b82edc93973840078abc3dcf157c9d30883b8d14155c8b624
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,27 @@
|
|
1
1
|
# Release history for google-apis-servicemanagement_v1
|
2
2
|
|
3
|
+
### v0.6.0 (2021-03-23)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210319
|
6
|
+
|
7
|
+
### v0.5.0 (2021-03-17)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20210311
|
10
|
+
* Regenerated using generator version 0.2.0
|
11
|
+
|
12
|
+
### v0.4.0 (2021-03-04)
|
13
|
+
|
14
|
+
* Unspecified changes
|
15
|
+
|
16
|
+
### v0.3.0 (2021-02-23)
|
17
|
+
|
18
|
+
* Regenerated from discovery document revision 20210219
|
19
|
+
|
20
|
+
### v0.2.0 (2021-02-03)
|
21
|
+
|
22
|
+
* Regenerated from discovery document revision 20210129
|
23
|
+
* Regenerated using generator version 0.1.2
|
24
|
+
|
3
25
|
### v0.1.0 (2021-01-07)
|
4
26
|
|
5
27
|
* Regenerated using generator version 0.1.1
|
@@ -1020,19 +1020,6 @@ module Google
|
|
1020
1020
|
end
|
1021
1021
|
end
|
1022
1022
|
|
1023
|
-
# Operation payload for DisableService method.
|
1024
|
-
class DisableServiceResponse
|
1025
|
-
include Google::Apis::Core::Hashable
|
1026
|
-
|
1027
|
-
def initialize(**args)
|
1028
|
-
update!(**args)
|
1029
|
-
end
|
1030
|
-
|
1031
|
-
# Update properties of this object
|
1032
|
-
def update!(**args)
|
1033
|
-
end
|
1034
|
-
end
|
1035
|
-
|
1036
1023
|
# `Documentation` provides the information for describing a service. Example:
|
1037
1024
|
# documentation: summary: > The Google Calendar API gives access to most
|
1038
1025
|
# calendar features. pages: - name: Overview content: (== include google/foo/
|
@@ -1151,28 +1138,6 @@ module Google
|
|
1151
1138
|
end
|
1152
1139
|
end
|
1153
1140
|
|
1154
|
-
# Request message for EnableService method.
|
1155
|
-
class EnableServiceRequest
|
1156
|
-
include Google::Apis::Core::Hashable
|
1157
|
-
|
1158
|
-
# Required. The identity of consumer resource which service enablement will be
|
1159
|
-
# applied to. The Google Service Management implementation accepts the following
|
1160
|
-
# forms: - "project:" Note: this is made compatible with google.api.
|
1161
|
-
# servicecontrol.v1.Operation.consumer_id.
|
1162
|
-
# Corresponds to the JSON property `consumerId`
|
1163
|
-
# @return [String]
|
1164
|
-
attr_accessor :consumer_id
|
1165
|
-
|
1166
|
-
def initialize(**args)
|
1167
|
-
update!(**args)
|
1168
|
-
end
|
1169
|
-
|
1170
|
-
# Update properties of this object
|
1171
|
-
def update!(**args)
|
1172
|
-
@consumer_id = args[:consumer_id] if args.key?(:consumer_id)
|
1173
|
-
end
|
1174
|
-
end
|
1175
|
-
|
1176
1141
|
# Operation payload for EnableService method.
|
1177
1142
|
class EnableServiceResponse
|
1178
1143
|
include Google::Apis::Core::Hashable
|
@@ -2263,11 +2228,11 @@ module Google
|
|
2263
2228
|
|
2264
2229
|
# The units in which the metric value is reported. It is only applicable if the `
|
2265
2230
|
# value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit` defines the
|
2266
|
-
# representation of the stored metric values. Different systems
|
2267
|
-
# values to be more easily displayed (so a value of `0.
|
2268
|
-
# displayed as `20By`, and a value of `
|
2269
|
-
# . However, if the `unit` is `
|
2270
|
-
# thousands of bytes, no matter how it
|
2231
|
+
# representation of the stored metric values. Different systems might scale the
|
2232
|
+
# values to be more easily displayed (so a value of `0.02kBy` _might_ be
|
2233
|
+
# displayed as `20By`, and a value of `3523kBy` _might_ be displayed as `3.5MBy`)
|
2234
|
+
# . However, if the `unit` is `kBy`, then the value of the metric is always in
|
2235
|
+
# thousands of bytes, no matter how it might be displayed. If you want a custom
|
2271
2236
|
# metric to record the exact number of CPU-seconds used by a job, you can create
|
2272
2237
|
# an `INT64 CUMULATIVE` metric whose `unit` is `s`CPU`` (or equivalently `1s`CPU`
|
2273
2238
|
# ` or just `s`). If the job uses 12,005 CPU-seconds, then the value is written
|
@@ -2275,7 +2240,7 @@ module Google
|
|
2275
2240
|
# more granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is
|
2276
2241
|
# `ks`CPU``, and then write the value `12.005` (which is `12005/1000`), or use `
|
2277
2242
|
# Kis`CPU`` and write `11.723` (which is `12005/1024`). The supported units are
|
2278
|
-
# a subset of [The Unified Code for Units of Measure](
|
2243
|
+
# a subset of [The Unified Code for Units of Measure](https://unitsofmeasure.org/
|
2279
2244
|
# ucum.html) standard: **Basic units (UNIT)** * `bit` bit * `By` byte * `s`
|
2280
2245
|
# second * `min` minute * `h` hour * `d` day * `1` dimensionless **Prefixes (
|
2281
2246
|
# PREFIX)** * `k` kilo (10^3) * `M` mega (10^6) * `G` giga (10^9) * `T` tera (10^
|
@@ -3166,11 +3131,11 @@ module Google
|
|
3166
3131
|
# and delegates other aspects to sub-sections. Each sub-section is either a
|
3167
3132
|
# proto message or a repeated proto message that configures a specific aspect,
|
3168
3133
|
# such as auth. See each proto message definition for details. Example: type:
|
3169
|
-
# google.api.Service
|
3170
|
-
#
|
3171
|
-
#
|
3172
|
-
#
|
3173
|
-
#
|
3134
|
+
# google.api.Service name: calendar.googleapis.com title: Google Calendar API
|
3135
|
+
# apis: - name: google.calendar.v3.Calendar authentication: providers: - id:
|
3136
|
+
# google_calendar_auth jwks_uri: https://www.googleapis.com/oauth2/v1/certs
|
3137
|
+
# issuer: https://securetoken.google.com rules: - selector: "*" requirements:
|
3138
|
+
# provider_id: google_calendar_auth
|
3174
3139
|
class Service
|
3175
3140
|
include Google::Apis::Core::Hashable
|
3176
3141
|
|
@@ -3676,11 +3641,11 @@ module Google
|
|
3676
3641
|
# and delegates other aspects to sub-sections. Each sub-section is either a
|
3677
3642
|
# proto message or a repeated proto message that configures a specific aspect,
|
3678
3643
|
# such as auth. See each proto message definition for details. Example: type:
|
3679
|
-
# google.api.Service
|
3680
|
-
#
|
3681
|
-
#
|
3682
|
-
#
|
3683
|
-
#
|
3644
|
+
# google.api.Service name: calendar.googleapis.com title: Google Calendar API
|
3645
|
+
# apis: - name: google.calendar.v3.Calendar authentication: providers: - id:
|
3646
|
+
# google_calendar_auth jwks_uri: https://www.googleapis.com/oauth2/v1/certs
|
3647
|
+
# issuer: https://securetoken.google.com rules: - selector: "*" requirements:
|
3648
|
+
# provider_id: google_calendar_auth
|
3684
3649
|
# Corresponds to the JSON property `serviceConfig`
|
3685
3650
|
# @return [Google::Apis::ServicemanagementV1::Service]
|
3686
3651
|
attr_accessor :service_config
|
@@ -3944,7 +3909,11 @@ module Google
|
|
3944
3909
|
|
3945
3910
|
# Requirements that must be satisfied before a consumer project can use the
|
3946
3911
|
# service. Each requirement is of the form /; for example 'serviceusage.
|
3947
|
-
# googleapis.com/billing-enabled'.
|
3912
|
+
# googleapis.com/billing-enabled'. For Google APIs, a Terms of Service
|
3913
|
+
# requirement must be included here. Google Cloud APIs must include "
|
3914
|
+
# serviceusage.googleapis.com/tos/cloud". Other Google APIs should include "
|
3915
|
+
# serviceusage.googleapis.com/tos/universal". Additional ToS can be included
|
3916
|
+
# based on the business needs.
|
3948
3917
|
# Corresponds to the JSON property `requirements`
|
3949
3918
|
# @return [Array<String>]
|
3950
3919
|
attr_accessor :requirements
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module ServicemanagementV1
|
18
18
|
# Version of the google-apis-servicemanagement_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.6.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.2.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210319"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -178,12 +178,6 @@ module Google
|
|
178
178
|
include Google::Apis::Core::JsonObjectSupport
|
179
179
|
end
|
180
180
|
|
181
|
-
class DisableServiceResponse
|
182
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
183
|
-
|
184
|
-
include Google::Apis::Core::JsonObjectSupport
|
185
|
-
end
|
186
|
-
|
187
181
|
class Documentation
|
188
182
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
189
183
|
|
@@ -196,12 +190,6 @@ module Google
|
|
196
190
|
include Google::Apis::Core::JsonObjectSupport
|
197
191
|
end
|
198
192
|
|
199
|
-
class EnableServiceRequest
|
200
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
201
|
-
|
202
|
-
include Google::Apis::Core::JsonObjectSupport
|
203
|
-
end
|
204
|
-
|
205
193
|
class EnableServiceResponse
|
206
194
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
207
195
|
|
@@ -800,12 +788,6 @@ module Google
|
|
800
788
|
end
|
801
789
|
end
|
802
790
|
|
803
|
-
class DisableServiceResponse
|
804
|
-
# @private
|
805
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
806
|
-
end
|
807
|
-
end
|
808
|
-
|
809
791
|
class Documentation
|
810
792
|
# @private
|
811
793
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -829,13 +811,6 @@ module Google
|
|
829
811
|
end
|
830
812
|
end
|
831
813
|
|
832
|
-
class EnableServiceRequest
|
833
|
-
# @private
|
834
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
835
|
-
property :consumer_id, as: 'consumerId'
|
836
|
-
end
|
837
|
-
end
|
838
|
-
|
839
814
|
class EnableServiceResponse
|
840
815
|
# @private
|
841
816
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -200,42 +200,6 @@ module Google
|
|
200
200
|
execute_or_queue_command(command, &block)
|
201
201
|
end
|
202
202
|
|
203
|
-
# Enables a service for a project, so it can be used for the project. See [Cloud
|
204
|
-
# Auth Guide](https://cloud.google.com/docs/authentication) for more information.
|
205
|
-
# Operation
|
206
|
-
# @param [String] service_name
|
207
|
-
# Required. Name of the service to enable. Specifying an unknown service name
|
208
|
-
# will cause the request to fail.
|
209
|
-
# @param [Google::Apis::ServicemanagementV1::EnableServiceRequest] enable_service_request_object
|
210
|
-
# @param [String] fields
|
211
|
-
# Selector specifying which fields to include in a partial response.
|
212
|
-
# @param [String] quota_user
|
213
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
214
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
215
|
-
# @param [Google::Apis::RequestOptions] options
|
216
|
-
# Request-specific options
|
217
|
-
#
|
218
|
-
# @yield [result, err] Result & error if block supplied
|
219
|
-
# @yieldparam result [Google::Apis::ServicemanagementV1::Operation] parsed result object
|
220
|
-
# @yieldparam err [StandardError] error object if request failed
|
221
|
-
#
|
222
|
-
# @return [Google::Apis::ServicemanagementV1::Operation]
|
223
|
-
#
|
224
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
225
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
226
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
227
|
-
def enable_service(service_name, enable_service_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
228
|
-
command = make_simple_command(:post, 'v1/services/{serviceName}:enable', options)
|
229
|
-
command.request_representation = Google::Apis::ServicemanagementV1::EnableServiceRequest::Representation
|
230
|
-
command.request_object = enable_service_request_object
|
231
|
-
command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation
|
232
|
-
command.response_class = Google::Apis::ServicemanagementV1::Operation
|
233
|
-
command.params['serviceName'] = service_name unless service_name.nil?
|
234
|
-
command.query['fields'] = fields unless fields.nil?
|
235
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
236
|
-
execute_or_queue_command(command, &block)
|
237
|
-
end
|
238
|
-
|
239
203
|
# Generates and returns a report (errors, warnings and changes from existing
|
240
204
|
# configurations) associated with GenerateConfigReportRequest.new_value If
|
241
205
|
# GenerateConfigReportRequest.old_value is specified,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-servicemanagement_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.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: 2021-
|
11
|
+
date: 2021-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -52,7 +52,7 @@ licenses:
|
|
52
52
|
metadata:
|
53
53
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
54
54
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-servicemanagement_v1/CHANGELOG.md
|
55
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-servicemanagement_v1/v0.
|
55
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-servicemanagement_v1/v0.6.0
|
56
56
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-servicemanagement_v1
|
57
57
|
post_install_message:
|
58
58
|
rdoc_options: []
|
@@ -62,14 +62,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
62
62
|
requirements:
|
63
63
|
- - ">="
|
64
64
|
- !ruby/object:Gem::Version
|
65
|
-
version: '2.
|
65
|
+
version: '2.5'
|
66
66
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
67
67
|
requirements:
|
68
68
|
- - ">="
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '0'
|
71
71
|
requirements: []
|
72
|
-
rubygems_version: 3.
|
72
|
+
rubygems_version: 3.2.13
|
73
73
|
signing_key:
|
74
74
|
specification_version: 4
|
75
75
|
summary: Simple REST client for Service Management API V1
|