google-api-client 0.11.2 → 0.11.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -1
- data/README.md +6 -0
- data/api_names.yaml +1 -0
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +38 -38
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +13 -13
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +10 -10
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +201 -201
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +46 -46
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +119 -119
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +52 -9
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +9 -0
- 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 +926 -926
- data/generated/google/apis/analyticsreporting_v4/representations.rb +149 -149
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +18 -11
- data/generated/google/apis/androidenterprise_v1/representations.rb +1 -0
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1/classes.rb +1487 -1487
- data/generated/google/apis/appengine_v1/representations.rb +229 -229
- data/generated/google/apis/appengine_v1/service.rb +188 -188
- 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 +15 -10
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/service.rb +10 -4
- data/generated/google/apis/classroom_v1.rb +26 -17
- data/generated/google/apis/classroom_v1/classes.rb +990 -990
- data/generated/google/apis/classroom_v1/representations.rb +239 -239
- data/generated/google/apis/classroom_v1/service.rb +853 -853
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +627 -627
- data/generated/google/apis/cloudbuild_v1/representations.rb +116 -116
- data/generated/google/apis/cloudbuild_v1/service.rb +162 -157
- data/generated/google/apis/clouddebugger_v2/classes.rb +258 -258
- data/generated/google/apis/clouddebugger_v2/representations.rb +80 -80
- data/generated/google/apis/clouddebugger_v2/service.rb +163 -163
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +3 -4
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +202 -167
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +53 -37
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +50 -51
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +628 -622
- data/generated/google/apis/cloudkms_v1/representations.rb +134 -133
- data/generated/google/apis/cloudkms_v1/service.rb +190 -190
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +835 -835
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +138 -138
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +474 -474
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +386 -386
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +75 -75
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +64 -64
- data/generated/google/apis/cloudtrace_v1.rb +4 -4
- data/generated/google/apis/cloudtrace_v1/classes.rb +114 -114
- data/generated/google/apis/cloudtrace_v1/representations.rb +23 -23
- data/generated/google/apis/cloudtrace_v1/service.rb +14 -14
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +66 -25
- data/generated/google/apis/compute_beta/representations.rb +16 -0
- data/generated/google/apis/compute_beta/service.rb +85 -3
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +375 -24
- data/generated/google/apis/compute_v1/representations.rb +155 -0
- data/generated/google/apis/compute_v1/service.rb +481 -3
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +301 -301
- data/generated/google/apis/container_v1/representations.rb +59 -59
- data/generated/google/apis/container_v1/service.rb +178 -178
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +37 -2
- data/generated/google/apis/content_v2/representations.rb +15 -0
- data/generated/google/apis/content_v2/service.rb +58 -3
- data/generated/google/apis/dataflow_v1b3.rb +4 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +3514 -3279
- data/generated/google/apis/dataflow_v1b3/representations.rb +530 -440
- data/generated/google/apis/dataflow_v1b3/service.rb +378 -137
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +446 -446
- data/generated/google/apis/dataproc_v1/representations.rb +96 -96
- data/generated/google/apis/dataproc_v1/service.rb +302 -302
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +370 -374
- data/generated/google/apis/datastore_v1/representations.rb +120 -120
- data/generated/google/apis/datastore_v1/service.rb +62 -62
- 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 +3 -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 +24 -21
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +24 -22
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +148 -149
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +42 -42
- data/generated/google/apis/firebaserules_v1/classes.rb +71 -71
- data/generated/google/apis/firebaserules_v1/representations.rb +22 -22
- data/generated/google/apis/firebaserules_v1/service.rb +68 -68
- 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 +1 -1
- data/generated/google/apis/genomics_v1/classes.rb +2348 -2348
- data/generated/google/apis/genomics_v1/representations.rb +430 -430
- data/generated/google/apis/genomics_v1/service.rb +1159 -1159
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/gmail_v1/service.rb +2 -2
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +305 -298
- data/generated/google/apis/iam_v1/representations.rb +97 -96
- data/generated/google/apis/iam_v1/service.rb +86 -86
- 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 +10 -10
- data/generated/google/apis/language_v1.rb +4 -4
- data/generated/google/apis/language_v1/classes.rb +452 -452
- data/generated/google/apis/language_v1/representations.rb +93 -93
- data/generated/google/apis/language_v1/service.rb +48 -48
- data/generated/google/apis/language_v1beta1.rb +4 -4
- data/generated/google/apis/language_v1beta1/classes.rb +84 -84
- data/generated/google/apis/language_v1beta1/representations.rb +22 -22
- data/generated/google/apis/language_v1beta1/service.rb +3 -3
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +884 -873
- data/generated/google/apis/logging_v2/representations.rb +167 -166
- data/generated/google/apis/logging_v2/service.rb +430 -430
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +550 -539
- data/generated/google/apis/logging_v2beta1/representations.rb +124 -123
- data/generated/google/apis/logging_v2beta1/service.rb +292 -292
- data/generated/google/apis/manufacturers_v1/classes.rb +322 -322
- data/generated/google/apis/manufacturers_v1/representations.rb +66 -66
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +501 -494
- data/generated/google/apis/ml_v1/representations.rb +92 -91
- data/generated/google/apis/ml_v1/service.rb +190 -190
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +878 -878
- data/generated/google/apis/monitoring_v3/representations.rb +176 -176
- data/generated/google/apis/monitoring_v3/service.rb +223 -262
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +1506 -1506
- data/generated/google/apis/partners_v2/representations.rb +370 -370
- data/generated/google/apis/partners_v2/service.rb +393 -393
- data/generated/google/apis/people_v1.rb +13 -13
- data/generated/google/apis/people_v1/classes.rb +597 -594
- data/generated/google/apis/people_v1/representations.rb +121 -121
- data/generated/google/apis/people_v1/service.rb +39 -48
- 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 +323 -327
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +100 -100
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +184 -184
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +178 -178
- data/generated/google/apis/pubsub_v1/representations.rb +55 -55
- data/generated/google/apis/pubsub_v1/service.rb +357 -357
- data/generated/google/apis/runtimeconfig_v1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1/classes.rb +20 -20
- data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
- data/generated/google/apis/runtimeconfig_v1/service.rb +12 -7
- data/generated/google/apis/script_v1.rb +16 -16
- data/generated/google/apis/script_v1/classes.rb +113 -113
- data/generated/google/apis/script_v1/representations.rb +28 -28
- data/generated/google/apis/script_v1/service.rb +4 -4
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +84 -84
- data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
- data/generated/google/apis/searchconsole_v1/service.rb +6 -6
- data/generated/google/apis/servicecontrol_v1.rb +4 -4
- data/generated/google/apis/servicecontrol_v1/classes.rb +1146 -1145
- data/generated/google/apis/servicecontrol_v1/representations.rb +203 -203
- data/generated/google/apis/servicecontrol_v1/service.rb +57 -57
- data/generated/google/apis/servicemanagement_v1.rb +4 -4
- data/generated/google/apis/servicemanagement_v1/classes.rb +3486 -3360
- data/generated/google/apis/servicemanagement_v1/representations.rb +342 -329
- data/generated/google/apis/servicemanagement_v1/service.rb +260 -250
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +2716 -2596
- data/generated/google/apis/serviceuser_v1/representations.rb +391 -379
- data/generated/google/apis/serviceuser_v1/service.rb +16 -16
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +4255 -4252
- data/generated/google/apis/sheets_v4/representations.rb +548 -548
- data/generated/google/apis/sheets_v4/service.rb +170 -170
- data/generated/google/apis/slides_v1.rb +4 -4
- data/generated/google/apis/slides_v1/classes.rb +2945 -2916
- data/generated/google/apis/slides_v1/representations.rb +700 -697
- data/generated/google/apis/slides_v1/service.rb +44 -44
- data/generated/google/apis/sourcerepo_v1.rb +2 -2
- data/generated/google/apis/sourcerepo_v1/classes.rb +419 -410
- data/generated/google/apis/sourcerepo_v1/representations.rb +88 -87
- data/generated/google/apis/sourcerepo_v1/service.rb +67 -58
- data/generated/google/apis/spanner_v1/classes.rb +2187 -2187
- data/generated/google/apis/spanner_v1/representations.rb +323 -323
- data/generated/google/apis/spanner_v1/service.rb +383 -383
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +226 -226
- data/generated/google/apis/speech_v1beta1/representations.rb +44 -44
- data/generated/google/apis/speech_v1beta1/service.rb +37 -32
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +10 -28
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -16
- data/generated/google/apis/sqladmin_v1beta4/service.rb +1 -1
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +26 -0
- data/generated/google/apis/storage_v1/representations.rb +15 -0
- data/generated/google/apis/storage_v1/service.rb +168 -42
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +218 -218
- data/generated/google/apis/storagetransfer_v1/representations.rb +47 -47
- data/generated/google/apis/storagetransfer_v1/service.rb +68 -68
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +7 -4
- data/generated/google/apis/toolresults_v1beta3/service.rb +9 -8
- data/generated/google/apis/translate_v2.rb +11 -4
- data/generated/google/apis/translate_v2/classes.rb +140 -37
- data/generated/google/apis/translate_v2/representations.rb +62 -15
- data/generated/google/apis/translate_v2/service.rb +119 -66
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1265 -1273
- data/generated/google/apis/vision_v1/representations.rb +202 -202
- data/generated/google/apis/vision_v1/service.rb +4 -4
- data/generated/google/apis/webmasters_v3.rb +1 -1
- 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 +2 -1
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +91 -91
- data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
- data/generated/google/apis/youtubereporting_v1/service.rb +94 -94
- data/lib/google/apis/core/api_command.rb +43 -10
- data/lib/google/apis/core/json_representation.rb +1 -1
- data/lib/google/apis/options.rb +6 -2
- data/lib/google/apis/version.rb +1 -1
- metadata +3 -3
@@ -50,13 +50,6 @@ module Google
|
|
50
50
|
end
|
51
51
|
|
52
52
|
# Lists service operations that match the specified filter in the request.
|
53
|
-
# @param [String] name
|
54
|
-
# Not used.
|
55
|
-
# @param [String] page_token
|
56
|
-
# The standard list page token.
|
57
|
-
# @param [Fixnum] page_size
|
58
|
-
# The maximum number of operations to return. If unspecified, defaults to
|
59
|
-
# 50. The maximum value is 100.
|
60
53
|
# @param [String] filter
|
61
54
|
# A string for filtering Operations.
|
62
55
|
# The following filter fields are supported:
|
@@ -75,11 +68,18 @@ module Google
|
|
75
68
|
# * `serviceName=`some-service`.googleapis.com AND status=done`
|
76
69
|
# * `serviceName=`some-service`.googleapis.com AND (status=done OR startTime>="
|
77
70
|
# 2017-02-01")`
|
78
|
-
# @param [String]
|
79
|
-
#
|
71
|
+
# @param [String] name
|
72
|
+
# Not used.
|
73
|
+
# @param [String] page_token
|
74
|
+
# The standard list page token.
|
75
|
+
# @param [Fixnum] page_size
|
76
|
+
# The maximum number of operations to return. If unspecified, defaults to
|
77
|
+
# 50. The maximum value is 100.
|
80
78
|
# @param [String] quota_user
|
81
79
|
# Available to use for quota purposes for server-side applications. Can be any
|
82
80
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
81
|
+
# @param [String] fields
|
82
|
+
# Selector specifying which fields to include in a partial response.
|
83
83
|
# @param [Google::Apis::RequestOptions] options
|
84
84
|
# Request-specific options
|
85
85
|
#
|
@@ -92,16 +92,16 @@ module Google
|
|
92
92
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
93
93
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
94
94
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
95
|
-
def list_operations(
|
95
|
+
def list_operations(filter: nil, name: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
|
96
96
|
command = make_simple_command(:get, 'v1/operations', options)
|
97
97
|
command.response_representation = Google::Apis::ServicemanagementV1::ListOperationsResponse::Representation
|
98
98
|
command.response_class = Google::Apis::ServicemanagementV1::ListOperationsResponse
|
99
|
+
command.query['filter'] = filter unless filter.nil?
|
99
100
|
command.query['name'] = name unless name.nil?
|
100
101
|
command.query['pageToken'] = page_token unless page_token.nil?
|
101
102
|
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
103
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
104
|
+
command.query['fields'] = fields unless fields.nil?
|
105
105
|
execute_or_queue_command(command, &block)
|
106
106
|
end
|
107
107
|
|
@@ -110,11 +110,11 @@ module Google
|
|
110
110
|
# service.
|
111
111
|
# @param [String] name
|
112
112
|
# The name of the operation resource.
|
113
|
-
# @param [String] fields
|
114
|
-
# Selector specifying which fields to include in a partial response.
|
115
113
|
# @param [String] quota_user
|
116
114
|
# Available to use for quota purposes for server-side applications. Can be any
|
117
115
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
116
|
+
# @param [String] fields
|
117
|
+
# Selector specifying which fields to include in a partial response.
|
118
118
|
# @param [Google::Apis::RequestOptions] options
|
119
119
|
# Request-specific options
|
120
120
|
#
|
@@ -127,123 +127,13 @@ module Google
|
|
127
127
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
128
128
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
129
129
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
130
|
-
def get_operation(name,
|
130
|
+
def get_operation(name, quota_user: nil, fields: nil, options: nil, &block)
|
131
131
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
132
132
|
command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation
|
133
133
|
command.response_class = Google::Apis::ServicemanagementV1::Operation
|
134
134
|
command.params['name'] = name unless name.nil?
|
135
|
-
command.query['fields'] = fields unless fields.nil?
|
136
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
137
|
-
execute_or_queue_command(command, &block)
|
138
|
-
end
|
139
|
-
|
140
|
-
# Generates and returns a report (errors, warnings and changes from
|
141
|
-
# existing configurations) associated with
|
142
|
-
# GenerateConfigReportRequest.new_value
|
143
|
-
# If GenerateConfigReportRequest.old_value is specified,
|
144
|
-
# GenerateConfigReportRequest will contain a single ChangeReport based on the
|
145
|
-
# comparison between GenerateConfigReportRequest.new_value and
|
146
|
-
# GenerateConfigReportRequest.old_value.
|
147
|
-
# If GenerateConfigReportRequest.old_value is not specified, this method
|
148
|
-
# will compare GenerateConfigReportRequest.new_value with the last pushed
|
149
|
-
# service configuration.
|
150
|
-
# @param [Google::Apis::ServicemanagementV1::GenerateConfigReportRequest] generate_config_report_request_object
|
151
|
-
# @param [String] fields
|
152
|
-
# Selector specifying which fields to include in a partial response.
|
153
|
-
# @param [String] quota_user
|
154
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
155
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
156
|
-
# @param [Google::Apis::RequestOptions] options
|
157
|
-
# Request-specific options
|
158
|
-
#
|
159
|
-
# @yield [result, err] Result & error if block supplied
|
160
|
-
# @yieldparam result [Google::Apis::ServicemanagementV1::GenerateConfigReportResponse] parsed result object
|
161
|
-
# @yieldparam err [StandardError] error object if request failed
|
162
|
-
#
|
163
|
-
# @return [Google::Apis::ServicemanagementV1::GenerateConfigReportResponse]
|
164
|
-
#
|
165
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
166
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
167
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
168
|
-
def generate_service_config_report(generate_config_report_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
169
|
-
command = make_simple_command(:post, 'v1/services:generateConfigReport', options)
|
170
|
-
command.request_representation = Google::Apis::ServicemanagementV1::GenerateConfigReportRequest::Representation
|
171
|
-
command.request_object = generate_config_report_request_object
|
172
|
-
command.response_representation = Google::Apis::ServicemanagementV1::GenerateConfigReportResponse::Representation
|
173
|
-
command.response_class = Google::Apis::ServicemanagementV1::GenerateConfigReportResponse
|
174
|
-
command.query['fields'] = fields unless fields.nil?
|
175
135
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
176
|
-
execute_or_queue_command(command, &block)
|
177
|
-
end
|
178
|
-
|
179
|
-
# Gets a managed service. Authentication is required unless the service is
|
180
|
-
# public.
|
181
|
-
# @param [String] service_name
|
182
|
-
# The name of the service. See the `ServiceManager` overview for naming
|
183
|
-
# requirements. For example: `example.googleapis.com`.
|
184
|
-
# @param [String] fields
|
185
|
-
# Selector specifying which fields to include in a partial response.
|
186
|
-
# @param [String] quota_user
|
187
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
188
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
189
|
-
# @param [Google::Apis::RequestOptions] options
|
190
|
-
# Request-specific options
|
191
|
-
#
|
192
|
-
# @yield [result, err] Result & error if block supplied
|
193
|
-
# @yieldparam result [Google::Apis::ServicemanagementV1::ManagedService] parsed result object
|
194
|
-
# @yieldparam err [StandardError] error object if request failed
|
195
|
-
#
|
196
|
-
# @return [Google::Apis::ServicemanagementV1::ManagedService]
|
197
|
-
#
|
198
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
199
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
200
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
201
|
-
def get_service(service_name, fields: nil, quota_user: nil, options: nil, &block)
|
202
|
-
command = make_simple_command(:get, 'v1/services/{serviceName}', options)
|
203
|
-
command.response_representation = Google::Apis::ServicemanagementV1::ManagedService::Representation
|
204
|
-
command.response_class = Google::Apis::ServicemanagementV1::ManagedService
|
205
|
-
command.params['serviceName'] = service_name unless service_name.nil?
|
206
136
|
command.query['fields'] = fields unless fields.nil?
|
207
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
208
|
-
execute_or_queue_command(command, &block)
|
209
|
-
end
|
210
|
-
|
211
|
-
# Returns permissions that a caller has on the specified resource.
|
212
|
-
# If the resource does not exist, this will return an empty set of
|
213
|
-
# permissions, not a NOT_FOUND error.
|
214
|
-
# Note: This operation is designed to be used for building permission-aware
|
215
|
-
# UIs and command-line tools, not for authorization checking. This operation
|
216
|
-
# may "fail open" without warning.
|
217
|
-
# @param [String] resource
|
218
|
-
# REQUIRED: The resource for which the policy detail is being requested.
|
219
|
-
# See the operation documentation for the appropriate value for this field.
|
220
|
-
# @param [Google::Apis::ServicemanagementV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
221
|
-
# @param [String] fields
|
222
|
-
# Selector specifying which fields to include in a partial response.
|
223
|
-
# @param [String] quota_user
|
224
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
225
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
226
|
-
# @param [Google::Apis::RequestOptions] options
|
227
|
-
# Request-specific options
|
228
|
-
#
|
229
|
-
# @yield [result, err] Result & error if block supplied
|
230
|
-
# @yieldparam result [Google::Apis::ServicemanagementV1::TestIamPermissionsResponse] parsed result object
|
231
|
-
# @yieldparam err [StandardError] error object if request failed
|
232
|
-
#
|
233
|
-
# @return [Google::Apis::ServicemanagementV1::TestIamPermissionsResponse]
|
234
|
-
#
|
235
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
236
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
237
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
238
|
-
def test_service_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
239
|
-
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
240
|
-
command.request_representation = Google::Apis::ServicemanagementV1::TestIamPermissionsRequest::Representation
|
241
|
-
command.request_object = test_iam_permissions_request_object
|
242
|
-
command.response_representation = Google::Apis::ServicemanagementV1::TestIamPermissionsResponse::Representation
|
243
|
-
command.response_class = Google::Apis::ServicemanagementV1::TestIamPermissionsResponse
|
244
|
-
command.params['resource'] = resource unless resource.nil?
|
245
|
-
command.query['fields'] = fields unless fields.nil?
|
246
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
247
137
|
execute_or_queue_command(command, &block)
|
248
138
|
end
|
249
139
|
|
@@ -256,11 +146,11 @@ module Google
|
|
256
146
|
# @param [String] view
|
257
147
|
# Specifies which parts of the Service Config should be returned in the
|
258
148
|
# response.
|
259
|
-
# @param [String] fields
|
260
|
-
# Selector specifying which fields to include in a partial response.
|
261
149
|
# @param [String] quota_user
|
262
150
|
# Available to use for quota purposes for server-side applications. Can be any
|
263
151
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
152
|
+
# @param [String] fields
|
153
|
+
# Selector specifying which fields to include in a partial response.
|
264
154
|
# @param [Google::Apis::RequestOptions] options
|
265
155
|
# Request-specific options
|
266
156
|
#
|
@@ -273,15 +163,15 @@ module Google
|
|
273
163
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
274
164
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
275
165
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
276
|
-
def get_service_configuration(service_name, config_id: nil, view: nil,
|
166
|
+
def get_service_configuration(service_name, config_id: nil, view: nil, quota_user: nil, fields: nil, options: nil, &block)
|
277
167
|
command = make_simple_command(:get, 'v1/services/{serviceName}/config', options)
|
278
168
|
command.response_representation = Google::Apis::ServicemanagementV1::Service::Representation
|
279
169
|
command.response_class = Google::Apis::ServicemanagementV1::Service
|
280
170
|
command.params['serviceName'] = service_name unless service_name.nil?
|
281
171
|
command.query['configId'] = config_id unless config_id.nil?
|
282
172
|
command.query['view'] = view unless view.nil?
|
283
|
-
command.query['fields'] = fields unless fields.nil?
|
284
173
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
174
|
+
command.query['fields'] = fields unless fields.nil?
|
285
175
|
execute_or_queue_command(command, &block)
|
286
176
|
end
|
287
177
|
|
@@ -293,11 +183,11 @@ module Google
|
|
293
183
|
# @param [String] service_name
|
294
184
|
# The name of the service. See the [overview](/service-management/overview)
|
295
185
|
# for naming requirements. For example: `example.googleapis.com`.
|
296
|
-
# @param [String] fields
|
297
|
-
# Selector specifying which fields to include in a partial response.
|
298
186
|
# @param [String] quota_user
|
299
187
|
# Available to use for quota purposes for server-side applications. Can be any
|
300
188
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
189
|
+
# @param [String] fields
|
190
|
+
# Selector specifying which fields to include in a partial response.
|
301
191
|
# @param [Google::Apis::RequestOptions] options
|
302
192
|
# Request-specific options
|
303
193
|
#
|
@@ -310,13 +200,13 @@ module Google
|
|
310
200
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
311
201
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
312
202
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
313
|
-
def delete_service(service_name,
|
203
|
+
def delete_service(service_name, quota_user: nil, fields: nil, options: nil, &block)
|
314
204
|
command = make_simple_command(:delete, 'v1/services/{serviceName}', options)
|
315
205
|
command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation
|
316
206
|
command.response_class = Google::Apis::ServicemanagementV1::Operation
|
317
207
|
command.params['serviceName'] = service_name unless service_name.nil?
|
318
|
-
command.query['fields'] = fields unless fields.nil?
|
319
208
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
209
|
+
command.query['fields'] = fields unless fields.nil?
|
320
210
|
execute_or_queue_command(command, &block)
|
321
211
|
end
|
322
212
|
|
@@ -329,11 +219,11 @@ module Google
|
|
329
219
|
# Name of the service to enable. Specifying an unknown service name will
|
330
220
|
# cause the request to fail.
|
331
221
|
# @param [Google::Apis::ServicemanagementV1::EnableServiceRequest] enable_service_request_object
|
332
|
-
# @param [String] fields
|
333
|
-
# Selector specifying which fields to include in a partial response.
|
334
222
|
# @param [String] quota_user
|
335
223
|
# Available to use for quota purposes for server-side applications. Can be any
|
336
224
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
225
|
+
# @param [String] fields
|
226
|
+
# Selector specifying which fields to include in a partial response.
|
337
227
|
# @param [Google::Apis::RequestOptions] options
|
338
228
|
# Request-specific options
|
339
229
|
#
|
@@ -346,15 +236,15 @@ module Google
|
|
346
236
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
347
237
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
348
238
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
349
|
-
def enable_service(service_name, enable_service_request_object = nil,
|
239
|
+
def enable_service(service_name, enable_service_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
350
240
|
command = make_simple_command(:post, 'v1/services/{serviceName}:enable', options)
|
351
241
|
command.request_representation = Google::Apis::ServicemanagementV1::EnableServiceRequest::Representation
|
352
242
|
command.request_object = enable_service_request_object
|
353
243
|
command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation
|
354
244
|
command.response_class = Google::Apis::ServicemanagementV1::Operation
|
355
245
|
command.params['serviceName'] = service_name unless service_name.nil?
|
356
|
-
command.query['fields'] = fields unless fields.nil?
|
357
246
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
247
|
+
command.query['fields'] = fields unless fields.nil?
|
358
248
|
execute_or_queue_command(command, &block)
|
359
249
|
end
|
360
250
|
|
@@ -364,11 +254,11 @@ module Google
|
|
364
254
|
# REQUIRED: The resource for which the policy is being specified.
|
365
255
|
# See the operation documentation for the appropriate value for this field.
|
366
256
|
# @param [Google::Apis::ServicemanagementV1::SetIamPolicyRequest] set_iam_policy_request_object
|
367
|
-
# @param [String] fields
|
368
|
-
# Selector specifying which fields to include in a partial response.
|
369
257
|
# @param [String] quota_user
|
370
258
|
# Available to use for quota purposes for server-side applications. Can be any
|
371
259
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
260
|
+
# @param [String] fields
|
261
|
+
# Selector specifying which fields to include in a partial response.
|
372
262
|
# @param [Google::Apis::RequestOptions] options
|
373
263
|
# Request-specific options
|
374
264
|
#
|
@@ -381,15 +271,15 @@ module Google
|
|
381
271
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
382
272
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
383
273
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
384
|
-
def set_service_iam_policy(resource, set_iam_policy_request_object = nil,
|
274
|
+
def set_service_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
385
275
|
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
386
276
|
command.request_representation = Google::Apis::ServicemanagementV1::SetIamPolicyRequest::Representation
|
387
277
|
command.request_object = set_iam_policy_request_object
|
388
278
|
command.response_representation = Google::Apis::ServicemanagementV1::Policy::Representation
|
389
279
|
command.response_class = Google::Apis::ServicemanagementV1::Policy
|
390
280
|
command.params['resource'] = resource unless resource.nil?
|
391
|
-
command.query['fields'] = fields unless fields.nil?
|
392
281
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
282
|
+
command.query['fields'] = fields unless fields.nil?
|
393
283
|
execute_or_queue_command(command, &block)
|
394
284
|
end
|
395
285
|
|
@@ -401,11 +291,11 @@ module Google
|
|
401
291
|
# Name of the service to disable. Specifying an unknown service name
|
402
292
|
# will cause the request to fail.
|
403
293
|
# @param [Google::Apis::ServicemanagementV1::DisableServiceRequest] disable_service_request_object
|
404
|
-
# @param [String] fields
|
405
|
-
# Selector specifying which fields to include in a partial response.
|
406
294
|
# @param [String] quota_user
|
407
295
|
# Available to use for quota purposes for server-side applications. Can be any
|
408
296
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
297
|
+
# @param [String] fields
|
298
|
+
# Selector specifying which fields to include in a partial response.
|
409
299
|
# @param [Google::Apis::RequestOptions] options
|
410
300
|
# Request-specific options
|
411
301
|
#
|
@@ -418,15 +308,15 @@ module Google
|
|
418
308
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
419
309
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
420
310
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
421
|
-
def disable_service(service_name, disable_service_request_object = nil,
|
311
|
+
def disable_service(service_name, disable_service_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
422
312
|
command = make_simple_command(:post, 'v1/services/{serviceName}:disable', options)
|
423
313
|
command.request_representation = Google::Apis::ServicemanagementV1::DisableServiceRequest::Representation
|
424
314
|
command.request_object = disable_service_request_object
|
425
315
|
command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation
|
426
316
|
command.response_class = Google::Apis::ServicemanagementV1::Operation
|
427
317
|
command.params['serviceName'] = service_name unless service_name.nil?
|
428
|
-
command.query['fields'] = fields unless fields.nil?
|
429
318
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
319
|
+
command.query['fields'] = fields unless fields.nil?
|
430
320
|
execute_or_queue_command(command, &block)
|
431
321
|
end
|
432
322
|
|
@@ -437,11 +327,11 @@ module Google
|
|
437
327
|
# REQUIRED: The resource for which the policy is being requested.
|
438
328
|
# See the operation documentation for the appropriate value for this field.
|
439
329
|
# @param [Google::Apis::ServicemanagementV1::GetIamPolicyRequest] get_iam_policy_request_object
|
440
|
-
# @param [String] fields
|
441
|
-
# Selector specifying which fields to include in a partial response.
|
442
330
|
# @param [String] quota_user
|
443
331
|
# Available to use for quota purposes for server-side applications. Can be any
|
444
332
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
333
|
+
# @param [String] fields
|
334
|
+
# Selector specifying which fields to include in a partial response.
|
445
335
|
# @param [Google::Apis::RequestOptions] options
|
446
336
|
# Request-specific options
|
447
337
|
#
|
@@ -454,15 +344,15 @@ module Google
|
|
454
344
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
455
345
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
456
346
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
457
|
-
def get_service_iam_policy(resource, get_iam_policy_request_object = nil,
|
347
|
+
def get_service_iam_policy(resource, get_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
458
348
|
command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
|
459
349
|
command.request_representation = Google::Apis::ServicemanagementV1::GetIamPolicyRequest::Representation
|
460
350
|
command.request_object = get_iam_policy_request_object
|
461
351
|
command.response_representation = Google::Apis::ServicemanagementV1::Policy::Representation
|
462
352
|
command.response_class = Google::Apis::ServicemanagementV1::Policy
|
463
353
|
command.params['resource'] = resource unless resource.nil?
|
464
|
-
command.query['fields'] = fields unless fields.nil?
|
465
354
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
355
|
+
command.query['fields'] = fields unless fields.nil?
|
466
356
|
execute_or_queue_command(command, &block)
|
467
357
|
end
|
468
358
|
|
@@ -474,11 +364,11 @@ module Google
|
|
474
364
|
# @param [String] service_name
|
475
365
|
# The name of the service. See the [overview](/service-management/overview)
|
476
366
|
# for naming requirements. For example: `example.googleapis.com`.
|
477
|
-
# @param [String] fields
|
478
|
-
# Selector specifying which fields to include in a partial response.
|
479
367
|
# @param [String] quota_user
|
480
368
|
# Available to use for quota purposes for server-side applications. Can be any
|
481
369
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
370
|
+
# @param [String] fields
|
371
|
+
# Selector specifying which fields to include in a partial response.
|
482
372
|
# @param [Google::Apis::RequestOptions] options
|
483
373
|
# Request-specific options
|
484
374
|
#
|
@@ -491,13 +381,13 @@ module Google
|
|
491
381
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
492
382
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
493
383
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
494
|
-
def undelete_service(service_name,
|
384
|
+
def undelete_service(service_name, quota_user: nil, fields: nil, options: nil, &block)
|
495
385
|
command = make_simple_command(:post, 'v1/services/{serviceName}:undelete', options)
|
496
386
|
command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation
|
497
387
|
command.response_class = Google::Apis::ServicemanagementV1::Operation
|
498
388
|
command.params['serviceName'] = service_name unless service_name.nil?
|
499
|
-
command.query['fields'] = fields unless fields.nil?
|
500
389
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
390
|
+
command.query['fields'] = fields unless fields.nil?
|
501
391
|
execute_or_queue_command(command, &block)
|
502
392
|
end
|
503
393
|
|
@@ -520,11 +410,11 @@ module Google
|
|
520
410
|
# Requested size of the next page of data.
|
521
411
|
# @param [String] producer_project_id
|
522
412
|
# Include services produced by the specified project.
|
523
|
-
# @param [String] fields
|
524
|
-
# Selector specifying which fields to include in a partial response.
|
525
413
|
# @param [String] quota_user
|
526
414
|
# Available to use for quota purposes for server-side applications. Can be any
|
527
415
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
416
|
+
# @param [String] fields
|
417
|
+
# Selector specifying which fields to include in a partial response.
|
528
418
|
# @param [Google::Apis::RequestOptions] options
|
529
419
|
# Request-specific options
|
530
420
|
#
|
@@ -537,7 +427,7 @@ module Google
|
|
537
427
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
538
428
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
539
429
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
540
|
-
def list_services(consumer_id: nil, page_token: nil, page_size: nil, producer_project_id: nil,
|
430
|
+
def list_services(consumer_id: nil, page_token: nil, page_size: nil, producer_project_id: nil, quota_user: nil, fields: nil, options: nil, &block)
|
541
431
|
command = make_simple_command(:get, 'v1/services', options)
|
542
432
|
command.response_representation = Google::Apis::ServicemanagementV1::ListServicesResponse::Representation
|
543
433
|
command.response_class = Google::Apis::ServicemanagementV1::ListServicesResponse
|
@@ -545,8 +435,8 @@ module Google
|
|
545
435
|
command.query['pageToken'] = page_token unless page_token.nil?
|
546
436
|
command.query['pageSize'] = page_size unless page_size.nil?
|
547
437
|
command.query['producerProjectId'] = producer_project_id unless producer_project_id.nil?
|
548
|
-
command.query['fields'] = fields unless fields.nil?
|
549
438
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
439
|
+
command.query['fields'] = fields unless fields.nil?
|
550
440
|
execute_or_queue_command(command, &block)
|
551
441
|
end
|
552
442
|
|
@@ -554,11 +444,11 @@ module Google
|
|
554
444
|
# Please note one producer project can own no more than 20 services.
|
555
445
|
# Operation<response: ManagedService>
|
556
446
|
# @param [Google::Apis::ServicemanagementV1::ManagedService] managed_service_object
|
557
|
-
# @param [String] fields
|
558
|
-
# Selector specifying which fields to include in a partial response.
|
559
447
|
# @param [String] quota_user
|
560
448
|
# Available to use for quota purposes for server-side applications. Can be any
|
561
449
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
450
|
+
# @param [String] fields
|
451
|
+
# Selector specifying which fields to include in a partial response.
|
562
452
|
# @param [Google::Apis::RequestOptions] options
|
563
453
|
# Request-specific options
|
564
454
|
#
|
@@ -571,14 +461,124 @@ module Google
|
|
571
461
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
572
462
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
573
463
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
574
|
-
def create_service(managed_service_object = nil,
|
464
|
+
def create_service(managed_service_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
575
465
|
command = make_simple_command(:post, 'v1/services', options)
|
576
466
|
command.request_representation = Google::Apis::ServicemanagementV1::ManagedService::Representation
|
577
467
|
command.request_object = managed_service_object
|
578
468
|
command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation
|
579
469
|
command.response_class = Google::Apis::ServicemanagementV1::Operation
|
470
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
471
|
+
command.query['fields'] = fields unless fields.nil?
|
472
|
+
execute_or_queue_command(command, &block)
|
473
|
+
end
|
474
|
+
|
475
|
+
# Generates and returns a report (errors, warnings and changes from
|
476
|
+
# existing configurations) associated with
|
477
|
+
# GenerateConfigReportRequest.new_value
|
478
|
+
# If GenerateConfigReportRequest.old_value is specified,
|
479
|
+
# GenerateConfigReportRequest will contain a single ChangeReport based on the
|
480
|
+
# comparison between GenerateConfigReportRequest.new_value and
|
481
|
+
# GenerateConfigReportRequest.old_value.
|
482
|
+
# If GenerateConfigReportRequest.old_value is not specified, this method
|
483
|
+
# will compare GenerateConfigReportRequest.new_value with the last pushed
|
484
|
+
# service configuration.
|
485
|
+
# @param [Google::Apis::ServicemanagementV1::GenerateConfigReportRequest] generate_config_report_request_object
|
486
|
+
# @param [String] quota_user
|
487
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
488
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
489
|
+
# @param [String] fields
|
490
|
+
# Selector specifying which fields to include in a partial response.
|
491
|
+
# @param [Google::Apis::RequestOptions] options
|
492
|
+
# Request-specific options
|
493
|
+
#
|
494
|
+
# @yield [result, err] Result & error if block supplied
|
495
|
+
# @yieldparam result [Google::Apis::ServicemanagementV1::GenerateConfigReportResponse] parsed result object
|
496
|
+
# @yieldparam err [StandardError] error object if request failed
|
497
|
+
#
|
498
|
+
# @return [Google::Apis::ServicemanagementV1::GenerateConfigReportResponse]
|
499
|
+
#
|
500
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
501
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
502
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
503
|
+
def generate_service_config_report(generate_config_report_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
504
|
+
command = make_simple_command(:post, 'v1/services:generateConfigReport', options)
|
505
|
+
command.request_representation = Google::Apis::ServicemanagementV1::GenerateConfigReportRequest::Representation
|
506
|
+
command.request_object = generate_config_report_request_object
|
507
|
+
command.response_representation = Google::Apis::ServicemanagementV1::GenerateConfigReportResponse::Representation
|
508
|
+
command.response_class = Google::Apis::ServicemanagementV1::GenerateConfigReportResponse
|
509
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
510
|
+
command.query['fields'] = fields unless fields.nil?
|
511
|
+
execute_or_queue_command(command, &block)
|
512
|
+
end
|
513
|
+
|
514
|
+
# Gets a managed service. Authentication is required unless the service is
|
515
|
+
# public.
|
516
|
+
# @param [String] service_name
|
517
|
+
# The name of the service. See the `ServiceManager` overview for naming
|
518
|
+
# requirements. For example: `example.googleapis.com`.
|
519
|
+
# @param [String] quota_user
|
520
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
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.
|
524
|
+
# @param [Google::Apis::RequestOptions] options
|
525
|
+
# Request-specific options
|
526
|
+
#
|
527
|
+
# @yield [result, err] Result & error if block supplied
|
528
|
+
# @yieldparam result [Google::Apis::ServicemanagementV1::ManagedService] parsed result object
|
529
|
+
# @yieldparam err [StandardError] error object if request failed
|
530
|
+
#
|
531
|
+
# @return [Google::Apis::ServicemanagementV1::ManagedService]
|
532
|
+
#
|
533
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
534
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
535
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
536
|
+
def get_service(service_name, quota_user: nil, fields: nil, options: nil, &block)
|
537
|
+
command = make_simple_command(:get, 'v1/services/{serviceName}', options)
|
538
|
+
command.response_representation = Google::Apis::ServicemanagementV1::ManagedService::Representation
|
539
|
+
command.response_class = Google::Apis::ServicemanagementV1::ManagedService
|
540
|
+
command.params['serviceName'] = service_name unless service_name.nil?
|
541
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
580
542
|
command.query['fields'] = fields unless fields.nil?
|
543
|
+
execute_or_queue_command(command, &block)
|
544
|
+
end
|
545
|
+
|
546
|
+
# Returns permissions that a caller has on the specified resource.
|
547
|
+
# If the resource does not exist, this will return an empty set of
|
548
|
+
# permissions, not a NOT_FOUND error.
|
549
|
+
# Note: This operation is designed to be used for building permission-aware
|
550
|
+
# UIs and command-line tools, not for authorization checking. This operation
|
551
|
+
# may "fail open" without warning.
|
552
|
+
# @param [String] resource
|
553
|
+
# REQUIRED: The resource for which the policy detail is being requested.
|
554
|
+
# See the operation documentation for the appropriate value for this field.
|
555
|
+
# @param [Google::Apis::ServicemanagementV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
556
|
+
# @param [String] quota_user
|
557
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
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.
|
561
|
+
# @param [Google::Apis::RequestOptions] options
|
562
|
+
# Request-specific options
|
563
|
+
#
|
564
|
+
# @yield [result, err] Result & error if block supplied
|
565
|
+
# @yieldparam result [Google::Apis::ServicemanagementV1::TestIamPermissionsResponse] parsed result object
|
566
|
+
# @yieldparam err [StandardError] error object if request failed
|
567
|
+
#
|
568
|
+
# @return [Google::Apis::ServicemanagementV1::TestIamPermissionsResponse]
|
569
|
+
#
|
570
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
571
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
572
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
573
|
+
def test_service_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
574
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
575
|
+
command.request_representation = Google::Apis::ServicemanagementV1::TestIamPermissionsRequest::Representation
|
576
|
+
command.request_object = test_iam_permissions_request_object
|
577
|
+
command.response_representation = Google::Apis::ServicemanagementV1::TestIamPermissionsResponse::Representation
|
578
|
+
command.response_class = Google::Apis::ServicemanagementV1::TestIamPermissionsResponse
|
579
|
+
command.params['resource'] = resource unless resource.nil?
|
581
580
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
581
|
+
command.query['fields'] = fields unless fields.nil?
|
582
582
|
execute_or_queue_command(command, &block)
|
583
583
|
end
|
584
584
|
|
@@ -591,11 +591,11 @@ module Google
|
|
591
591
|
# The token of the page to retrieve.
|
592
592
|
# @param [Fixnum] page_size
|
593
593
|
# The max number of items to include in the response list.
|
594
|
-
# @param [String] fields
|
595
|
-
# Selector specifying which fields to include in a partial response.
|
596
594
|
# @param [String] quota_user
|
597
595
|
# Available to use for quota purposes for server-side applications. Can be any
|
598
596
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
597
|
+
# @param [String] fields
|
598
|
+
# Selector specifying which fields to include in a partial response.
|
599
599
|
# @param [Google::Apis::RequestOptions] options
|
600
600
|
# Request-specific options
|
601
601
|
#
|
@@ -608,15 +608,15 @@ module Google
|
|
608
608
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
609
609
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
610
610
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
611
|
-
def list_service_configs(service_name, page_token: nil, page_size: nil,
|
611
|
+
def list_service_configs(service_name, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
|
612
612
|
command = make_simple_command(:get, 'v1/services/{serviceName}/configs', options)
|
613
613
|
command.response_representation = Google::Apis::ServicemanagementV1::ListServiceConfigsResponse::Representation
|
614
614
|
command.response_class = Google::Apis::ServicemanagementV1::ListServiceConfigsResponse
|
615
615
|
command.params['serviceName'] = service_name unless service_name.nil?
|
616
616
|
command.query['pageToken'] = page_token unless page_token.nil?
|
617
617
|
command.query['pageSize'] = page_size unless page_size.nil?
|
618
|
-
command.query['fields'] = fields unless fields.nil?
|
619
618
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
619
|
+
command.query['fields'] = fields unless fields.nil?
|
620
620
|
execute_or_queue_command(command, &block)
|
621
621
|
end
|
622
622
|
|
@@ -629,11 +629,11 @@ module Google
|
|
629
629
|
# @param [String] view
|
630
630
|
# Specifies which parts of the Service Config should be returned in the
|
631
631
|
# response.
|
632
|
-
# @param [String] fields
|
633
|
-
# Selector specifying which fields to include in a partial response.
|
634
632
|
# @param [String] quota_user
|
635
633
|
# Available to use for quota purposes for server-side applications. Can be any
|
636
634
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
635
|
+
# @param [String] fields
|
636
|
+
# Selector specifying which fields to include in a partial response.
|
637
637
|
# @param [Google::Apis::RequestOptions] options
|
638
638
|
# Request-specific options
|
639
639
|
#
|
@@ -646,15 +646,15 @@ module Google
|
|
646
646
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
647
647
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
648
648
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
649
|
-
def get_service_config(service_name, config_id, view: nil,
|
649
|
+
def get_service_config(service_name, config_id, view: nil, quota_user: nil, fields: nil, options: nil, &block)
|
650
650
|
command = make_simple_command(:get, 'v1/services/{serviceName}/configs/{configId}', options)
|
651
651
|
command.response_representation = Google::Apis::ServicemanagementV1::Service::Representation
|
652
652
|
command.response_class = Google::Apis::ServicemanagementV1::Service
|
653
653
|
command.params['serviceName'] = service_name unless service_name.nil?
|
654
654
|
command.params['configId'] = config_id unless config_id.nil?
|
655
655
|
command.query['view'] = view unless view.nil?
|
656
|
-
command.query['fields'] = fields unless fields.nil?
|
657
656
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
657
|
+
command.query['fields'] = fields unless fields.nil?
|
658
658
|
execute_or_queue_command(command, &block)
|
659
659
|
end
|
660
660
|
|
@@ -666,11 +666,11 @@ module Google
|
|
666
666
|
# The name of the service. See the [overview](/service-management/overview)
|
667
667
|
# for naming requirements. For example: `example.googleapis.com`.
|
668
668
|
# @param [Google::Apis::ServicemanagementV1::Service] service_object
|
669
|
-
# @param [String] fields
|
670
|
-
# Selector specifying which fields to include in a partial response.
|
671
669
|
# @param [String] quota_user
|
672
670
|
# Available to use for quota purposes for server-side applications. Can be any
|
673
671
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
672
|
+
# @param [String] fields
|
673
|
+
# Selector specifying which fields to include in a partial response.
|
674
674
|
# @param [Google::Apis::RequestOptions] options
|
675
675
|
# Request-specific options
|
676
676
|
#
|
@@ -683,15 +683,15 @@ module Google
|
|
683
683
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
684
684
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
685
685
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
686
|
-
def create_service_config(service_name, service_object = nil,
|
686
|
+
def create_service_config(service_name, service_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
687
687
|
command = make_simple_command(:post, 'v1/services/{serviceName}/configs', options)
|
688
688
|
command.request_representation = Google::Apis::ServicemanagementV1::Service::Representation
|
689
689
|
command.request_object = service_object
|
690
690
|
command.response_representation = Google::Apis::ServicemanagementV1::Service::Representation
|
691
691
|
command.response_class = Google::Apis::ServicemanagementV1::Service
|
692
692
|
command.params['serviceName'] = service_name unless service_name.nil?
|
693
|
-
command.query['fields'] = fields unless fields.nil?
|
694
693
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
694
|
+
command.query['fields'] = fields unless fields.nil?
|
695
695
|
execute_or_queue_command(command, &block)
|
696
696
|
end
|
697
697
|
|
@@ -707,11 +707,11 @@ module Google
|
|
707
707
|
# The name of the service. See the [overview](/service-management/overview)
|
708
708
|
# for naming requirements. For example: `example.googleapis.com`.
|
709
709
|
# @param [Google::Apis::ServicemanagementV1::SubmitConfigSourceRequest] submit_config_source_request_object
|
710
|
-
# @param [String] fields
|
711
|
-
# Selector specifying which fields to include in a partial response.
|
712
710
|
# @param [String] quota_user
|
713
711
|
# Available to use for quota purposes for server-side applications. Can be any
|
714
712
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
713
|
+
# @param [String] fields
|
714
|
+
# Selector specifying which fields to include in a partial response.
|
715
715
|
# @param [Google::Apis::RequestOptions] options
|
716
716
|
# Request-specific options
|
717
717
|
#
|
@@ -724,51 +724,15 @@ module Google
|
|
724
724
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
725
725
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
726
726
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
727
|
-
def submit_config_source(service_name, submit_config_source_request_object = nil,
|
727
|
+
def submit_config_source(service_name, submit_config_source_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
728
728
|
command = make_simple_command(:post, 'v1/services/{serviceName}/configs:submit', options)
|
729
729
|
command.request_representation = Google::Apis::ServicemanagementV1::SubmitConfigSourceRequest::Representation
|
730
730
|
command.request_object = submit_config_source_request_object
|
731
731
|
command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation
|
732
732
|
command.response_class = Google::Apis::ServicemanagementV1::Operation
|
733
733
|
command.params['serviceName'] = service_name unless service_name.nil?
|
734
|
-
command.query['fields'] = fields unless fields.nil?
|
735
734
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
736
|
-
execute_or_queue_command(command, &block)
|
737
|
-
end
|
738
|
-
|
739
|
-
# Gets the access control policy for a resource.
|
740
|
-
# Returns an empty policy if the resource exists and does not have a policy
|
741
|
-
# set.
|
742
|
-
# @param [String] resource
|
743
|
-
# REQUIRED: The resource for which the policy is being requested.
|
744
|
-
# See the operation documentation for the appropriate value for this field.
|
745
|
-
# @param [Google::Apis::ServicemanagementV1::GetIamPolicyRequest] get_iam_policy_request_object
|
746
|
-
# @param [String] fields
|
747
|
-
# Selector specifying which fields to include in a partial response.
|
748
|
-
# @param [String] quota_user
|
749
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
750
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
751
|
-
# @param [Google::Apis::RequestOptions] options
|
752
|
-
# Request-specific options
|
753
|
-
#
|
754
|
-
# @yield [result, err] Result & error if block supplied
|
755
|
-
# @yieldparam result [Google::Apis::ServicemanagementV1::Policy] parsed result object
|
756
|
-
# @yieldparam err [StandardError] error object if request failed
|
757
|
-
#
|
758
|
-
# @return [Google::Apis::ServicemanagementV1::Policy]
|
759
|
-
#
|
760
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
761
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
762
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
763
|
-
def get_consumer_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
764
|
-
command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
|
765
|
-
command.request_representation = Google::Apis::ServicemanagementV1::GetIamPolicyRequest::Representation
|
766
|
-
command.request_object = get_iam_policy_request_object
|
767
|
-
command.response_representation = Google::Apis::ServicemanagementV1::Policy::Representation
|
768
|
-
command.response_class = Google::Apis::ServicemanagementV1::Policy
|
769
|
-
command.params['resource'] = resource unless resource.nil?
|
770
735
|
command.query['fields'] = fields unless fields.nil?
|
771
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
772
736
|
execute_or_queue_command(command, &block)
|
773
737
|
end
|
774
738
|
|
@@ -778,11 +742,11 @@ module Google
|
|
778
742
|
# REQUIRED: The resource for which the policy is being specified.
|
779
743
|
# See the operation documentation for the appropriate value for this field.
|
780
744
|
# @param [Google::Apis::ServicemanagementV1::SetIamPolicyRequest] set_iam_policy_request_object
|
781
|
-
# @param [String] fields
|
782
|
-
# Selector specifying which fields to include in a partial response.
|
783
745
|
# @param [String] quota_user
|
784
746
|
# Available to use for quota purposes for server-side applications. Can be any
|
785
747
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
748
|
+
# @param [String] fields
|
749
|
+
# Selector specifying which fields to include in a partial response.
|
786
750
|
# @param [Google::Apis::RequestOptions] options
|
787
751
|
# Request-specific options
|
788
752
|
#
|
@@ -795,15 +759,15 @@ module Google
|
|
795
759
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
796
760
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
797
761
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
798
|
-
def set_consumer_iam_policy(resource, set_iam_policy_request_object = nil,
|
762
|
+
def set_consumer_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
799
763
|
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
800
764
|
command.request_representation = Google::Apis::ServicemanagementV1::SetIamPolicyRequest::Representation
|
801
765
|
command.request_object = set_iam_policy_request_object
|
802
766
|
command.response_representation = Google::Apis::ServicemanagementV1::Policy::Representation
|
803
767
|
command.response_class = Google::Apis::ServicemanagementV1::Policy
|
804
768
|
command.params['resource'] = resource unless resource.nil?
|
805
|
-
command.query['fields'] = fields unless fields.nil?
|
806
769
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
770
|
+
command.query['fields'] = fields unless fields.nil?
|
807
771
|
execute_or_queue_command(command, &block)
|
808
772
|
end
|
809
773
|
|
@@ -817,11 +781,11 @@ module Google
|
|
817
781
|
# REQUIRED: The resource for which the policy detail is being requested.
|
818
782
|
# See the operation documentation for the appropriate value for this field.
|
819
783
|
# @param [Google::Apis::ServicemanagementV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
820
|
-
# @param [String] fields
|
821
|
-
# Selector specifying which fields to include in a partial response.
|
822
784
|
# @param [String] quota_user
|
823
785
|
# Available to use for quota purposes for server-side applications. Can be any
|
824
786
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
787
|
+
# @param [String] fields
|
788
|
+
# Selector specifying which fields to include in a partial response.
|
825
789
|
# @param [Google::Apis::RequestOptions] options
|
826
790
|
# Request-specific options
|
827
791
|
#
|
@@ -834,56 +798,51 @@ module Google
|
|
834
798
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
835
799
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
836
800
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
837
|
-
def test_consumer_iam_permissions(resource, test_iam_permissions_request_object = nil,
|
801
|
+
def test_consumer_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
838
802
|
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
839
803
|
command.request_representation = Google::Apis::ServicemanagementV1::TestIamPermissionsRequest::Representation
|
840
804
|
command.request_object = test_iam_permissions_request_object
|
841
805
|
command.response_representation = Google::Apis::ServicemanagementV1::TestIamPermissionsResponse::Representation
|
842
806
|
command.response_class = Google::Apis::ServicemanagementV1::TestIamPermissionsResponse
|
843
807
|
command.params['resource'] = resource unless resource.nil?
|
844
|
-
command.query['fields'] = fields unless fields.nil?
|
845
808
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
809
|
+
command.query['fields'] = fields unless fields.nil?
|
846
810
|
execute_or_queue_command(command, &block)
|
847
811
|
end
|
848
812
|
|
849
|
-
#
|
850
|
-
#
|
851
|
-
#
|
852
|
-
#
|
853
|
-
#
|
854
|
-
#
|
855
|
-
#
|
856
|
-
# Operation<response: Rollout>
|
857
|
-
# @param [String] service_name
|
858
|
-
# The name of the service. See the [overview](/service-management/overview)
|
859
|
-
# for naming requirements. For example: `example.googleapis.com`.
|
860
|
-
# @param [Google::Apis::ServicemanagementV1::Rollout] rollout_object
|
861
|
-
# @param [String] fields
|
862
|
-
# Selector specifying which fields to include in a partial response.
|
813
|
+
# Gets the access control policy for a resource.
|
814
|
+
# Returns an empty policy if the resource exists and does not have a policy
|
815
|
+
# set.
|
816
|
+
# @param [String] resource
|
817
|
+
# REQUIRED: The resource for which the policy is being requested.
|
818
|
+
# See the operation documentation for the appropriate value for this field.
|
819
|
+
# @param [Google::Apis::ServicemanagementV1::GetIamPolicyRequest] get_iam_policy_request_object
|
863
820
|
# @param [String] quota_user
|
864
821
|
# Available to use for quota purposes for server-side applications. Can be any
|
865
822
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
823
|
+
# @param [String] fields
|
824
|
+
# Selector specifying which fields to include in a partial response.
|
866
825
|
# @param [Google::Apis::RequestOptions] options
|
867
826
|
# Request-specific options
|
868
827
|
#
|
869
828
|
# @yield [result, err] Result & error if block supplied
|
870
|
-
# @yieldparam result [Google::Apis::ServicemanagementV1::
|
829
|
+
# @yieldparam result [Google::Apis::ServicemanagementV1::Policy] parsed result object
|
871
830
|
# @yieldparam err [StandardError] error object if request failed
|
872
831
|
#
|
873
|
-
# @return [Google::Apis::ServicemanagementV1::
|
832
|
+
# @return [Google::Apis::ServicemanagementV1::Policy]
|
874
833
|
#
|
875
834
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
876
835
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
877
836
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
878
|
-
def
|
879
|
-
command = make_simple_command(:post, 'v1/
|
880
|
-
command.request_representation = Google::Apis::ServicemanagementV1::
|
881
|
-
command.request_object =
|
882
|
-
command.response_representation = Google::Apis::ServicemanagementV1::
|
883
|
-
command.response_class = Google::Apis::ServicemanagementV1::
|
884
|
-
command.params['
|
885
|
-
command.query['fields'] = fields unless fields.nil?
|
837
|
+
def get_consumer_iam_policy(resource, get_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
838
|
+
command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
|
839
|
+
command.request_representation = Google::Apis::ServicemanagementV1::GetIamPolicyRequest::Representation
|
840
|
+
command.request_object = get_iam_policy_request_object
|
841
|
+
command.response_representation = Google::Apis::ServicemanagementV1::Policy::Representation
|
842
|
+
command.response_class = Google::Apis::ServicemanagementV1::Policy
|
843
|
+
command.params['resource'] = resource unless resource.nil?
|
886
844
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
845
|
+
command.query['fields'] = fields unless fields.nil?
|
887
846
|
execute_or_queue_command(command, &block)
|
888
847
|
end
|
889
848
|
|
@@ -892,15 +851,24 @@ module Google
|
|
892
851
|
# @param [String] service_name
|
893
852
|
# The name of the service. See the [overview](/service-management/overview)
|
894
853
|
# for naming requirements. For example: `example.googleapis.com`.
|
854
|
+
# @param [String] filter
|
855
|
+
# Use `filter` to return subset of rollouts.
|
856
|
+
# The following filters are supported:
|
857
|
+
# -- To limit the results to only those in
|
858
|
+
# [status](google.api.servicemanagement.v1.RolloutStatus) 'SUCCESS',
|
859
|
+
# use filter='status=SUCCESS'
|
860
|
+
# -- To limit the results to those in
|
861
|
+
# [status](google.api.servicemanagement.v1.RolloutStatus) 'CANCELLED'
|
862
|
+
# or 'FAILED', use filter='status=CANCELLED OR status=FAILED'
|
895
863
|
# @param [String] page_token
|
896
864
|
# The token of the page to retrieve.
|
897
865
|
# @param [Fixnum] page_size
|
898
866
|
# The max number of items to include in the response list.
|
899
|
-
# @param [String] fields
|
900
|
-
# Selector specifying which fields to include in a partial response.
|
901
867
|
# @param [String] quota_user
|
902
868
|
# Available to use for quota purposes for server-side applications. Can be any
|
903
869
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
870
|
+
# @param [String] fields
|
871
|
+
# Selector specifying which fields to include in a partial response.
|
904
872
|
# @param [Google::Apis::RequestOptions] options
|
905
873
|
# Request-specific options
|
906
874
|
#
|
@@ -913,15 +881,16 @@ module Google
|
|
913
881
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
914
882
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
915
883
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
916
|
-
def list_service_rollouts(service_name, page_token: nil, page_size: nil,
|
884
|
+
def list_service_rollouts(service_name, filter: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
|
917
885
|
command = make_simple_command(:get, 'v1/services/{serviceName}/rollouts', options)
|
918
886
|
command.response_representation = Google::Apis::ServicemanagementV1::ListServiceRolloutsResponse::Representation
|
919
887
|
command.response_class = Google::Apis::ServicemanagementV1::ListServiceRolloutsResponse
|
920
888
|
command.params['serviceName'] = service_name unless service_name.nil?
|
889
|
+
command.query['filter'] = filter unless filter.nil?
|
921
890
|
command.query['pageToken'] = page_token unless page_token.nil?
|
922
891
|
command.query['pageSize'] = page_size unless page_size.nil?
|
923
|
-
command.query['fields'] = fields unless fields.nil?
|
924
892
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
893
|
+
command.query['fields'] = fields unless fields.nil?
|
925
894
|
execute_or_queue_command(command, &block)
|
926
895
|
end
|
927
896
|
|
@@ -931,11 +900,11 @@ module Google
|
|
931
900
|
# for naming requirements. For example: `example.googleapis.com`.
|
932
901
|
# @param [String] rollout_id
|
933
902
|
# The id of the rollout resource.
|
934
|
-
# @param [String] fields
|
935
|
-
# Selector specifying which fields to include in a partial response.
|
936
903
|
# @param [String] quota_user
|
937
904
|
# Available to use for quota purposes for server-side applications. Can be any
|
938
905
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
906
|
+
# @param [String] fields
|
907
|
+
# Selector specifying which fields to include in a partial response.
|
939
908
|
# @param [Google::Apis::RequestOptions] options
|
940
909
|
# Request-specific options
|
941
910
|
#
|
@@ -948,14 +917,55 @@ module Google
|
|
948
917
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
949
918
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
950
919
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
951
|
-
def get_service_rollout(service_name, rollout_id,
|
920
|
+
def get_service_rollout(service_name, rollout_id, quota_user: nil, fields: nil, options: nil, &block)
|
952
921
|
command = make_simple_command(:get, 'v1/services/{serviceName}/rollouts/{rolloutId}', options)
|
953
922
|
command.response_representation = Google::Apis::ServicemanagementV1::Rollout::Representation
|
954
923
|
command.response_class = Google::Apis::ServicemanagementV1::Rollout
|
955
924
|
command.params['serviceName'] = service_name unless service_name.nil?
|
956
925
|
command.params['rolloutId'] = rollout_id unless rollout_id.nil?
|
926
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
957
927
|
command.query['fields'] = fields unless fields.nil?
|
928
|
+
execute_or_queue_command(command, &block)
|
929
|
+
end
|
930
|
+
|
931
|
+
# Creates a new service configuration rollout. Based on rollout, the
|
932
|
+
# Google Service Management will roll out the service configurations to
|
933
|
+
# different backend services. For example, the logging configuration will be
|
934
|
+
# pushed to Google Cloud Logging.
|
935
|
+
# Please note that any previous pending and running Rollouts and associated
|
936
|
+
# Operations will be automatically cancelled so that the latest Rollout will
|
937
|
+
# not be blocked by previous Rollouts.
|
938
|
+
# Operation<response: Rollout>
|
939
|
+
# @param [String] service_name
|
940
|
+
# The name of the service. See the [overview](/service-management/overview)
|
941
|
+
# for naming requirements. For example: `example.googleapis.com`.
|
942
|
+
# @param [Google::Apis::ServicemanagementV1::Rollout] rollout_object
|
943
|
+
# @param [String] quota_user
|
944
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
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
|
+
# @param [Google::Apis::RequestOptions] options
|
949
|
+
# Request-specific options
|
950
|
+
#
|
951
|
+
# @yield [result, err] Result & error if block supplied
|
952
|
+
# @yieldparam result [Google::Apis::ServicemanagementV1::Operation] parsed result object
|
953
|
+
# @yieldparam err [StandardError] error object if request failed
|
954
|
+
#
|
955
|
+
# @return [Google::Apis::ServicemanagementV1::Operation]
|
956
|
+
#
|
957
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
958
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
959
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
960
|
+
def create_service_rollout(service_name, rollout_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
961
|
+
command = make_simple_command(:post, 'v1/services/{serviceName}/rollouts', options)
|
962
|
+
command.request_representation = Google::Apis::ServicemanagementV1::Rollout::Representation
|
963
|
+
command.request_object = rollout_object
|
964
|
+
command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation
|
965
|
+
command.response_class = Google::Apis::ServicemanagementV1::Operation
|
966
|
+
command.params['serviceName'] = service_name unless service_name.nil?
|
958
967
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
968
|
+
command.query['fields'] = fields unless fields.nil?
|
959
969
|
execute_or_queue_command(command, &block)
|
960
970
|
end
|
961
971
|
|