google-api-client 0.24.3 → 0.25.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +0 -2
- data/CHANGELOG.md +99 -0
- data/Gemfile +1 -0
- data/generated/google/apis/abusiveexperiencereport_v1.rb +2 -2
- data/generated/google/apis/abusiveexperiencereport_v1/classes.rb +0 -1
- data/generated/google/apis/abusiveexperiencereport_v1/service.rb +1 -1
- data/generated/google/apis/{content_v2sandbox.rb → accesscontextmanager_v1beta.rb} +11 -12
- data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +697 -0
- data/generated/google/apis/accesscontextmanager_v1beta/representations.rb +240 -0
- data/generated/google/apis/accesscontextmanager_v1beta/service.rb +666 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +16 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +2 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +2 -2
- data/generated/google/apis/adexperiencereport_v1.rb +2 -2
- data/generated/google/apis/adexperiencereport_v1/service.rb +1 -1
- data/generated/google/apis/alertcenter_v1beta1.rb +4 -3
- data/generated/google/apis/alertcenter_v1beta1/classes.rb +9 -2
- data/generated/google/apis/alertcenter_v1beta1/representations.rb +1 -0
- data/generated/google/apis/alertcenter_v1beta1/service.rb +3 -2
- data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
- data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +3 -2
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +68 -6
- data/generated/google/apis/androidenterprise_v1/representations.rb +20 -0
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +92 -0
- data/generated/google/apis/androidmanagement_v1/representations.rb +36 -0
- data/generated/google/apis/androidpublisher_v1.rb +2 -2
- data/generated/google/apis/androidpublisher_v1/service.rb +1 -1
- data/generated/google/apis/androidpublisher_v1_1.rb +2 -2
- data/generated/google/apis/androidpublisher_v1_1/service.rb +1 -1
- data/generated/google/apis/androidpublisher_v2.rb +2 -2
- data/generated/google/apis/androidpublisher_v2/service.rb +3 -2
- data/generated/google/apis/androidpublisher_v3.rb +2 -2
- data/generated/google/apis/androidpublisher_v3/service.rb +3 -2
- data/generated/google/apis/appengine_v1.rb +2 -3
- data/generated/google/apis/appengine_v1/service.rb +1 -2
- data/generated/google/apis/appengine_v1alpha.rb +2 -3
- data/generated/google/apis/appengine_v1alpha/service.rb +1 -2
- data/generated/google/apis/appengine_v1beta.rb +2 -3
- data/generated/google/apis/appengine_v1beta/service.rb +1 -2
- data/generated/google/apis/appengine_v1beta4.rb +2 -3
- data/generated/google/apis/appengine_v1beta4/service.rb +1 -2
- data/generated/google/apis/appengine_v1beta5.rb +2 -3
- data/generated/google/apis/appengine_v1beta5/service.rb +1 -2
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +98 -7
- data/generated/google/apis/bigquery_v2/representations.rb +35 -0
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/civicinfo_v2.rb +1 -1
- data/generated/google/apis/civicinfo_v2/classes.rb +18 -0
- data/generated/google/apis/civicinfo_v2/representations.rb +2 -0
- data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1beta1/classes.rb +5 -5
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +10 -1
- data/generated/google/apis/cloudbuild_v1/representations.rb +1 -0
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +418 -0
- data/generated/google/apis/cloudfunctions_v1/representations.rb +121 -0
- data/generated/google/apis/cloudfunctions_v1/service.rb +107 -0
- data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +16 -0
- data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +1 -0
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +3 -3
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +2 -1
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +2 -2
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +3 -3
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +2 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +2 -2
- data/generated/google/apis/cloudresourcemanager_v2.rb +3 -3
- data/generated/google/apis/cloudresourcemanager_v2/service.rb +2 -2
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +3 -3
- data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +2 -2
- data/generated/google/apis/cloudsearch_v1.rb +59 -0
- data/generated/google/apis/cloudsearch_v1/classes.rb +4697 -0
- data/generated/google/apis/cloudsearch_v1/representations.rb +2151 -0
- data/generated/google/apis/cloudsearch_v1/service.rb +1351 -0
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +34 -0
- data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta3/classes.rb +34 -30
- data/generated/google/apis/composer_v1beta1.rb +1 -1
- data/generated/google/apis/composer_v1beta1/classes.rb +5 -8
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +197 -69
- data/generated/google/apis/content_v2/representations.rb +64 -33
- data/generated/google/apis/content_v2/service.rb +1 -1
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +42 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +17 -0
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +19 -19
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +19 -19
- data/generated/google/apis/dialogflow_v2.rb +6 -3
- data/generated/google/apis/dialogflow_v2/classes.rb +112 -8
- data/generated/google/apis/dialogflow_v2/representations.rb +30 -0
- data/generated/google/apis/dialogflow_v2/service.rb +7 -2
- data/generated/google/apis/dialogflow_v2beta1.rb +6 -3
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +116 -8
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +30 -0
- data/generated/google/apis/dialogflow_v2beta1/service.rb +19 -8
- data/generated/google/apis/digitalassetlinks_v1.rb +2 -3
- data/generated/google/apis/digitalassetlinks_v1/service.rb +1 -2
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +17 -5
- data/generated/google/apis/dlp_v2/representations.rb +2 -0
- data/generated/google/apis/dns_v1beta2.rb +1 -1
- data/generated/google/apis/dns_v1beta2/classes.rb +81 -0
- data/generated/google/apis/dns_v1beta2/representations.rb +34 -0
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2/classes.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +3 -1
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firestore_v1.rb +1 -1
- data/generated/google/apis/firestore_v1/classes.rb +637 -0
- data/generated/google/apis/firestore_v1/representations.rb +260 -0
- data/generated/google/apis/firestore_v1/service.rb +377 -0
- data/generated/google/apis/firestore_v1beta2.rb +1 -1
- data/generated/google/apis/firestore_v1beta2/classes.rb +205 -0
- data/generated/google/apis/firestore_v1beta2/representations.rb +83 -0
- data/generated/google/apis/firestore_v1beta2/service.rb +79 -0
- data/generated/google/apis/genomics_v1.rb +2 -2
- data/generated/google/apis/genomics_v1/service.rb +1 -1
- data/generated/google/apis/genomics_v1alpha2.rb +2 -2
- data/generated/google/apis/genomics_v1alpha2/service.rb +1 -1
- data/generated/google/apis/genomics_v2alpha1.rb +2 -2
- data/generated/google/apis/genomics_v2alpha1/service.rb +1 -1
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +4 -3
- data/generated/google/apis/iamcredentials_v1.rb +2 -2
- data/generated/google/apis/iamcredentials_v1/service.rb +1 -1
- data/generated/google/apis/indexing_v3.rb +2 -3
- data/generated/google/apis/indexing_v3/service.rb +1 -2
- data/generated/google/apis/jobs_v2.rb +1 -1
- data/generated/google/apis/jobs_v2/classes.rb +2 -2
- data/generated/google/apis/jobs_v3.rb +1 -1
- data/generated/google/apis/jobs_v3/classes.rb +3 -3
- data/generated/google/apis/jobs_v3/service.rb +20 -2
- data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
- data/generated/google/apis/jobs_v3p1beta1/classes.rb +3 -3
- data/generated/google/apis/jobs_v3p1beta1/service.rb +20 -2
- data/generated/google/apis/language_v1.rb +4 -4
- data/generated/google/apis/language_v1/service.rb +3 -3
- data/generated/google/apis/language_v1beta1.rb +4 -4
- data/generated/google/apis/language_v1beta1/service.rb +3 -3
- data/generated/google/apis/language_v1beta2.rb +4 -4
- data/generated/google/apis/language_v1beta2/service.rb +3 -3
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +2 -13
- data/generated/google/apis/logging_v2/representations.rb +0 -2
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +2 -41
- data/generated/google/apis/logging_v2beta1/representations.rb +0 -16
- data/generated/google/apis/logging_v2beta1/service.rb +0 -255
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +25 -15
- data/generated/google/apis/monitoring_v3/representations.rb +1 -0
- data/generated/google/apis/monitoring_v3/service.rb +366 -1
- data/generated/google/apis/oslogin_v1.rb +1 -1
- data/generated/google/apis/oslogin_v1/service.rb +7 -1
- data/generated/google/apis/oslogin_v1alpha.rb +1 -1
- data/generated/google/apis/oslogin_v1alpha/service.rb +10 -1
- data/generated/google/apis/oslogin_v1beta.rb +1 -1
- data/generated/google/apis/oslogin_v1beta/service.rb +7 -1
- data/generated/google/apis/redis_v1.rb +1 -1
- data/generated/google/apis/redis_v1/classes.rb +6 -0
- data/generated/google/apis/redis_v1/representations.rb +1 -0
- data/generated/google/apis/redis_v1beta1.rb +1 -1
- data/generated/google/apis/redis_v1beta1/classes.rb +6 -0
- data/generated/google/apis/redis_v1beta1/representations.rb +1 -0
- data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +7 -6
- data/generated/google/apis/script_v1.rb +2 -2
- data/generated/google/apis/script_v1/service.rb +7 -3
- data/generated/google/apis/serviceconsumermanagement_v1.rb +2 -3
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +7 -0
- data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +1 -0
- data/generated/google/apis/serviceconsumermanagement_v1/service.rb +1 -2
- data/generated/google/apis/servicecontrol_v1.rb +3 -3
- data/generated/google/apis/servicecontrol_v1/classes.rb +18 -230
- data/generated/google/apis/servicecontrol_v1/representations.rb +2 -99
- data/generated/google/apis/servicecontrol_v1/service.rb +2 -140
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +24 -0
- data/generated/google/apis/servicenetworking_v1beta/representations.rb +3 -0
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +7 -0
- data/generated/google/apis/serviceusage_v1/representations.rb +1 -0
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +7 -0
- data/generated/google/apis/serviceusage_v1beta1/representations.rb +1 -0
- data/generated/google/apis/slides_v1.rb +2 -2
- data/generated/google/apis/slides_v1/classes.rb +4 -3
- data/generated/google/apis/slides_v1/service.rb +1 -1
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/service.rb +2 -3
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +9 -0
- data/generated/google/apis/testing_v1/representations.rb +1 -0
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/service.rb +1 -1
- data/generated/google/apis/tpu_v1.rb +1 -1
- data/generated/google/apis/tpu_v1/classes.rb +6 -0
- data/generated/google/apis/tpu_v1/representations.rb +1 -0
- data/generated/google/apis/tpu_v1alpha1.rb +1 -1
- data/generated/google/apis/tpu_v1alpha1/classes.rb +6 -0
- data/generated/google/apis/tpu_v1alpha1/representations.rb +1 -0
- data/generated/google/apis/vault_v1.rb +1 -1
- data/generated/google/apis/vault_v1/classes.rb +7 -0
- data/generated/google/apis/vault_v1/representations.rb +1 -0
- data/generated/google/apis/videointelligence_v1.rb +3 -2
- data/generated/google/apis/videointelligence_v1/classes.rb +547 -12
- data/generated/google/apis/videointelligence_v1/representations.rb +190 -2
- data/generated/google/apis/videointelligence_v1/service.rb +2 -1
- data/generated/google/apis/videointelligence_v1beta2.rb +3 -2
- data/generated/google/apis/videointelligence_v1beta2/classes.rb +547 -12
- data/generated/google/apis/videointelligence_v1beta2/representations.rb +190 -2
- data/generated/google/apis/videointelligence_v1beta2/service.rb +2 -1
- data/generated/google/apis/videointelligence_v1p1beta1.rb +3 -2
- data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +418 -13
- data/generated/google/apis/videointelligence_v1p1beta1/representations.rb +153 -2
- data/generated/google/apis/videointelligence_v1p1beta1/service.rb +2 -1
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1139 -54
- data/generated/google/apis/vision_v1/representations.rb +478 -0
- data/generated/google/apis/vision_v1/service.rb +744 -0
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1/classes.rb +761 -16
- data/generated/google/apis/vision_v1p1beta1/representations.rb +333 -0
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1/classes.rb +758 -13
- data/generated/google/apis/vision_v1p2beta1/representations.rb +333 -0
- data/generated/google/apis/websecurityscanner_v1alpha.rb +2 -2
- data/generated/google/apis/websecurityscanner_v1alpha/service.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/lib/google/apis/core/http_command.rb +83 -10
- data/lib/google/apis/options.rb +5 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +10 -14
- data/generated/google/apis/content_v2sandbox/classes.rb +0 -4436
- data/generated/google/apis/content_v2sandbox/representations.rb +0 -1956
- data/generated/google/apis/content_v2sandbox/service.rb +0 -1296
- data/generated/google/apis/dfareporting_v2_8.rb +0 -40
- data/generated/google/apis/dfareporting_v2_8/classes.rb +0 -12043
- data/generated/google/apis/dfareporting_v2_8/representations.rb +0 -4311
- data/generated/google/apis/dfareporting_v2_8/service.rb +0 -8727
- data/generated/google/apis/serviceuser_v1.rb +0 -42
- data/generated/google/apis/serviceuser_v1/classes.rb +0 -3472
- data/generated/google/apis/serviceuser_v1/representations.rb +0 -1030
- data/generated/google/apis/serviceuser_v1/service.rb +0 -215
@@ -1,215 +0,0 @@
|
|
1
|
-
# Copyright 2015 Google Inc.
|
2
|
-
#
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at
|
6
|
-
#
|
7
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
require 'google/apis/core/base_service'
|
16
|
-
require 'google/apis/core/json_representation'
|
17
|
-
require 'google/apis/core/hashable'
|
18
|
-
require 'google/apis/errors'
|
19
|
-
|
20
|
-
module Google
|
21
|
-
module Apis
|
22
|
-
module ServiceuserV1
|
23
|
-
# Service User API
|
24
|
-
#
|
25
|
-
# Enables services that service consumers want to use on Google Cloud Platform,
|
26
|
-
# lists the available or enabled services, or disables services that service
|
27
|
-
# consumers no longer use.
|
28
|
-
#
|
29
|
-
# @example
|
30
|
-
# require 'google/apis/serviceuser_v1'
|
31
|
-
#
|
32
|
-
# Serviceuser = Google::Apis::ServiceuserV1 # Alias the module
|
33
|
-
# service = Serviceuser::ServiceUserService.new
|
34
|
-
#
|
35
|
-
# @see https://cloud.google.com/service-management/
|
36
|
-
class ServiceUserService < Google::Apis::Core::BaseService
|
37
|
-
# @return [String]
|
38
|
-
# API key. Your API key identifies your project and provides you with API access,
|
39
|
-
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
40
|
-
attr_accessor :key
|
41
|
-
|
42
|
-
# @return [String]
|
43
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
44
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
45
|
-
attr_accessor :quota_user
|
46
|
-
|
47
|
-
def initialize
|
48
|
-
super('https://serviceuser.googleapis.com/', '')
|
49
|
-
@batch_path = 'batch'
|
50
|
-
end
|
51
|
-
|
52
|
-
# Disable a service so it can no longer be used with a
|
53
|
-
# project. This prevents unintended usage that may cause unexpected billing
|
54
|
-
# charges or security leaks.
|
55
|
-
# Operation<response: google.protobuf.Empty>
|
56
|
-
# @param [String] name
|
57
|
-
# Name of the consumer and the service to disable for that consumer.
|
58
|
-
# The Service User implementation accepts the following forms for consumer:
|
59
|
-
# - "project:<project_id>"
|
60
|
-
# A valid path would be:
|
61
|
-
# - projects/my-project/services/servicemanagement.googleapis.com
|
62
|
-
# @param [Google::Apis::ServiceuserV1::DisableServiceRequest] disable_service_request_object
|
63
|
-
# @param [String] fields
|
64
|
-
# Selector specifying which fields to include in a partial response.
|
65
|
-
# @param [String] quota_user
|
66
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
67
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
68
|
-
# @param [Google::Apis::RequestOptions] options
|
69
|
-
# Request-specific options
|
70
|
-
#
|
71
|
-
# @yield [result, err] Result & error if block supplied
|
72
|
-
# @yieldparam result [Google::Apis::ServiceuserV1::Operation] parsed result object
|
73
|
-
# @yieldparam err [StandardError] error object if request failed
|
74
|
-
#
|
75
|
-
# @return [Google::Apis::ServiceuserV1::Operation]
|
76
|
-
#
|
77
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
78
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
79
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
80
|
-
def disable_service(name, disable_service_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
81
|
-
command = make_simple_command(:post, 'v1/{+name}:disable', options)
|
82
|
-
command.request_representation = Google::Apis::ServiceuserV1::DisableServiceRequest::Representation
|
83
|
-
command.request_object = disable_service_request_object
|
84
|
-
command.response_representation = Google::Apis::ServiceuserV1::Operation::Representation
|
85
|
-
command.response_class = Google::Apis::ServiceuserV1::Operation
|
86
|
-
command.params['name'] = name unless name.nil?
|
87
|
-
command.query['fields'] = fields unless fields.nil?
|
88
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
89
|
-
execute_or_queue_command(command, &block)
|
90
|
-
end
|
91
|
-
|
92
|
-
# Enable a service so it can be used with a project.
|
93
|
-
# See [Cloud Auth Guide](https://cloud.google.com/docs/authentication) for
|
94
|
-
# more information.
|
95
|
-
# Operation<response: google.protobuf.Empty>
|
96
|
-
# @param [String] name
|
97
|
-
# Name of the consumer and the service to enable for that consumer.
|
98
|
-
# A valid path would be:
|
99
|
-
# - projects/my-project/services/servicemanagement.googleapis.com
|
100
|
-
# @param [Google::Apis::ServiceuserV1::EnableServiceRequest] enable_service_request_object
|
101
|
-
# @param [String] fields
|
102
|
-
# Selector specifying which fields to include in a partial response.
|
103
|
-
# @param [String] quota_user
|
104
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
105
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
106
|
-
# @param [Google::Apis::RequestOptions] options
|
107
|
-
# Request-specific options
|
108
|
-
#
|
109
|
-
# @yield [result, err] Result & error if block supplied
|
110
|
-
# @yieldparam result [Google::Apis::ServiceuserV1::Operation] parsed result object
|
111
|
-
# @yieldparam err [StandardError] error object if request failed
|
112
|
-
#
|
113
|
-
# @return [Google::Apis::ServiceuserV1::Operation]
|
114
|
-
#
|
115
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
116
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
117
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
118
|
-
def enable_service(name, enable_service_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
119
|
-
command = make_simple_command(:post, 'v1/{+name}:enable', options)
|
120
|
-
command.request_representation = Google::Apis::ServiceuserV1::EnableServiceRequest::Representation
|
121
|
-
command.request_object = enable_service_request_object
|
122
|
-
command.response_representation = Google::Apis::ServiceuserV1::Operation::Representation
|
123
|
-
command.response_class = Google::Apis::ServiceuserV1::Operation
|
124
|
-
command.params['name'] = name unless name.nil?
|
125
|
-
command.query['fields'] = fields unless fields.nil?
|
126
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
127
|
-
execute_or_queue_command(command, &block)
|
128
|
-
end
|
129
|
-
|
130
|
-
# List enabled services for the specified consumer.
|
131
|
-
# @param [String] parent
|
132
|
-
# List enabled services for the specified parent.
|
133
|
-
# An example valid parent would be:
|
134
|
-
# - projects/my-project
|
135
|
-
# @param [Fixnum] page_size
|
136
|
-
# Requested size of the next page of data.
|
137
|
-
# @param [String] page_token
|
138
|
-
# Token identifying which result to start with; returned by a previous list
|
139
|
-
# call.
|
140
|
-
# @param [String] fields
|
141
|
-
# Selector specifying which fields to include in a partial response.
|
142
|
-
# @param [String] quota_user
|
143
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
144
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
145
|
-
# @param [Google::Apis::RequestOptions] options
|
146
|
-
# Request-specific options
|
147
|
-
#
|
148
|
-
# @yield [result, err] Result & error if block supplied
|
149
|
-
# @yieldparam result [Google::Apis::ServiceuserV1::ListEnabledServicesResponse] parsed result object
|
150
|
-
# @yieldparam err [StandardError] error object if request failed
|
151
|
-
#
|
152
|
-
# @return [Google::Apis::ServiceuserV1::ListEnabledServicesResponse]
|
153
|
-
#
|
154
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
155
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
156
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
157
|
-
def list_project_services(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
158
|
-
command = make_simple_command(:get, 'v1/{+parent}/services', options)
|
159
|
-
command.response_representation = Google::Apis::ServiceuserV1::ListEnabledServicesResponse::Representation
|
160
|
-
command.response_class = Google::Apis::ServiceuserV1::ListEnabledServicesResponse
|
161
|
-
command.params['parent'] = parent unless parent.nil?
|
162
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
163
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
164
|
-
command.query['fields'] = fields unless fields.nil?
|
165
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
166
|
-
execute_or_queue_command(command, &block)
|
167
|
-
end
|
168
|
-
|
169
|
-
# Search available services.
|
170
|
-
# When no filter is specified, returns all accessible services. For
|
171
|
-
# authenticated users, also returns all services the calling user has
|
172
|
-
# "servicemanagement.services.bind" permission for.
|
173
|
-
# @param [Fixnum] page_size
|
174
|
-
# Requested size of the next page of data.
|
175
|
-
# @param [String] page_token
|
176
|
-
# Token identifying which result to start with; returned by a previous list
|
177
|
-
# call.
|
178
|
-
# @param [String] fields
|
179
|
-
# Selector specifying which fields to include in a partial response.
|
180
|
-
# @param [String] quota_user
|
181
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
182
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
183
|
-
# @param [Google::Apis::RequestOptions] options
|
184
|
-
# Request-specific options
|
185
|
-
#
|
186
|
-
# @yield [result, err] Result & error if block supplied
|
187
|
-
# @yieldparam result [Google::Apis::ServiceuserV1::SearchServicesResponse] parsed result object
|
188
|
-
# @yieldparam err [StandardError] error object if request failed
|
189
|
-
#
|
190
|
-
# @return [Google::Apis::ServiceuserV1::SearchServicesResponse]
|
191
|
-
#
|
192
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
193
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
194
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
195
|
-
def search_services(page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
196
|
-
command = make_simple_command(:get, 'v1/services:search', options)
|
197
|
-
command.response_representation = Google::Apis::ServiceuserV1::SearchServicesResponse::Representation
|
198
|
-
command.response_class = Google::Apis::ServiceuserV1::SearchServicesResponse
|
199
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
200
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
201
|
-
command.query['fields'] = fields unless fields.nil?
|
202
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
203
|
-
execute_or_queue_command(command, &block)
|
204
|
-
end
|
205
|
-
|
206
|
-
protected
|
207
|
-
|
208
|
-
def apply_command_defaults(command)
|
209
|
-
command.query['key'] = key unless key.nil?
|
210
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
211
|
-
end
|
212
|
-
end
|
213
|
-
end
|
214
|
-
end
|
215
|
-
end
|