google-api-client 0.13.0 → 0.13.1
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 +3 -0
- data/README.md +6 -2
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +46 -46
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +15 -15
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +4 -4
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +404 -435
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +107 -121
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +657 -713
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +45 -5
- data/generated/google/apis/admin_directory_v1/representations.rb +16 -0
- data/generated/google/apis/admin_directory_v1/service.rb +4 -1
- 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.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +399 -399
- data/generated/google/apis/analyticsreporting_v4/representations.rb +101 -101
- data/generated/google/apis/analyticsreporting_v4/service.rb +10 -10
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/appengine_v1.rb +4 -4
- data/generated/google/apis/appengine_v1/classes.rb +747 -747
- data/generated/google/apis/appengine_v1/representations.rb +158 -158
- data/generated/google/apis/appengine_v1/service.rb +214 -214
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +6 -0
- data/generated/google/apis/bigquery_v2/representations.rb +2 -0
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/classroom_v1.rb +7 -7
- data/generated/google/apis/classroom_v1/classes.rb +517 -515
- data/generated/google/apis/classroom_v1/representations.rb +147 -147
- data/generated/google/apis/classroom_v1/service.rb +1144 -1143
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +435 -386
- data/generated/google/apis/cloudbuild_v1/representations.rb +133 -115
- data/generated/google/apis/cloudbuild_v1/service.rb +148 -148
- data/generated/google/apis/clouddebugger_v2.rb +1 -1
- data/generated/google/apis/clouddebugger_v2/classes.rb +708 -708
- data/generated/google/apis/clouddebugger_v2/representations.rb +146 -146
- data/generated/google/apis/clouddebugger_v2/service.rb +124 -124
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +142 -142
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +29 -29
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +87 -87
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/service.rb +6 -6
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +692 -675
- data/generated/google/apis/cloudkms_v1/representations.rb +144 -144
- data/generated/google/apis/cloudkms_v1/service.rb +276 -276
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1168 -1168
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +190 -190
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +311 -288
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +406 -406
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +95 -95
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +242 -234
- data/generated/google/apis/cloudtrace_v1.rb +4 -4
- data/generated/google/apis/cloudtrace_v1/classes.rb +68 -68
- data/generated/google/apis/cloudtrace_v1/representations.rb +22 -22
- data/generated/google/apis/cloudtrace_v1/service.rb +48 -48
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +82 -6
- data/generated/google/apis/compute_beta/representations.rb +4 -0
- data/generated/google/apis/compute_beta/service.rb +1177 -834
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +371 -1
- data/generated/google/apis/compute_v1/representations.rb +139 -0
- data/generated/google/apis/compute_v1/service.rb +257 -9
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +1122 -826
- data/generated/google/apis/container_v1/representations.rb +279 -135
- data/generated/google/apis/container_v1/service.rb +440 -98
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/service.rb +3 -1
- data/generated/google/apis/customsearch_v1.rb +1 -1
- data/generated/google/apis/dataflow_v1b3.rb +4 -4
- data/generated/google/apis/dataflow_v1b3/classes.rb +3423 -3423
- data/generated/google/apis/dataflow_v1b3/representations.rb +813 -813
- data/generated/google/apis/dataflow_v1b3/service.rb +410 -410
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +450 -431
- data/generated/google/apis/dataproc_v1/representations.rb +92 -92
- data/generated/google/apis/dataproc_v1/service.rb +200 -200
- data/generated/google/apis/datastore_v1.rb +4 -4
- data/generated/google/apis/datastore_v1/classes.rb +397 -397
- data/generated/google/apis/datastore_v1/representations.rb +100 -100
- data/generated/google/apis/datastore_v1/service.rb +62 -62
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +79 -3
- data/generated/google/apis/deploymentmanager_v2/representations.rb +33 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +15 -20
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +2 -2
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/service.rb +1 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/service.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +87 -87
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +27 -27
- data/generated/google/apis/firebaserules_v1/classes.rb +271 -271
- data/generated/google/apis/firebaserules_v1/representations.rb +82 -82
- data/generated/google/apis/firebaserules_v1/service.rb +151 -151
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +9 -9
- data/generated/google/apis/genomics_v1/classes.rb +2242 -2242
- data/generated/google/apis/genomics_v1/representations.rb +306 -306
- data/generated/google/apis/genomics_v1/service.rb +1172 -1172
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +243 -243
- data/generated/google/apis/iam_v1/representations.rb +79 -79
- data/generated/google/apis/iam_v1/service.rb +137 -137
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +18 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +3 -0
- data/generated/google/apis/kgsearch_v1/classes.rb +9 -9
- data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
- data/generated/google/apis/kgsearch_v1/service.rb +4 -4
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1/classes.rb +451 -451
- data/generated/google/apis/language_v1/representations.rb +103 -103
- data/generated/google/apis/language_v1/service.rb +49 -49
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +459 -459
- data/generated/google/apis/language_v1beta1/representations.rb +110 -110
- data/generated/google/apis/language_v1beta1/service.rb +43 -43
- data/generated/google/apis/logging_v2.rb +8 -8
- data/generated/google/apis/logging_v2/classes.rb +915 -915
- data/generated/google/apis/logging_v2/representations.rb +142 -142
- data/generated/google/apis/logging_v2/service.rb +415 -415
- data/generated/google/apis/logging_v2beta1.rb +8 -8
- data/generated/google/apis/logging_v2beta1/classes.rb +905 -905
- data/generated/google/apis/logging_v2beta1/representations.rb +150 -150
- data/generated/google/apis/logging_v2beta1/service.rb +221 -221
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/manufacturers_v1/classes.rb +334 -315
- data/generated/google/apis/manufacturers_v1/representations.rb +99 -87
- data/generated/google/apis/manufacturers_v1/service.rb +101 -4
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +709 -673
- data/generated/google/apis/ml_v1/representations.rb +154 -151
- data/generated/google/apis/ml_v1/service.rb +341 -354
- data/generated/google/apis/monitoring_v3.rb +6 -6
- data/generated/google/apis/monitoring_v3/classes.rb +869 -869
- data/generated/google/apis/monitoring_v3/representations.rb +171 -171
- data/generated/google/apis/monitoring_v3/service.rb +340 -340
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +1569 -1569
- data/generated/google/apis/partners_v2/representations.rb +256 -256
- data/generated/google/apis/partners_v2/service.rb +530 -530
- data/generated/google/apis/people_v1.rb +7 -7
- data/generated/google/apis/people_v1/classes.rb +1287 -946
- data/generated/google/apis/people_v1/representations.rb +355 -203
- data/generated/google/apis/people_v1/service.rb +409 -32
- 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.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +445 -445
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +104 -104
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +241 -241
- data/generated/google/apis/pubsub_v1.rb +4 -4
- data/generated/google/apis/pubsub_v1/classes.rb +286 -287
- data/generated/google/apis/pubsub_v1/representations.rb +80 -80
- data/generated/google/apis/pubsub_v1/service.rb +178 -178
- data/generated/google/apis/runtimeconfig_v1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1/classes.rb +52 -52
- data/generated/google/apis/runtimeconfig_v1/representations.rb +15 -15
- data/generated/google/apis/runtimeconfig_v1/service.rb +21 -21
- data/generated/google/apis/script_v1.rb +4 -4
- data/generated/google/apis/script_v1/classes.rb +172 -172
- data/generated/google/apis/script_v1/representations.rb +41 -41
- data/generated/google/apis/script_v1/service.rb +6 -6
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +6 -6
- data/generated/google/apis/searchconsole_v1/representations.rb +1 -1
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +1110 -1110
- data/generated/google/apis/servicecontrol_v1/representations.rb +215 -215
- data/generated/google/apis/servicecontrol_v1/service.rb +65 -65
- data/generated/google/apis/servicemanagement_v1.rb +6 -6
- data/generated/google/apis/servicemanagement_v1/classes.rb +3594 -3562
- data/generated/google/apis/servicemanagement_v1/representations.rb +564 -562
- data/generated/google/apis/servicemanagement_v1/service.rb +253 -253
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +2678 -2670
- data/generated/google/apis/serviceuser_v1/representations.rb +269 -268
- data/generated/google/apis/serviceuser_v1/service.rb +59 -59
- data/generated/google/apis/sheets_v4.rb +5 -5
- data/generated/google/apis/sheets_v4/classes.rb +5155 -5104
- data/generated/google/apis/sheets_v4/representations.rb +957 -940
- data/generated/google/apis/sheets_v4/service.rb +175 -175
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +2932 -2905
- data/generated/google/apis/slides_v1/representations.rb +709 -694
- data/generated/google/apis/slides_v1/service.rb +50 -50
- data/generated/google/apis/sourcerepo_v1/classes.rb +139 -139
- data/generated/google/apis/sourcerepo_v1/representations.rb +40 -40
- data/generated/google/apis/sourcerepo_v1/service.rb +61 -61
- data/generated/google/apis/spanner_v1.rb +7 -1
- data/generated/google/apis/spanner_v1/classes.rb +2362 -2299
- data/generated/google/apis/spanner_v1/representations.rb +342 -323
- data/generated/google/apis/spanner_v1/service.rb +502 -492
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +244 -244
- data/generated/google/apis/speech_v1beta1/representations.rb +52 -52
- data/generated/google/apis/speech_v1beta1/service.rb +91 -91
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +784 -781
- data/generated/google/apis/storagetransfer_v1/representations.rb +88 -88
- data/generated/google/apis/storagetransfer_v1/service.rb +154 -154
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +90 -1
- data/generated/google/apis/toolresults_v1beta3/representations.rb +18 -0
- data/generated/google/apis/translate_v2/classes.rb +107 -107
- data/generated/google/apis/translate_v2/representations.rb +49 -49
- data/generated/google/apis/translate_v2/service.rb +81 -81
- data/generated/google/apis/vision_v1.rb +4 -1
- data/generated/google/apis/vision_v1/classes.rb +527 -527
- data/generated/google/apis/vision_v1/representations.rb +115 -115
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +124 -124
- data/generated/google/apis/youtubereporting_v1/representations.rb +30 -30
- data/generated/google/apis/youtubereporting_v1/service.rb +113 -113
- data/lib/google/apis/version.rb +1 -1
- data/samples/cli/lib/samples/analytics.rb +2 -2
- metadata +2 -2
|
@@ -49,14 +49,39 @@ module Google
|
|
|
49
49
|
@batch_path = 'batch'
|
|
50
50
|
end
|
|
51
51
|
|
|
52
|
-
#
|
|
52
|
+
# Gets the latest state of a long-running operation. Clients can use this
|
|
53
|
+
# method to poll the operation result at intervals as recommended by the API
|
|
54
|
+
# service.
|
|
53
55
|
# @param [String] name
|
|
54
|
-
#
|
|
55
|
-
# @param [String]
|
|
56
|
-
#
|
|
57
|
-
#
|
|
58
|
-
#
|
|
59
|
-
#
|
|
56
|
+
# The name of the operation resource.
|
|
57
|
+
# @param [String] quota_user
|
|
58
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
59
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
60
|
+
# @param [String] fields
|
|
61
|
+
# Selector specifying which fields to include in a partial response.
|
|
62
|
+
# @param [Google::Apis::RequestOptions] options
|
|
63
|
+
# Request-specific options
|
|
64
|
+
#
|
|
65
|
+
# @yield [result, err] Result & error if block supplied
|
|
66
|
+
# @yieldparam result [Google::Apis::ServicemanagementV1::Operation] parsed result object
|
|
67
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
68
|
+
#
|
|
69
|
+
# @return [Google::Apis::ServicemanagementV1::Operation]
|
|
70
|
+
#
|
|
71
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
72
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
73
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
74
|
+
def get_operation(name, quota_user: nil, fields: nil, options: nil, &block)
|
|
75
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
76
|
+
command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation
|
|
77
|
+
command.response_class = Google::Apis::ServicemanagementV1::Operation
|
|
78
|
+
command.params['name'] = name unless name.nil?
|
|
79
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
80
|
+
command.query['fields'] = fields unless fields.nil?
|
|
81
|
+
execute_or_queue_command(command, &block)
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# Lists service operations that match the specified filter in the request.
|
|
60
85
|
# @param [String] filter
|
|
61
86
|
# A string for filtering Operations.
|
|
62
87
|
# The following filter fields are supported:
|
|
@@ -75,11 +100,18 @@ module Google
|
|
|
75
100
|
# * `serviceName=`some-service`.googleapis.com AND status=done`
|
|
76
101
|
# * `serviceName=`some-service`.googleapis.com AND (status=done OR startTime>="
|
|
77
102
|
# 2017-02-01")`
|
|
78
|
-
# @param [String]
|
|
79
|
-
#
|
|
103
|
+
# @param [String] page_token
|
|
104
|
+
# The standard list page token.
|
|
105
|
+
# @param [String] name
|
|
106
|
+
# Not used.
|
|
107
|
+
# @param [Fixnum] page_size
|
|
108
|
+
# The maximum number of operations to return. If unspecified, defaults to
|
|
109
|
+
# 50. The maximum value is 100.
|
|
80
110
|
# @param [String] quota_user
|
|
81
111
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
82
112
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
113
|
+
# @param [String] fields
|
|
114
|
+
# Selector specifying which fields to include in a partial response.
|
|
83
115
|
# @param [Google::Apis::RequestOptions] options
|
|
84
116
|
# Request-specific options
|
|
85
117
|
#
|
|
@@ -92,29 +124,68 @@ module Google
|
|
|
92
124
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
93
125
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
94
126
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
95
|
-
def list_operations(
|
|
127
|
+
def list_operations(filter: nil, page_token: nil, name: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
96
128
|
command = make_simple_command(:get, 'v1/operations', options)
|
|
97
129
|
command.response_representation = Google::Apis::ServicemanagementV1::ListOperationsResponse::Representation
|
|
98
130
|
command.response_class = Google::Apis::ServicemanagementV1::ListOperationsResponse
|
|
99
|
-
command.query['
|
|
131
|
+
command.query['filter'] = filter unless filter.nil?
|
|
100
132
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
133
|
+
command.query['name'] = name unless name.nil?
|
|
101
134
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
102
|
-
command.query['filter'] = filter unless filter.nil?
|
|
103
|
-
command.query['fields'] = fields unless fields.nil?
|
|
104
135
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
136
|
+
command.query['fields'] = fields unless fields.nil?
|
|
105
137
|
execute_or_queue_command(command, &block)
|
|
106
138
|
end
|
|
107
139
|
|
|
108
|
-
# Gets the
|
|
109
|
-
#
|
|
110
|
-
#
|
|
111
|
-
# @param [String]
|
|
112
|
-
# The
|
|
140
|
+
# Gets the access control policy for a resource.
|
|
141
|
+
# Returns an empty policy if the resource exists and does not have a policy
|
|
142
|
+
# set.
|
|
143
|
+
# @param [String] resource
|
|
144
|
+
# REQUIRED: The resource for which the policy is being requested.
|
|
145
|
+
# See the operation documentation for the appropriate value for this field.
|
|
146
|
+
# @param [Google::Apis::ServicemanagementV1::GetIamPolicyRequest] get_iam_policy_request_object
|
|
147
|
+
# @param [String] quota_user
|
|
148
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
149
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
113
150
|
# @param [String] fields
|
|
114
151
|
# Selector specifying which fields to include in a partial response.
|
|
152
|
+
# @param [Google::Apis::RequestOptions] options
|
|
153
|
+
# Request-specific options
|
|
154
|
+
#
|
|
155
|
+
# @yield [result, err] Result & error if block supplied
|
|
156
|
+
# @yieldparam result [Google::Apis::ServicemanagementV1::Policy] parsed result object
|
|
157
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
158
|
+
#
|
|
159
|
+
# @return [Google::Apis::ServicemanagementV1::Policy]
|
|
160
|
+
#
|
|
161
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
162
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
163
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
164
|
+
def get_service_iam_policy(resource, get_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
165
|
+
command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
|
|
166
|
+
command.request_representation = Google::Apis::ServicemanagementV1::GetIamPolicyRequest::Representation
|
|
167
|
+
command.request_object = get_iam_policy_request_object
|
|
168
|
+
command.response_representation = Google::Apis::ServicemanagementV1::Policy::Representation
|
|
169
|
+
command.response_class = Google::Apis::ServicemanagementV1::Policy
|
|
170
|
+
command.params['resource'] = resource unless resource.nil?
|
|
171
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
172
|
+
command.query['fields'] = fields unless fields.nil?
|
|
173
|
+
execute_or_queue_command(command, &block)
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
# Revives a previously deleted managed service. The method restores the
|
|
177
|
+
# service using the configuration at the time the service was deleted.
|
|
178
|
+
# The target service must exist and must have been deleted within the
|
|
179
|
+
# last 30 days.
|
|
180
|
+
# Operation<response: UndeleteServiceResponse>
|
|
181
|
+
# @param [String] service_name
|
|
182
|
+
# The name of the service. See the [overview](/service-management/overview)
|
|
183
|
+
# for naming requirements. For example: `example.googleapis.com`.
|
|
115
184
|
# @param [String] quota_user
|
|
116
185
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
117
186
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
187
|
+
# @param [String] fields
|
|
188
|
+
# Selector specifying which fields to include in a partial response.
|
|
118
189
|
# @param [Google::Apis::RequestOptions] options
|
|
119
190
|
# Request-specific options
|
|
120
191
|
#
|
|
@@ -127,13 +198,13 @@ module Google
|
|
|
127
198
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
128
199
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
129
200
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
130
|
-
def
|
|
131
|
-
command = make_simple_command(:
|
|
201
|
+
def undelete_service(service_name, quota_user: nil, fields: nil, options: nil, &block)
|
|
202
|
+
command = make_simple_command(:post, 'v1/services/{serviceName}:undelete', options)
|
|
132
203
|
command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation
|
|
133
204
|
command.response_class = Google::Apis::ServicemanagementV1::Operation
|
|
134
|
-
command.params['
|
|
135
|
-
command.query['fields'] = fields unless fields.nil?
|
|
205
|
+
command.params['serviceName'] = service_name unless service_name.nil?
|
|
136
206
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
207
|
+
command.query['fields'] = fields unless fields.nil?
|
|
137
208
|
execute_or_queue_command(command, &block)
|
|
138
209
|
end
|
|
139
210
|
|
|
@@ -144,6 +215,10 @@ module Google
|
|
|
144
215
|
# **BETA:** If the caller specifies the `consumer_id`, it returns only the
|
|
145
216
|
# services enabled on the consumer. The `consumer_id` must have the format
|
|
146
217
|
# of "project:`PROJECT-ID`".
|
|
218
|
+
# @param [Fixnum] page_size
|
|
219
|
+
# Requested size of the next page of data.
|
|
220
|
+
# @param [String] producer_project_id
|
|
221
|
+
# Include services produced by the specified project.
|
|
147
222
|
# @param [String] consumer_id
|
|
148
223
|
# Include services consumed by the specified consumer.
|
|
149
224
|
# The Google Service Management implementation accepts the following
|
|
@@ -152,15 +227,11 @@ module Google
|
|
|
152
227
|
# @param [String] page_token
|
|
153
228
|
# Token identifying which result to start with; returned by a previous list
|
|
154
229
|
# call.
|
|
155
|
-
# @param [Fixnum] page_size
|
|
156
|
-
# Requested size of the next page of data.
|
|
157
|
-
# @param [String] producer_project_id
|
|
158
|
-
# Include services produced by the specified project.
|
|
159
|
-
# @param [String] fields
|
|
160
|
-
# Selector specifying which fields to include in a partial response.
|
|
161
230
|
# @param [String] quota_user
|
|
162
231
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
163
232
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
233
|
+
# @param [String] fields
|
|
234
|
+
# Selector specifying which fields to include in a partial response.
|
|
164
235
|
# @param [Google::Apis::RequestOptions] options
|
|
165
236
|
# Request-specific options
|
|
166
237
|
#
|
|
@@ -173,16 +244,16 @@ module Google
|
|
|
173
244
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
174
245
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
175
246
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
176
|
-
def list_services(
|
|
247
|
+
def list_services(page_size: nil, producer_project_id: nil, consumer_id: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
177
248
|
command = make_simple_command(:get, 'v1/services', options)
|
|
178
249
|
command.response_representation = Google::Apis::ServicemanagementV1::ListServicesResponse::Representation
|
|
179
250
|
command.response_class = Google::Apis::ServicemanagementV1::ListServicesResponse
|
|
180
|
-
command.query['consumerId'] = consumer_id unless consumer_id.nil?
|
|
181
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
|
182
251
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
183
252
|
command.query['producerProjectId'] = producer_project_id unless producer_project_id.nil?
|
|
184
|
-
command.query['
|
|
253
|
+
command.query['consumerId'] = consumer_id unless consumer_id.nil?
|
|
254
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
185
255
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
256
|
+
command.query['fields'] = fields unless fields.nil?
|
|
186
257
|
execute_or_queue_command(command, &block)
|
|
187
258
|
end
|
|
188
259
|
|
|
@@ -190,11 +261,11 @@ module Google
|
|
|
190
261
|
# Please note one producer project can own no more than 20 services.
|
|
191
262
|
# Operation<response: ManagedService>
|
|
192
263
|
# @param [Google::Apis::ServicemanagementV1::ManagedService] managed_service_object
|
|
193
|
-
# @param [String] fields
|
|
194
|
-
# Selector specifying which fields to include in a partial response.
|
|
195
264
|
# @param [String] quota_user
|
|
196
265
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
197
266
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
267
|
+
# @param [String] fields
|
|
268
|
+
# Selector specifying which fields to include in a partial response.
|
|
198
269
|
# @param [Google::Apis::RequestOptions] options
|
|
199
270
|
# Request-specific options
|
|
200
271
|
#
|
|
@@ -207,14 +278,14 @@ module Google
|
|
|
207
278
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
208
279
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
209
280
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
210
|
-
def create_service(managed_service_object = nil,
|
|
281
|
+
def create_service(managed_service_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
211
282
|
command = make_simple_command(:post, 'v1/services', options)
|
|
212
283
|
command.request_representation = Google::Apis::ServicemanagementV1::ManagedService::Representation
|
|
213
284
|
command.request_object = managed_service_object
|
|
214
285
|
command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation
|
|
215
286
|
command.response_class = Google::Apis::ServicemanagementV1::Operation
|
|
216
|
-
command.query['fields'] = fields unless fields.nil?
|
|
217
287
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
288
|
+
command.query['fields'] = fields unless fields.nil?
|
|
218
289
|
execute_or_queue_command(command, &block)
|
|
219
290
|
end
|
|
220
291
|
|
|
@@ -229,11 +300,11 @@ module Google
|
|
|
229
300
|
# will compare GenerateConfigReportRequest.new_value with the last pushed
|
|
230
301
|
# service configuration.
|
|
231
302
|
# @param [Google::Apis::ServicemanagementV1::GenerateConfigReportRequest] generate_config_report_request_object
|
|
232
|
-
# @param [String] fields
|
|
233
|
-
# Selector specifying which fields to include in a partial response.
|
|
234
303
|
# @param [String] quota_user
|
|
235
304
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
236
305
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
306
|
+
# @param [String] fields
|
|
307
|
+
# Selector specifying which fields to include in a partial response.
|
|
237
308
|
# @param [Google::Apis::RequestOptions] options
|
|
238
309
|
# Request-specific options
|
|
239
310
|
#
|
|
@@ -246,14 +317,14 @@ module Google
|
|
|
246
317
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
247
318
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
248
319
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
249
|
-
def generate_service_config_report(generate_config_report_request_object = nil,
|
|
320
|
+
def generate_service_config_report(generate_config_report_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
250
321
|
command = make_simple_command(:post, 'v1/services:generateConfigReport', options)
|
|
251
322
|
command.request_representation = Google::Apis::ServicemanagementV1::GenerateConfigReportRequest::Representation
|
|
252
323
|
command.request_object = generate_config_report_request_object
|
|
253
324
|
command.response_representation = Google::Apis::ServicemanagementV1::GenerateConfigReportResponse::Representation
|
|
254
325
|
command.response_class = Google::Apis::ServicemanagementV1::GenerateConfigReportResponse
|
|
255
|
-
command.query['fields'] = fields unless fields.nil?
|
|
256
326
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
327
|
+
command.query['fields'] = fields unless fields.nil?
|
|
257
328
|
execute_or_queue_command(command, &block)
|
|
258
329
|
end
|
|
259
330
|
|
|
@@ -262,11 +333,11 @@ module Google
|
|
|
262
333
|
# @param [String] service_name
|
|
263
334
|
# The name of the service. See the `ServiceManager` overview for naming
|
|
264
335
|
# requirements. For example: `example.googleapis.com`.
|
|
265
|
-
# @param [String] fields
|
|
266
|
-
# Selector specifying which fields to include in a partial response.
|
|
267
336
|
# @param [String] quota_user
|
|
268
337
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
269
338
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
339
|
+
# @param [String] fields
|
|
340
|
+
# Selector specifying which fields to include in a partial response.
|
|
270
341
|
# @param [Google::Apis::RequestOptions] options
|
|
271
342
|
# Request-specific options
|
|
272
343
|
#
|
|
@@ -279,13 +350,13 @@ module Google
|
|
|
279
350
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
280
351
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
281
352
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
282
|
-
def get_service(service_name,
|
|
353
|
+
def get_service(service_name, quota_user: nil, fields: nil, options: nil, &block)
|
|
283
354
|
command = make_simple_command(:get, 'v1/services/{serviceName}', options)
|
|
284
355
|
command.response_representation = Google::Apis::ServicemanagementV1::ManagedService::Representation
|
|
285
356
|
command.response_class = Google::Apis::ServicemanagementV1::ManagedService
|
|
286
357
|
command.params['serviceName'] = service_name unless service_name.nil?
|
|
287
|
-
command.query['fields'] = fields unless fields.nil?
|
|
288
358
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
359
|
+
command.query['fields'] = fields unless fields.nil?
|
|
289
360
|
execute_or_queue_command(command, &block)
|
|
290
361
|
end
|
|
291
362
|
|
|
@@ -299,11 +370,11 @@ module Google
|
|
|
299
370
|
# REQUIRED: The resource for which the policy detail is being requested.
|
|
300
371
|
# See the operation documentation for the appropriate value for this field.
|
|
301
372
|
# @param [Google::Apis::ServicemanagementV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
|
302
|
-
# @param [String] fields
|
|
303
|
-
# Selector specifying which fields to include in a partial response.
|
|
304
373
|
# @param [String] quota_user
|
|
305
374
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
306
375
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
376
|
+
# @param [String] fields
|
|
377
|
+
# Selector specifying which fields to include in a partial response.
|
|
307
378
|
# @param [Google::Apis::RequestOptions] options
|
|
308
379
|
# Request-specific options
|
|
309
380
|
#
|
|
@@ -316,15 +387,15 @@ module Google
|
|
|
316
387
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
317
388
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
318
389
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
319
|
-
def test_service_iam_permissions(resource, test_iam_permissions_request_object = nil,
|
|
390
|
+
def test_service_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
320
391
|
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
|
321
392
|
command.request_representation = Google::Apis::ServicemanagementV1::TestIamPermissionsRequest::Representation
|
|
322
393
|
command.request_object = test_iam_permissions_request_object
|
|
323
394
|
command.response_representation = Google::Apis::ServicemanagementV1::TestIamPermissionsResponse::Representation
|
|
324
395
|
command.response_class = Google::Apis::ServicemanagementV1::TestIamPermissionsResponse
|
|
325
396
|
command.params['resource'] = resource unless resource.nil?
|
|
326
|
-
command.query['fields'] = fields unless fields.nil?
|
|
327
397
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
398
|
+
command.query['fields'] = fields unless fields.nil?
|
|
328
399
|
execute_or_queue_command(command, &block)
|
|
329
400
|
end
|
|
330
401
|
|
|
@@ -337,11 +408,11 @@ module Google
|
|
|
337
408
|
# @param [String] view
|
|
338
409
|
# Specifies which parts of the Service Config should be returned in the
|
|
339
410
|
# response.
|
|
340
|
-
# @param [String] fields
|
|
341
|
-
# Selector specifying which fields to include in a partial response.
|
|
342
411
|
# @param [String] quota_user
|
|
343
412
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
344
413
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
414
|
+
# @param [String] fields
|
|
415
|
+
# Selector specifying which fields to include in a partial response.
|
|
345
416
|
# @param [Google::Apis::RequestOptions] options
|
|
346
417
|
# Request-specific options
|
|
347
418
|
#
|
|
@@ -354,32 +425,31 @@ module Google
|
|
|
354
425
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
355
426
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
356
427
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
357
|
-
def get_service_configuration(service_name, config_id: nil, view: nil,
|
|
428
|
+
def get_service_configuration(service_name, config_id: nil, view: nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
358
429
|
command = make_simple_command(:get, 'v1/services/{serviceName}/config', options)
|
|
359
430
|
command.response_representation = Google::Apis::ServicemanagementV1::Service::Representation
|
|
360
431
|
command.response_class = Google::Apis::ServicemanagementV1::Service
|
|
361
432
|
command.params['serviceName'] = service_name unless service_name.nil?
|
|
362
433
|
command.query['configId'] = config_id unless config_id.nil?
|
|
363
434
|
command.query['view'] = view unless view.nil?
|
|
364
|
-
command.query['fields'] = fields unless fields.nil?
|
|
365
435
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
436
|
+
command.query['fields'] = fields unless fields.nil?
|
|
366
437
|
execute_or_queue_command(command, &block)
|
|
367
438
|
end
|
|
368
439
|
|
|
369
|
-
#
|
|
370
|
-
# for
|
|
371
|
-
#
|
|
372
|
-
#
|
|
373
|
-
# Operation<response:
|
|
440
|
+
# Deletes a managed service. This method will change the service to the
|
|
441
|
+
# `Soft-Delete` state for 30 days. Within this period, service producers may
|
|
442
|
+
# call UndeleteService to restore the service.
|
|
443
|
+
# After 30 days, the service will be permanently deleted.
|
|
444
|
+
# Operation<response: google.protobuf.Empty>
|
|
374
445
|
# @param [String] service_name
|
|
375
|
-
#
|
|
376
|
-
#
|
|
377
|
-
# @param [Google::Apis::ServicemanagementV1::EnableServiceRequest] enable_service_request_object
|
|
378
|
-
# @param [String] fields
|
|
379
|
-
# Selector specifying which fields to include in a partial response.
|
|
446
|
+
# The name of the service. See the [overview](/service-management/overview)
|
|
447
|
+
# for naming requirements. For example: `example.googleapis.com`.
|
|
380
448
|
# @param [String] quota_user
|
|
381
449
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
382
450
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
451
|
+
# @param [String] fields
|
|
452
|
+
# Selector specifying which fields to include in a partial response.
|
|
383
453
|
# @param [Google::Apis::RequestOptions] options
|
|
384
454
|
# Request-specific options
|
|
385
455
|
#
|
|
@@ -392,31 +462,30 @@ module Google
|
|
|
392
462
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
393
463
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
394
464
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
395
|
-
def
|
|
396
|
-
command = make_simple_command(:
|
|
397
|
-
command.request_representation = Google::Apis::ServicemanagementV1::EnableServiceRequest::Representation
|
|
398
|
-
command.request_object = enable_service_request_object
|
|
465
|
+
def delete_service(service_name, quota_user: nil, fields: nil, options: nil, &block)
|
|
466
|
+
command = make_simple_command(:delete, 'v1/services/{serviceName}', options)
|
|
399
467
|
command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation
|
|
400
468
|
command.response_class = Google::Apis::ServicemanagementV1::Operation
|
|
401
469
|
command.params['serviceName'] = service_name unless service_name.nil?
|
|
402
|
-
command.query['fields'] = fields unless fields.nil?
|
|
403
470
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
471
|
+
command.query['fields'] = fields unless fields.nil?
|
|
404
472
|
execute_or_queue_command(command, &block)
|
|
405
473
|
end
|
|
406
474
|
|
|
407
|
-
#
|
|
408
|
-
#
|
|
409
|
-
#
|
|
410
|
-
#
|
|
411
|
-
# Operation<response:
|
|
475
|
+
# Enables a service for a project, so it can be used
|
|
476
|
+
# for the project. See
|
|
477
|
+
# [Cloud Auth Guide](https://cloud.google.com/docs/authentication) for
|
|
478
|
+
# more information.
|
|
479
|
+
# Operation<response: EnableServiceResponse>
|
|
412
480
|
# @param [String] service_name
|
|
413
|
-
#
|
|
414
|
-
#
|
|
415
|
-
# @param [
|
|
416
|
-
# Selector specifying which fields to include in a partial response.
|
|
481
|
+
# Name of the service to enable. Specifying an unknown service name will
|
|
482
|
+
# cause the request to fail.
|
|
483
|
+
# @param [Google::Apis::ServicemanagementV1::EnableServiceRequest] enable_service_request_object
|
|
417
484
|
# @param [String] quota_user
|
|
418
485
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
419
486
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
487
|
+
# @param [String] fields
|
|
488
|
+
# Selector specifying which fields to include in a partial response.
|
|
420
489
|
# @param [Google::Apis::RequestOptions] options
|
|
421
490
|
# Request-specific options
|
|
422
491
|
#
|
|
@@ -429,13 +498,15 @@ module Google
|
|
|
429
498
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
430
499
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
431
500
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
432
|
-
def
|
|
433
|
-
command = make_simple_command(:
|
|
501
|
+
def enable_service(service_name, enable_service_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
502
|
+
command = make_simple_command(:post, 'v1/services/{serviceName}:enable', options)
|
|
503
|
+
command.request_representation = Google::Apis::ServicemanagementV1::EnableServiceRequest::Representation
|
|
504
|
+
command.request_object = enable_service_request_object
|
|
434
505
|
command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation
|
|
435
506
|
command.response_class = Google::Apis::ServicemanagementV1::Operation
|
|
436
507
|
command.params['serviceName'] = service_name unless service_name.nil?
|
|
437
|
-
command.query['fields'] = fields unless fields.nil?
|
|
438
508
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
509
|
+
command.query['fields'] = fields unless fields.nil?
|
|
439
510
|
execute_or_queue_command(command, &block)
|
|
440
511
|
end
|
|
441
512
|
|
|
@@ -445,11 +516,11 @@ module Google
|
|
|
445
516
|
# REQUIRED: The resource for which the policy is being specified.
|
|
446
517
|
# See the operation documentation for the appropriate value for this field.
|
|
447
518
|
# @param [Google::Apis::ServicemanagementV1::SetIamPolicyRequest] set_iam_policy_request_object
|
|
448
|
-
# @param [String] fields
|
|
449
|
-
# Selector specifying which fields to include in a partial response.
|
|
450
519
|
# @param [String] quota_user
|
|
451
520
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
452
521
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
522
|
+
# @param [String] fields
|
|
523
|
+
# Selector specifying which fields to include in a partial response.
|
|
453
524
|
# @param [Google::Apis::RequestOptions] options
|
|
454
525
|
# Request-specific options
|
|
455
526
|
#
|
|
@@ -462,15 +533,15 @@ module Google
|
|
|
462
533
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
463
534
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
464
535
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
465
|
-
def set_service_iam_policy(resource, set_iam_policy_request_object = nil,
|
|
536
|
+
def set_service_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
466
537
|
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
|
467
538
|
command.request_representation = Google::Apis::ServicemanagementV1::SetIamPolicyRequest::Representation
|
|
468
539
|
command.request_object = set_iam_policy_request_object
|
|
469
540
|
command.response_representation = Google::Apis::ServicemanagementV1::Policy::Representation
|
|
470
541
|
command.response_class = Google::Apis::ServicemanagementV1::Policy
|
|
471
542
|
command.params['resource'] = resource unless resource.nil?
|
|
472
|
-
command.query['fields'] = fields unless fields.nil?
|
|
473
543
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
544
|
+
command.query['fields'] = fields unless fields.nil?
|
|
474
545
|
execute_or_queue_command(command, &block)
|
|
475
546
|
end
|
|
476
547
|
|
|
@@ -482,11 +553,11 @@ module Google
|
|
|
482
553
|
# Name of the service to disable. Specifying an unknown service name
|
|
483
554
|
# will cause the request to fail.
|
|
484
555
|
# @param [Google::Apis::ServicemanagementV1::DisableServiceRequest] disable_service_request_object
|
|
485
|
-
# @param [String] fields
|
|
486
|
-
# Selector specifying which fields to include in a partial response.
|
|
487
556
|
# @param [String] quota_user
|
|
488
557
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
489
558
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
559
|
+
# @param [String] fields
|
|
560
|
+
# Selector specifying which fields to include in a partial response.
|
|
490
561
|
# @param [Google::Apis::RequestOptions] options
|
|
491
562
|
# Request-specific options
|
|
492
563
|
#
|
|
@@ -499,86 +570,54 @@ module Google
|
|
|
499
570
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
500
571
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
501
572
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
502
|
-
def disable_service(service_name, disable_service_request_object = nil,
|
|
573
|
+
def disable_service(service_name, disable_service_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
503
574
|
command = make_simple_command(:post, 'v1/services/{serviceName}:disable', options)
|
|
504
575
|
command.request_representation = Google::Apis::ServicemanagementV1::DisableServiceRequest::Representation
|
|
505
576
|
command.request_object = disable_service_request_object
|
|
506
577
|
command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation
|
|
507
578
|
command.response_class = Google::Apis::ServicemanagementV1::Operation
|
|
508
579
|
command.params['serviceName'] = service_name unless service_name.nil?
|
|
509
|
-
command.query['fields'] = fields unless fields.nil?
|
|
510
580
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
581
|
+
command.query['fields'] = fields unless fields.nil?
|
|
511
582
|
execute_or_queue_command(command, &block)
|
|
512
583
|
end
|
|
513
584
|
|
|
514
|
-
#
|
|
515
|
-
#
|
|
516
|
-
#
|
|
585
|
+
# Returns permissions that a caller has on the specified resource.
|
|
586
|
+
# If the resource does not exist, this will return an empty set of
|
|
587
|
+
# permissions, not a NOT_FOUND error.
|
|
588
|
+
# Note: This operation is designed to be used for building permission-aware
|
|
589
|
+
# UIs and command-line tools, not for authorization checking. This operation
|
|
590
|
+
# may "fail open" without warning.
|
|
517
591
|
# @param [String] resource
|
|
518
|
-
# REQUIRED: The resource for which the policy is being requested.
|
|
592
|
+
# REQUIRED: The resource for which the policy detail is being requested.
|
|
519
593
|
# See the operation documentation for the appropriate value for this field.
|
|
520
|
-
# @param [Google::Apis::ServicemanagementV1::
|
|
521
|
-
# @param [String] fields
|
|
522
|
-
# Selector specifying which fields to include in a partial response.
|
|
594
|
+
# @param [Google::Apis::ServicemanagementV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
|
523
595
|
# @param [String] quota_user
|
|
524
596
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
525
597
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
526
|
-
# @param [Google::Apis::RequestOptions] options
|
|
527
|
-
# Request-specific options
|
|
528
|
-
#
|
|
529
|
-
# @yield [result, err] Result & error if block supplied
|
|
530
|
-
# @yieldparam result [Google::Apis::ServicemanagementV1::Policy] parsed result object
|
|
531
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
532
|
-
#
|
|
533
|
-
# @return [Google::Apis::ServicemanagementV1::Policy]
|
|
534
|
-
#
|
|
535
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
536
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
537
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
538
|
-
def get_service_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
539
|
-
command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
|
|
540
|
-
command.request_representation = Google::Apis::ServicemanagementV1::GetIamPolicyRequest::Representation
|
|
541
|
-
command.request_object = get_iam_policy_request_object
|
|
542
|
-
command.response_representation = Google::Apis::ServicemanagementV1::Policy::Representation
|
|
543
|
-
command.response_class = Google::Apis::ServicemanagementV1::Policy
|
|
544
|
-
command.params['resource'] = resource unless resource.nil?
|
|
545
|
-
command.query['fields'] = fields unless fields.nil?
|
|
546
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
547
|
-
execute_or_queue_command(command, &block)
|
|
548
|
-
end
|
|
549
|
-
|
|
550
|
-
# Revives a previously deleted managed service. The method restores the
|
|
551
|
-
# service using the configuration at the time the service was deleted.
|
|
552
|
-
# The target service must exist and must have been deleted within the
|
|
553
|
-
# last 30 days.
|
|
554
|
-
# Operation<response: UndeleteServiceResponse>
|
|
555
|
-
# @param [String] service_name
|
|
556
|
-
# The name of the service. See the [overview](/service-management/overview)
|
|
557
|
-
# for naming requirements. For example: `example.googleapis.com`.
|
|
558
598
|
# @param [String] fields
|
|
559
599
|
# Selector specifying which fields to include in a partial response.
|
|
560
|
-
# @param [String] quota_user
|
|
561
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
562
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
563
600
|
# @param [Google::Apis::RequestOptions] options
|
|
564
601
|
# Request-specific options
|
|
565
602
|
#
|
|
566
603
|
# @yield [result, err] Result & error if block supplied
|
|
567
|
-
# @yieldparam result [Google::Apis::ServicemanagementV1::
|
|
604
|
+
# @yieldparam result [Google::Apis::ServicemanagementV1::TestIamPermissionsResponse] parsed result object
|
|
568
605
|
# @yieldparam err [StandardError] error object if request failed
|
|
569
606
|
#
|
|
570
|
-
# @return [Google::Apis::ServicemanagementV1::
|
|
607
|
+
# @return [Google::Apis::ServicemanagementV1::TestIamPermissionsResponse]
|
|
571
608
|
#
|
|
572
609
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
573
610
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
574
611
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
575
|
-
def
|
|
576
|
-
command = make_simple_command(:post, 'v1/
|
|
577
|
-
command.
|
|
578
|
-
command.
|
|
579
|
-
command.
|
|
580
|
-
command.
|
|
612
|
+
def test_consumer_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
613
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
|
614
|
+
command.request_representation = Google::Apis::ServicemanagementV1::TestIamPermissionsRequest::Representation
|
|
615
|
+
command.request_object = test_iam_permissions_request_object
|
|
616
|
+
command.response_representation = Google::Apis::ServicemanagementV1::TestIamPermissionsResponse::Representation
|
|
617
|
+
command.response_class = Google::Apis::ServicemanagementV1::TestIamPermissionsResponse
|
|
618
|
+
command.params['resource'] = resource unless resource.nil?
|
|
581
619
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
620
|
+
command.query['fields'] = fields unless fields.nil?
|
|
582
621
|
execute_or_queue_command(command, &block)
|
|
583
622
|
end
|
|
584
623
|
|
|
@@ -589,11 +628,11 @@ module Google
|
|
|
589
628
|
# REQUIRED: The resource for which the policy is being requested.
|
|
590
629
|
# See the operation documentation for the appropriate value for this field.
|
|
591
630
|
# @param [Google::Apis::ServicemanagementV1::GetIamPolicyRequest] get_iam_policy_request_object
|
|
592
|
-
# @param [String] fields
|
|
593
|
-
# Selector specifying which fields to include in a partial response.
|
|
594
631
|
# @param [String] quota_user
|
|
595
632
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
596
633
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
634
|
+
# @param [String] fields
|
|
635
|
+
# Selector specifying which fields to include in a partial response.
|
|
597
636
|
# @param [Google::Apis::RequestOptions] options
|
|
598
637
|
# Request-specific options
|
|
599
638
|
#
|
|
@@ -606,15 +645,15 @@ module Google
|
|
|
606
645
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
607
646
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
608
647
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
609
|
-
def get_consumer_iam_policy(resource, get_iam_policy_request_object = nil,
|
|
648
|
+
def get_consumer_iam_policy(resource, get_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
610
649
|
command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
|
|
611
650
|
command.request_representation = Google::Apis::ServicemanagementV1::GetIamPolicyRequest::Representation
|
|
612
651
|
command.request_object = get_iam_policy_request_object
|
|
613
652
|
command.response_representation = Google::Apis::ServicemanagementV1::Policy::Representation
|
|
614
653
|
command.response_class = Google::Apis::ServicemanagementV1::Policy
|
|
615
654
|
command.params['resource'] = resource unless resource.nil?
|
|
616
|
-
command.query['fields'] = fields unless fields.nil?
|
|
617
655
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
656
|
+
command.query['fields'] = fields unless fields.nil?
|
|
618
657
|
execute_or_queue_command(command, &block)
|
|
619
658
|
end
|
|
620
659
|
|
|
@@ -624,11 +663,11 @@ module Google
|
|
|
624
663
|
# REQUIRED: The resource for which the policy is being specified.
|
|
625
664
|
# See the operation documentation for the appropriate value for this field.
|
|
626
665
|
# @param [Google::Apis::ServicemanagementV1::SetIamPolicyRequest] set_iam_policy_request_object
|
|
627
|
-
# @param [String] fields
|
|
628
|
-
# Selector specifying which fields to include in a partial response.
|
|
629
666
|
# @param [String] quota_user
|
|
630
667
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
631
668
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
669
|
+
# @param [String] fields
|
|
670
|
+
# Selector specifying which fields to include in a partial response.
|
|
632
671
|
# @param [Google::Apis::RequestOptions] options
|
|
633
672
|
# Request-specific options
|
|
634
673
|
#
|
|
@@ -641,54 +680,49 @@ module Google
|
|
|
641
680
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
642
681
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
643
682
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
644
|
-
def set_consumer_iam_policy(resource, set_iam_policy_request_object = nil,
|
|
683
|
+
def set_consumer_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
645
684
|
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
|
646
685
|
command.request_representation = Google::Apis::ServicemanagementV1::SetIamPolicyRequest::Representation
|
|
647
686
|
command.request_object = set_iam_policy_request_object
|
|
648
687
|
command.response_representation = Google::Apis::ServicemanagementV1::Policy::Representation
|
|
649
688
|
command.response_class = Google::Apis::ServicemanagementV1::Policy
|
|
650
689
|
command.params['resource'] = resource unless resource.nil?
|
|
651
|
-
command.query['fields'] = fields unless fields.nil?
|
|
652
690
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
691
|
+
command.query['fields'] = fields unless fields.nil?
|
|
653
692
|
execute_or_queue_command(command, &block)
|
|
654
693
|
end
|
|
655
694
|
|
|
656
|
-
#
|
|
657
|
-
#
|
|
658
|
-
#
|
|
659
|
-
#
|
|
660
|
-
#
|
|
661
|
-
#
|
|
662
|
-
# @param [String] resource
|
|
663
|
-
# REQUIRED: The resource for which the policy detail is being requested.
|
|
664
|
-
# See the operation documentation for the appropriate value for this field.
|
|
665
|
-
# @param [Google::Apis::ServicemanagementV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
|
666
|
-
# @param [String] fields
|
|
667
|
-
# Selector specifying which fields to include in a partial response.
|
|
695
|
+
# Gets a service configuration rollout.
|
|
696
|
+
# @param [String] service_name
|
|
697
|
+
# The name of the service. See the [overview](/service-management/overview)
|
|
698
|
+
# for naming requirements. For example: `example.googleapis.com`.
|
|
699
|
+
# @param [String] rollout_id
|
|
700
|
+
# The id of the rollout resource.
|
|
668
701
|
# @param [String] quota_user
|
|
669
702
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
670
703
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
704
|
+
# @param [String] fields
|
|
705
|
+
# Selector specifying which fields to include in a partial response.
|
|
671
706
|
# @param [Google::Apis::RequestOptions] options
|
|
672
707
|
# Request-specific options
|
|
673
708
|
#
|
|
674
709
|
# @yield [result, err] Result & error if block supplied
|
|
675
|
-
# @yieldparam result [Google::Apis::ServicemanagementV1::
|
|
710
|
+
# @yieldparam result [Google::Apis::ServicemanagementV1::Rollout] parsed result object
|
|
676
711
|
# @yieldparam err [StandardError] error object if request failed
|
|
677
712
|
#
|
|
678
|
-
# @return [Google::Apis::ServicemanagementV1::
|
|
713
|
+
# @return [Google::Apis::ServicemanagementV1::Rollout]
|
|
679
714
|
#
|
|
680
715
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
681
716
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
682
717
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
683
|
-
def
|
|
684
|
-
command = make_simple_command(:
|
|
685
|
-
command.
|
|
686
|
-
command.
|
|
687
|
-
command.
|
|
688
|
-
command.
|
|
689
|
-
command.params['resource'] = resource unless resource.nil?
|
|
690
|
-
command.query['fields'] = fields unless fields.nil?
|
|
718
|
+
def get_service_rollout(service_name, rollout_id, quota_user: nil, fields: nil, options: nil, &block)
|
|
719
|
+
command = make_simple_command(:get, 'v1/services/{serviceName}/rollouts/{rolloutId}', options)
|
|
720
|
+
command.response_representation = Google::Apis::ServicemanagementV1::Rollout::Representation
|
|
721
|
+
command.response_class = Google::Apis::ServicemanagementV1::Rollout
|
|
722
|
+
command.params['serviceName'] = service_name unless service_name.nil?
|
|
723
|
+
command.params['rolloutId'] = rollout_id unless rollout_id.nil?
|
|
691
724
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
725
|
+
command.query['fields'] = fields unless fields.nil?
|
|
692
726
|
execute_or_queue_command(command, &block)
|
|
693
727
|
end
|
|
694
728
|
|
|
@@ -697,8 +731,6 @@ module Google
|
|
|
697
731
|
# @param [String] service_name
|
|
698
732
|
# The name of the service. See the [overview](/service-management/overview)
|
|
699
733
|
# for naming requirements. For example: `example.googleapis.com`.
|
|
700
|
-
# @param [Fixnum] page_size
|
|
701
|
-
# The max number of items to include in the response list.
|
|
702
734
|
# @param [String] filter
|
|
703
735
|
# Use `filter` to return subset of rollouts.
|
|
704
736
|
# The following filters are supported:
|
|
@@ -710,11 +742,13 @@ module Google
|
|
|
710
742
|
# or 'FAILED', use filter='status=CANCELLED OR status=FAILED'
|
|
711
743
|
# @param [String] page_token
|
|
712
744
|
# The token of the page to retrieve.
|
|
713
|
-
# @param [
|
|
714
|
-
#
|
|
745
|
+
# @param [Fixnum] page_size
|
|
746
|
+
# The max number of items to include in the response list.
|
|
715
747
|
# @param [String] quota_user
|
|
716
748
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
717
749
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
750
|
+
# @param [String] fields
|
|
751
|
+
# Selector specifying which fields to include in a partial response.
|
|
718
752
|
# @param [Google::Apis::RequestOptions] options
|
|
719
753
|
# Request-specific options
|
|
720
754
|
#
|
|
@@ -727,50 +761,16 @@ module Google
|
|
|
727
761
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
728
762
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
729
763
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
730
|
-
def list_service_rollouts(service_name,
|
|
764
|
+
def list_service_rollouts(service_name, filter: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
731
765
|
command = make_simple_command(:get, 'v1/services/{serviceName}/rollouts', options)
|
|
732
766
|
command.response_representation = Google::Apis::ServicemanagementV1::ListServiceRolloutsResponse::Representation
|
|
733
767
|
command.response_class = Google::Apis::ServicemanagementV1::ListServiceRolloutsResponse
|
|
734
768
|
command.params['serviceName'] = service_name unless service_name.nil?
|
|
735
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
|
736
769
|
command.query['filter'] = filter unless filter.nil?
|
|
737
770
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
738
|
-
command.query['
|
|
771
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
739
772
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
740
|
-
execute_or_queue_command(command, &block)
|
|
741
|
-
end
|
|
742
|
-
|
|
743
|
-
# Gets a service configuration rollout.
|
|
744
|
-
# @param [String] service_name
|
|
745
|
-
# The name of the service. See the [overview](/service-management/overview)
|
|
746
|
-
# for naming requirements. For example: `example.googleapis.com`.
|
|
747
|
-
# @param [String] rollout_id
|
|
748
|
-
# The id of the rollout resource.
|
|
749
|
-
# @param [String] fields
|
|
750
|
-
# Selector specifying which fields to include in a partial response.
|
|
751
|
-
# @param [String] quota_user
|
|
752
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
753
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
754
|
-
# @param [Google::Apis::RequestOptions] options
|
|
755
|
-
# Request-specific options
|
|
756
|
-
#
|
|
757
|
-
# @yield [result, err] Result & error if block supplied
|
|
758
|
-
# @yieldparam result [Google::Apis::ServicemanagementV1::Rollout] parsed result object
|
|
759
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
760
|
-
#
|
|
761
|
-
# @return [Google::Apis::ServicemanagementV1::Rollout]
|
|
762
|
-
#
|
|
763
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
764
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
765
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
766
|
-
def get_service_rollout(service_name, rollout_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
767
|
-
command = make_simple_command(:get, 'v1/services/{serviceName}/rollouts/{rolloutId}', options)
|
|
768
|
-
command.response_representation = Google::Apis::ServicemanagementV1::Rollout::Representation
|
|
769
|
-
command.response_class = Google::Apis::ServicemanagementV1::Rollout
|
|
770
|
-
command.params['serviceName'] = service_name unless service_name.nil?
|
|
771
|
-
command.params['rolloutId'] = rollout_id unless rollout_id.nil?
|
|
772
773
|
command.query['fields'] = fields unless fields.nil?
|
|
773
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
774
774
|
execute_or_queue_command(command, &block)
|
|
775
775
|
end
|
|
776
776
|
|
|
@@ -786,11 +786,11 @@ module Google
|
|
|
786
786
|
# The name of the service. See the [overview](/service-management/overview)
|
|
787
787
|
# for naming requirements. For example: `example.googleapis.com`.
|
|
788
788
|
# @param [Google::Apis::ServicemanagementV1::Rollout] rollout_object
|
|
789
|
-
# @param [String] fields
|
|
790
|
-
# Selector specifying which fields to include in a partial response.
|
|
791
789
|
# @param [String] quota_user
|
|
792
790
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
793
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
794
|
# @param [Google::Apis::RequestOptions] options
|
|
795
795
|
# Request-specific options
|
|
796
796
|
#
|
|
@@ -803,91 +803,91 @@ module Google
|
|
|
803
803
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
804
804
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
805
805
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
806
|
-
def create_service_rollout(service_name, rollout_object = nil,
|
|
806
|
+
def create_service_rollout(service_name, rollout_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
807
807
|
command = make_simple_command(:post, 'v1/services/{serviceName}/rollouts', options)
|
|
808
808
|
command.request_representation = Google::Apis::ServicemanagementV1::Rollout::Representation
|
|
809
809
|
command.request_object = rollout_object
|
|
810
810
|
command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation
|
|
811
811
|
command.response_class = Google::Apis::ServicemanagementV1::Operation
|
|
812
812
|
command.params['serviceName'] = service_name unless service_name.nil?
|
|
813
|
-
command.query['fields'] = fields unless fields.nil?
|
|
814
813
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
814
|
+
command.query['fields'] = fields unless fields.nil?
|
|
815
815
|
execute_or_queue_command(command, &block)
|
|
816
816
|
end
|
|
817
817
|
|
|
818
|
-
#
|
|
819
|
-
# from the newest to the oldest.
|
|
818
|
+
# Gets a service configuration (version) for a managed service.
|
|
820
819
|
# @param [String] service_name
|
|
821
820
|
# The name of the service. See the [overview](/service-management/overview)
|
|
822
821
|
# for naming requirements. For example: `example.googleapis.com`.
|
|
823
|
-
# @param [String]
|
|
824
|
-
# The
|
|
825
|
-
# @param [
|
|
826
|
-
#
|
|
827
|
-
#
|
|
828
|
-
# Selector specifying which fields to include in a partial response.
|
|
822
|
+
# @param [String] config_id
|
|
823
|
+
# The id of the service configuration resource.
|
|
824
|
+
# @param [String] view
|
|
825
|
+
# Specifies which parts of the Service Config should be returned in the
|
|
826
|
+
# response.
|
|
829
827
|
# @param [String] quota_user
|
|
830
828
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
831
829
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
830
|
+
# @param [String] fields
|
|
831
|
+
# Selector specifying which fields to include in a partial response.
|
|
832
832
|
# @param [Google::Apis::RequestOptions] options
|
|
833
833
|
# Request-specific options
|
|
834
834
|
#
|
|
835
835
|
# @yield [result, err] Result & error if block supplied
|
|
836
|
-
# @yieldparam result [Google::Apis::ServicemanagementV1::
|
|
836
|
+
# @yieldparam result [Google::Apis::ServicemanagementV1::Service] parsed result object
|
|
837
837
|
# @yieldparam err [StandardError] error object if request failed
|
|
838
838
|
#
|
|
839
|
-
# @return [Google::Apis::ServicemanagementV1::
|
|
839
|
+
# @return [Google::Apis::ServicemanagementV1::Service]
|
|
840
840
|
#
|
|
841
841
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
842
842
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
843
843
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
844
|
-
def
|
|
845
|
-
command = make_simple_command(:get, 'v1/services/{serviceName}/configs', options)
|
|
846
|
-
command.response_representation = Google::Apis::ServicemanagementV1::
|
|
847
|
-
command.response_class = Google::Apis::ServicemanagementV1::
|
|
844
|
+
def get_service_config(service_name, config_id, view: nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
845
|
+
command = make_simple_command(:get, 'v1/services/{serviceName}/configs/{configId}', options)
|
|
846
|
+
command.response_representation = Google::Apis::ServicemanagementV1::Service::Representation
|
|
847
|
+
command.response_class = Google::Apis::ServicemanagementV1::Service
|
|
848
848
|
command.params['serviceName'] = service_name unless service_name.nil?
|
|
849
|
-
command.
|
|
850
|
-
command.query['
|
|
851
|
-
command.query['fields'] = fields unless fields.nil?
|
|
849
|
+
command.params['configId'] = config_id unless config_id.nil?
|
|
850
|
+
command.query['view'] = view unless view.nil?
|
|
852
851
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
852
|
+
command.query['fields'] = fields unless fields.nil?
|
|
853
853
|
execute_or_queue_command(command, &block)
|
|
854
854
|
end
|
|
855
855
|
|
|
856
|
-
#
|
|
856
|
+
# Lists the history of the service configuration for a managed service,
|
|
857
|
+
# from the newest to the oldest.
|
|
857
858
|
# @param [String] service_name
|
|
858
859
|
# The name of the service. See the [overview](/service-management/overview)
|
|
859
860
|
# for naming requirements. For example: `example.googleapis.com`.
|
|
860
|
-
# @param [String]
|
|
861
|
-
# The
|
|
862
|
-
# @param [
|
|
863
|
-
#
|
|
864
|
-
# response.
|
|
865
|
-
# @param [String] fields
|
|
866
|
-
# Selector specifying which fields to include in a partial response.
|
|
861
|
+
# @param [String] page_token
|
|
862
|
+
# The token of the page to retrieve.
|
|
863
|
+
# @param [Fixnum] page_size
|
|
864
|
+
# The max number of items to include in the response list.
|
|
867
865
|
# @param [String] quota_user
|
|
868
866
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
869
867
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
868
|
+
# @param [String] fields
|
|
869
|
+
# Selector specifying which fields to include in a partial response.
|
|
870
870
|
# @param [Google::Apis::RequestOptions] options
|
|
871
871
|
# Request-specific options
|
|
872
872
|
#
|
|
873
873
|
# @yield [result, err] Result & error if block supplied
|
|
874
|
-
# @yieldparam result [Google::Apis::ServicemanagementV1::
|
|
874
|
+
# @yieldparam result [Google::Apis::ServicemanagementV1::ListServiceConfigsResponse] parsed result object
|
|
875
875
|
# @yieldparam err [StandardError] error object if request failed
|
|
876
876
|
#
|
|
877
|
-
# @return [Google::Apis::ServicemanagementV1::
|
|
877
|
+
# @return [Google::Apis::ServicemanagementV1::ListServiceConfigsResponse]
|
|
878
878
|
#
|
|
879
879
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
880
880
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
881
881
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
882
|
-
def
|
|
883
|
-
command = make_simple_command(:get, 'v1/services/{serviceName}/configs
|
|
884
|
-
command.response_representation = Google::Apis::ServicemanagementV1::
|
|
885
|
-
command.response_class = Google::Apis::ServicemanagementV1::
|
|
882
|
+
def list_service_configs(service_name, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
883
|
+
command = make_simple_command(:get, 'v1/services/{serviceName}/configs', options)
|
|
884
|
+
command.response_representation = Google::Apis::ServicemanagementV1::ListServiceConfigsResponse::Representation
|
|
885
|
+
command.response_class = Google::Apis::ServicemanagementV1::ListServiceConfigsResponse
|
|
886
886
|
command.params['serviceName'] = service_name unless service_name.nil?
|
|
887
|
-
command.
|
|
888
|
-
command.query['
|
|
889
|
-
command.query['fields'] = fields unless fields.nil?
|
|
887
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
888
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
890
889
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
890
|
+
command.query['fields'] = fields unless fields.nil?
|
|
891
891
|
execute_or_queue_command(command, &block)
|
|
892
892
|
end
|
|
893
893
|
|
|
@@ -899,11 +899,11 @@ module Google
|
|
|
899
899
|
# The name of the service. See the [overview](/service-management/overview)
|
|
900
900
|
# for naming requirements. For example: `example.googleapis.com`.
|
|
901
901
|
# @param [Google::Apis::ServicemanagementV1::Service] service_object
|
|
902
|
-
# @param [String] fields
|
|
903
|
-
# Selector specifying which fields to include in a partial response.
|
|
904
902
|
# @param [String] quota_user
|
|
905
903
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
906
904
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
905
|
+
# @param [String] fields
|
|
906
|
+
# Selector specifying which fields to include in a partial response.
|
|
907
907
|
# @param [Google::Apis::RequestOptions] options
|
|
908
908
|
# Request-specific options
|
|
909
909
|
#
|
|
@@ -916,15 +916,15 @@ module Google
|
|
|
916
916
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
917
917
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
918
918
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
919
|
-
def create_service_config(service_name, service_object = nil,
|
|
919
|
+
def create_service_config(service_name, service_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
920
920
|
command = make_simple_command(:post, 'v1/services/{serviceName}/configs', options)
|
|
921
921
|
command.request_representation = Google::Apis::ServicemanagementV1::Service::Representation
|
|
922
922
|
command.request_object = service_object
|
|
923
923
|
command.response_representation = Google::Apis::ServicemanagementV1::Service::Representation
|
|
924
924
|
command.response_class = Google::Apis::ServicemanagementV1::Service
|
|
925
925
|
command.params['serviceName'] = service_name unless service_name.nil?
|
|
926
|
-
command.query['fields'] = fields unless fields.nil?
|
|
927
926
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
927
|
+
command.query['fields'] = fields unless fields.nil?
|
|
928
928
|
execute_or_queue_command(command, &block)
|
|
929
929
|
end
|
|
930
930
|
|
|
@@ -940,11 +940,11 @@ module Google
|
|
|
940
940
|
# The name of the service. See the [overview](/service-management/overview)
|
|
941
941
|
# for naming requirements. For example: `example.googleapis.com`.
|
|
942
942
|
# @param [Google::Apis::ServicemanagementV1::SubmitConfigSourceRequest] submit_config_source_request_object
|
|
943
|
-
# @param [String] fields
|
|
944
|
-
# Selector specifying which fields to include in a partial response.
|
|
945
943
|
# @param [String] quota_user
|
|
946
944
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
947
945
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
946
|
+
# @param [String] fields
|
|
947
|
+
# Selector specifying which fields to include in a partial response.
|
|
948
948
|
# @param [Google::Apis::RequestOptions] options
|
|
949
949
|
# Request-specific options
|
|
950
950
|
#
|
|
@@ -957,15 +957,15 @@ module Google
|
|
|
957
957
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
958
958
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
959
959
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
960
|
-
def submit_config_source(service_name, submit_config_source_request_object = nil,
|
|
960
|
+
def submit_config_source(service_name, submit_config_source_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
961
961
|
command = make_simple_command(:post, 'v1/services/{serviceName}/configs:submit', options)
|
|
962
962
|
command.request_representation = Google::Apis::ServicemanagementV1::SubmitConfigSourceRequest::Representation
|
|
963
963
|
command.request_object = submit_config_source_request_object
|
|
964
964
|
command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation
|
|
965
965
|
command.response_class = Google::Apis::ServicemanagementV1::Operation
|
|
966
966
|
command.params['serviceName'] = service_name unless service_name.nil?
|
|
967
|
-
command.query['fields'] = fields unless fields.nil?
|
|
968
967
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
968
|
+
command.query['fields'] = fields unless fields.nil?
|
|
969
969
|
execute_or_queue_command(command, &block)
|
|
970
970
|
end
|
|
971
971
|
|