google-api-client 0.10.2 → 0.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +25 -0
- data/MIGRATING.md +22 -7
- data/README.md +4 -8
- data/api_names.yaml +1210 -37815
- data/generated/google/apis/acceleratedmobilepageurl_v1.rb +32 -0
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +144 -0
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +86 -0
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +90 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +764 -764
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +180 -180
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +421 -421
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +1 -0
- data/generated/google/apis/admin_directory_v1/classes.rb +1 -0
- data/generated/google/apis/admin_reports_v1.rb +1 -1
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +187 -187
- data/generated/google/apis/analyticsreporting_v4/representations.rb +42 -42
- data/generated/google/apis/appengine_v1.rb +40 -0
- data/generated/google/apis/appengine_v1/classes.rb +2251 -0
- data/generated/google/apis/appengine_v1/representations.rb +858 -0
- data/generated/google/apis/appengine_v1/service.rb +894 -0
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +11 -6
- data/generated/google/apis/books_v1.rb +1 -1
- data/generated/google/apis/books_v1/classes.rb +26 -0
- data/generated/google/apis/books_v1/representations.rb +15 -0
- data/generated/google/apis/books_v1/service.rb +4 -1
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +638 -637
- data/generated/google/apis/cloudbuild_v1/representations.rb +110 -110
- data/generated/google/apis/cloudbuild_v1/service.rb +139 -139
- data/generated/google/apis/clouddebugger_v2.rb +3 -3
- data/generated/google/apis/clouddebugger_v2/classes.rb +131 -131
- data/generated/google/apis/clouddebugger_v2/representations.rb +25 -25
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +36 -0
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +590 -0
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +252 -0
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +350 -0
- data/generated/google/apis/cloudfunctions_v1.rb +35 -0
- data/generated/google/apis/cloudfunctions_v1/classes.rb +98 -0
- data/generated/google/apis/cloudfunctions_v1/representations.rb +57 -0
- data/generated/google/apis/cloudfunctions_v1/service.rb +89 -0
- data/generated/google/apis/cloudkms_v1/classes.rb +277 -270
- data/generated/google/apis/cloudkms_v1/representations.rb +73 -73
- data/generated/google/apis/cloudkms_v1/service.rb +194 -194
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1147 -1144
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +188 -188
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +513 -936
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +307 -916
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +63 -285
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +333 -681
- data/generated/google/apis/cloudtrace_v1/classes.rb +38 -38
- data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
- data/generated/google/apis/cloudtrace_v1/service.rb +16 -16
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +32 -7
- data/generated/google/apis/compute_beta/representations.rb +2 -0
- data/generated/google/apis/compute_beta/service.rb +11 -11
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +95 -2
- data/generated/google/apis/compute_v1/representations.rb +33 -0
- data/generated/google/apis/dataflow_v1b3/classes.rb +3333 -3333
- data/generated/google/apis/dataflow_v1b3/representations.rb +759 -759
- data/generated/google/apis/dataflow_v1b3/service.rb +154 -154
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +1097 -1097
- data/generated/google/apis/dataproc_v1/representations.rb +200 -200
- data/generated/google/apis/dataproc_v1/service.rb +356 -356
- data/generated/google/apis/datastore_v1.rb +4 -4
- data/generated/google/apis/datastore_v1/classes.rb +701 -690
- data/generated/google/apis/datastore_v1/representations.rb +160 -160
- data/generated/google/apis/datastore_v1/service.rb +52 -52
- data/generated/google/apis/deploymentmanager_v2/classes.rb +4 -0
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +158 -35
- data/generated/google/apis/drive_v2/representations.rb +39 -0
- data/generated/google/apis/drive_v2/service.rb +4 -4
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +162 -33
- data/generated/google/apis/drive_v3/representations.rb +39 -0
- data/generated/google/apis/drive_v3/service.rb +4 -4
- data/generated/google/apis/firebasedynamiclinks_v1.rb +35 -0
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +466 -0
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +222 -0
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +95 -0
- data/generated/google/apis/firebaserules_v1.rb +41 -0
- data/generated/google/apis/firebaserules_v1/classes.rb +425 -0
- data/generated/google/apis/firebaserules_v1/representations.rb +222 -0
- data/generated/google/apis/firebaserules_v1/service.rb +495 -0
- data/generated/google/apis/games_v1/classes.rb +4 -0
- data/generated/google/apis/genomics_v1.rb +7 -7
- data/generated/google/apis/genomics_v1/classes.rb +2336 -2335
- data/generated/google/apis/genomics_v1/representations.rb +387 -387
- data/generated/google/apis/genomics_v1/service.rb +1187 -1187
- data/generated/google/apis/gmail_v1/classes.rb +3 -0
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +123 -117
- data/generated/google/apis/iam_v1/representations.rb +33 -33
- data/generated/google/apis/iam_v1/service.rb +109 -109
- data/generated/google/apis/identitytoolkit_v3/classes.rb +5 -0
- data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
- data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
- data/generated/google/apis/kgsearch_v1/service.rb +4 -4
- data/generated/google/apis/language_v1.rb +36 -0
- data/generated/google/apis/language_v1/classes.rb +757 -0
- data/generated/google/apis/language_v1/representations.rb +338 -0
- data/generated/google/apis/language_v1/service.rb +185 -0
- data/generated/google/apis/language_v1beta1/classes.rb +407 -407
- data/generated/google/apis/language_v1beta1/representations.rb +103 -103
- data/generated/google/apis/language_v1beta1/service.rb +45 -45
- data/generated/google/apis/logging_v2.rb +46 -0
- data/generated/google/apis/logging_v2/classes.rb +1271 -0
- data/generated/google/apis/logging_v2/representations.rb +421 -0
- data/generated/google/apis/logging_v2/service.rb +1569 -0
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +886 -886
- data/generated/google/apis/logging_v2beta1/representations.rb +132 -132
- data/generated/google/apis/logging_v2beta1/service.rb +235 -235
- data/generated/google/apis/manufacturers_v1/classes.rb +147 -147
- data/generated/google/apis/manufacturers_v1/representations.rb +29 -29
- data/generated/google/apis/ml_v1.rb +34 -0
- data/generated/google/apis/ml_v1/classes.rb +1617 -0
- data/generated/google/apis/ml_v1/representations.rb +498 -0
- data/generated/google/apis/ml_v1/service.rb +769 -0
- data/generated/google/apis/monitoring_v3.rb +4 -4
- data/generated/google/apis/monitoring_v3/classes.rb +630 -630
- data/generated/google/apis/monitoring_v3/representations.rb +134 -134
- data/generated/google/apis/monitoring_v3/service.rb +240 -240
- data/generated/google/apis/pagespeedonline_v2/classes.rb +1 -0
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +639 -639
- data/generated/google/apis/partners_v2/representations.rb +168 -168
- data/generated/google/apis/partners_v2/service.rb +381 -381
- data/generated/google/apis/people_v1.rb +10 -10
- data/generated/google/apis/people_v1/classes.rb +524 -524
- data/generated/google/apis/people_v1/representations.rb +143 -143
- data/generated/google/apis/people_v1/service.rb +30 -30
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +454 -444
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +90 -90
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +110 -110
- data/generated/google/apis/pubsub_v1/classes.rb +175 -173
- data/generated/google/apis/pubsub_v1/representations.rb +53 -53
- data/generated/google/apis/pubsub_v1/service.rb +210 -210
- data/generated/google/apis/replicapool_v1beta2/classes.rb +2 -0
- data/generated/google/apis/runtimeconfig_v1.rb +38 -0
- data/generated/google/apis/runtimeconfig_v1/classes.rb +252 -0
- data/generated/google/apis/runtimeconfig_v1/representations.rb +98 -0
- data/generated/google/apis/runtimeconfig_v1/service.rb +176 -0
- data/generated/google/apis/script_v1.rb +1 -1
- data/generated/google/apis/script_v1/classes.rb +6 -6
- data/generated/google/apis/script_v1/representations.rb +1 -1
- data/generated/google/apis/searchconsole_v1.rb +31 -0
- data/generated/google/apis/searchconsole_v1/classes.rb +205 -0
- data/generated/google/apis/searchconsole_v1/representations.rb +129 -0
- data/generated/google/apis/searchconsole_v1/service.rb +88 -0
- data/generated/google/apis/servicecontrol_v1.rb +38 -0
- data/generated/google/apis/servicecontrol_v1/classes.rb +1675 -0
- data/generated/google/apis/servicecontrol_v1/representations.rb +601 -0
- data/generated/google/apis/servicecontrol_v1/service.rb +337 -0
- data/generated/google/apis/servicemanagement_v1.rb +45 -0
- data/generated/google/apis/servicemanagement_v1/classes.rb +4934 -0
- data/generated/google/apis/servicemanagement_v1/representations.rb +1526 -0
- data/generated/google/apis/servicemanagement_v1/service.rb +860 -0
- data/generated/google/apis/serviceuser_v1.rb +42 -0
- data/generated/google/apis/serviceuser_v1/classes.rb +3746 -0
- data/generated/google/apis/serviceuser_v1/representations.rb +1041 -0
- data/generated/google/apis/serviceuser_v1/service.rb +214 -0
- data/generated/google/apis/sheets_v4.rb +3 -3
- data/generated/google/apis/sheets_v4/classes.rb +4390 -4390
- data/generated/google/apis/sheets_v4/representations.rb +381 -381
- data/generated/google/apis/sheets_v4/service.rb +48 -48
- data/generated/google/apis/slides_v1.rb +3 -3
- data/generated/google/apis/slides_v1/classes.rb +2860 -2860
- data/generated/google/apis/slides_v1/representations.rb +693 -693
- data/generated/google/apis/slides_v1/service.rb +30 -30
- data/generated/google/apis/sourcerepo_v1.rb +34 -0
- data/generated/google/apis/sourcerepo_v1/classes.rb +687 -0
- data/generated/google/apis/sourcerepo_v1/representations.rb +285 -0
- data/generated/google/apis/sourcerepo_v1/service.rb +291 -0
- data/generated/google/apis/spanner_v1.rb +35 -0
- data/generated/google/apis/spanner_v1/classes.rb +3294 -0
- data/generated/google/apis/spanner_v1/representations.rb +984 -0
- data/generated/google/apis/spanner_v1/service.rb +1504 -0
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +197 -196
- data/generated/google/apis/speech_v1beta1/representations.rb +53 -53
- data/generated/google/apis/speech_v1beta1/service.rb +27 -27
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +131 -0
- data/generated/google/apis/storage_v1/representations.rb +51 -0
- data/generated/google/apis/storage_v1/service.rb +182 -0
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +732 -661
- data/generated/google/apis/storagetransfer_v1/representations.rb +132 -132
- data/generated/google/apis/storagetransfer_v1/service.rb +174 -197
- data/generated/google/apis/surveys_v2.rb +40 -0
- data/generated/google/apis/surveys_v2/classes.rb +806 -0
- data/generated/google/apis/surveys_v2/representations.rb +347 -0
- data/generated/google/apis/surveys_v2/service.rb +477 -0
- data/generated/google/apis/tagmanager_v2.rb +52 -0
- data/generated/google/apis/tagmanager_v2/classes.rb +2435 -0
- data/generated/google/apis/tagmanager_v2/representations.rb +993 -0
- data/generated/google/apis/tagmanager_v2/service.rb +2865 -0
- data/generated/google/apis/toolresults_v1beta3.rb +34 -0
- data/generated/google/apis/toolresults_v1beta3/classes.rb +2160 -0
- data/generated/google/apis/toolresults_v1beta3/representations.rb +729 -0
- data/generated/google/apis/toolresults_v1beta3/service.rb +1236 -0
- data/generated/google/apis/tracing_v1.rb +40 -0
- data/generated/google/apis/tracing_v1/classes.rb +664 -0
- data/generated/google/apis/tracing_v1/representations.rb +279 -0
- data/generated/google/apis/tracing_v1/service.rb +225 -0
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1223 -1222
- data/generated/google/apis/vision_v1/representations.rb +234 -234
- data/generated/google/apis/vision_v1/service.rb +10 -10
- data/generated/google/apis/webfonts_v1.rb +33 -0
- data/generated/google/apis/webfonts_v1/classes.rb +113 -0
- data/generated/google/apis/webfonts_v1/representations.rb +62 -0
- data/generated/google/apis/webfonts_v1/service.rb +102 -0
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +31 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +6 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +41 -0
- data/generated/google/apis/youtube_v3/classes.rb +1 -0
- data/generated/google/apis/youtubereporting_v1.rb +4 -4
- data/generated/google/apis/youtubereporting_v1/classes.rb +76 -76
- data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
- data/generated/google/apis/youtubereporting_v1/service.rb +95 -95
- data/lib/google/apis/generator/annotator.rb +5 -4
- data/lib/google/apis/generator/templates/_class.tmpl +3 -0
- data/lib/google/apis/version.rb +1 -1
- data/samples/cli/lib/samples/adsense.rb +99 -0
- data/samples/cli/lib/samples/analytics.rb +18 -0
- data/samples/cli/lib/samples/gmail.rb +33 -0
- data/samples/cli/lib/samples/vision.rb +69 -0
- metadata +89 -4
- data/sync.rb +0 -71
|
@@ -56,11 +56,11 @@ module Google
|
|
|
56
56
|
# The subscription whose message is being acknowledged.
|
|
57
57
|
# Format is `projects/`project`/subscriptions/`sub``.
|
|
58
58
|
# @param [Google::Apis::PubsubV1::AcknowledgeRequest] acknowledge_request_object
|
|
59
|
+
# @param [String] fields
|
|
60
|
+
# Selector specifying which fields to include in a partial response.
|
|
59
61
|
# @param [String] quota_user
|
|
60
62
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
61
63
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
62
|
-
# @param [String] fields
|
|
63
|
-
# Selector specifying which fields to include in a partial response.
|
|
64
64
|
# @param [Google::Apis::RequestOptions] options
|
|
65
65
|
# Request-specific options
|
|
66
66
|
#
|
|
@@ -73,15 +73,15 @@ module Google
|
|
|
73
73
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
74
74
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
75
75
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
76
|
-
def acknowledge_subscription(subscription, acknowledge_request_object = nil,
|
|
76
|
+
def acknowledge_subscription(subscription, acknowledge_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
77
77
|
command = make_simple_command(:post, 'v1/{+subscription}:acknowledge', options)
|
|
78
78
|
command.request_representation = Google::Apis::PubsubV1::AcknowledgeRequest::Representation
|
|
79
79
|
command.request_object = acknowledge_request_object
|
|
80
80
|
command.response_representation = Google::Apis::PubsubV1::Empty::Representation
|
|
81
81
|
command.response_class = Google::Apis::PubsubV1::Empty
|
|
82
82
|
command.params['subscription'] = subscription unless subscription.nil?
|
|
83
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
84
83
|
command.query['fields'] = fields unless fields.nil?
|
|
84
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
85
85
|
execute_or_queue_command(command, &block)
|
|
86
86
|
end
|
|
87
87
|
|
|
@@ -94,11 +94,11 @@ module Google
|
|
|
94
94
|
# The name of the subscription.
|
|
95
95
|
# Format is `projects/`project`/subscriptions/`sub``.
|
|
96
96
|
# @param [Google::Apis::PubsubV1::ModifyAckDeadlineRequest] modify_ack_deadline_request_object
|
|
97
|
+
# @param [String] fields
|
|
98
|
+
# Selector specifying which fields to include in a partial response.
|
|
97
99
|
# @param [String] quota_user
|
|
98
100
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
99
101
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
100
|
-
# @param [String] fields
|
|
101
|
-
# Selector specifying which fields to include in a partial response.
|
|
102
102
|
# @param [Google::Apis::RequestOptions] options
|
|
103
103
|
# Request-specific options
|
|
104
104
|
#
|
|
@@ -111,15 +111,15 @@ module Google
|
|
|
111
111
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
112
112
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
113
113
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
114
|
-
def modify_subscription_ack_deadline(subscription, modify_ack_deadline_request_object = nil,
|
|
114
|
+
def modify_subscription_ack_deadline(subscription, modify_ack_deadline_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
115
115
|
command = make_simple_command(:post, 'v1/{+subscription}:modifyAckDeadline', options)
|
|
116
116
|
command.request_representation = Google::Apis::PubsubV1::ModifyAckDeadlineRequest::Representation
|
|
117
117
|
command.request_object = modify_ack_deadline_request_object
|
|
118
118
|
command.response_representation = Google::Apis::PubsubV1::Empty::Representation
|
|
119
119
|
command.response_class = Google::Apis::PubsubV1::Empty
|
|
120
120
|
command.params['subscription'] = subscription unless subscription.nil?
|
|
121
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
122
121
|
command.query['fields'] = fields unless fields.nil?
|
|
122
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
123
123
|
execute_or_queue_command(command, &block)
|
|
124
124
|
end
|
|
125
125
|
|
|
@@ -129,11 +129,11 @@ module Google
|
|
|
129
129
|
# @param [String] resource
|
|
130
130
|
# REQUIRED: The resource for which the policy is being requested.
|
|
131
131
|
# See the operation documentation for the appropriate value for this field.
|
|
132
|
+
# @param [String] fields
|
|
133
|
+
# Selector specifying which fields to include in a partial response.
|
|
132
134
|
# @param [String] quota_user
|
|
133
135
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
134
136
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
135
|
-
# @param [String] fields
|
|
136
|
-
# Selector specifying which fields to include in a partial response.
|
|
137
137
|
# @param [Google::Apis::RequestOptions] options
|
|
138
138
|
# Request-specific options
|
|
139
139
|
#
|
|
@@ -146,13 +146,13 @@ module Google
|
|
|
146
146
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
147
147
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
148
148
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
149
|
-
def get_project_subscription_iam_policy(resource,
|
|
149
|
+
def get_project_subscription_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
|
|
150
150
|
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
|
151
151
|
command.response_representation = Google::Apis::PubsubV1::Policy::Representation
|
|
152
152
|
command.response_class = Google::Apis::PubsubV1::Policy
|
|
153
153
|
command.params['resource'] = resource unless resource.nil?
|
|
154
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
155
154
|
command.query['fields'] = fields unless fields.nil?
|
|
155
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
156
156
|
execute_or_queue_command(command, &block)
|
|
157
157
|
end
|
|
158
158
|
|
|
@@ -160,11 +160,11 @@ module Google
|
|
|
160
160
|
# @param [String] subscription
|
|
161
161
|
# The name of the subscription to get.
|
|
162
162
|
# Format is `projects/`project`/subscriptions/`sub``.
|
|
163
|
+
# @param [String] fields
|
|
164
|
+
# Selector specifying which fields to include in a partial response.
|
|
163
165
|
# @param [String] quota_user
|
|
164
166
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
165
167
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
166
|
-
# @param [String] fields
|
|
167
|
-
# Selector specifying which fields to include in a partial response.
|
|
168
168
|
# @param [Google::Apis::RequestOptions] options
|
|
169
169
|
# Request-specific options
|
|
170
170
|
#
|
|
@@ -177,13 +177,13 @@ module Google
|
|
|
177
177
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
178
178
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
179
179
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
180
|
-
def get_subscription(subscription,
|
|
180
|
+
def get_subscription(subscription, fields: nil, quota_user: nil, options: nil, &block)
|
|
181
181
|
command = make_simple_command(:get, 'v1/{+subscription}', options)
|
|
182
182
|
command.response_representation = Google::Apis::PubsubV1::Subscription::Representation
|
|
183
183
|
command.response_class = Google::Apis::PubsubV1::Subscription
|
|
184
184
|
command.params['subscription'] = subscription unless subscription.nil?
|
|
185
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
186
185
|
command.query['fields'] = fields unless fields.nil?
|
|
186
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
187
187
|
execute_or_queue_command(command, &block)
|
|
188
188
|
end
|
|
189
189
|
|
|
@@ -197,11 +197,11 @@ module Google
|
|
|
197
197
|
# REQUIRED: The resource for which the policy detail is being requested.
|
|
198
198
|
# See the operation documentation for the appropriate value for this field.
|
|
199
199
|
# @param [Google::Apis::PubsubV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
|
200
|
+
# @param [String] fields
|
|
201
|
+
# Selector specifying which fields to include in a partial response.
|
|
200
202
|
# @param [String] quota_user
|
|
201
203
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
202
204
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
203
|
-
# @param [String] fields
|
|
204
|
-
# Selector specifying which fields to include in a partial response.
|
|
205
205
|
# @param [Google::Apis::RequestOptions] options
|
|
206
206
|
# Request-specific options
|
|
207
207
|
#
|
|
@@ -214,15 +214,15 @@ module Google
|
|
|
214
214
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
215
215
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
216
216
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
217
|
-
def test_subscription_iam_permissions(resource, test_iam_permissions_request_object = nil,
|
|
217
|
+
def test_subscription_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
218
218
|
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
|
219
219
|
command.request_representation = Google::Apis::PubsubV1::TestIamPermissionsRequest::Representation
|
|
220
220
|
command.request_object = test_iam_permissions_request_object
|
|
221
221
|
command.response_representation = Google::Apis::PubsubV1::TestIamPermissionsResponse::Representation
|
|
222
222
|
command.response_class = Google::Apis::PubsubV1::TestIamPermissionsResponse
|
|
223
223
|
command.params['resource'] = resource unless resource.nil?
|
|
224
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
225
224
|
command.query['fields'] = fields unless fields.nil?
|
|
225
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
226
226
|
execute_or_queue_command(command, &block)
|
|
227
227
|
end
|
|
228
228
|
|
|
@@ -235,11 +235,11 @@ module Google
|
|
|
235
235
|
# The name of the subscription.
|
|
236
236
|
# Format is `projects/`project`/subscriptions/`sub``.
|
|
237
237
|
# @param [Google::Apis::PubsubV1::ModifyPushConfigRequest] modify_push_config_request_object
|
|
238
|
+
# @param [String] fields
|
|
239
|
+
# Selector specifying which fields to include in a partial response.
|
|
238
240
|
# @param [String] quota_user
|
|
239
241
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
240
242
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
241
|
-
# @param [String] fields
|
|
242
|
-
# Selector specifying which fields to include in a partial response.
|
|
243
243
|
# @param [Google::Apis::RequestOptions] options
|
|
244
244
|
# Request-specific options
|
|
245
245
|
#
|
|
@@ -252,15 +252,15 @@ module Google
|
|
|
252
252
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
253
253
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
254
254
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
255
|
-
def modify_subscription_push_config(subscription, modify_push_config_request_object = nil,
|
|
255
|
+
def modify_subscription_push_config(subscription, modify_push_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
256
256
|
command = make_simple_command(:post, 'v1/{+subscription}:modifyPushConfig', options)
|
|
257
257
|
command.request_representation = Google::Apis::PubsubV1::ModifyPushConfigRequest::Representation
|
|
258
258
|
command.request_object = modify_push_config_request_object
|
|
259
259
|
command.response_representation = Google::Apis::PubsubV1::Empty::Representation
|
|
260
260
|
command.response_class = Google::Apis::PubsubV1::Empty
|
|
261
261
|
command.params['subscription'] = subscription unless subscription.nil?
|
|
262
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
263
262
|
command.query['fields'] = fields unless fields.nil?
|
|
263
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
264
264
|
execute_or_queue_command(command, &block)
|
|
265
265
|
end
|
|
266
266
|
|
|
@@ -272,11 +272,11 @@ module Google
|
|
|
272
272
|
# @param [String] subscription
|
|
273
273
|
# The subscription to delete.
|
|
274
274
|
# Format is `projects/`project`/subscriptions/`sub``.
|
|
275
|
+
# @param [String] fields
|
|
276
|
+
# Selector specifying which fields to include in a partial response.
|
|
275
277
|
# @param [String] quota_user
|
|
276
278
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
277
279
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
278
|
-
# @param [String] fields
|
|
279
|
-
# Selector specifying which fields to include in a partial response.
|
|
280
280
|
# @param [Google::Apis::RequestOptions] options
|
|
281
281
|
# Request-specific options
|
|
282
282
|
#
|
|
@@ -289,13 +289,13 @@ module Google
|
|
|
289
289
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
290
290
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
291
291
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
292
|
-
def delete_subscription(subscription,
|
|
292
|
+
def delete_subscription(subscription, fields: nil, quota_user: nil, options: nil, &block)
|
|
293
293
|
command = make_simple_command(:delete, 'v1/{+subscription}', options)
|
|
294
294
|
command.response_representation = Google::Apis::PubsubV1::Empty::Representation
|
|
295
295
|
command.response_class = Google::Apis::PubsubV1::Empty
|
|
296
296
|
command.params['subscription'] = subscription unless subscription.nil?
|
|
297
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
298
297
|
command.query['fields'] = fields unless fields.nil?
|
|
298
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
299
299
|
execute_or_queue_command(command, &block)
|
|
300
300
|
end
|
|
301
301
|
|
|
@@ -307,11 +307,11 @@ module Google
|
|
|
307
307
|
# The subscription from which messages should be pulled.
|
|
308
308
|
# Format is `projects/`project`/subscriptions/`sub``.
|
|
309
309
|
# @param [Google::Apis::PubsubV1::PullRequest] pull_request_object
|
|
310
|
+
# @param [String] fields
|
|
311
|
+
# Selector specifying which fields to include in a partial response.
|
|
310
312
|
# @param [String] quota_user
|
|
311
313
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
312
314
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
313
|
-
# @param [String] fields
|
|
314
|
-
# Selector specifying which fields to include in a partial response.
|
|
315
315
|
# @param [Google::Apis::RequestOptions] options
|
|
316
316
|
# Request-specific options
|
|
317
317
|
#
|
|
@@ -324,15 +324,15 @@ module Google
|
|
|
324
324
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
325
325
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
326
326
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
327
|
-
def pull_subscription(subscription, pull_request_object = nil,
|
|
327
|
+
def pull_subscription(subscription, pull_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
328
328
|
command = make_simple_command(:post, 'v1/{+subscription}:pull', options)
|
|
329
329
|
command.request_representation = Google::Apis::PubsubV1::PullRequest::Representation
|
|
330
330
|
command.request_object = pull_request_object
|
|
331
331
|
command.response_representation = Google::Apis::PubsubV1::PullResponse::Representation
|
|
332
332
|
command.response_class = Google::Apis::PubsubV1::PullResponse
|
|
333
333
|
command.params['subscription'] = subscription unless subscription.nil?
|
|
334
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
335
334
|
command.query['fields'] = fields unless fields.nil?
|
|
335
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
336
336
|
execute_or_queue_command(command, &block)
|
|
337
337
|
end
|
|
338
338
|
|
|
@@ -346,11 +346,11 @@ module Google
|
|
|
346
346
|
# system should return the next page of data.
|
|
347
347
|
# @param [Fixnum] page_size
|
|
348
348
|
# Maximum number of subscriptions to return.
|
|
349
|
+
# @param [String] fields
|
|
350
|
+
# Selector specifying which fields to include in a partial response.
|
|
349
351
|
# @param [String] quota_user
|
|
350
352
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
351
353
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
352
|
-
# @param [String] fields
|
|
353
|
-
# Selector specifying which fields to include in a partial response.
|
|
354
354
|
# @param [Google::Apis::RequestOptions] options
|
|
355
355
|
# Request-specific options
|
|
356
356
|
#
|
|
@@ -363,50 +363,15 @@ module Google
|
|
|
363
363
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
364
364
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
365
365
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
366
|
-
def list_subscriptions(project, page_token: nil, page_size: nil,
|
|
366
|
+
def list_subscriptions(project, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
367
367
|
command = make_simple_command(:get, 'v1/{+project}/subscriptions', options)
|
|
368
368
|
command.response_representation = Google::Apis::PubsubV1::ListSubscriptionsResponse::Representation
|
|
369
369
|
command.response_class = Google::Apis::PubsubV1::ListSubscriptionsResponse
|
|
370
370
|
command.params['project'] = project unless project.nil?
|
|
371
371
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
372
372
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
373
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
374
373
|
command.query['fields'] = fields unless fields.nil?
|
|
375
|
-
execute_or_queue_command(command, &block)
|
|
376
|
-
end
|
|
377
|
-
|
|
378
|
-
# Sets the access control policy on the specified resource. Replaces any
|
|
379
|
-
# existing policy.
|
|
380
|
-
# @param [String] resource
|
|
381
|
-
# REQUIRED: The resource for which the policy is being specified.
|
|
382
|
-
# See the operation documentation for the appropriate value for this field.
|
|
383
|
-
# @param [Google::Apis::PubsubV1::SetIamPolicyRequest] set_iam_policy_request_object
|
|
384
|
-
# @param [String] quota_user
|
|
385
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
386
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
387
|
-
# @param [String] fields
|
|
388
|
-
# Selector specifying which fields to include in a partial response.
|
|
389
|
-
# @param [Google::Apis::RequestOptions] options
|
|
390
|
-
# Request-specific options
|
|
391
|
-
#
|
|
392
|
-
# @yield [result, err] Result & error if block supplied
|
|
393
|
-
# @yieldparam result [Google::Apis::PubsubV1::Policy] parsed result object
|
|
394
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
395
|
-
#
|
|
396
|
-
# @return [Google::Apis::PubsubV1::Policy]
|
|
397
|
-
#
|
|
398
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
399
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
400
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
401
|
-
def set_subscription_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
402
|
-
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
|
403
|
-
command.request_representation = Google::Apis::PubsubV1::SetIamPolicyRequest::Representation
|
|
404
|
-
command.request_object = set_iam_policy_request_object
|
|
405
|
-
command.response_representation = Google::Apis::PubsubV1::Policy::Representation
|
|
406
|
-
command.response_class = Google::Apis::PubsubV1::Policy
|
|
407
|
-
command.params['resource'] = resource unless resource.nil?
|
|
408
374
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
409
|
-
command.query['fields'] = fields unless fields.nil?
|
|
410
375
|
execute_or_queue_command(command, &block)
|
|
411
376
|
end
|
|
412
377
|
|
|
@@ -427,11 +392,11 @@ module Google
|
|
|
427
392
|
# plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters
|
|
428
393
|
# in length, and it must not start with `"goog"`.
|
|
429
394
|
# @param [Google::Apis::PubsubV1::Subscription] subscription_object
|
|
395
|
+
# @param [String] fields
|
|
396
|
+
# Selector specifying which fields to include in a partial response.
|
|
430
397
|
# @param [String] quota_user
|
|
431
398
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
432
399
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
433
|
-
# @param [String] fields
|
|
434
|
-
# Selector specifying which fields to include in a partial response.
|
|
435
400
|
# @param [Google::Apis::RequestOptions] options
|
|
436
401
|
# Request-specific options
|
|
437
402
|
#
|
|
@@ -444,15 +409,15 @@ module Google
|
|
|
444
409
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
445
410
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
446
411
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
447
|
-
def create_subscription(name, subscription_object = nil,
|
|
412
|
+
def create_subscription(name, subscription_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
448
413
|
command = make_simple_command(:put, 'v1/{+name}', options)
|
|
449
414
|
command.request_representation = Google::Apis::PubsubV1::Subscription::Representation
|
|
450
415
|
command.request_object = subscription_object
|
|
451
416
|
command.response_representation = Google::Apis::PubsubV1::Subscription::Representation
|
|
452
417
|
command.response_class = Google::Apis::PubsubV1::Subscription
|
|
453
418
|
command.params['name'] = name unless name.nil?
|
|
454
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
455
419
|
command.query['fields'] = fields unless fields.nil?
|
|
420
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
456
421
|
execute_or_queue_command(command, &block)
|
|
457
422
|
end
|
|
458
423
|
|
|
@@ -462,11 +427,46 @@ module Google
|
|
|
462
427
|
# REQUIRED: The resource for which the policy is being specified.
|
|
463
428
|
# See the operation documentation for the appropriate value for this field.
|
|
464
429
|
# @param [Google::Apis::PubsubV1::SetIamPolicyRequest] set_iam_policy_request_object
|
|
430
|
+
# @param [String] fields
|
|
431
|
+
# Selector specifying which fields to include in a partial response.
|
|
465
432
|
# @param [String] quota_user
|
|
466
433
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
467
434
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
435
|
+
# @param [Google::Apis::RequestOptions] options
|
|
436
|
+
# Request-specific options
|
|
437
|
+
#
|
|
438
|
+
# @yield [result, err] Result & error if block supplied
|
|
439
|
+
# @yieldparam result [Google::Apis::PubsubV1::Policy] parsed result object
|
|
440
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
441
|
+
#
|
|
442
|
+
# @return [Google::Apis::PubsubV1::Policy]
|
|
443
|
+
#
|
|
444
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
445
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
446
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
447
|
+
def set_subscription_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
448
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
|
449
|
+
command.request_representation = Google::Apis::PubsubV1::SetIamPolicyRequest::Representation
|
|
450
|
+
command.request_object = set_iam_policy_request_object
|
|
451
|
+
command.response_representation = Google::Apis::PubsubV1::Policy::Representation
|
|
452
|
+
command.response_class = Google::Apis::PubsubV1::Policy
|
|
453
|
+
command.params['resource'] = resource unless resource.nil?
|
|
454
|
+
command.query['fields'] = fields unless fields.nil?
|
|
455
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
456
|
+
execute_or_queue_command(command, &block)
|
|
457
|
+
end
|
|
458
|
+
|
|
459
|
+
# Sets the access control policy on the specified resource. Replaces any
|
|
460
|
+
# existing policy.
|
|
461
|
+
# @param [String] resource
|
|
462
|
+
# REQUIRED: The resource for which the policy is being specified.
|
|
463
|
+
# See the operation documentation for the appropriate value for this field.
|
|
464
|
+
# @param [Google::Apis::PubsubV1::SetIamPolicyRequest] set_iam_policy_request_object
|
|
468
465
|
# @param [String] fields
|
|
469
466
|
# Selector specifying which fields to include in a partial response.
|
|
467
|
+
# @param [String] quota_user
|
|
468
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
469
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
470
470
|
# @param [Google::Apis::RequestOptions] options
|
|
471
471
|
# Request-specific options
|
|
472
472
|
#
|
|
@@ -479,15 +479,15 @@ module Google
|
|
|
479
479
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
480
480
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
481
481
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
482
|
-
def set_snapshot_iam_policy(resource, set_iam_policy_request_object = nil,
|
|
482
|
+
def set_snapshot_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
483
483
|
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
|
484
484
|
command.request_representation = Google::Apis::PubsubV1::SetIamPolicyRequest::Representation
|
|
485
485
|
command.request_object = set_iam_policy_request_object
|
|
486
486
|
command.response_representation = Google::Apis::PubsubV1::Policy::Representation
|
|
487
487
|
command.response_class = Google::Apis::PubsubV1::Policy
|
|
488
488
|
command.params['resource'] = resource unless resource.nil?
|
|
489
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
490
489
|
command.query['fields'] = fields unless fields.nil?
|
|
490
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
491
491
|
execute_or_queue_command(command, &block)
|
|
492
492
|
end
|
|
493
493
|
|
|
@@ -501,11 +501,11 @@ module Google
|
|
|
501
501
|
# REQUIRED: The resource for which the policy detail is being requested.
|
|
502
502
|
# See the operation documentation for the appropriate value for this field.
|
|
503
503
|
# @param [Google::Apis::PubsubV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
|
504
|
+
# @param [String] fields
|
|
505
|
+
# Selector specifying which fields to include in a partial response.
|
|
504
506
|
# @param [String] quota_user
|
|
505
507
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
506
508
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
507
|
-
# @param [String] fields
|
|
508
|
-
# Selector specifying which fields to include in a partial response.
|
|
509
509
|
# @param [Google::Apis::RequestOptions] options
|
|
510
510
|
# Request-specific options
|
|
511
511
|
#
|
|
@@ -518,15 +518,15 @@ module Google
|
|
|
518
518
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
519
519
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
520
520
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
521
|
-
def test_snapshot_iam_permissions(resource, test_iam_permissions_request_object = nil,
|
|
521
|
+
def test_snapshot_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
522
522
|
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
|
523
523
|
command.request_representation = Google::Apis::PubsubV1::TestIamPermissionsRequest::Representation
|
|
524
524
|
command.request_object = test_iam_permissions_request_object
|
|
525
525
|
command.response_representation = Google::Apis::PubsubV1::TestIamPermissionsResponse::Representation
|
|
526
526
|
command.response_class = Google::Apis::PubsubV1::TestIamPermissionsResponse
|
|
527
527
|
command.params['resource'] = resource unless resource.nil?
|
|
528
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
529
528
|
command.query['fields'] = fields unless fields.nil?
|
|
529
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
530
530
|
execute_or_queue_command(command, &block)
|
|
531
531
|
end
|
|
532
532
|
|
|
@@ -536,11 +536,11 @@ module Google
|
|
|
536
536
|
# @param [String] resource
|
|
537
537
|
# REQUIRED: The resource for which the policy is being requested.
|
|
538
538
|
# See the operation documentation for the appropriate value for this field.
|
|
539
|
+
# @param [String] fields
|
|
540
|
+
# Selector specifying which fields to include in a partial response.
|
|
539
541
|
# @param [String] quota_user
|
|
540
542
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
541
543
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
542
|
-
# @param [String] fields
|
|
543
|
-
# Selector specifying which fields to include in a partial response.
|
|
544
544
|
# @param [Google::Apis::RequestOptions] options
|
|
545
545
|
# Request-specific options
|
|
546
546
|
#
|
|
@@ -553,13 +553,88 @@ module Google
|
|
|
553
553
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
554
554
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
555
555
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
556
|
-
def get_project_snapshot_iam_policy(resource,
|
|
556
|
+
def get_project_snapshot_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
|
|
557
557
|
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
|
558
558
|
command.response_representation = Google::Apis::PubsubV1::Policy::Representation
|
|
559
559
|
command.response_class = Google::Apis::PubsubV1::Policy
|
|
560
560
|
command.params['resource'] = resource unless resource.nil?
|
|
561
|
+
command.query['fields'] = fields unless fields.nil?
|
|
561
562
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
563
|
+
execute_or_queue_command(command, &block)
|
|
564
|
+
end
|
|
565
|
+
|
|
566
|
+
# Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic
|
|
567
|
+
# does not exist. The message payload must not be empty; it must contain
|
|
568
|
+
# either a non-empty data field, or at least one attribute.
|
|
569
|
+
# @param [String] topic
|
|
570
|
+
# The messages in the request will be published on this topic.
|
|
571
|
+
# Format is `projects/`project`/topics/`topic``.
|
|
572
|
+
# @param [Google::Apis::PubsubV1::PublishRequest] publish_request_object
|
|
573
|
+
# @param [String] fields
|
|
574
|
+
# Selector specifying which fields to include in a partial response.
|
|
575
|
+
# @param [String] quota_user
|
|
576
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
577
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
578
|
+
# @param [Google::Apis::RequestOptions] options
|
|
579
|
+
# Request-specific options
|
|
580
|
+
#
|
|
581
|
+
# @yield [result, err] Result & error if block supplied
|
|
582
|
+
# @yieldparam result [Google::Apis::PubsubV1::PublishResponse] parsed result object
|
|
583
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
584
|
+
#
|
|
585
|
+
# @return [Google::Apis::PubsubV1::PublishResponse]
|
|
586
|
+
#
|
|
587
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
588
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
589
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
590
|
+
def publish_topic(topic, publish_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
591
|
+
command = make_simple_command(:post, 'v1/{+topic}:publish', options)
|
|
592
|
+
command.request_representation = Google::Apis::PubsubV1::PublishRequest::Representation
|
|
593
|
+
command.request_object = publish_request_object
|
|
594
|
+
command.response_representation = Google::Apis::PubsubV1::PublishResponse::Representation
|
|
595
|
+
command.response_class = Google::Apis::PubsubV1::PublishResponse
|
|
596
|
+
command.params['topic'] = topic unless topic.nil?
|
|
597
|
+
command.query['fields'] = fields unless fields.nil?
|
|
598
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
599
|
+
execute_or_queue_command(command, &block)
|
|
600
|
+
end
|
|
601
|
+
|
|
602
|
+
# Returns permissions that a caller has on the specified resource.
|
|
603
|
+
# If the resource does not exist, this will return an empty set of
|
|
604
|
+
# permissions, not a NOT_FOUND error.
|
|
605
|
+
# Note: This operation is designed to be used for building permission-aware
|
|
606
|
+
# UIs and command-line tools, not for authorization checking. This operation
|
|
607
|
+
# may "fail open" without warning.
|
|
608
|
+
# @param [String] resource
|
|
609
|
+
# REQUIRED: The resource for which the policy detail is being requested.
|
|
610
|
+
# See the operation documentation for the appropriate value for this field.
|
|
611
|
+
# @param [Google::Apis::PubsubV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
|
612
|
+
# @param [String] fields
|
|
613
|
+
# Selector specifying which fields to include in a partial response.
|
|
614
|
+
# @param [String] quota_user
|
|
615
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
616
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
617
|
+
# @param [Google::Apis::RequestOptions] options
|
|
618
|
+
# Request-specific options
|
|
619
|
+
#
|
|
620
|
+
# @yield [result, err] Result & error if block supplied
|
|
621
|
+
# @yieldparam result [Google::Apis::PubsubV1::TestIamPermissionsResponse] parsed result object
|
|
622
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
623
|
+
#
|
|
624
|
+
# @return [Google::Apis::PubsubV1::TestIamPermissionsResponse]
|
|
625
|
+
#
|
|
626
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
627
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
628
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
629
|
+
def test_topic_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
630
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
|
631
|
+
command.request_representation = Google::Apis::PubsubV1::TestIamPermissionsRequest::Representation
|
|
632
|
+
command.request_object = test_iam_permissions_request_object
|
|
633
|
+
command.response_representation = Google::Apis::PubsubV1::TestIamPermissionsResponse::Representation
|
|
634
|
+
command.response_class = Google::Apis::PubsubV1::TestIamPermissionsResponse
|
|
635
|
+
command.params['resource'] = resource unless resource.nil?
|
|
562
636
|
command.query['fields'] = fields unless fields.nil?
|
|
637
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
563
638
|
execute_or_queue_command(command, &block)
|
|
564
639
|
end
|
|
565
640
|
|
|
@@ -571,11 +646,11 @@ module Google
|
|
|
571
646
|
# @param [String] topic
|
|
572
647
|
# Name of the topic to delete.
|
|
573
648
|
# Format is `projects/`project`/topics/`topic``.
|
|
649
|
+
# @param [String] fields
|
|
650
|
+
# Selector specifying which fields to include in a partial response.
|
|
574
651
|
# @param [String] quota_user
|
|
575
652
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
576
653
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
577
|
-
# @param [String] fields
|
|
578
|
-
# Selector specifying which fields to include in a partial response.
|
|
579
654
|
# @param [Google::Apis::RequestOptions] options
|
|
580
655
|
# Request-specific options
|
|
581
656
|
#
|
|
@@ -588,13 +663,13 @@ module Google
|
|
|
588
663
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
589
664
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
590
665
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
591
|
-
def delete_topic(topic,
|
|
666
|
+
def delete_topic(topic, fields: nil, quota_user: nil, options: nil, &block)
|
|
592
667
|
command = make_simple_command(:delete, 'v1/{+topic}', options)
|
|
593
668
|
command.response_representation = Google::Apis::PubsubV1::Empty::Representation
|
|
594
669
|
command.response_class = Google::Apis::PubsubV1::Empty
|
|
595
670
|
command.params['topic'] = topic unless topic.nil?
|
|
596
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
597
671
|
command.query['fields'] = fields unless fields.nil?
|
|
672
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
598
673
|
execute_or_queue_command(command, &block)
|
|
599
674
|
end
|
|
600
675
|
|
|
@@ -608,11 +683,11 @@ module Google
|
|
|
608
683
|
# return the next page of data.
|
|
609
684
|
# @param [Fixnum] page_size
|
|
610
685
|
# Maximum number of topics to return.
|
|
686
|
+
# @param [String] fields
|
|
687
|
+
# Selector specifying which fields to include in a partial response.
|
|
611
688
|
# @param [String] quota_user
|
|
612
689
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
613
690
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
614
|
-
# @param [String] fields
|
|
615
|
-
# Selector specifying which fields to include in a partial response.
|
|
616
691
|
# @param [Google::Apis::RequestOptions] options
|
|
617
692
|
# Request-specific options
|
|
618
693
|
#
|
|
@@ -625,50 +700,15 @@ module Google
|
|
|
625
700
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
626
701
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
627
702
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
628
|
-
def list_topics(project, page_token: nil, page_size: nil,
|
|
703
|
+
def list_topics(project, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
629
704
|
command = make_simple_command(:get, 'v1/{+project}/topics', options)
|
|
630
705
|
command.response_representation = Google::Apis::PubsubV1::ListTopicsResponse::Representation
|
|
631
706
|
command.response_class = Google::Apis::PubsubV1::ListTopicsResponse
|
|
632
707
|
command.params['project'] = project unless project.nil?
|
|
633
708
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
634
709
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
635
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
636
710
|
command.query['fields'] = fields unless fields.nil?
|
|
637
|
-
execute_or_queue_command(command, &block)
|
|
638
|
-
end
|
|
639
|
-
|
|
640
|
-
# Sets the access control policy on the specified resource. Replaces any
|
|
641
|
-
# existing policy.
|
|
642
|
-
# @param [String] resource
|
|
643
|
-
# REQUIRED: The resource for which the policy is being specified.
|
|
644
|
-
# See the operation documentation for the appropriate value for this field.
|
|
645
|
-
# @param [Google::Apis::PubsubV1::SetIamPolicyRequest] set_iam_policy_request_object
|
|
646
|
-
# @param [String] quota_user
|
|
647
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
648
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
649
|
-
# @param [String] fields
|
|
650
|
-
# Selector specifying which fields to include in a partial response.
|
|
651
|
-
# @param [Google::Apis::RequestOptions] options
|
|
652
|
-
# Request-specific options
|
|
653
|
-
#
|
|
654
|
-
# @yield [result, err] Result & error if block supplied
|
|
655
|
-
# @yieldparam result [Google::Apis::PubsubV1::Policy] parsed result object
|
|
656
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
657
|
-
#
|
|
658
|
-
# @return [Google::Apis::PubsubV1::Policy]
|
|
659
|
-
#
|
|
660
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
661
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
662
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
663
|
-
def set_topic_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
664
|
-
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
|
665
|
-
command.request_representation = Google::Apis::PubsubV1::SetIamPolicyRequest::Representation
|
|
666
|
-
command.request_object = set_iam_policy_request_object
|
|
667
|
-
command.response_representation = Google::Apis::PubsubV1::Policy::Representation
|
|
668
|
-
command.response_class = Google::Apis::PubsubV1::Policy
|
|
669
|
-
command.params['resource'] = resource unless resource.nil?
|
|
670
711
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
671
|
-
command.query['fields'] = fields unless fields.nil?
|
|
672
712
|
execute_or_queue_command(command, &block)
|
|
673
713
|
end
|
|
674
714
|
|
|
@@ -681,11 +721,11 @@ module Google
|
|
|
681
721
|
# signs (`%`). It must be between 3 and 255 characters in length, and it
|
|
682
722
|
# must not start with `"goog"`.
|
|
683
723
|
# @param [Google::Apis::PubsubV1::Topic] topic_object
|
|
724
|
+
# @param [String] fields
|
|
725
|
+
# Selector specifying which fields to include in a partial response.
|
|
684
726
|
# @param [String] quota_user
|
|
685
727
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
686
728
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
687
|
-
# @param [String] fields
|
|
688
|
-
# Selector specifying which fields to include in a partial response.
|
|
689
729
|
# @param [Google::Apis::RequestOptions] options
|
|
690
730
|
# Request-specific options
|
|
691
731
|
#
|
|
@@ -698,29 +738,29 @@ module Google
|
|
|
698
738
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
699
739
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
700
740
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
701
|
-
def create_topic(name, topic_object = nil,
|
|
741
|
+
def create_topic(name, topic_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
702
742
|
command = make_simple_command(:put, 'v1/{+name}', options)
|
|
703
743
|
command.request_representation = Google::Apis::PubsubV1::Topic::Representation
|
|
704
744
|
command.request_object = topic_object
|
|
705
745
|
command.response_representation = Google::Apis::PubsubV1::Topic::Representation
|
|
706
746
|
command.response_class = Google::Apis::PubsubV1::Topic
|
|
707
747
|
command.params['name'] = name unless name.nil?
|
|
708
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
709
748
|
command.query['fields'] = fields unless fields.nil?
|
|
749
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
710
750
|
execute_or_queue_command(command, &block)
|
|
711
751
|
end
|
|
712
752
|
|
|
713
|
-
#
|
|
714
|
-
#
|
|
715
|
-
# set.
|
|
753
|
+
# Sets the access control policy on the specified resource. Replaces any
|
|
754
|
+
# existing policy.
|
|
716
755
|
# @param [String] resource
|
|
717
|
-
# REQUIRED: The resource for which the policy is being
|
|
756
|
+
# REQUIRED: The resource for which the policy is being specified.
|
|
718
757
|
# See the operation documentation for the appropriate value for this field.
|
|
758
|
+
# @param [Google::Apis::PubsubV1::SetIamPolicyRequest] set_iam_policy_request_object
|
|
759
|
+
# @param [String] fields
|
|
760
|
+
# Selector specifying which fields to include in a partial response.
|
|
719
761
|
# @param [String] quota_user
|
|
720
762
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
721
763
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
722
|
-
# @param [String] fields
|
|
723
|
-
# Selector specifying which fields to include in a partial response.
|
|
724
764
|
# @param [Google::Apis::RequestOptions] options
|
|
725
765
|
# Request-specific options
|
|
726
766
|
#
|
|
@@ -733,119 +773,79 @@ module Google
|
|
|
733
773
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
734
774
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
735
775
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
736
|
-
def
|
|
737
|
-
command = make_simple_command(:
|
|
776
|
+
def set_topic_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
777
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
|
778
|
+
command.request_representation = Google::Apis::PubsubV1::SetIamPolicyRequest::Representation
|
|
779
|
+
command.request_object = set_iam_policy_request_object
|
|
738
780
|
command.response_representation = Google::Apis::PubsubV1::Policy::Representation
|
|
739
781
|
command.response_class = Google::Apis::PubsubV1::Policy
|
|
740
782
|
command.params['resource'] = resource unless resource.nil?
|
|
741
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
742
783
|
command.query['fields'] = fields unless fields.nil?
|
|
784
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
743
785
|
execute_or_queue_command(command, &block)
|
|
744
786
|
end
|
|
745
787
|
|
|
746
|
-
# Gets the
|
|
747
|
-
#
|
|
748
|
-
#
|
|
749
|
-
#
|
|
788
|
+
# Gets the access control policy for a resource.
|
|
789
|
+
# Returns an empty policy if the resource exists and does not have a policy
|
|
790
|
+
# set.
|
|
791
|
+
# @param [String] resource
|
|
792
|
+
# REQUIRED: The resource for which the policy is being requested.
|
|
793
|
+
# See the operation documentation for the appropriate value for this field.
|
|
794
|
+
# @param [String] fields
|
|
795
|
+
# Selector specifying which fields to include in a partial response.
|
|
750
796
|
# @param [String] quota_user
|
|
751
797
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
752
798
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
753
|
-
# @param [String] fields
|
|
754
|
-
# Selector specifying which fields to include in a partial response.
|
|
755
799
|
# @param [Google::Apis::RequestOptions] options
|
|
756
800
|
# Request-specific options
|
|
757
801
|
#
|
|
758
802
|
# @yield [result, err] Result & error if block supplied
|
|
759
|
-
# @yieldparam result [Google::Apis::PubsubV1::
|
|
803
|
+
# @yieldparam result [Google::Apis::PubsubV1::Policy] parsed result object
|
|
760
804
|
# @yieldparam err [StandardError] error object if request failed
|
|
761
805
|
#
|
|
762
|
-
# @return [Google::Apis::PubsubV1::
|
|
806
|
+
# @return [Google::Apis::PubsubV1::Policy]
|
|
763
807
|
#
|
|
764
808
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
765
809
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
766
810
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
767
|
-
def
|
|
768
|
-
command = make_simple_command(:get, 'v1/{+
|
|
769
|
-
command.response_representation = Google::Apis::PubsubV1::
|
|
770
|
-
command.response_class = Google::Apis::PubsubV1::
|
|
771
|
-
command.params['
|
|
772
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
811
|
+
def get_project_topic_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
|
|
812
|
+
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
|
813
|
+
command.response_representation = Google::Apis::PubsubV1::Policy::Representation
|
|
814
|
+
command.response_class = Google::Apis::PubsubV1::Policy
|
|
815
|
+
command.params['resource'] = resource unless resource.nil?
|
|
773
816
|
command.query['fields'] = fields unless fields.nil?
|
|
817
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
774
818
|
execute_or_queue_command(command, &block)
|
|
775
819
|
end
|
|
776
820
|
|
|
777
|
-
#
|
|
778
|
-
# does not exist. The message payload must not be empty; it must contain
|
|
779
|
-
# either a non-empty data field, or at least one attribute.
|
|
821
|
+
# Gets the configuration of a topic.
|
|
780
822
|
# @param [String] topic
|
|
781
|
-
# The
|
|
823
|
+
# The name of the topic to get.
|
|
782
824
|
# Format is `projects/`project`/topics/`topic``.
|
|
783
|
-
# @param [Google::Apis::PubsubV1::PublishRequest] publish_request_object
|
|
784
|
-
# @param [String] quota_user
|
|
785
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
786
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
787
825
|
# @param [String] fields
|
|
788
826
|
# Selector specifying which fields to include in a partial response.
|
|
789
|
-
# @param [Google::Apis::RequestOptions] options
|
|
790
|
-
# Request-specific options
|
|
791
|
-
#
|
|
792
|
-
# @yield [result, err] Result & error if block supplied
|
|
793
|
-
# @yieldparam result [Google::Apis::PubsubV1::PublishResponse] parsed result object
|
|
794
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
795
|
-
#
|
|
796
|
-
# @return [Google::Apis::PubsubV1::PublishResponse]
|
|
797
|
-
#
|
|
798
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
799
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
800
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
801
|
-
def publish_topic(topic, publish_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
802
|
-
command = make_simple_command(:post, 'v1/{+topic}:publish', options)
|
|
803
|
-
command.request_representation = Google::Apis::PubsubV1::PublishRequest::Representation
|
|
804
|
-
command.request_object = publish_request_object
|
|
805
|
-
command.response_representation = Google::Apis::PubsubV1::PublishResponse::Representation
|
|
806
|
-
command.response_class = Google::Apis::PubsubV1::PublishResponse
|
|
807
|
-
command.params['topic'] = topic unless topic.nil?
|
|
808
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
809
|
-
command.query['fields'] = fields unless fields.nil?
|
|
810
|
-
execute_or_queue_command(command, &block)
|
|
811
|
-
end
|
|
812
|
-
|
|
813
|
-
# Returns permissions that a caller has on the specified resource.
|
|
814
|
-
# If the resource does not exist, this will return an empty set of
|
|
815
|
-
# permissions, not a NOT_FOUND error.
|
|
816
|
-
# Note: This operation is designed to be used for building permission-aware
|
|
817
|
-
# UIs and command-line tools, not for authorization checking. This operation
|
|
818
|
-
# may "fail open" without warning.
|
|
819
|
-
# @param [String] resource
|
|
820
|
-
# REQUIRED: The resource for which the policy detail is being requested.
|
|
821
|
-
# See the operation documentation for the appropriate value for this field.
|
|
822
|
-
# @param [Google::Apis::PubsubV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
|
823
827
|
# @param [String] quota_user
|
|
824
828
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
825
829
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
826
|
-
# @param [String] fields
|
|
827
|
-
# Selector specifying which fields to include in a partial response.
|
|
828
830
|
# @param [Google::Apis::RequestOptions] options
|
|
829
831
|
# Request-specific options
|
|
830
832
|
#
|
|
831
833
|
# @yield [result, err] Result & error if block supplied
|
|
832
|
-
# @yieldparam result [Google::Apis::PubsubV1::
|
|
834
|
+
# @yieldparam result [Google::Apis::PubsubV1::Topic] parsed result object
|
|
833
835
|
# @yieldparam err [StandardError] error object if request failed
|
|
834
836
|
#
|
|
835
|
-
# @return [Google::Apis::PubsubV1::
|
|
837
|
+
# @return [Google::Apis::PubsubV1::Topic]
|
|
836
838
|
#
|
|
837
839
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
838
840
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
839
841
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
840
|
-
def
|
|
841
|
-
command = make_simple_command(:
|
|
842
|
-
command.
|
|
843
|
-
command.
|
|
844
|
-
command.
|
|
845
|
-
command.response_class = Google::Apis::PubsubV1::TestIamPermissionsResponse
|
|
846
|
-
command.params['resource'] = resource unless resource.nil?
|
|
847
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
842
|
+
def get_topic(topic, fields: nil, quota_user: nil, options: nil, &block)
|
|
843
|
+
command = make_simple_command(:get, 'v1/{+topic}', options)
|
|
844
|
+
command.response_representation = Google::Apis::PubsubV1::Topic::Representation
|
|
845
|
+
command.response_class = Google::Apis::PubsubV1::Topic
|
|
846
|
+
command.params['topic'] = topic unless topic.nil?
|
|
848
847
|
command.query['fields'] = fields unless fields.nil?
|
|
848
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
849
849
|
execute_or_queue_command(command, &block)
|
|
850
850
|
end
|
|
851
851
|
|
|
@@ -859,11 +859,11 @@ module Google
|
|
|
859
859
|
# that the system should return the next page of data.
|
|
860
860
|
# @param [Fixnum] page_size
|
|
861
861
|
# Maximum number of subscription names to return.
|
|
862
|
+
# @param [String] fields
|
|
863
|
+
# Selector specifying which fields to include in a partial response.
|
|
862
864
|
# @param [String] quota_user
|
|
863
865
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
864
866
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
865
|
-
# @param [String] fields
|
|
866
|
-
# Selector specifying which fields to include in a partial response.
|
|
867
867
|
# @param [Google::Apis::RequestOptions] options
|
|
868
868
|
# Request-specific options
|
|
869
869
|
#
|
|
@@ -876,15 +876,15 @@ module Google
|
|
|
876
876
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
877
877
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
878
878
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
879
|
-
def list_topic_subscriptions(topic, page_token: nil, page_size: nil,
|
|
879
|
+
def list_topic_subscriptions(topic, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
880
880
|
command = make_simple_command(:get, 'v1/{+topic}/subscriptions', options)
|
|
881
881
|
command.response_representation = Google::Apis::PubsubV1::ListTopicSubscriptionsResponse::Representation
|
|
882
882
|
command.response_class = Google::Apis::PubsubV1::ListTopicSubscriptionsResponse
|
|
883
883
|
command.params['topic'] = topic unless topic.nil?
|
|
884
884
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
885
885
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
886
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
887
886
|
command.query['fields'] = fields unless fields.nil?
|
|
887
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
888
888
|
execute_or_queue_command(command, &block)
|
|
889
889
|
end
|
|
890
890
|
|