google-api-client 0.10.2 → 0.10.3
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/CHANGELOG.md +25 -0
- data/MIGRATING.md +22 -7
- data/README.md +4 -8
- data/api_names.yaml +1210 -37815
- data/generated/google/apis/acceleratedmobilepageurl_v1.rb +32 -0
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +144 -0
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +86 -0
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +90 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +764 -764
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +180 -180
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +421 -421
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +1 -0
- data/generated/google/apis/admin_directory_v1/classes.rb +1 -0
- data/generated/google/apis/admin_reports_v1.rb +1 -1
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +187 -187
- data/generated/google/apis/analyticsreporting_v4/representations.rb +42 -42
- data/generated/google/apis/appengine_v1.rb +40 -0
- data/generated/google/apis/appengine_v1/classes.rb +2251 -0
- data/generated/google/apis/appengine_v1/representations.rb +858 -0
- data/generated/google/apis/appengine_v1/service.rb +894 -0
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +11 -6
- data/generated/google/apis/books_v1.rb +1 -1
- data/generated/google/apis/books_v1/classes.rb +26 -0
- data/generated/google/apis/books_v1/representations.rb +15 -0
- data/generated/google/apis/books_v1/service.rb +4 -1
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +638 -637
- data/generated/google/apis/cloudbuild_v1/representations.rb +110 -110
- data/generated/google/apis/cloudbuild_v1/service.rb +139 -139
- data/generated/google/apis/clouddebugger_v2.rb +3 -3
- data/generated/google/apis/clouddebugger_v2/classes.rb +131 -131
- data/generated/google/apis/clouddebugger_v2/representations.rb +25 -25
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +36 -0
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +590 -0
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +252 -0
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +350 -0
- data/generated/google/apis/cloudfunctions_v1.rb +35 -0
- data/generated/google/apis/cloudfunctions_v1/classes.rb +98 -0
- data/generated/google/apis/cloudfunctions_v1/representations.rb +57 -0
- data/generated/google/apis/cloudfunctions_v1/service.rb +89 -0
- data/generated/google/apis/cloudkms_v1/classes.rb +277 -270
- data/generated/google/apis/cloudkms_v1/representations.rb +73 -73
- data/generated/google/apis/cloudkms_v1/service.rb +194 -194
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1147 -1144
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +188 -188
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +513 -936
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +307 -916
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +63 -285
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +333 -681
- data/generated/google/apis/cloudtrace_v1/classes.rb +38 -38
- data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
- data/generated/google/apis/cloudtrace_v1/service.rb +16 -16
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +32 -7
- data/generated/google/apis/compute_beta/representations.rb +2 -0
- data/generated/google/apis/compute_beta/service.rb +11 -11
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +95 -2
- data/generated/google/apis/compute_v1/representations.rb +33 -0
- data/generated/google/apis/dataflow_v1b3/classes.rb +3333 -3333
- data/generated/google/apis/dataflow_v1b3/representations.rb +759 -759
- data/generated/google/apis/dataflow_v1b3/service.rb +154 -154
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +1097 -1097
- data/generated/google/apis/dataproc_v1/representations.rb +200 -200
- data/generated/google/apis/dataproc_v1/service.rb +356 -356
- data/generated/google/apis/datastore_v1.rb +4 -4
- data/generated/google/apis/datastore_v1/classes.rb +701 -690
- data/generated/google/apis/datastore_v1/representations.rb +160 -160
- data/generated/google/apis/datastore_v1/service.rb +52 -52
- data/generated/google/apis/deploymentmanager_v2/classes.rb +4 -0
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +158 -35
- data/generated/google/apis/drive_v2/representations.rb +39 -0
- data/generated/google/apis/drive_v2/service.rb +4 -4
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +162 -33
- data/generated/google/apis/drive_v3/representations.rb +39 -0
- data/generated/google/apis/drive_v3/service.rb +4 -4
- data/generated/google/apis/firebasedynamiclinks_v1.rb +35 -0
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +466 -0
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +222 -0
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +95 -0
- data/generated/google/apis/firebaserules_v1.rb +41 -0
- data/generated/google/apis/firebaserules_v1/classes.rb +425 -0
- data/generated/google/apis/firebaserules_v1/representations.rb +222 -0
- data/generated/google/apis/firebaserules_v1/service.rb +495 -0
- data/generated/google/apis/games_v1/classes.rb +4 -0
- data/generated/google/apis/genomics_v1.rb +7 -7
- data/generated/google/apis/genomics_v1/classes.rb +2336 -2335
- data/generated/google/apis/genomics_v1/representations.rb +387 -387
- data/generated/google/apis/genomics_v1/service.rb +1187 -1187
- data/generated/google/apis/gmail_v1/classes.rb +3 -0
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +123 -117
- data/generated/google/apis/iam_v1/representations.rb +33 -33
- data/generated/google/apis/iam_v1/service.rb +109 -109
- data/generated/google/apis/identitytoolkit_v3/classes.rb +5 -0
- data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
- data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
- data/generated/google/apis/kgsearch_v1/service.rb +4 -4
- data/generated/google/apis/language_v1.rb +36 -0
- data/generated/google/apis/language_v1/classes.rb +757 -0
- data/generated/google/apis/language_v1/representations.rb +338 -0
- data/generated/google/apis/language_v1/service.rb +185 -0
- data/generated/google/apis/language_v1beta1/classes.rb +407 -407
- data/generated/google/apis/language_v1beta1/representations.rb +103 -103
- data/generated/google/apis/language_v1beta1/service.rb +45 -45
- data/generated/google/apis/logging_v2.rb +46 -0
- data/generated/google/apis/logging_v2/classes.rb +1271 -0
- data/generated/google/apis/logging_v2/representations.rb +421 -0
- data/generated/google/apis/logging_v2/service.rb +1569 -0
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +886 -886
- data/generated/google/apis/logging_v2beta1/representations.rb +132 -132
- data/generated/google/apis/logging_v2beta1/service.rb +235 -235
- data/generated/google/apis/manufacturers_v1/classes.rb +147 -147
- data/generated/google/apis/manufacturers_v1/representations.rb +29 -29
- data/generated/google/apis/ml_v1.rb +34 -0
- data/generated/google/apis/ml_v1/classes.rb +1617 -0
- data/generated/google/apis/ml_v1/representations.rb +498 -0
- data/generated/google/apis/ml_v1/service.rb +769 -0
- data/generated/google/apis/monitoring_v3.rb +4 -4
- data/generated/google/apis/monitoring_v3/classes.rb +630 -630
- data/generated/google/apis/monitoring_v3/representations.rb +134 -134
- data/generated/google/apis/monitoring_v3/service.rb +240 -240
- data/generated/google/apis/pagespeedonline_v2/classes.rb +1 -0
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +639 -639
- data/generated/google/apis/partners_v2/representations.rb +168 -168
- data/generated/google/apis/partners_v2/service.rb +381 -381
- data/generated/google/apis/people_v1.rb +10 -10
- data/generated/google/apis/people_v1/classes.rb +524 -524
- data/generated/google/apis/people_v1/representations.rb +143 -143
- data/generated/google/apis/people_v1/service.rb +30 -30
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +454 -444
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +90 -90
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +110 -110
- data/generated/google/apis/pubsub_v1/classes.rb +175 -173
- data/generated/google/apis/pubsub_v1/representations.rb +53 -53
- data/generated/google/apis/pubsub_v1/service.rb +210 -210
- data/generated/google/apis/replicapool_v1beta2/classes.rb +2 -0
- data/generated/google/apis/runtimeconfig_v1.rb +38 -0
- data/generated/google/apis/runtimeconfig_v1/classes.rb +252 -0
- data/generated/google/apis/runtimeconfig_v1/representations.rb +98 -0
- data/generated/google/apis/runtimeconfig_v1/service.rb +176 -0
- data/generated/google/apis/script_v1.rb +1 -1
- data/generated/google/apis/script_v1/classes.rb +6 -6
- data/generated/google/apis/script_v1/representations.rb +1 -1
- data/generated/google/apis/searchconsole_v1.rb +31 -0
- data/generated/google/apis/searchconsole_v1/classes.rb +205 -0
- data/generated/google/apis/searchconsole_v1/representations.rb +129 -0
- data/generated/google/apis/searchconsole_v1/service.rb +88 -0
- data/generated/google/apis/servicecontrol_v1.rb +38 -0
- data/generated/google/apis/servicecontrol_v1/classes.rb +1675 -0
- data/generated/google/apis/servicecontrol_v1/representations.rb +601 -0
- data/generated/google/apis/servicecontrol_v1/service.rb +337 -0
- data/generated/google/apis/servicemanagement_v1.rb +45 -0
- data/generated/google/apis/servicemanagement_v1/classes.rb +4934 -0
- data/generated/google/apis/servicemanagement_v1/representations.rb +1526 -0
- data/generated/google/apis/servicemanagement_v1/service.rb +860 -0
- data/generated/google/apis/serviceuser_v1.rb +42 -0
- data/generated/google/apis/serviceuser_v1/classes.rb +3746 -0
- data/generated/google/apis/serviceuser_v1/representations.rb +1041 -0
- data/generated/google/apis/serviceuser_v1/service.rb +214 -0
- data/generated/google/apis/sheets_v4.rb +3 -3
- data/generated/google/apis/sheets_v4/classes.rb +4390 -4390
- data/generated/google/apis/sheets_v4/representations.rb +381 -381
- data/generated/google/apis/sheets_v4/service.rb +48 -48
- data/generated/google/apis/slides_v1.rb +3 -3
- data/generated/google/apis/slides_v1/classes.rb +2860 -2860
- data/generated/google/apis/slides_v1/representations.rb +693 -693
- data/generated/google/apis/slides_v1/service.rb +30 -30
- data/generated/google/apis/sourcerepo_v1.rb +34 -0
- data/generated/google/apis/sourcerepo_v1/classes.rb +687 -0
- data/generated/google/apis/sourcerepo_v1/representations.rb +285 -0
- data/generated/google/apis/sourcerepo_v1/service.rb +291 -0
- data/generated/google/apis/spanner_v1.rb +35 -0
- data/generated/google/apis/spanner_v1/classes.rb +3294 -0
- data/generated/google/apis/spanner_v1/representations.rb +984 -0
- data/generated/google/apis/spanner_v1/service.rb +1504 -0
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +197 -196
- data/generated/google/apis/speech_v1beta1/representations.rb +53 -53
- data/generated/google/apis/speech_v1beta1/service.rb +27 -27
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +131 -0
- data/generated/google/apis/storage_v1/representations.rb +51 -0
- data/generated/google/apis/storage_v1/service.rb +182 -0
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +732 -661
- data/generated/google/apis/storagetransfer_v1/representations.rb +132 -132
- data/generated/google/apis/storagetransfer_v1/service.rb +174 -197
- data/generated/google/apis/surveys_v2.rb +40 -0
- data/generated/google/apis/surveys_v2/classes.rb +806 -0
- data/generated/google/apis/surveys_v2/representations.rb +347 -0
- data/generated/google/apis/surveys_v2/service.rb +477 -0
- data/generated/google/apis/tagmanager_v2.rb +52 -0
- data/generated/google/apis/tagmanager_v2/classes.rb +2435 -0
- data/generated/google/apis/tagmanager_v2/representations.rb +993 -0
- data/generated/google/apis/tagmanager_v2/service.rb +2865 -0
- data/generated/google/apis/toolresults_v1beta3.rb +34 -0
- data/generated/google/apis/toolresults_v1beta3/classes.rb +2160 -0
- data/generated/google/apis/toolresults_v1beta3/representations.rb +729 -0
- data/generated/google/apis/toolresults_v1beta3/service.rb +1236 -0
- data/generated/google/apis/tracing_v1.rb +40 -0
- data/generated/google/apis/tracing_v1/classes.rb +664 -0
- data/generated/google/apis/tracing_v1/representations.rb +279 -0
- data/generated/google/apis/tracing_v1/service.rb +225 -0
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1223 -1222
- data/generated/google/apis/vision_v1/representations.rb +234 -234
- data/generated/google/apis/vision_v1/service.rb +10 -10
- data/generated/google/apis/webfonts_v1.rb +33 -0
- data/generated/google/apis/webfonts_v1/classes.rb +113 -0
- data/generated/google/apis/webfonts_v1/representations.rb +62 -0
- data/generated/google/apis/webfonts_v1/service.rb +102 -0
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +31 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +6 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +41 -0
- data/generated/google/apis/youtube_v3/classes.rb +1 -0
- data/generated/google/apis/youtubereporting_v1.rb +4 -4
- data/generated/google/apis/youtubereporting_v1/classes.rb +76 -76
- data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
- data/generated/google/apis/youtubereporting_v1/service.rb +95 -95
- data/lib/google/apis/generator/annotator.rb +5 -4
- data/lib/google/apis/generator/templates/_class.tmpl +3 -0
- data/lib/google/apis/version.rb +1 -1
- data/samples/cli/lib/samples/adsense.rb +99 -0
- data/samples/cli/lib/samples/analytics.rb +18 -0
- data/samples/cli/lib/samples/gmail.rb +33 -0
- data/samples/cli/lib/samples/vision.rb +69 -0
- metadata +89 -4
- data/sync.rb +0 -71
|
@@ -0,0 +1,860 @@
|
|
|
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 ServicemanagementV1
|
|
23
|
+
# Google Service Management API
|
|
24
|
+
#
|
|
25
|
+
# Google Service Management allows service producers to publish their services
|
|
26
|
+
# on Google Cloud Platform so that they can be discovered and used by service
|
|
27
|
+
# consumers.
|
|
28
|
+
#
|
|
29
|
+
# @example
|
|
30
|
+
# require 'google/apis/servicemanagement_v1'
|
|
31
|
+
#
|
|
32
|
+
# Servicemanagement = Google::Apis::ServicemanagementV1 # Alias the module
|
|
33
|
+
# service = Servicemanagement::ServiceManagementService.new
|
|
34
|
+
#
|
|
35
|
+
# @see https://cloud.google.com/service-management/
|
|
36
|
+
class ServiceManagementService < 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://servicemanagement.googleapis.com/', '')
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# Creates a new managed service.
|
|
52
|
+
# Please note one producer project can own no more than 20 services.
|
|
53
|
+
# Operation<response: ManagedService>
|
|
54
|
+
# @param [Google::Apis::ServicemanagementV1::ManagedService] managed_service_object
|
|
55
|
+
# @param [String] quota_user
|
|
56
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
57
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
58
|
+
# @param [String] fields
|
|
59
|
+
# Selector specifying which fields to include in a partial response.
|
|
60
|
+
# @param [Google::Apis::RequestOptions] options
|
|
61
|
+
# Request-specific options
|
|
62
|
+
#
|
|
63
|
+
# @yield [result, err] Result & error if block supplied
|
|
64
|
+
# @yieldparam result [Google::Apis::ServicemanagementV1::Operation] parsed result object
|
|
65
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
66
|
+
#
|
|
67
|
+
# @return [Google::Apis::ServicemanagementV1::Operation]
|
|
68
|
+
#
|
|
69
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
70
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
71
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
72
|
+
def create_service(managed_service_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
73
|
+
command = make_simple_command(:post, 'v1/services', options)
|
|
74
|
+
command.request_representation = Google::Apis::ServicemanagementV1::ManagedService::Representation
|
|
75
|
+
command.request_object = managed_service_object
|
|
76
|
+
command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation
|
|
77
|
+
command.response_class = Google::Apis::ServicemanagementV1::Operation
|
|
78
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
79
|
+
command.query['fields'] = fields unless fields.nil?
|
|
80
|
+
execute_or_queue_command(command, &block)
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# Generates and returns a report (errors, warnings and changes from
|
|
84
|
+
# existing configurations) associated with
|
|
85
|
+
# GenerateConfigReportRequest.new_value
|
|
86
|
+
# If GenerateConfigReportRequest.old_value is specified,
|
|
87
|
+
# GenerateConfigReportRequest will contain a single ChangeReport based on the
|
|
88
|
+
# comparison between GenerateConfigReportRequest.new_value and
|
|
89
|
+
# GenerateConfigReportRequest.old_value.
|
|
90
|
+
# If GenerateConfigReportRequest.old_value is not specified, this method
|
|
91
|
+
# will compare GenerateConfigReportRequest.new_value with the last pushed
|
|
92
|
+
# service configuration.
|
|
93
|
+
# @param [Google::Apis::ServicemanagementV1::GenerateConfigReportRequest] generate_config_report_request_object
|
|
94
|
+
# @param [String] quota_user
|
|
95
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
96
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
97
|
+
# @param [String] fields
|
|
98
|
+
# Selector specifying which fields to include in a partial response.
|
|
99
|
+
# @param [Google::Apis::RequestOptions] options
|
|
100
|
+
# Request-specific options
|
|
101
|
+
#
|
|
102
|
+
# @yield [result, err] Result & error if block supplied
|
|
103
|
+
# @yieldparam result [Google::Apis::ServicemanagementV1::GenerateConfigReportResponse] parsed result object
|
|
104
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
105
|
+
#
|
|
106
|
+
# @return [Google::Apis::ServicemanagementV1::GenerateConfigReportResponse]
|
|
107
|
+
#
|
|
108
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
109
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
110
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
111
|
+
def generate_service_config_report(generate_config_report_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
112
|
+
command = make_simple_command(:post, 'v1/services:generateConfigReport', options)
|
|
113
|
+
command.request_representation = Google::Apis::ServicemanagementV1::GenerateConfigReportRequest::Representation
|
|
114
|
+
command.request_object = generate_config_report_request_object
|
|
115
|
+
command.response_representation = Google::Apis::ServicemanagementV1::GenerateConfigReportResponse::Representation
|
|
116
|
+
command.response_class = Google::Apis::ServicemanagementV1::GenerateConfigReportResponse
|
|
117
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
118
|
+
command.query['fields'] = fields unless fields.nil?
|
|
119
|
+
execute_or_queue_command(command, &block)
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
# Gets a managed service. Authentication is required unless the service is
|
|
123
|
+
# public.
|
|
124
|
+
# @param [String] service_name
|
|
125
|
+
# The name of the service. See the `ServiceManager` overview for naming
|
|
126
|
+
# requirements. For example: `example.googleapis.com`.
|
|
127
|
+
# @param [String] quota_user
|
|
128
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
129
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
130
|
+
# @param [String] fields
|
|
131
|
+
# Selector specifying which fields to include in a partial response.
|
|
132
|
+
# @param [Google::Apis::RequestOptions] options
|
|
133
|
+
# Request-specific options
|
|
134
|
+
#
|
|
135
|
+
# @yield [result, err] Result & error if block supplied
|
|
136
|
+
# @yieldparam result [Google::Apis::ServicemanagementV1::ManagedService] parsed result object
|
|
137
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
138
|
+
#
|
|
139
|
+
# @return [Google::Apis::ServicemanagementV1::ManagedService]
|
|
140
|
+
#
|
|
141
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
142
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
143
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
144
|
+
def get_service(service_name, quota_user: nil, fields: nil, options: nil, &block)
|
|
145
|
+
command = make_simple_command(:get, 'v1/services/{serviceName}', options)
|
|
146
|
+
command.response_representation = Google::Apis::ServicemanagementV1::ManagedService::Representation
|
|
147
|
+
command.response_class = Google::Apis::ServicemanagementV1::ManagedService
|
|
148
|
+
command.params['serviceName'] = service_name unless service_name.nil?
|
|
149
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
150
|
+
command.query['fields'] = fields unless fields.nil?
|
|
151
|
+
execute_or_queue_command(command, &block)
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
# Returns permissions that a caller has on the specified resource.
|
|
155
|
+
# If the resource does not exist, this will return an empty set of
|
|
156
|
+
# permissions, not a NOT_FOUND error.
|
|
157
|
+
# Note: This operation is designed to be used for building permission-aware
|
|
158
|
+
# UIs and command-line tools, not for authorization checking. This operation
|
|
159
|
+
# may "fail open" without warning.
|
|
160
|
+
# @param [String] resource
|
|
161
|
+
# REQUIRED: The resource for which the policy detail is being requested.
|
|
162
|
+
# See the operation documentation for the appropriate value for this field.
|
|
163
|
+
# @param [Google::Apis::ServicemanagementV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
|
164
|
+
# @param [String] quota_user
|
|
165
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
166
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
167
|
+
# @param [String] fields
|
|
168
|
+
# Selector specifying which fields to include in a partial response.
|
|
169
|
+
# @param [Google::Apis::RequestOptions] options
|
|
170
|
+
# Request-specific options
|
|
171
|
+
#
|
|
172
|
+
# @yield [result, err] Result & error if block supplied
|
|
173
|
+
# @yieldparam result [Google::Apis::ServicemanagementV1::TestIamPermissionsResponse] parsed result object
|
|
174
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
175
|
+
#
|
|
176
|
+
# @return [Google::Apis::ServicemanagementV1::TestIamPermissionsResponse]
|
|
177
|
+
#
|
|
178
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
179
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
180
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
181
|
+
def test_service_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
182
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
|
183
|
+
command.request_representation = Google::Apis::ServicemanagementV1::TestIamPermissionsRequest::Representation
|
|
184
|
+
command.request_object = test_iam_permissions_request_object
|
|
185
|
+
command.response_representation = Google::Apis::ServicemanagementV1::TestIamPermissionsResponse::Representation
|
|
186
|
+
command.response_class = Google::Apis::ServicemanagementV1::TestIamPermissionsResponse
|
|
187
|
+
command.params['resource'] = resource unless resource.nil?
|
|
188
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
189
|
+
command.query['fields'] = fields unless fields.nil?
|
|
190
|
+
execute_or_queue_command(command, &block)
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
# Gets a service configuration (version) for a managed service.
|
|
194
|
+
# @param [String] service_name
|
|
195
|
+
# The name of the service. See the [overview](/service-management/overview)
|
|
196
|
+
# for naming requirements. For example: `example.googleapis.com`.
|
|
197
|
+
# @param [String] config_id
|
|
198
|
+
# The id of the service configuration resource.
|
|
199
|
+
# @param [String] view
|
|
200
|
+
# Specifies which parts of the Service Config should be returned in the
|
|
201
|
+
# response.
|
|
202
|
+
# @param [String] quota_user
|
|
203
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
204
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
205
|
+
# @param [String] fields
|
|
206
|
+
# Selector specifying which fields to include in a partial response.
|
|
207
|
+
# @param [Google::Apis::RequestOptions] options
|
|
208
|
+
# Request-specific options
|
|
209
|
+
#
|
|
210
|
+
# @yield [result, err] Result & error if block supplied
|
|
211
|
+
# @yieldparam result [Google::Apis::ServicemanagementV1::Service] parsed result object
|
|
212
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
213
|
+
#
|
|
214
|
+
# @return [Google::Apis::ServicemanagementV1::Service]
|
|
215
|
+
#
|
|
216
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
217
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
218
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
219
|
+
def get_service_configuration(service_name, config_id: nil, view: nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
220
|
+
command = make_simple_command(:get, 'v1/services/{serviceName}/config', options)
|
|
221
|
+
command.response_representation = Google::Apis::ServicemanagementV1::Service::Representation
|
|
222
|
+
command.response_class = Google::Apis::ServicemanagementV1::Service
|
|
223
|
+
command.params['serviceName'] = service_name unless service_name.nil?
|
|
224
|
+
command.query['configId'] = config_id unless config_id.nil?
|
|
225
|
+
command.query['view'] = view unless view.nil?
|
|
226
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
227
|
+
command.query['fields'] = fields unless fields.nil?
|
|
228
|
+
execute_or_queue_command(command, &block)
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
# Deletes a managed service. This method will change the service to the
|
|
232
|
+
# `Soft-Delete` state for 30 days. Within this period, service producers may
|
|
233
|
+
# call UndeleteService to restore the service.
|
|
234
|
+
# After 30 days, the service will be permanently deleted.
|
|
235
|
+
# Operation<response: google.protobuf.Empty>
|
|
236
|
+
# @param [String] service_name
|
|
237
|
+
# The name of the service. See the [overview](/service-management/overview)
|
|
238
|
+
# for naming requirements. For example: `example.googleapis.com`.
|
|
239
|
+
# @param [String] quota_user
|
|
240
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
241
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
242
|
+
# @param [String] fields
|
|
243
|
+
# Selector specifying which fields to include in a partial response.
|
|
244
|
+
# @param [Google::Apis::RequestOptions] options
|
|
245
|
+
# Request-specific options
|
|
246
|
+
#
|
|
247
|
+
# @yield [result, err] Result & error if block supplied
|
|
248
|
+
# @yieldparam result [Google::Apis::ServicemanagementV1::Operation] parsed result object
|
|
249
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
250
|
+
#
|
|
251
|
+
# @return [Google::Apis::ServicemanagementV1::Operation]
|
|
252
|
+
#
|
|
253
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
254
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
255
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
256
|
+
def delete_service(service_name, quota_user: nil, fields: nil, options: nil, &block)
|
|
257
|
+
command = make_simple_command(:delete, 'v1/services/{serviceName}', options)
|
|
258
|
+
command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation
|
|
259
|
+
command.response_class = Google::Apis::ServicemanagementV1::Operation
|
|
260
|
+
command.params['serviceName'] = service_name unless service_name.nil?
|
|
261
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
262
|
+
command.query['fields'] = fields unless fields.nil?
|
|
263
|
+
execute_or_queue_command(command, &block)
|
|
264
|
+
end
|
|
265
|
+
|
|
266
|
+
# Enables a service for a project, so it can be used
|
|
267
|
+
# for the project. See
|
|
268
|
+
# [Cloud Auth Guide](https://cloud.google.com/docs/authentication) for
|
|
269
|
+
# more information.
|
|
270
|
+
# Operation<response: EnableServiceResponse>
|
|
271
|
+
# @param [String] service_name
|
|
272
|
+
# Name of the service to enable. Specifying an unknown service name will
|
|
273
|
+
# cause the request to fail.
|
|
274
|
+
# @param [Google::Apis::ServicemanagementV1::EnableServiceRequest] enable_service_request_object
|
|
275
|
+
# @param [String] quota_user
|
|
276
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
277
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
278
|
+
# @param [String] fields
|
|
279
|
+
# Selector specifying which fields to include in a partial response.
|
|
280
|
+
# @param [Google::Apis::RequestOptions] options
|
|
281
|
+
# Request-specific options
|
|
282
|
+
#
|
|
283
|
+
# @yield [result, err] Result & error if block supplied
|
|
284
|
+
# @yieldparam result [Google::Apis::ServicemanagementV1::Operation] parsed result object
|
|
285
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
286
|
+
#
|
|
287
|
+
# @return [Google::Apis::ServicemanagementV1::Operation]
|
|
288
|
+
#
|
|
289
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
290
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
291
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
292
|
+
def enable_service(service_name, enable_service_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
293
|
+
command = make_simple_command(:post, 'v1/services/{serviceName}:enable', options)
|
|
294
|
+
command.request_representation = Google::Apis::ServicemanagementV1::EnableServiceRequest::Representation
|
|
295
|
+
command.request_object = enable_service_request_object
|
|
296
|
+
command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation
|
|
297
|
+
command.response_class = Google::Apis::ServicemanagementV1::Operation
|
|
298
|
+
command.params['serviceName'] = service_name unless service_name.nil?
|
|
299
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
300
|
+
command.query['fields'] = fields unless fields.nil?
|
|
301
|
+
execute_or_queue_command(command, &block)
|
|
302
|
+
end
|
|
303
|
+
|
|
304
|
+
# Sets the access control policy on the specified resource. Replaces any
|
|
305
|
+
# existing policy.
|
|
306
|
+
# @param [String] resource
|
|
307
|
+
# REQUIRED: The resource for which the policy is being specified.
|
|
308
|
+
# See the operation documentation for the appropriate value for this field.
|
|
309
|
+
# @param [Google::Apis::ServicemanagementV1::SetIamPolicyRequest] set_iam_policy_request_object
|
|
310
|
+
# @param [String] quota_user
|
|
311
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
312
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
313
|
+
# @param [String] fields
|
|
314
|
+
# Selector specifying which fields to include in a partial response.
|
|
315
|
+
# @param [Google::Apis::RequestOptions] options
|
|
316
|
+
# Request-specific options
|
|
317
|
+
#
|
|
318
|
+
# @yield [result, err] Result & error if block supplied
|
|
319
|
+
# @yieldparam result [Google::Apis::ServicemanagementV1::Policy] parsed result object
|
|
320
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
321
|
+
#
|
|
322
|
+
# @return [Google::Apis::ServicemanagementV1::Policy]
|
|
323
|
+
#
|
|
324
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
325
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
326
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
327
|
+
def set_service_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
328
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
|
329
|
+
command.request_representation = Google::Apis::ServicemanagementV1::SetIamPolicyRequest::Representation
|
|
330
|
+
command.request_object = set_iam_policy_request_object
|
|
331
|
+
command.response_representation = Google::Apis::ServicemanagementV1::Policy::Representation
|
|
332
|
+
command.response_class = Google::Apis::ServicemanagementV1::Policy
|
|
333
|
+
command.params['resource'] = resource unless resource.nil?
|
|
334
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
335
|
+
command.query['fields'] = fields unless fields.nil?
|
|
336
|
+
execute_or_queue_command(command, &block)
|
|
337
|
+
end
|
|
338
|
+
|
|
339
|
+
# Disables a service for a project, so it can no longer be
|
|
340
|
+
# be used for the project. It prevents accidental usage that may cause
|
|
341
|
+
# unexpected billing charges or security leaks.
|
|
342
|
+
# Operation<response: DisableServiceResponse>
|
|
343
|
+
# @param [String] service_name
|
|
344
|
+
# Name of the service to disable. Specifying an unknown service name
|
|
345
|
+
# will cause the request to fail.
|
|
346
|
+
# @param [Google::Apis::ServicemanagementV1::DisableServiceRequest] disable_service_request_object
|
|
347
|
+
# @param [String] quota_user
|
|
348
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
349
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
350
|
+
# @param [String] fields
|
|
351
|
+
# Selector specifying which fields to include in a partial response.
|
|
352
|
+
# @param [Google::Apis::RequestOptions] options
|
|
353
|
+
# Request-specific options
|
|
354
|
+
#
|
|
355
|
+
# @yield [result, err] Result & error if block supplied
|
|
356
|
+
# @yieldparam result [Google::Apis::ServicemanagementV1::Operation] parsed result object
|
|
357
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
358
|
+
#
|
|
359
|
+
# @return [Google::Apis::ServicemanagementV1::Operation]
|
|
360
|
+
#
|
|
361
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
362
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
363
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
364
|
+
def disable_service(service_name, disable_service_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
365
|
+
command = make_simple_command(:post, 'v1/services/{serviceName}:disable', options)
|
|
366
|
+
command.request_representation = Google::Apis::ServicemanagementV1::DisableServiceRequest::Representation
|
|
367
|
+
command.request_object = disable_service_request_object
|
|
368
|
+
command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation
|
|
369
|
+
command.response_class = Google::Apis::ServicemanagementV1::Operation
|
|
370
|
+
command.params['serviceName'] = service_name unless service_name.nil?
|
|
371
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
372
|
+
command.query['fields'] = fields unless fields.nil?
|
|
373
|
+
execute_or_queue_command(command, &block)
|
|
374
|
+
end
|
|
375
|
+
|
|
376
|
+
# Gets the access control policy for a resource.
|
|
377
|
+
# Returns an empty policy if the resource exists and does not have a policy
|
|
378
|
+
# set.
|
|
379
|
+
# @param [String] resource
|
|
380
|
+
# REQUIRED: The resource for which the policy is being requested.
|
|
381
|
+
# See the operation documentation for the appropriate value for this field.
|
|
382
|
+
# @param [Google::Apis::ServicemanagementV1::GetIamPolicyRequest] get_iam_policy_request_object
|
|
383
|
+
# @param [String] quota_user
|
|
384
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
385
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
386
|
+
# @param [String] fields
|
|
387
|
+
# Selector specifying which fields to include in a partial response.
|
|
388
|
+
# @param [Google::Apis::RequestOptions] options
|
|
389
|
+
# Request-specific options
|
|
390
|
+
#
|
|
391
|
+
# @yield [result, err] Result & error if block supplied
|
|
392
|
+
# @yieldparam result [Google::Apis::ServicemanagementV1::Policy] parsed result object
|
|
393
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
394
|
+
#
|
|
395
|
+
# @return [Google::Apis::ServicemanagementV1::Policy]
|
|
396
|
+
#
|
|
397
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
398
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
399
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
400
|
+
def get_service_iam_policy(resource, get_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
401
|
+
command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
|
|
402
|
+
command.request_representation = Google::Apis::ServicemanagementV1::GetIamPolicyRequest::Representation
|
|
403
|
+
command.request_object = get_iam_policy_request_object
|
|
404
|
+
command.response_representation = Google::Apis::ServicemanagementV1::Policy::Representation
|
|
405
|
+
command.response_class = Google::Apis::ServicemanagementV1::Policy
|
|
406
|
+
command.params['resource'] = resource unless resource.nil?
|
|
407
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
408
|
+
command.query['fields'] = fields unless fields.nil?
|
|
409
|
+
execute_or_queue_command(command, &block)
|
|
410
|
+
end
|
|
411
|
+
|
|
412
|
+
# Revives a previously deleted managed service. The method restores the
|
|
413
|
+
# service using the configuration at the time the service was deleted.
|
|
414
|
+
# The target service must exist and must have been deleted within the
|
|
415
|
+
# last 30 days.
|
|
416
|
+
# Operation<response: UndeleteServiceResponse>
|
|
417
|
+
# @param [String] service_name
|
|
418
|
+
# The name of the service. See the [overview](/service-management/overview)
|
|
419
|
+
# for naming requirements. For example: `example.googleapis.com`.
|
|
420
|
+
# @param [String] quota_user
|
|
421
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
422
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
423
|
+
# @param [String] fields
|
|
424
|
+
# Selector specifying which fields to include in a partial response.
|
|
425
|
+
# @param [Google::Apis::RequestOptions] options
|
|
426
|
+
# Request-specific options
|
|
427
|
+
#
|
|
428
|
+
# @yield [result, err] Result & error if block supplied
|
|
429
|
+
# @yieldparam result [Google::Apis::ServicemanagementV1::Operation] parsed result object
|
|
430
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
431
|
+
#
|
|
432
|
+
# @return [Google::Apis::ServicemanagementV1::Operation]
|
|
433
|
+
#
|
|
434
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
435
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
436
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
437
|
+
def undelete_service(service_name, quota_user: nil, fields: nil, options: nil, &block)
|
|
438
|
+
command = make_simple_command(:post, 'v1/services/{serviceName}:undelete', options)
|
|
439
|
+
command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation
|
|
440
|
+
command.response_class = Google::Apis::ServicemanagementV1::Operation
|
|
441
|
+
command.params['serviceName'] = service_name unless service_name.nil?
|
|
442
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
443
|
+
command.query['fields'] = fields unless fields.nil?
|
|
444
|
+
execute_or_queue_command(command, &block)
|
|
445
|
+
end
|
|
446
|
+
|
|
447
|
+
# Lists managed services.
|
|
448
|
+
# Returns all public services. For authenticated users, also returns all
|
|
449
|
+
# services the calling user has "servicemanagement.services.get" permission
|
|
450
|
+
# for.
|
|
451
|
+
# **BETA:** If the caller specifies the `consumer_id`, it returns only the
|
|
452
|
+
# services enabled on the consumer. The `consumer_id` must have the format
|
|
453
|
+
# of "project:`PROJECT-ID`".
|
|
454
|
+
# @param [String] consumer_id
|
|
455
|
+
# Include services consumed by the specified consumer.
|
|
456
|
+
# The Google Service Management implementation accepts the following
|
|
457
|
+
# forms:
|
|
458
|
+
# - project:<project_id>
|
|
459
|
+
# @param [String] page_token
|
|
460
|
+
# Token identifying which result to start with; returned by a previous list
|
|
461
|
+
# call.
|
|
462
|
+
# @param [Fixnum] page_size
|
|
463
|
+
# Requested size of the next page of data.
|
|
464
|
+
# @param [String] producer_project_id
|
|
465
|
+
# Include services produced by the specified project.
|
|
466
|
+
# @param [String] quota_user
|
|
467
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
468
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
469
|
+
# @param [String] fields
|
|
470
|
+
# Selector specifying which fields to include in a partial response.
|
|
471
|
+
# @param [Google::Apis::RequestOptions] options
|
|
472
|
+
# Request-specific options
|
|
473
|
+
#
|
|
474
|
+
# @yield [result, err] Result & error if block supplied
|
|
475
|
+
# @yieldparam result [Google::Apis::ServicemanagementV1::ListServicesResponse] parsed result object
|
|
476
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
477
|
+
#
|
|
478
|
+
# @return [Google::Apis::ServicemanagementV1::ListServicesResponse]
|
|
479
|
+
#
|
|
480
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
481
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
482
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
483
|
+
def list_services(consumer_id: nil, page_token: nil, page_size: nil, producer_project_id: nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
484
|
+
command = make_simple_command(:get, 'v1/services', options)
|
|
485
|
+
command.response_representation = Google::Apis::ServicemanagementV1::ListServicesResponse::Representation
|
|
486
|
+
command.response_class = Google::Apis::ServicemanagementV1::ListServicesResponse
|
|
487
|
+
command.query['consumerId'] = consumer_id unless consumer_id.nil?
|
|
488
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
489
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
490
|
+
command.query['producerProjectId'] = producer_project_id unless producer_project_id.nil?
|
|
491
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
492
|
+
command.query['fields'] = fields unless fields.nil?
|
|
493
|
+
execute_or_queue_command(command, &block)
|
|
494
|
+
end
|
|
495
|
+
|
|
496
|
+
# Creates a new service configuration rollout. Based on rollout, the
|
|
497
|
+
# Google Service Management will roll out the service configurations to
|
|
498
|
+
# different backend services. For example, the logging configuration will be
|
|
499
|
+
# pushed to Google Cloud Logging.
|
|
500
|
+
# Please note that any previous pending and running Rollouts and associated
|
|
501
|
+
# Operations will be automatically cancelled so that the latest Rollout will
|
|
502
|
+
# not be blocked by previous Rollouts.
|
|
503
|
+
# Operation<response: Rollout>
|
|
504
|
+
# @param [String] service_name
|
|
505
|
+
# The name of the service. See the [overview](/service-management/overview)
|
|
506
|
+
# for naming requirements. For example: `example.googleapis.com`.
|
|
507
|
+
# @param [Google::Apis::ServicemanagementV1::Rollout] rollout_object
|
|
508
|
+
# @param [String] quota_user
|
|
509
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
510
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
511
|
+
# @param [String] fields
|
|
512
|
+
# Selector specifying which fields to include in a partial response.
|
|
513
|
+
# @param [Google::Apis::RequestOptions] options
|
|
514
|
+
# Request-specific options
|
|
515
|
+
#
|
|
516
|
+
# @yield [result, err] Result & error if block supplied
|
|
517
|
+
# @yieldparam result [Google::Apis::ServicemanagementV1::Operation] parsed result object
|
|
518
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
519
|
+
#
|
|
520
|
+
# @return [Google::Apis::ServicemanagementV1::Operation]
|
|
521
|
+
#
|
|
522
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
523
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
524
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
525
|
+
def create_service_rollout(service_name, rollout_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
526
|
+
command = make_simple_command(:post, 'v1/services/{serviceName}/rollouts', options)
|
|
527
|
+
command.request_representation = Google::Apis::ServicemanagementV1::Rollout::Representation
|
|
528
|
+
command.request_object = rollout_object
|
|
529
|
+
command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation
|
|
530
|
+
command.response_class = Google::Apis::ServicemanagementV1::Operation
|
|
531
|
+
command.params['serviceName'] = service_name unless service_name.nil?
|
|
532
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
533
|
+
command.query['fields'] = fields unless fields.nil?
|
|
534
|
+
execute_or_queue_command(command, &block)
|
|
535
|
+
end
|
|
536
|
+
|
|
537
|
+
# Lists the history of the service configuration rollouts for a managed
|
|
538
|
+
# service, from the newest to the oldest.
|
|
539
|
+
# @param [String] service_name
|
|
540
|
+
# The name of the service. See the [overview](/service-management/overview)
|
|
541
|
+
# for naming requirements. For example: `example.googleapis.com`.
|
|
542
|
+
# @param [String] page_token
|
|
543
|
+
# The token of the page to retrieve.
|
|
544
|
+
# @param [Fixnum] page_size
|
|
545
|
+
# The max number of items to include in the response list.
|
|
546
|
+
# @param [String] quota_user
|
|
547
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
548
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
549
|
+
# @param [String] fields
|
|
550
|
+
# Selector specifying which fields to include in a partial response.
|
|
551
|
+
# @param [Google::Apis::RequestOptions] options
|
|
552
|
+
# Request-specific options
|
|
553
|
+
#
|
|
554
|
+
# @yield [result, err] Result & error if block supplied
|
|
555
|
+
# @yieldparam result [Google::Apis::ServicemanagementV1::ListServiceRolloutsResponse] parsed result object
|
|
556
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
557
|
+
#
|
|
558
|
+
# @return [Google::Apis::ServicemanagementV1::ListServiceRolloutsResponse]
|
|
559
|
+
#
|
|
560
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
561
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
562
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
563
|
+
def list_service_rollouts(service_name, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
564
|
+
command = make_simple_command(:get, 'v1/services/{serviceName}/rollouts', options)
|
|
565
|
+
command.response_representation = Google::Apis::ServicemanagementV1::ListServiceRolloutsResponse::Representation
|
|
566
|
+
command.response_class = Google::Apis::ServicemanagementV1::ListServiceRolloutsResponse
|
|
567
|
+
command.params['serviceName'] = service_name unless service_name.nil?
|
|
568
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
569
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
570
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
571
|
+
command.query['fields'] = fields unless fields.nil?
|
|
572
|
+
execute_or_queue_command(command, &block)
|
|
573
|
+
end
|
|
574
|
+
|
|
575
|
+
# Gets a service configuration rollout.
|
|
576
|
+
# @param [String] service_name
|
|
577
|
+
# The name of the service. See the [overview](/service-management/overview)
|
|
578
|
+
# for naming requirements. For example: `example.googleapis.com`.
|
|
579
|
+
# @param [String] rollout_id
|
|
580
|
+
# The id of the rollout resource.
|
|
581
|
+
# @param [String] quota_user
|
|
582
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
583
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
584
|
+
# @param [String] fields
|
|
585
|
+
# Selector specifying which fields to include in a partial response.
|
|
586
|
+
# @param [Google::Apis::RequestOptions] options
|
|
587
|
+
# Request-specific options
|
|
588
|
+
#
|
|
589
|
+
# @yield [result, err] Result & error if block supplied
|
|
590
|
+
# @yieldparam result [Google::Apis::ServicemanagementV1::Rollout] parsed result object
|
|
591
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
592
|
+
#
|
|
593
|
+
# @return [Google::Apis::ServicemanagementV1::Rollout]
|
|
594
|
+
#
|
|
595
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
596
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
597
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
598
|
+
def get_service_rollout(service_name, rollout_id, quota_user: nil, fields: nil, options: nil, &block)
|
|
599
|
+
command = make_simple_command(:get, 'v1/services/{serviceName}/rollouts/{rolloutId}', options)
|
|
600
|
+
command.response_representation = Google::Apis::ServicemanagementV1::Rollout::Representation
|
|
601
|
+
command.response_class = Google::Apis::ServicemanagementV1::Rollout
|
|
602
|
+
command.params['serviceName'] = service_name unless service_name.nil?
|
|
603
|
+
command.params['rolloutId'] = rollout_id unless rollout_id.nil?
|
|
604
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
605
|
+
command.query['fields'] = fields unless fields.nil?
|
|
606
|
+
execute_or_queue_command(command, &block)
|
|
607
|
+
end
|
|
608
|
+
|
|
609
|
+
# Creates a new service configuration (version) for a managed service based
|
|
610
|
+
# on
|
|
611
|
+
# user-supplied configuration source files (for example: OpenAPI
|
|
612
|
+
# Specification). This method stores the source configurations as well as the
|
|
613
|
+
# generated service configuration. To rollout the service configuration to
|
|
614
|
+
# other services,
|
|
615
|
+
# please call CreateServiceRollout.
|
|
616
|
+
# Operation<response: SubmitConfigSourceResponse>
|
|
617
|
+
# @param [String] service_name
|
|
618
|
+
# The name of the service. See the [overview](/service-management/overview)
|
|
619
|
+
# for naming requirements. For example: `example.googleapis.com`.
|
|
620
|
+
# @param [Google::Apis::ServicemanagementV1::SubmitConfigSourceRequest] submit_config_source_request_object
|
|
621
|
+
# @param [String] quota_user
|
|
622
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
623
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
624
|
+
# @param [String] fields
|
|
625
|
+
# Selector specifying which fields to include in a partial response.
|
|
626
|
+
# @param [Google::Apis::RequestOptions] options
|
|
627
|
+
# Request-specific options
|
|
628
|
+
#
|
|
629
|
+
# @yield [result, err] Result & error if block supplied
|
|
630
|
+
# @yieldparam result [Google::Apis::ServicemanagementV1::Operation] parsed result object
|
|
631
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
632
|
+
#
|
|
633
|
+
# @return [Google::Apis::ServicemanagementV1::Operation]
|
|
634
|
+
#
|
|
635
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
636
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
637
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
638
|
+
def submit_config_source(service_name, submit_config_source_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
639
|
+
command = make_simple_command(:post, 'v1/services/{serviceName}/configs:submit', options)
|
|
640
|
+
command.request_representation = Google::Apis::ServicemanagementV1::SubmitConfigSourceRequest::Representation
|
|
641
|
+
command.request_object = submit_config_source_request_object
|
|
642
|
+
command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation
|
|
643
|
+
command.response_class = Google::Apis::ServicemanagementV1::Operation
|
|
644
|
+
command.params['serviceName'] = service_name unless service_name.nil?
|
|
645
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
646
|
+
command.query['fields'] = fields unless fields.nil?
|
|
647
|
+
execute_or_queue_command(command, &block)
|
|
648
|
+
end
|
|
649
|
+
|
|
650
|
+
# Lists the history of the service configuration for a managed service,
|
|
651
|
+
# from the newest to the oldest.
|
|
652
|
+
# @param [String] service_name
|
|
653
|
+
# The name of the service. See the [overview](/service-management/overview)
|
|
654
|
+
# for naming requirements. For example: `example.googleapis.com`.
|
|
655
|
+
# @param [String] page_token
|
|
656
|
+
# The token of the page to retrieve.
|
|
657
|
+
# @param [Fixnum] page_size
|
|
658
|
+
# The max number of items to include in the response list.
|
|
659
|
+
# @param [String] quota_user
|
|
660
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
661
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
662
|
+
# @param [String] fields
|
|
663
|
+
# Selector specifying which fields to include in a partial response.
|
|
664
|
+
# @param [Google::Apis::RequestOptions] options
|
|
665
|
+
# Request-specific options
|
|
666
|
+
#
|
|
667
|
+
# @yield [result, err] Result & error if block supplied
|
|
668
|
+
# @yieldparam result [Google::Apis::ServicemanagementV1::ListServiceConfigsResponse] parsed result object
|
|
669
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
670
|
+
#
|
|
671
|
+
# @return [Google::Apis::ServicemanagementV1::ListServiceConfigsResponse]
|
|
672
|
+
#
|
|
673
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
674
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
675
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
676
|
+
def list_service_configs(service_name, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
677
|
+
command = make_simple_command(:get, 'v1/services/{serviceName}/configs', options)
|
|
678
|
+
command.response_representation = Google::Apis::ServicemanagementV1::ListServiceConfigsResponse::Representation
|
|
679
|
+
command.response_class = Google::Apis::ServicemanagementV1::ListServiceConfigsResponse
|
|
680
|
+
command.params['serviceName'] = service_name unless service_name.nil?
|
|
681
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
682
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
683
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
684
|
+
command.query['fields'] = fields unless fields.nil?
|
|
685
|
+
execute_or_queue_command(command, &block)
|
|
686
|
+
end
|
|
687
|
+
|
|
688
|
+
# Gets a service configuration (version) for a managed service.
|
|
689
|
+
# @param [String] service_name
|
|
690
|
+
# The name of the service. See the [overview](/service-management/overview)
|
|
691
|
+
# for naming requirements. For example: `example.googleapis.com`.
|
|
692
|
+
# @param [String] config_id
|
|
693
|
+
# The id of the service configuration resource.
|
|
694
|
+
# @param [String] view
|
|
695
|
+
# Specifies which parts of the Service Config should be returned in the
|
|
696
|
+
# response.
|
|
697
|
+
# @param [String] quota_user
|
|
698
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
699
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
700
|
+
# @param [String] fields
|
|
701
|
+
# Selector specifying which fields to include in a partial response.
|
|
702
|
+
# @param [Google::Apis::RequestOptions] options
|
|
703
|
+
# Request-specific options
|
|
704
|
+
#
|
|
705
|
+
# @yield [result, err] Result & error if block supplied
|
|
706
|
+
# @yieldparam result [Google::Apis::ServicemanagementV1::Service] parsed result object
|
|
707
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
708
|
+
#
|
|
709
|
+
# @return [Google::Apis::ServicemanagementV1::Service]
|
|
710
|
+
#
|
|
711
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
712
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
713
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
714
|
+
def get_service_config(service_name, config_id, view: nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
715
|
+
command = make_simple_command(:get, 'v1/services/{serviceName}/configs/{configId}', options)
|
|
716
|
+
command.response_representation = Google::Apis::ServicemanagementV1::Service::Representation
|
|
717
|
+
command.response_class = Google::Apis::ServicemanagementV1::Service
|
|
718
|
+
command.params['serviceName'] = service_name unless service_name.nil?
|
|
719
|
+
command.params['configId'] = config_id unless config_id.nil?
|
|
720
|
+
command.query['view'] = view unless view.nil?
|
|
721
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
722
|
+
command.query['fields'] = fields unless fields.nil?
|
|
723
|
+
execute_or_queue_command(command, &block)
|
|
724
|
+
end
|
|
725
|
+
|
|
726
|
+
# Creates a new service configuration (version) for a managed service.
|
|
727
|
+
# This method only stores the service configuration. To roll out the service
|
|
728
|
+
# configuration to backend systems please call
|
|
729
|
+
# CreateServiceRollout.
|
|
730
|
+
# @param [String] service_name
|
|
731
|
+
# The name of the service. See the [overview](/service-management/overview)
|
|
732
|
+
# for naming requirements. For example: `example.googleapis.com`.
|
|
733
|
+
# @param [Google::Apis::ServicemanagementV1::Service] service_object
|
|
734
|
+
# @param [String] quota_user
|
|
735
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
736
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
737
|
+
# @param [String] fields
|
|
738
|
+
# Selector specifying which fields to include in a partial response.
|
|
739
|
+
# @param [Google::Apis::RequestOptions] options
|
|
740
|
+
# Request-specific options
|
|
741
|
+
#
|
|
742
|
+
# @yield [result, err] Result & error if block supplied
|
|
743
|
+
# @yieldparam result [Google::Apis::ServicemanagementV1::Service] parsed result object
|
|
744
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
745
|
+
#
|
|
746
|
+
# @return [Google::Apis::ServicemanagementV1::Service]
|
|
747
|
+
#
|
|
748
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
749
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
750
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
751
|
+
def create_service_config(service_name, service_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
752
|
+
command = make_simple_command(:post, 'v1/services/{serviceName}/configs', options)
|
|
753
|
+
command.request_representation = Google::Apis::ServicemanagementV1::Service::Representation
|
|
754
|
+
command.request_object = service_object
|
|
755
|
+
command.response_representation = Google::Apis::ServicemanagementV1::Service::Representation
|
|
756
|
+
command.response_class = Google::Apis::ServicemanagementV1::Service
|
|
757
|
+
command.params['serviceName'] = service_name unless service_name.nil?
|
|
758
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
759
|
+
command.query['fields'] = fields unless fields.nil?
|
|
760
|
+
execute_or_queue_command(command, &block)
|
|
761
|
+
end
|
|
762
|
+
|
|
763
|
+
# Lists service operations that match the specified filter in the request.
|
|
764
|
+
# @param [String] name
|
|
765
|
+
# Not used.
|
|
766
|
+
# @param [String] page_token
|
|
767
|
+
# The standard list page token.
|
|
768
|
+
# @param [Fixnum] page_size
|
|
769
|
+
# The maximum number of operations to return. If unspecified, defaults to
|
|
770
|
+
# 50. The maximum value is 100.
|
|
771
|
+
# @param [String] filter
|
|
772
|
+
# A string for filtering Operations.
|
|
773
|
+
# The following filter fields are supported:
|
|
774
|
+
# * serviceName: Required. Only `=` operator is allowed.
|
|
775
|
+
# * startTime: The time this job was started, in ISO 8601 format.
|
|
776
|
+
# Allowed operators are `>=`, `>`, `<=`, and `<`.
|
|
777
|
+
# * status: Can be `done`, `in_progress`, or `failed`. Allowed
|
|
778
|
+
# operators are `=`, and `!=`.
|
|
779
|
+
# Filter expression supports conjunction (AND) and disjunction (OR)
|
|
780
|
+
# logical operators. However, the serviceName restriction must be at the
|
|
781
|
+
# top-level and can only be combined with other restrictions via the AND
|
|
782
|
+
# logical operator.
|
|
783
|
+
# Examples:
|
|
784
|
+
# * `serviceName=`some-service`.googleapis.com`
|
|
785
|
+
# * `serviceName=`some-service`.googleapis.com AND startTime>="2017-02-01"`
|
|
786
|
+
# * `serviceName=`some-service`.googleapis.com AND status=done`
|
|
787
|
+
# * `serviceName=`some-service`.googleapis.com AND (status=done OR startTime>="
|
|
788
|
+
# 2017-02-01")`
|
|
789
|
+
# @param [String] quota_user
|
|
790
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
791
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
792
|
+
# @param [String] fields
|
|
793
|
+
# Selector specifying which fields to include in a partial response.
|
|
794
|
+
# @param [Google::Apis::RequestOptions] options
|
|
795
|
+
# Request-specific options
|
|
796
|
+
#
|
|
797
|
+
# @yield [result, err] Result & error if block supplied
|
|
798
|
+
# @yieldparam result [Google::Apis::ServicemanagementV1::ListOperationsResponse] parsed result object
|
|
799
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
800
|
+
#
|
|
801
|
+
# @return [Google::Apis::ServicemanagementV1::ListOperationsResponse]
|
|
802
|
+
#
|
|
803
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
804
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
805
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
806
|
+
def list_operations(name: nil, page_token: nil, page_size: nil, filter: nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
807
|
+
command = make_simple_command(:get, 'v1/operations', options)
|
|
808
|
+
command.response_representation = Google::Apis::ServicemanagementV1::ListOperationsResponse::Representation
|
|
809
|
+
command.response_class = Google::Apis::ServicemanagementV1::ListOperationsResponse
|
|
810
|
+
command.query['name'] = name unless name.nil?
|
|
811
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
812
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
813
|
+
command.query['filter'] = filter unless filter.nil?
|
|
814
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
815
|
+
command.query['fields'] = fields unless fields.nil?
|
|
816
|
+
execute_or_queue_command(command, &block)
|
|
817
|
+
end
|
|
818
|
+
|
|
819
|
+
# Gets the latest state of a long-running operation. Clients can use this
|
|
820
|
+
# method to poll the operation result at intervals as recommended by the API
|
|
821
|
+
# service.
|
|
822
|
+
# @param [String] name
|
|
823
|
+
# The name of the operation resource.
|
|
824
|
+
# @param [String] quota_user
|
|
825
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
826
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
827
|
+
# @param [String] fields
|
|
828
|
+
# Selector specifying which fields to include in a partial response.
|
|
829
|
+
# @param [Google::Apis::RequestOptions] options
|
|
830
|
+
# Request-specific options
|
|
831
|
+
#
|
|
832
|
+
# @yield [result, err] Result & error if block supplied
|
|
833
|
+
# @yieldparam result [Google::Apis::ServicemanagementV1::Operation] parsed result object
|
|
834
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
835
|
+
#
|
|
836
|
+
# @return [Google::Apis::ServicemanagementV1::Operation]
|
|
837
|
+
#
|
|
838
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
839
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
840
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
841
|
+
def get_operation(name, quota_user: nil, fields: nil, options: nil, &block)
|
|
842
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
843
|
+
command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation
|
|
844
|
+
command.response_class = Google::Apis::ServicemanagementV1::Operation
|
|
845
|
+
command.params['name'] = name unless name.nil?
|
|
846
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
847
|
+
command.query['fields'] = fields unless fields.nil?
|
|
848
|
+
execute_or_queue_command(command, &block)
|
|
849
|
+
end
|
|
850
|
+
|
|
851
|
+
protected
|
|
852
|
+
|
|
853
|
+
def apply_command_defaults(command)
|
|
854
|
+
command.query['key'] = key unless key.nil?
|
|
855
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
856
|
+
end
|
|
857
|
+
end
|
|
858
|
+
end
|
|
859
|
+
end
|
|
860
|
+
end
|