google-api-client 0.28.5 → 0.28.6
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 +5 -5
- data/CHANGELOG.md +46 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +0 -1
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +18 -4
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +892 -0
- data/generated/google/apis/bigquery_v2/representations.rb +352 -0
- data/generated/google/apis/bigquery_v2/service.rb +162 -0
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +78 -0
- data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +43 -0
- data/generated/google/apis/bigquerydatatransfer_v1/service.rb +76 -0
- data/generated/google/apis/cloudasset_v1.rb +2 -2
- data/generated/google/apis/cloudasset_v1/service.rb +1 -1
- data/generated/google/apis/cloudasset_v1beta1.rb +2 -2
- data/generated/google/apis/cloudasset_v1beta1/service.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +6 -0
- data/generated/google/apis/cloudbuild_v1/representations.rb +1 -0
- data/generated/google/apis/cloudbuild_v1/service.rb +7 -1
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +10 -10
- data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +10 -10
- data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +100 -0
- data/generated/google/apis/cloudscheduler_v1beta1/representations.rb +33 -0
- data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudshell_v1alpha1/classes.rb +8 -2
- data/generated/google/apis/cloudshell_v1alpha1/representations.rb +1 -0
- data/generated/google/apis/cloudshell_v1alpha1/service.rb +5 -4
- data/generated/google/apis/cloudtasks_v2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
- data/generated/google/apis/composer_v1beta1.rb +1 -1
- data/generated/google/apis/composer_v1beta1/classes.rb +24 -21
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +31 -0
- data/generated/google/apis/container_v1/representations.rb +3 -0
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +70 -0
- data/generated/google/apis/container_v1beta1/representations.rb +32 -0
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +19 -10
- data/generated/google/apis/dataflow_v1b3/representations.rb +1 -0
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +1 -1
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +45 -0
- data/generated/google/apis/dlp_v2/representations.rb +20 -0
- data/generated/google/apis/dns_v1beta2.rb +1 -1
- data/generated/google/apis/dns_v1beta2/classes.rb +71 -0
- data/generated/google/apis/dns_v1beta2/representations.rb +33 -0
- data/generated/google/apis/factchecktools_v1alpha1.rb +3 -3
- data/generated/google/apis/iap_v1.rb +1 -1
- data/generated/google/apis/iap_v1beta1.rb +1 -1
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/oauth2_v1.rb +1 -1
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/plus_domains_v1.rb +2 -5
- data/generated/google/apis/plus_domains_v1/service.rb +0 -292
- data/generated/google/apis/plus_v1.rb +2 -2
- data/generated/google/apis/redis_v1.rb +1 -1
- data/generated/google/apis/redis_v1/classes.rb +30 -10
- data/generated/google/apis/redis_v1/representations.rb +13 -0
- data/generated/google/apis/redis_v1/service.rb +36 -0
- data/generated/google/apis/redis_v1beta1.rb +1 -1
- data/generated/google/apis/redis_v1beta1/classes.rb +18 -11
- data/generated/google/apis/servicebroker_v1.rb +1 -1
- data/generated/google/apis/servicebroker_v1/classes.rb +1 -1
- data/generated/google/apis/servicebroker_v1alpha1.rb +1 -1
- data/generated/google/apis/servicebroker_v1alpha1/classes.rb +1 -1
- data/generated/google/apis/servicebroker_v1beta1.rb +1 -1
- data/generated/google/apis/servicebroker_v1beta1/classes.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +122 -5
- data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +26 -0
- data/generated/google/apis/serviceconsumermanagement_v1/service.rb +83 -0
- data/generated/google/apis/servicenetworking_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1/classes.rb +83 -5
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +83 -5
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +123 -6
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +163 -7
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1/classes.rb +1 -1
- data/generated/google/apis/speech_v1/service.rb +2 -0
- data/generated/google/apis/speech_v1p1beta1.rb +1 -1
- data/generated/google/apis/speech_v1p1beta1/classes.rb +1 -1
- data/generated/google/apis/speech_v1p1beta1/service.rb +2 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +62 -0
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +32 -0
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +0 -14
- data/generated/google/apis/testing_v1/representations.rb +0 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +4 -3
|
@@ -201,6 +201,42 @@ module Google
|
|
|
201
201
|
execute_or_queue_command(command, &block)
|
|
202
202
|
end
|
|
203
203
|
|
|
204
|
+
# Failover the master role to current replica node against a specific
|
|
205
|
+
# STANDARD tier redis instance.
|
|
206
|
+
# @param [String] name
|
|
207
|
+
# Required. Redis instance resource name using the form:
|
|
208
|
+
# `projects/`project_id`/locations/`location_id`/instances/`instance_id``
|
|
209
|
+
# where `location_id` refers to a GCP region
|
|
210
|
+
# @param [Google::Apis::RedisV1::FailoverInstanceRequest] failover_instance_request_object
|
|
211
|
+
# @param [String] fields
|
|
212
|
+
# Selector specifying which fields to include in a partial response.
|
|
213
|
+
# @param [String] quota_user
|
|
214
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
215
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
216
|
+
# @param [Google::Apis::RequestOptions] options
|
|
217
|
+
# Request-specific options
|
|
218
|
+
#
|
|
219
|
+
# @yield [result, err] Result & error if block supplied
|
|
220
|
+
# @yieldparam result [Google::Apis::RedisV1::Operation] parsed result object
|
|
221
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
222
|
+
#
|
|
223
|
+
# @return [Google::Apis::RedisV1::Operation]
|
|
224
|
+
#
|
|
225
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
226
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
227
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
228
|
+
def failover_instance(name, failover_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
229
|
+
command = make_simple_command(:post, 'v1/{+name}:failover', options)
|
|
230
|
+
command.request_representation = Google::Apis::RedisV1::FailoverInstanceRequest::Representation
|
|
231
|
+
command.request_object = failover_instance_request_object
|
|
232
|
+
command.response_representation = Google::Apis::RedisV1::Operation::Representation
|
|
233
|
+
command.response_class = Google::Apis::RedisV1::Operation
|
|
234
|
+
command.params['name'] = name unless name.nil?
|
|
235
|
+
command.query['fields'] = fields unless fields.nil?
|
|
236
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
237
|
+
execute_or_queue_command(command, &block)
|
|
238
|
+
end
|
|
239
|
+
|
|
204
240
|
# Gets the details of a specific Redis instance.
|
|
205
241
|
# @param [String] name
|
|
206
242
|
# Required. Redis instance resource name using the form:
|
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://cloud.google.com/memorystore/docs/redis/
|
|
26
26
|
module RedisV1beta1
|
|
27
27
|
VERSION = 'V1beta1'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20190327'
|
|
29
29
|
|
|
30
30
|
# View and manage your data across Google Cloud Platform services
|
|
31
31
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
@@ -222,8 +222,13 @@ module Google
|
|
|
222
222
|
# Optional. Redis configuration parameters, according to
|
|
223
223
|
# http://redis.io/topics/config. Currently, the only supported parameters
|
|
224
224
|
# are:
|
|
225
|
+
# Redis 3.2 and above:
|
|
225
226
|
# * maxmemory-policy
|
|
226
227
|
# * notify-keyspace-events
|
|
228
|
+
# Redis 4.0 and above:
|
|
229
|
+
# * activedefrag
|
|
230
|
+
# * lfu-log-factor
|
|
231
|
+
# * lfu-decay-time
|
|
227
232
|
# Corresponds to the JSON property `redisConfigs`
|
|
228
233
|
# @return [Hash<String,String>]
|
|
229
234
|
attr_accessor :redis_configs
|
|
@@ -231,7 +236,9 @@ module Google
|
|
|
231
236
|
# Optional. The version of Redis software.
|
|
232
237
|
# If not provided, latest supported version will be used. Updating the
|
|
233
238
|
# version will perform an upgrade/downgrade to the new version. Currently,
|
|
234
|
-
# the supported values are
|
|
239
|
+
# the supported values are:
|
|
240
|
+
# * `REDIS_4_0` for Redis 4.0 compatibility
|
|
241
|
+
# * `REDIS_3_2` for Redis 3.2 compatibility
|
|
235
242
|
# Corresponds to the JSON property `redisVersion`
|
|
236
243
|
# @return [String]
|
|
237
244
|
attr_accessor :redis_version
|
|
@@ -438,14 +445,14 @@ module Google
|
|
|
438
445
|
attr_accessor :done
|
|
439
446
|
alias_method :done?, :done
|
|
440
447
|
|
|
441
|
-
# The `Status` type defines a logical error model that is suitable for
|
|
442
|
-
# programming environments, including REST APIs and RPC APIs. It is
|
|
443
|
-
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
|
448
|
+
# The `Status` type defines a logical error model that is suitable for
|
|
449
|
+
# different programming environments, including REST APIs and RPC APIs. It is
|
|
450
|
+
# used by [gRPC](https://github.com/grpc). The error model is designed to be:
|
|
444
451
|
# - Simple to use and understand for most users
|
|
445
452
|
# - Flexible enough to meet unexpected needs
|
|
446
453
|
# # Overview
|
|
447
|
-
# The `Status` message contains three pieces of data: error code, error
|
|
448
|
-
# and error details. The error code should be an enum value of
|
|
454
|
+
# The `Status` message contains three pieces of data: error code, error
|
|
455
|
+
# message, and error details. The error code should be an enum value of
|
|
449
456
|
# google.rpc.Code, but it may accept additional error codes if needed. The
|
|
450
457
|
# error message should be a developer-facing English message that helps
|
|
451
458
|
# developers *understand* and *resolve* the error. If a localized user-facing
|
|
@@ -530,14 +537,14 @@ module Google
|
|
|
530
537
|
end
|
|
531
538
|
end
|
|
532
539
|
|
|
533
|
-
# The `Status` type defines a logical error model that is suitable for
|
|
534
|
-
# programming environments, including REST APIs and RPC APIs. It is
|
|
535
|
-
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
|
540
|
+
# The `Status` type defines a logical error model that is suitable for
|
|
541
|
+
# different programming environments, including REST APIs and RPC APIs. It is
|
|
542
|
+
# used by [gRPC](https://github.com/grpc). The error model is designed to be:
|
|
536
543
|
# - Simple to use and understand for most users
|
|
537
544
|
# - Flexible enough to meet unexpected needs
|
|
538
545
|
# # Overview
|
|
539
|
-
# The `Status` message contains three pieces of data: error code, error
|
|
540
|
-
# and error details. The error code should be an enum value of
|
|
546
|
+
# The `Status` message contains three pieces of data: error code, error
|
|
547
|
+
# message, and error details. The error code should be an enum value of
|
|
541
548
|
# google.rpc.Code, but it may accept additional error codes if needed. The
|
|
542
549
|
# error message should be a developer-facing English message that helps
|
|
543
550
|
# developers *understand* and *resolve* the error. If a localized user-facing
|
|
@@ -27,7 +27,7 @@ module Google
|
|
|
27
27
|
# @see https://cloud.google.com/kubernetes-engine/docs/concepts/add-on/service-broker
|
|
28
28
|
module ServicebrokerV1
|
|
29
29
|
VERSION = 'V1'
|
|
30
|
-
REVISION = '
|
|
30
|
+
REVISION = '20190325'
|
|
31
31
|
|
|
32
32
|
# View and manage your data across Google Cloud Platform services
|
|
33
33
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
@@ -46,7 +46,7 @@ module Google
|
|
|
46
46
|
# account. For example, `my-other-app@appspot.gserviceaccount.com`.
|
|
47
47
|
# * `group:`emailid``: An email address that represents a Google group.
|
|
48
48
|
# For example, `admins@example.com`.
|
|
49
|
-
# * `domain:`domain``:
|
|
49
|
+
# * `domain:`domain``: The G Suite domain (primary) that represents all the
|
|
50
50
|
# users of that domain. For example, `google.com` or `example.com`.
|
|
51
51
|
# Corresponds to the JSON property `members`
|
|
52
52
|
# @return [Array<String>]
|
|
@@ -27,7 +27,7 @@ module Google
|
|
|
27
27
|
# @see https://cloud.google.com/kubernetes-engine/docs/concepts/add-on/service-broker
|
|
28
28
|
module ServicebrokerV1alpha1
|
|
29
29
|
VERSION = 'V1alpha1'
|
|
30
|
-
REVISION = '
|
|
30
|
+
REVISION = '20190325'
|
|
31
31
|
|
|
32
32
|
# View and manage your data across Google Cloud Platform services
|
|
33
33
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
@@ -753,7 +753,7 @@ module Google
|
|
|
753
753
|
# account. For example, `my-other-app@appspot.gserviceaccount.com`.
|
|
754
754
|
# * `group:`emailid``: An email address that represents a Google group.
|
|
755
755
|
# For example, `admins@example.com`.
|
|
756
|
-
# * `domain:`domain``:
|
|
756
|
+
# * `domain:`domain``: The G Suite domain (primary) that represents all the
|
|
757
757
|
# users of that domain. For example, `google.com` or `example.com`.
|
|
758
758
|
# Corresponds to the JSON property `members`
|
|
759
759
|
# @return [Array<String>]
|
|
@@ -27,7 +27,7 @@ module Google
|
|
|
27
27
|
# @see https://cloud.google.com/kubernetes-engine/docs/concepts/add-on/service-broker
|
|
28
28
|
module ServicebrokerV1beta1
|
|
29
29
|
VERSION = 'V1beta1'
|
|
30
|
-
REVISION = '
|
|
30
|
+
REVISION = '20190325'
|
|
31
31
|
|
|
32
32
|
# View and manage your data across Google Cloud Platform services
|
|
33
33
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
@@ -874,7 +874,7 @@ module Google
|
|
|
874
874
|
# account. For example, `my-other-app@appspot.gserviceaccount.com`.
|
|
875
875
|
# * `group:`emailid``: An email address that represents a Google group.
|
|
876
876
|
# For example, `admins@example.com`.
|
|
877
|
-
# * `domain:`domain``:
|
|
877
|
+
# * `domain:`domain``: The G Suite domain (primary) that represents all the
|
|
878
878
|
# users of that domain. For example, `google.com` or `example.com`.
|
|
879
879
|
# Corresponds to the JSON property `members`
|
|
880
880
|
# @return [Array<String>]
|
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://cloud.google.com/service-consumer-management/docs/overview
|
|
26
26
|
module ServiceconsumermanagementV1
|
|
27
27
|
VERSION = 'V1'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20190328'
|
|
29
29
|
|
|
30
30
|
# View and manage your data across Google Cloud Platform services
|
|
31
31
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
@@ -843,6 +843,25 @@ module Google
|
|
|
843
843
|
end
|
|
844
844
|
end
|
|
845
845
|
|
|
846
|
+
# Request message to delete tenant project resource from the tenancy unit.
|
|
847
|
+
class DeleteTenantProjectRequest
|
|
848
|
+
include Google::Apis::Core::Hashable
|
|
849
|
+
|
|
850
|
+
# Tag of the resource within the tenancy unit.
|
|
851
|
+
# Corresponds to the JSON property `tag`
|
|
852
|
+
# @return [String]
|
|
853
|
+
attr_accessor :tag
|
|
854
|
+
|
|
855
|
+
def initialize(**args)
|
|
856
|
+
update!(**args)
|
|
857
|
+
end
|
|
858
|
+
|
|
859
|
+
# Update properties of this object
|
|
860
|
+
def update!(**args)
|
|
861
|
+
@tag = args[:tag] if args.key?(:tag)
|
|
862
|
+
end
|
|
863
|
+
end
|
|
864
|
+
|
|
846
865
|
# `Documentation` provides the information for describing a service.
|
|
847
866
|
# Example:
|
|
848
867
|
# <pre><code>documentation:
|
|
@@ -967,9 +986,9 @@ module Google
|
|
|
967
986
|
# The selector is a comma-separated list of patterns. Each pattern is a
|
|
968
987
|
# qualified name of the element which may end in "*", indicating a wildcard.
|
|
969
988
|
# Wildcards are only allowed at the end and for a whole component of the
|
|
970
|
-
# qualified name, i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar".
|
|
971
|
-
#
|
|
972
|
-
# is used.
|
|
989
|
+
# qualified name, i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". A
|
|
990
|
+
# wildcard will match one or more components. To specify a default for all
|
|
991
|
+
# applicable elements, the whole pattern "*" is used.
|
|
973
992
|
# Corresponds to the JSON property `selector`
|
|
974
993
|
# @return [String]
|
|
975
994
|
attr_accessor :selector
|
|
@@ -2553,7 +2572,46 @@ module Google
|
|
|
2553
2572
|
end
|
|
2554
2573
|
end
|
|
2555
2574
|
|
|
2556
|
-
#
|
|
2575
|
+
# Quota configuration helps to achieve fairness and budgeting in service
|
|
2576
|
+
# usage.
|
|
2577
|
+
# The metric based quota configuration works this way:
|
|
2578
|
+
# - The service configuration defines a set of metrics.
|
|
2579
|
+
# - For API calls, the quota.metric_rules maps methods to metrics with
|
|
2580
|
+
# corresponding costs.
|
|
2581
|
+
# - The quota.limits defines limits on the metrics, which will be used for
|
|
2582
|
+
# quota checks at runtime.
|
|
2583
|
+
# An example quota configuration in yaml format:
|
|
2584
|
+
# quota:
|
|
2585
|
+
# limits:
|
|
2586
|
+
# - name: apiWriteQpsPerProject
|
|
2587
|
+
# metric: library.googleapis.com/write_calls
|
|
2588
|
+
# unit: "1/min/`project`" # rate limit for consumer projects
|
|
2589
|
+
# values:
|
|
2590
|
+
# STANDARD: 10000
|
|
2591
|
+
# # The metric rules bind all methods to the read_calls metric,
|
|
2592
|
+
# # except for the UpdateBook and DeleteBook methods. These two methods
|
|
2593
|
+
# # are mapped to the write_calls metric, with the UpdateBook method
|
|
2594
|
+
# # consuming at twice rate as the DeleteBook method.
|
|
2595
|
+
# metric_rules:
|
|
2596
|
+
# - selector: "*"
|
|
2597
|
+
# metric_costs:
|
|
2598
|
+
# library.googleapis.com/read_calls: 1
|
|
2599
|
+
# - selector: google.example.library.v1.LibraryService.UpdateBook
|
|
2600
|
+
# metric_costs:
|
|
2601
|
+
# library.googleapis.com/write_calls: 2
|
|
2602
|
+
# - selector: google.example.library.v1.LibraryService.DeleteBook
|
|
2603
|
+
# metric_costs:
|
|
2604
|
+
# library.googleapis.com/write_calls: 1
|
|
2605
|
+
# Corresponding Metric definition:
|
|
2606
|
+
# metrics:
|
|
2607
|
+
# - name: library.googleapis.com/read_calls
|
|
2608
|
+
# display_name: Read requests
|
|
2609
|
+
# metric_kind: DELTA
|
|
2610
|
+
# value_type: INT64
|
|
2611
|
+
# - name: library.googleapis.com/write_calls
|
|
2612
|
+
# display_name: Write requests
|
|
2613
|
+
# metric_kind: DELTA
|
|
2614
|
+
# value_type: INT64
|
|
2557
2615
|
class Quota
|
|
2558
2616
|
include Google::Apis::Core::Hashable
|
|
2559
2617
|
|
|
@@ -3065,7 +3123,46 @@ module Google
|
|
|
3065
3123
|
# @return [String]
|
|
3066
3124
|
attr_accessor :producer_project_id
|
|
3067
3125
|
|
|
3068
|
-
# Quota configuration
|
|
3126
|
+
# Quota configuration helps to achieve fairness and budgeting in service
|
|
3127
|
+
# usage.
|
|
3128
|
+
# The metric based quota configuration works this way:
|
|
3129
|
+
# - The service configuration defines a set of metrics.
|
|
3130
|
+
# - For API calls, the quota.metric_rules maps methods to metrics with
|
|
3131
|
+
# corresponding costs.
|
|
3132
|
+
# - The quota.limits defines limits on the metrics, which will be used for
|
|
3133
|
+
# quota checks at runtime.
|
|
3134
|
+
# An example quota configuration in yaml format:
|
|
3135
|
+
# quota:
|
|
3136
|
+
# limits:
|
|
3137
|
+
# - name: apiWriteQpsPerProject
|
|
3138
|
+
# metric: library.googleapis.com/write_calls
|
|
3139
|
+
# unit: "1/min/`project`" # rate limit for consumer projects
|
|
3140
|
+
# values:
|
|
3141
|
+
# STANDARD: 10000
|
|
3142
|
+
# # The metric rules bind all methods to the read_calls metric,
|
|
3143
|
+
# # except for the UpdateBook and DeleteBook methods. These two methods
|
|
3144
|
+
# # are mapped to the write_calls metric, with the UpdateBook method
|
|
3145
|
+
# # consuming at twice rate as the DeleteBook method.
|
|
3146
|
+
# metric_rules:
|
|
3147
|
+
# - selector: "*"
|
|
3148
|
+
# metric_costs:
|
|
3149
|
+
# library.googleapis.com/read_calls: 1
|
|
3150
|
+
# - selector: google.example.library.v1.LibraryService.UpdateBook
|
|
3151
|
+
# metric_costs:
|
|
3152
|
+
# library.googleapis.com/write_calls: 2
|
|
3153
|
+
# - selector: google.example.library.v1.LibraryService.DeleteBook
|
|
3154
|
+
# metric_costs:
|
|
3155
|
+
# library.googleapis.com/write_calls: 1
|
|
3156
|
+
# Corresponding Metric definition:
|
|
3157
|
+
# metrics:
|
|
3158
|
+
# - name: library.googleapis.com/read_calls
|
|
3159
|
+
# display_name: Read requests
|
|
3160
|
+
# metric_kind: DELTA
|
|
3161
|
+
# value_type: INT64
|
|
3162
|
+
# - name: library.googleapis.com/write_calls
|
|
3163
|
+
# display_name: Write requests
|
|
3164
|
+
# metric_kind: DELTA
|
|
3165
|
+
# value_type: INT64
|
|
3069
3166
|
# Corresponds to the JSON property `quota`
|
|
3070
3167
|
# @return [Google::Apis::ServiceconsumermanagementV1::Quota]
|
|
3071
3168
|
attr_accessor :quota
|
|
@@ -3620,6 +3717,26 @@ module Google
|
|
|
3620
3717
|
end
|
|
3621
3718
|
end
|
|
3622
3719
|
|
|
3720
|
+
# Request message to undelete tenant project resource previously deleted from
|
|
3721
|
+
# the tenancy unit.
|
|
3722
|
+
class UndeleteTenantProjectRequest
|
|
3723
|
+
include Google::Apis::Core::Hashable
|
|
3724
|
+
|
|
3725
|
+
# Tag of the resource within the tenancy unit.
|
|
3726
|
+
# Corresponds to the JSON property `tag`
|
|
3727
|
+
# @return [String]
|
|
3728
|
+
attr_accessor :tag
|
|
3729
|
+
|
|
3730
|
+
def initialize(**args)
|
|
3731
|
+
update!(**args)
|
|
3732
|
+
end
|
|
3733
|
+
|
|
3734
|
+
# Update properties of this object
|
|
3735
|
+
def update!(**args)
|
|
3736
|
+
@tag = args[:tag] if args.key?(:tag)
|
|
3737
|
+
end
|
|
3738
|
+
end
|
|
3739
|
+
|
|
3623
3740
|
# Configuration controlling usage of a service.
|
|
3624
3741
|
class Usage
|
|
3625
3742
|
include Google::Apis::Core::Hashable
|
|
@@ -154,6 +154,12 @@ module Google
|
|
|
154
154
|
include Google::Apis::Core::JsonObjectSupport
|
|
155
155
|
end
|
|
156
156
|
|
|
157
|
+
class DeleteTenantProjectRequest
|
|
158
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
159
|
+
|
|
160
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
161
|
+
end
|
|
162
|
+
|
|
157
163
|
class Documentation
|
|
158
164
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
159
165
|
|
|
@@ -430,6 +436,12 @@ module Google
|
|
|
430
436
|
include Google::Apis::Core::JsonObjectSupport
|
|
431
437
|
end
|
|
432
438
|
|
|
439
|
+
class UndeleteTenantProjectRequest
|
|
440
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
441
|
+
|
|
442
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
443
|
+
end
|
|
444
|
+
|
|
433
445
|
class Usage
|
|
434
446
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
435
447
|
|
|
@@ -642,6 +654,13 @@ module Google
|
|
|
642
654
|
end
|
|
643
655
|
end
|
|
644
656
|
|
|
657
|
+
class DeleteTenantProjectRequest
|
|
658
|
+
# @private
|
|
659
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
660
|
+
property :tag, as: 'tag'
|
|
661
|
+
end
|
|
662
|
+
end
|
|
663
|
+
|
|
645
664
|
class Documentation
|
|
646
665
|
# @private
|
|
647
666
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -1159,6 +1178,13 @@ module Google
|
|
|
1159
1178
|
end
|
|
1160
1179
|
end
|
|
1161
1180
|
|
|
1181
|
+
class UndeleteTenantProjectRequest
|
|
1182
|
+
# @private
|
|
1183
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1184
|
+
property :tag, as: 'tag'
|
|
1185
|
+
end
|
|
1186
|
+
end
|
|
1187
|
+
|
|
1162
1188
|
class Usage
|
|
1163
1189
|
# @private
|
|
1164
1190
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -458,6 +458,49 @@ module Google
|
|
|
458
458
|
execute_or_queue_command(command, &block)
|
|
459
459
|
end
|
|
460
460
|
|
|
461
|
+
# Deletes the specified project resource identified by a tenant resource tag.
|
|
462
|
+
# The mothod removes a project lien with a 'TenantManager' origin if that was
|
|
463
|
+
# added. It will then attempt to delete the project. If that operation fails,
|
|
464
|
+
# this method also fails.
|
|
465
|
+
# After the project has been deleted, the tenant resource state is set to
|
|
466
|
+
# DELETED. To permanently remove resource metadata, call the
|
|
467
|
+
# `RemoveTenantProject` method.
|
|
468
|
+
# New resources with the same tag can't be added if there are existing
|
|
469
|
+
# resources in a DELETED state.
|
|
470
|
+
# Operation<response: Empty>.
|
|
471
|
+
# @param [String] name
|
|
472
|
+
# Name of the tenancy unit.
|
|
473
|
+
# Such as 'services/service.googleapis.com/projects/12345/tenancyUnits/abcd'.
|
|
474
|
+
# @param [Google::Apis::ServiceconsumermanagementV1::DeleteTenantProjectRequest] delete_tenant_project_request_object
|
|
475
|
+
# @param [String] fields
|
|
476
|
+
# Selector specifying which fields to include in a partial response.
|
|
477
|
+
# @param [String] quota_user
|
|
478
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
479
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
480
|
+
# @param [Google::Apis::RequestOptions] options
|
|
481
|
+
# Request-specific options
|
|
482
|
+
#
|
|
483
|
+
# @yield [result, err] Result & error if block supplied
|
|
484
|
+
# @yieldparam result [Google::Apis::ServiceconsumermanagementV1::Operation] parsed result object
|
|
485
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
486
|
+
#
|
|
487
|
+
# @return [Google::Apis::ServiceconsumermanagementV1::Operation]
|
|
488
|
+
#
|
|
489
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
490
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
491
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
492
|
+
def delete_service_tenancy_unit_project(name, delete_tenant_project_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
493
|
+
command = make_simple_command(:post, 'v1/{+name}:deleteProject', options)
|
|
494
|
+
command.request_representation = Google::Apis::ServiceconsumermanagementV1::DeleteTenantProjectRequest::Representation
|
|
495
|
+
command.request_object = delete_tenant_project_request_object
|
|
496
|
+
command.response_representation = Google::Apis::ServiceconsumermanagementV1::Operation::Representation
|
|
497
|
+
command.response_class = Google::Apis::ServiceconsumermanagementV1::Operation
|
|
498
|
+
command.params['name'] = name unless name.nil?
|
|
499
|
+
command.query['fields'] = fields unless fields.nil?
|
|
500
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
501
|
+
execute_or_queue_command(command, &block)
|
|
502
|
+
end
|
|
503
|
+
|
|
461
504
|
# Find the tenancy unit for a managed service and service consumer.
|
|
462
505
|
# This method shouldn't be used in a service producer's runtime path, for
|
|
463
506
|
# example to find the tenant project number when creating VMs. Service
|
|
@@ -548,6 +591,46 @@ module Google
|
|
|
548
591
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
549
592
|
execute_or_queue_command(command, &block)
|
|
550
593
|
end
|
|
594
|
+
|
|
595
|
+
# Attempts to undelete a previously deleted tenant project. The project must
|
|
596
|
+
# be in a DELETED state.
|
|
597
|
+
# There are no guarantees that an undeleted project will be in
|
|
598
|
+
# a fully restored and functional state. Call the `ApplyTenantProjectConfig`
|
|
599
|
+
# method to update its configuration and then validate all managed service
|
|
600
|
+
# resources.
|
|
601
|
+
# Operation<response: Empty>.
|
|
602
|
+
# @param [String] name
|
|
603
|
+
# Name of the tenancy unit.
|
|
604
|
+
# Such as 'services/service.googleapis.com/projects/12345/tenancyUnits/abcd'.
|
|
605
|
+
# @param [Google::Apis::ServiceconsumermanagementV1::UndeleteTenantProjectRequest] undelete_tenant_project_request_object
|
|
606
|
+
# @param [String] fields
|
|
607
|
+
# Selector specifying which fields to include in a partial response.
|
|
608
|
+
# @param [String] quota_user
|
|
609
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
610
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
611
|
+
# @param [Google::Apis::RequestOptions] options
|
|
612
|
+
# Request-specific options
|
|
613
|
+
#
|
|
614
|
+
# @yield [result, err] Result & error if block supplied
|
|
615
|
+
# @yieldparam result [Google::Apis::ServiceconsumermanagementV1::Operation] parsed result object
|
|
616
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
617
|
+
#
|
|
618
|
+
# @return [Google::Apis::ServiceconsumermanagementV1::Operation]
|
|
619
|
+
#
|
|
620
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
621
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
622
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
623
|
+
def undelete_service_tenancy_unit_project(name, undelete_tenant_project_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
624
|
+
command = make_simple_command(:post, 'v1/{+name}:undeleteProject', options)
|
|
625
|
+
command.request_representation = Google::Apis::ServiceconsumermanagementV1::UndeleteTenantProjectRequest::Representation
|
|
626
|
+
command.request_object = undelete_tenant_project_request_object
|
|
627
|
+
command.response_representation = Google::Apis::ServiceconsumermanagementV1::Operation::Representation
|
|
628
|
+
command.response_class = Google::Apis::ServiceconsumermanagementV1::Operation
|
|
629
|
+
command.params['name'] = name unless name.nil?
|
|
630
|
+
command.query['fields'] = fields unless fields.nil?
|
|
631
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
632
|
+
execute_or_queue_command(command, &block)
|
|
633
|
+
end
|
|
551
634
|
|
|
552
635
|
protected
|
|
553
636
|
|