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
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://cloud.google.com/pubsub/docs
|
26
26
|
module PubsubV1
|
27
27
|
VERSION = 'V1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20170502'
|
29
29
|
|
30
30
|
# View and manage your data across Google Cloud Platform services
|
31
31
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -22,6 +22,184 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module PubsubV1
|
24
24
|
|
25
|
+
# Request for the ModifyAckDeadline method.
|
26
|
+
class ModifyAckDeadlineRequest
|
27
|
+
include Google::Apis::Core::Hashable
|
28
|
+
|
29
|
+
# List of acknowledgment IDs.
|
30
|
+
# Corresponds to the JSON property `ackIds`
|
31
|
+
# @return [Array<String>]
|
32
|
+
attr_accessor :ack_ids
|
33
|
+
|
34
|
+
# The new ack deadline with respect to the time this request was sent to
|
35
|
+
# the Pub/Sub system. For example, if the value is 10, the new
|
36
|
+
# ack deadline will expire 10 seconds after the `ModifyAckDeadline` call
|
37
|
+
# was made. Specifying zero may immediately make the message available for
|
38
|
+
# another pull request.
|
39
|
+
# The minimum deadline you can specify is 0 seconds.
|
40
|
+
# The maximum deadline you can specify is 600 seconds (10 minutes).
|
41
|
+
# Corresponds to the JSON property `ackDeadlineSeconds`
|
42
|
+
# @return [Fixnum]
|
43
|
+
attr_accessor :ack_deadline_seconds
|
44
|
+
|
45
|
+
def initialize(**args)
|
46
|
+
update!(**args)
|
47
|
+
end
|
48
|
+
|
49
|
+
# Update properties of this object
|
50
|
+
def update!(**args)
|
51
|
+
@ack_ids = args[:ack_ids] if args.key?(:ack_ids)
|
52
|
+
@ack_deadline_seconds = args[:ack_deadline_seconds] if args.key?(:ack_deadline_seconds)
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
# Request message for `SetIamPolicy` method.
|
57
|
+
class SetIamPolicyRequest
|
58
|
+
include Google::Apis::Core::Hashable
|
59
|
+
|
60
|
+
# Defines an Identity and Access Management (IAM) policy. It is used to
|
61
|
+
# specify access control policies for Cloud Platform resources.
|
62
|
+
# A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
|
63
|
+
# `members` to a `role`, where the members can be user accounts, Google groups,
|
64
|
+
# Google domains, and service accounts. A `role` is a named list of permissions
|
65
|
+
# defined by IAM.
|
66
|
+
# **Example**
|
67
|
+
# `
|
68
|
+
# "bindings": [
|
69
|
+
# `
|
70
|
+
# "role": "roles/owner",
|
71
|
+
# "members": [
|
72
|
+
# "user:mike@example.com",
|
73
|
+
# "group:admins@example.com",
|
74
|
+
# "domain:google.com",
|
75
|
+
# "serviceAccount:my-other-app@appspot.gserviceaccount.com",
|
76
|
+
# ]
|
77
|
+
# `,
|
78
|
+
# `
|
79
|
+
# "role": "roles/viewer",
|
80
|
+
# "members": ["user:sean@example.com"]
|
81
|
+
# `
|
82
|
+
# ]
|
83
|
+
# `
|
84
|
+
# For a description of IAM and its features, see the
|
85
|
+
# [IAM developer's guide](https://cloud.google.com/iam).
|
86
|
+
# Corresponds to the JSON property `policy`
|
87
|
+
# @return [Google::Apis::PubsubV1::Policy]
|
88
|
+
attr_accessor :policy
|
89
|
+
|
90
|
+
def initialize(**args)
|
91
|
+
update!(**args)
|
92
|
+
end
|
93
|
+
|
94
|
+
# Update properties of this object
|
95
|
+
def update!(**args)
|
96
|
+
@policy = args[:policy] if args.key?(:policy)
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
100
|
+
# A message data and its attributes. The message payload must not be empty;
|
101
|
+
# it must contain either a non-empty data field, or at least one attribute.
|
102
|
+
class Message
|
103
|
+
include Google::Apis::Core::Hashable
|
104
|
+
|
105
|
+
# Optional attributes for this message.
|
106
|
+
# Corresponds to the JSON property `attributes`
|
107
|
+
# @return [Hash<String,String>]
|
108
|
+
attr_accessor :attributes
|
109
|
+
|
110
|
+
# ID of this message, assigned by the server when the message is published.
|
111
|
+
# Guaranteed to be unique within the topic. This value may be read by a
|
112
|
+
# subscriber that receives a `PubsubMessage` via a `Pull` call or a push
|
113
|
+
# delivery. It must not be populated by the publisher in a `Publish` call.
|
114
|
+
# Corresponds to the JSON property `messageId`
|
115
|
+
# @return [String]
|
116
|
+
attr_accessor :message_id
|
117
|
+
|
118
|
+
# The time at which the message was published, populated by the server when
|
119
|
+
# it receives the `Publish` call. It must not be populated by the
|
120
|
+
# publisher in a `Publish` call.
|
121
|
+
# Corresponds to the JSON property `publishTime`
|
122
|
+
# @return [String]
|
123
|
+
attr_accessor :publish_time
|
124
|
+
|
125
|
+
# The message payload.
|
126
|
+
# Corresponds to the JSON property `data`
|
127
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
128
|
+
# @return [String]
|
129
|
+
attr_accessor :data
|
130
|
+
|
131
|
+
def initialize(**args)
|
132
|
+
update!(**args)
|
133
|
+
end
|
134
|
+
|
135
|
+
# Update properties of this object
|
136
|
+
def update!(**args)
|
137
|
+
@attributes = args[:attributes] if args.key?(:attributes)
|
138
|
+
@message_id = args[:message_id] if args.key?(:message_id)
|
139
|
+
@publish_time = args[:publish_time] if args.key?(:publish_time)
|
140
|
+
@data = args[:data] if args.key?(:data)
|
141
|
+
end
|
142
|
+
end
|
143
|
+
|
144
|
+
# Request for the ModifyPushConfig method.
|
145
|
+
class ModifyPushConfigRequest
|
146
|
+
include Google::Apis::Core::Hashable
|
147
|
+
|
148
|
+
# Configuration for a push delivery endpoint.
|
149
|
+
# Corresponds to the JSON property `pushConfig`
|
150
|
+
# @return [Google::Apis::PubsubV1::PushConfig]
|
151
|
+
attr_accessor :push_config
|
152
|
+
|
153
|
+
def initialize(**args)
|
154
|
+
update!(**args)
|
155
|
+
end
|
156
|
+
|
157
|
+
# Update properties of this object
|
158
|
+
def update!(**args)
|
159
|
+
@push_config = args[:push_config] if args.key?(:push_config)
|
160
|
+
end
|
161
|
+
end
|
162
|
+
|
163
|
+
# Associates `members` with a `role`.
|
164
|
+
class Binding
|
165
|
+
include Google::Apis::Core::Hashable
|
166
|
+
|
167
|
+
# Specifies the identities requesting access for a Cloud Platform resource.
|
168
|
+
# `members` can have the following values:
|
169
|
+
# * `allUsers`: A special identifier that represents anyone who is
|
170
|
+
# on the internet; with or without a Google account.
|
171
|
+
# * `allAuthenticatedUsers`: A special identifier that represents anyone
|
172
|
+
# who is authenticated with a Google account or a service account.
|
173
|
+
# * `user:`emailid``: An email address that represents a specific Google
|
174
|
+
# account. For example, `alice@gmail.com` or `joe@example.com`.
|
175
|
+
# * `serviceAccount:`emailid``: An email address that represents a service
|
176
|
+
# account. For example, `my-other-app@appspot.gserviceaccount.com`.
|
177
|
+
# * `group:`emailid``: An email address that represents a Google group.
|
178
|
+
# For example, `admins@example.com`.
|
179
|
+
# * `domain:`domain``: A Google Apps domain name that represents all the
|
180
|
+
# users of that domain. For example, `google.com` or `example.com`.
|
181
|
+
# Corresponds to the JSON property `members`
|
182
|
+
# @return [Array<String>]
|
183
|
+
attr_accessor :members
|
184
|
+
|
185
|
+
# Role that is assigned to `members`.
|
186
|
+
# For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
|
187
|
+
# Required
|
188
|
+
# Corresponds to the JSON property `role`
|
189
|
+
# @return [String]
|
190
|
+
attr_accessor :role
|
191
|
+
|
192
|
+
def initialize(**args)
|
193
|
+
update!(**args)
|
194
|
+
end
|
195
|
+
|
196
|
+
# Update properties of this object
|
197
|
+
def update!(**args)
|
198
|
+
@members = args[:members] if args.key?(:members)
|
199
|
+
@role = args[:role] if args.key?(:role)
|
200
|
+
end
|
201
|
+
end
|
202
|
+
|
25
203
|
# Request for the Acknowledge method.
|
26
204
|
class AcknowledgeRequest
|
27
205
|
include Google::Apis::Core::Hashable
|
@@ -494,184 +672,6 @@ module Google
|
|
494
672
|
@bindings = args[:bindings] if args.key?(:bindings)
|
495
673
|
end
|
496
674
|
end
|
497
|
-
|
498
|
-
# Request for the ModifyAckDeadline method.
|
499
|
-
class ModifyAckDeadlineRequest
|
500
|
-
include Google::Apis::Core::Hashable
|
501
|
-
|
502
|
-
# The new ack deadline with respect to the time this request was sent to
|
503
|
-
# the Pub/Sub system. For example, if the value is 10, the new
|
504
|
-
# ack deadline will expire 10 seconds after the `ModifyAckDeadline` call
|
505
|
-
# was made. Specifying zero may immediately make the message available for
|
506
|
-
# another pull request.
|
507
|
-
# The minimum deadline you can specify is 0 seconds.
|
508
|
-
# The maximum deadline you can specify is 600 seconds (10 minutes).
|
509
|
-
# Corresponds to the JSON property `ackDeadlineSeconds`
|
510
|
-
# @return [Fixnum]
|
511
|
-
attr_accessor :ack_deadline_seconds
|
512
|
-
|
513
|
-
# List of acknowledgment IDs.
|
514
|
-
# Corresponds to the JSON property `ackIds`
|
515
|
-
# @return [Array<String>]
|
516
|
-
attr_accessor :ack_ids
|
517
|
-
|
518
|
-
def initialize(**args)
|
519
|
-
update!(**args)
|
520
|
-
end
|
521
|
-
|
522
|
-
# Update properties of this object
|
523
|
-
def update!(**args)
|
524
|
-
@ack_deadline_seconds = args[:ack_deadline_seconds] if args.key?(:ack_deadline_seconds)
|
525
|
-
@ack_ids = args[:ack_ids] if args.key?(:ack_ids)
|
526
|
-
end
|
527
|
-
end
|
528
|
-
|
529
|
-
# Request message for `SetIamPolicy` method.
|
530
|
-
class SetIamPolicyRequest
|
531
|
-
include Google::Apis::Core::Hashable
|
532
|
-
|
533
|
-
# Defines an Identity and Access Management (IAM) policy. It is used to
|
534
|
-
# specify access control policies for Cloud Platform resources.
|
535
|
-
# A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
|
536
|
-
# `members` to a `role`, where the members can be user accounts, Google groups,
|
537
|
-
# Google domains, and service accounts. A `role` is a named list of permissions
|
538
|
-
# defined by IAM.
|
539
|
-
# **Example**
|
540
|
-
# `
|
541
|
-
# "bindings": [
|
542
|
-
# `
|
543
|
-
# "role": "roles/owner",
|
544
|
-
# "members": [
|
545
|
-
# "user:mike@example.com",
|
546
|
-
# "group:admins@example.com",
|
547
|
-
# "domain:google.com",
|
548
|
-
# "serviceAccount:my-other-app@appspot.gserviceaccount.com",
|
549
|
-
# ]
|
550
|
-
# `,
|
551
|
-
# `
|
552
|
-
# "role": "roles/viewer",
|
553
|
-
# "members": ["user:sean@example.com"]
|
554
|
-
# `
|
555
|
-
# ]
|
556
|
-
# `
|
557
|
-
# For a description of IAM and its features, see the
|
558
|
-
# [IAM developer's guide](https://cloud.google.com/iam).
|
559
|
-
# Corresponds to the JSON property `policy`
|
560
|
-
# @return [Google::Apis::PubsubV1::Policy]
|
561
|
-
attr_accessor :policy
|
562
|
-
|
563
|
-
def initialize(**args)
|
564
|
-
update!(**args)
|
565
|
-
end
|
566
|
-
|
567
|
-
# Update properties of this object
|
568
|
-
def update!(**args)
|
569
|
-
@policy = args[:policy] if args.key?(:policy)
|
570
|
-
end
|
571
|
-
end
|
572
|
-
|
573
|
-
# A message data and its attributes. The message payload must not be empty;
|
574
|
-
# it must contain either a non-empty data field, or at least one attribute.
|
575
|
-
class Message
|
576
|
-
include Google::Apis::Core::Hashable
|
577
|
-
|
578
|
-
# Optional attributes for this message.
|
579
|
-
# Corresponds to the JSON property `attributes`
|
580
|
-
# @return [Hash<String,String>]
|
581
|
-
attr_accessor :attributes
|
582
|
-
|
583
|
-
# ID of this message, assigned by the server when the message is published.
|
584
|
-
# Guaranteed to be unique within the topic. This value may be read by a
|
585
|
-
# subscriber that receives a `PubsubMessage` via a `Pull` call or a push
|
586
|
-
# delivery. It must not be populated by the publisher in a `Publish` call.
|
587
|
-
# Corresponds to the JSON property `messageId`
|
588
|
-
# @return [String]
|
589
|
-
attr_accessor :message_id
|
590
|
-
|
591
|
-
# The time at which the message was published, populated by the server when
|
592
|
-
# it receives the `Publish` call. It must not be populated by the
|
593
|
-
# publisher in a `Publish` call.
|
594
|
-
# Corresponds to the JSON property `publishTime`
|
595
|
-
# @return [String]
|
596
|
-
attr_accessor :publish_time
|
597
|
-
|
598
|
-
# The message payload.
|
599
|
-
# Corresponds to the JSON property `data`
|
600
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
601
|
-
# @return [String]
|
602
|
-
attr_accessor :data
|
603
|
-
|
604
|
-
def initialize(**args)
|
605
|
-
update!(**args)
|
606
|
-
end
|
607
|
-
|
608
|
-
# Update properties of this object
|
609
|
-
def update!(**args)
|
610
|
-
@attributes = args[:attributes] if args.key?(:attributes)
|
611
|
-
@message_id = args[:message_id] if args.key?(:message_id)
|
612
|
-
@publish_time = args[:publish_time] if args.key?(:publish_time)
|
613
|
-
@data = args[:data] if args.key?(:data)
|
614
|
-
end
|
615
|
-
end
|
616
|
-
|
617
|
-
# Request for the ModifyPushConfig method.
|
618
|
-
class ModifyPushConfigRequest
|
619
|
-
include Google::Apis::Core::Hashable
|
620
|
-
|
621
|
-
# Configuration for a push delivery endpoint.
|
622
|
-
# Corresponds to the JSON property `pushConfig`
|
623
|
-
# @return [Google::Apis::PubsubV1::PushConfig]
|
624
|
-
attr_accessor :push_config
|
625
|
-
|
626
|
-
def initialize(**args)
|
627
|
-
update!(**args)
|
628
|
-
end
|
629
|
-
|
630
|
-
# Update properties of this object
|
631
|
-
def update!(**args)
|
632
|
-
@push_config = args[:push_config] if args.key?(:push_config)
|
633
|
-
end
|
634
|
-
end
|
635
|
-
|
636
|
-
# Associates `members` with a `role`.
|
637
|
-
class Binding
|
638
|
-
include Google::Apis::Core::Hashable
|
639
|
-
|
640
|
-
# Specifies the identities requesting access for a Cloud Platform resource.
|
641
|
-
# `members` can have the following values:
|
642
|
-
# * `allUsers`: A special identifier that represents anyone who is
|
643
|
-
# on the internet; with or without a Google account.
|
644
|
-
# * `allAuthenticatedUsers`: A special identifier that represents anyone
|
645
|
-
# who is authenticated with a Google account or a service account.
|
646
|
-
# * `user:`emailid``: An email address that represents a specific Google
|
647
|
-
# account. For example, `alice@gmail.com` or `joe@example.com`.
|
648
|
-
# * `serviceAccount:`emailid``: An email address that represents a service
|
649
|
-
# account. For example, `my-other-app@appspot.gserviceaccount.com`.
|
650
|
-
# * `group:`emailid``: An email address that represents a Google group.
|
651
|
-
# For example, `admins@example.com`.
|
652
|
-
# * `domain:`domain``: A Google Apps domain name that represents all the
|
653
|
-
# users of that domain. For example, `google.com` or `example.com`.
|
654
|
-
# Corresponds to the JSON property `members`
|
655
|
-
# @return [Array<String>]
|
656
|
-
attr_accessor :members
|
657
|
-
|
658
|
-
# Role that is assigned to `members`.
|
659
|
-
# For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
|
660
|
-
# Required
|
661
|
-
# Corresponds to the JSON property `role`
|
662
|
-
# @return [String]
|
663
|
-
attr_accessor :role
|
664
|
-
|
665
|
-
def initialize(**args)
|
666
|
-
update!(**args)
|
667
|
-
end
|
668
|
-
|
669
|
-
# Update properties of this object
|
670
|
-
def update!(**args)
|
671
|
-
@members = args[:members] if args.key?(:members)
|
672
|
-
@role = args[:role] if args.key?(:role)
|
673
|
-
end
|
674
|
-
end
|
675
675
|
end
|
676
676
|
end
|
677
677
|
end
|
@@ -22,6 +22,36 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module PubsubV1
|
24
24
|
|
25
|
+
class ModifyAckDeadlineRequest
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
31
|
+
class SetIamPolicyRequest
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
37
|
+
class Message
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
43
|
+
class ModifyPushConfigRequest
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
49
|
+
class Binding
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
25
55
|
class AcknowledgeRequest
|
26
56
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
57
|
|
@@ -119,33 +149,45 @@ module Google
|
|
119
149
|
end
|
120
150
|
|
121
151
|
class ModifyAckDeadlineRequest
|
122
|
-
|
123
|
-
|
124
|
-
|
152
|
+
# @private
|
153
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
154
|
+
collection :ack_ids, as: 'ackIds'
|
155
|
+
property :ack_deadline_seconds, as: 'ackDeadlineSeconds'
|
156
|
+
end
|
125
157
|
end
|
126
158
|
|
127
159
|
class SetIamPolicyRequest
|
128
|
-
|
160
|
+
# @private
|
161
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
162
|
+
property :policy, as: 'policy', class: Google::Apis::PubsubV1::Policy, decorator: Google::Apis::PubsubV1::Policy::Representation
|
129
163
|
|
130
|
-
|
164
|
+
end
|
131
165
|
end
|
132
166
|
|
133
167
|
class Message
|
134
|
-
|
135
|
-
|
136
|
-
|
168
|
+
# @private
|
169
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
170
|
+
hash :attributes, as: 'attributes'
|
171
|
+
property :message_id, as: 'messageId'
|
172
|
+
property :publish_time, as: 'publishTime'
|
173
|
+
property :data, :base64 => true, as: 'data'
|
174
|
+
end
|
137
175
|
end
|
138
176
|
|
139
177
|
class ModifyPushConfigRequest
|
140
|
-
|
178
|
+
# @private
|
179
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
180
|
+
property :push_config, as: 'pushConfig', class: Google::Apis::PubsubV1::PushConfig, decorator: Google::Apis::PubsubV1::PushConfig::Representation
|
141
181
|
|
142
|
-
|
182
|
+
end
|
143
183
|
end
|
144
184
|
|
145
185
|
class Binding
|
146
|
-
|
147
|
-
|
148
|
-
|
186
|
+
# @private
|
187
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
188
|
+
collection :members, as: 'members'
|
189
|
+
property :role, as: 'role'
|
190
|
+
end
|
149
191
|
end
|
150
192
|
|
151
193
|
class AcknowledgeRequest
|
@@ -276,48 +318,6 @@ module Google
|
|
276
318
|
|
277
319
|
end
|
278
320
|
end
|
279
|
-
|
280
|
-
class ModifyAckDeadlineRequest
|
281
|
-
# @private
|
282
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
283
|
-
property :ack_deadline_seconds, as: 'ackDeadlineSeconds'
|
284
|
-
collection :ack_ids, as: 'ackIds'
|
285
|
-
end
|
286
|
-
end
|
287
|
-
|
288
|
-
class SetIamPolicyRequest
|
289
|
-
# @private
|
290
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
291
|
-
property :policy, as: 'policy', class: Google::Apis::PubsubV1::Policy, decorator: Google::Apis::PubsubV1::Policy::Representation
|
292
|
-
|
293
|
-
end
|
294
|
-
end
|
295
|
-
|
296
|
-
class Message
|
297
|
-
# @private
|
298
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
299
|
-
hash :attributes, as: 'attributes'
|
300
|
-
property :message_id, as: 'messageId'
|
301
|
-
property :publish_time, as: 'publishTime'
|
302
|
-
property :data, :base64 => true, as: 'data'
|
303
|
-
end
|
304
|
-
end
|
305
|
-
|
306
|
-
class ModifyPushConfigRequest
|
307
|
-
# @private
|
308
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
309
|
-
property :push_config, as: 'pushConfig', class: Google::Apis::PubsubV1::PushConfig, decorator: Google::Apis::PubsubV1::PushConfig::Representation
|
310
|
-
|
311
|
-
end
|
312
|
-
end
|
313
|
-
|
314
|
-
class Binding
|
315
|
-
# @private
|
316
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
317
|
-
collection :members, as: 'members'
|
318
|
-
property :role, as: 'role'
|
319
|
-
end
|
320
|
-
end
|
321
321
|
end
|
322
322
|
end
|
323
323
|
end
|