google-api-client 0.9.28 → 0.10.0

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.
Files changed (138) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +7 -4
  3. data/CHANGELOG.md +10 -0
  4. data/api_names.yaml +36512 -36326
  5. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +41 -41
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +13 -13
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +110 -110
  9. data/generated/google/apis/adsense_v1_4.rb +1 -1
  10. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  11. data/generated/google/apis/analyticsreporting_v4.rb +3 -3
  12. data/generated/google/apis/analyticsreporting_v4/classes.rb +845 -845
  13. data/generated/google/apis/analyticsreporting_v4/representations.rb +184 -184
  14. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  15. data/generated/google/apis/androidenterprise_v1/classes.rb +5 -5
  16. data/generated/google/apis/androidenterprise_v1/service.rb +3 -1
  17. data/generated/google/apis/appstate_v1.rb +1 -1
  18. data/generated/google/apis/calendar_v3.rb +1 -1
  19. data/generated/google/apis/classroom_v1.rb +22 -25
  20. data/generated/google/apis/classroom_v1/classes.rb +998 -907
  21. data/generated/google/apis/classroom_v1/representations.rb +240 -240
  22. data/generated/google/apis/classroom_v1/service.rb +1269 -1061
  23. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  24. data/generated/google/apis/cloudbuild_v1/classes.rb +322 -322
  25. data/generated/google/apis/cloudbuild_v1/representations.rb +88 -88
  26. data/generated/google/apis/cloudbuild_v1/service.rb +57 -57
  27. data/generated/google/apis/clouddebugger_v2.rb +4 -4
  28. data/generated/google/apis/clouddebugger_v2/classes.rb +311 -311
  29. data/generated/google/apis/clouddebugger_v2/representations.rb +92 -92
  30. data/generated/google/apis/clouddebugger_v2/service.rb +41 -41
  31. data/generated/google/apis/cloudkms_v1beta1.rb +1 -1
  32. data/generated/google/apis/cloudkms_v1beta1/classes.rb +611 -611
  33. data/generated/google/apis/cloudkms_v1beta1/representations.rb +124 -124
  34. data/generated/google/apis/cloudkms_v1beta1/service.rb +254 -248
  35. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  36. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +116 -116
  37. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +28 -28
  38. data/generated/google/apis/cloudresourcemanager_v1/service.rb +257 -257
  39. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  40. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +394 -394
  41. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +79 -79
  42. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +269 -269
  43. data/generated/google/apis/cloudtrace_v1.rb +8 -8
  44. data/generated/google/apis/cloudtrace_v1/classes.rb +90 -84
  45. data/generated/google/apis/cloudtrace_v1/representations.rb +22 -22
  46. data/generated/google/apis/cloudtrace_v1/service.rb +40 -35
  47. data/generated/google/apis/compute_beta.rb +1 -1
  48. data/generated/google/apis/compute_beta/classes.rb +406 -31
  49. data/generated/google/apis/compute_beta/representations.rb +154 -0
  50. data/generated/google/apis/compute_beta/service.rb +262 -9
  51. data/generated/google/apis/compute_v1.rb +1 -1
  52. data/generated/google/apis/compute_v1/classes.rb +17 -20
  53. data/generated/google/apis/content_v2.rb +1 -1
  54. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  55. data/generated/google/apis/dataflow_v1b3/classes.rb +3226 -2847
  56. data/generated/google/apis/dataflow_v1b3/representations.rb +825 -677
  57. data/generated/google/apis/dataflow_v1b3/service.rb +175 -175
  58. data/generated/google/apis/dataproc_v1.rb +2 -2
  59. data/generated/google/apis/dataproc_v1/classes.rb +1213 -1136
  60. data/generated/google/apis/dataproc_v1/representations.rb +262 -244
  61. data/generated/google/apis/dataproc_v1/service.rb +298 -243
  62. data/generated/google/apis/datastore_v1.rb +4 -4
  63. data/generated/google/apis/datastore_v1/classes.rb +728 -728
  64. data/generated/google/apis/datastore_v1/representations.rb +167 -167
  65. data/generated/google/apis/datastore_v1/service.rb +68 -68
  66. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  67. data/generated/google/apis/drive_v2.rb +1 -1
  68. data/generated/google/apis/drive_v3.rb +1 -1
  69. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  70. data/generated/google/apis/games_management_v1management.rb +1 -1
  71. data/generated/google/apis/games_v1.rb +1 -1
  72. data/generated/google/apis/genomics_v1.rb +7 -7
  73. data/generated/google/apis/genomics_v1/classes.rb +932 -932
  74. data/generated/google/apis/genomics_v1/representations.rb +205 -205
  75. data/generated/google/apis/genomics_v1/service.rb +1228 -1228
  76. data/generated/google/apis/gmail_v1.rb +1 -1
  77. data/generated/google/apis/iam_v1/classes.rb +440 -440
  78. data/generated/google/apis/iam_v1/representations.rb +94 -94
  79. data/generated/google/apis/iam_v1/service.rb +60 -60
  80. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  81. data/generated/google/apis/identitytoolkit_v3/classes.rb +21 -1
  82. data/generated/google/apis/identitytoolkit_v3/representations.rb +3 -0
  83. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  84. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  85. data/generated/google/apis/kgsearch_v1/service.rb +21 -21
  86. data/generated/google/apis/language_v1beta1.rb +1 -1
  87. data/generated/google/apis/language_v1beta1/classes.rb +232 -232
  88. data/generated/google/apis/language_v1beta1/representations.rb +75 -75
  89. data/generated/google/apis/logging_v2beta1.rb +1 -1
  90. data/generated/google/apis/logging_v2beta1/classes.rb +345 -337
  91. data/generated/google/apis/logging_v2beta1/representations.rb +55 -55
  92. data/generated/google/apis/logging_v2beta1/service.rb +331 -306
  93. data/generated/google/apis/monitoring_v3.rb +1 -1
  94. data/generated/google/apis/monitoring_v3/classes.rb +253 -253
  95. data/generated/google/apis/monitoring_v3/representations.rb +58 -58
  96. data/generated/google/apis/monitoring_v3/service.rb +135 -135
  97. data/generated/google/apis/people_v1.rb +15 -16
  98. data/generated/google/apis/people_v1/classes.rb +985 -855
  99. data/generated/google/apis/people_v1/representations.rb +227 -220
  100. data/generated/google/apis/people_v1/service.rb +58 -52
  101. data/generated/google/apis/plus_domains_v1.rb +1 -1
  102. data/generated/google/apis/plus_v1.rb +1 -1
  103. data/generated/google/apis/pubsub_v1.rb +1 -1
  104. data/generated/google/apis/pubsub_v1/classes.rb +257 -257
  105. data/generated/google/apis/pubsub_v1/representations.rb +83 -83
  106. data/generated/google/apis/pubsub_v1/service.rb +390 -390
  107. data/generated/google/apis/script_v1.rb +17 -17
  108. data/generated/google/apis/script_v1/classes.rb +149 -141
  109. data/generated/google/apis/script_v1/representations.rb +26 -27
  110. data/generated/google/apis/script_v1/service.rb +9 -8
  111. data/generated/google/apis/sheets_v4.rb +1 -1
  112. data/generated/google/apis/sheets_v4/classes.rb +4223 -4188
  113. data/generated/google/apis/sheets_v4/representations.rb +850 -834
  114. data/generated/google/apis/sheets_v4/service.rb +192 -192
  115. data/generated/google/apis/slides_v1.rb +1 -1
  116. data/generated/google/apis/slides_v1/classes.rb +927 -800
  117. data/generated/google/apis/slides_v1/representations.rb +253 -211
  118. data/generated/google/apis/speech_v1beta1.rb +1 -1
  119. data/generated/google/apis/speech_v1beta1/classes.rb +94 -107
  120. data/generated/google/apis/speech_v1beta1/representations.rb +24 -36
  121. data/generated/google/apis/speech_v1beta1/service.rb +51 -54
  122. data/generated/google/apis/storage_v1.rb +1 -1
  123. data/generated/google/apis/vision_v1.rb +1 -1
  124. data/generated/google/apis/vision_v1/classes.rb +888 -885
  125. data/generated/google/apis/vision_v1/representations.rb +139 -139
  126. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  127. data/generated/google/apis/youtube_analytics_v1/service.rb +5 -1
  128. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  129. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  130. data/generated/google/apis/youtubereporting_v1/classes.rb +80 -80
  131. data/generated/google/apis/youtubereporting_v1/representations.rb +23 -23
  132. data/generated/google/apis/youtubereporting_v1/service.rb +51 -51
  133. data/google-api-client.gemspec +2 -2
  134. data/lib/google/apis/core/api_command.rb +1 -1
  135. data/lib/google/apis/core/json_representation.rb +2 -2
  136. data/lib/google/apis/version.rb +1 -1
  137. data/samples/cli/lib/samples/you_tube.rb +4 -1
  138. metadata +36 -30
@@ -22,8 +22,7 @@ module Google
22
22
  module PeopleV1
23
23
  # Google People API
24
24
  #
25
- # The Google People API service gives access to information about profiles and
26
- # contacts.
25
+ # Provides access to information about profiles and contacts.
27
26
  #
28
27
  # @example
29
28
  # require 'google/apis/people_v1'
@@ -47,23 +46,26 @@ module Google
47
46
  super('https://people.googleapis.com/', '')
48
47
  end
49
48
 
50
- # Provides information about a person resource for a resource name. Use `people/
51
- # me` to indicate the authenticated user.
49
+ # Provides information about a person resource for a resource name. Use
50
+ # `people/me` to indicate the authenticated user.
52
51
  # @param [String] resource_name
53
- # The resource name of the person to provide information about. - To get
54
- # information about the authenticated user, specify `people/me`. - To get
55
- # information about any user, specify the resource name that identifies the user,
56
- # such as the resource names returned by [`people.connections.list`](/people/
57
- # api/rest/v1/people.connections/list).
52
+ # The resource name of the person to provide information about.
53
+ # - To get information about the authenticated user, specify `people/me`.
54
+ # - To get information about any user, specify the resource name that
55
+ # identifies the user, such as the resource names returned by
56
+ # [`people.connections.list`](/people/api/rest/v1/people.connections/list).
58
57
  # @param [String] request_mask_include_field
59
- # Comma-separated list of fields to be included in the response. Omitting this
60
- # field will include all fields. Each path should start with `person.`: for
61
- # example, `person.names` or `person.photos`.
62
- # @param [String] fields
63
- # Selector specifying which fields to include in a partial response.
58
+ # Comma-separated list of fields to be included in the response. Omitting
59
+ # this field will include all fields except for connections.list requests,
60
+ # which have a default mask that includes common fields like metadata, name,
61
+ # photo, and profile url.
62
+ # Each path should start with `person.`: for example, `person.names` or
63
+ # `person.photos`.
64
64
  # @param [String] quota_user
65
65
  # Available to use for quota purposes for server-side applications. Can be any
66
66
  # arbitrary string assigned to a user, but should not exceed 40 characters.
67
+ # @param [String] fields
68
+ # Selector specifying which fields to include in a partial response.
67
69
  # @param [Google::Apis::RequestOptions] options
68
70
  # Request-specific options
69
71
  #
@@ -76,33 +78,37 @@ module Google
76
78
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
77
79
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
78
80
  # @raise [Google::Apis::AuthorizationError] Authorization is required
79
- def get_person(resource_name, request_mask_include_field: nil, fields: nil, quota_user: nil, options: nil, &block)
81
+ def get_person(resource_name, request_mask_include_field: nil, quota_user: nil, fields: nil, options: nil, &block)
80
82
  command = make_simple_command(:get, 'v1/{+resourceName}', options)
81
83
  command.response_representation = Google::Apis::PeopleV1::Person::Representation
82
84
  command.response_class = Google::Apis::PeopleV1::Person
83
85
  command.params['resourceName'] = resource_name unless resource_name.nil?
84
86
  command.query['requestMask.includeField'] = request_mask_include_field unless request_mask_include_field.nil?
85
- command.query['fields'] = fields unless fields.nil?
86
87
  command.query['quotaUser'] = quota_user unless quota_user.nil?
88
+ command.query['fields'] = fields unless fields.nil?
87
89
  execute_or_queue_command(command, &block)
88
90
  end
89
91
 
90
- # Provides information about a list of specific people by specifying a list of
91
- # requested resource names. Use `people/me` to indicate the authenticated user.
92
- # @param [Array<String>, String] resource_names
93
- # The resource name, such as one returned by [`people.connections.list`](/people/
94
- # api/rest/v1/people.connections/list), of one of the people to provide
95
- # information about. You can include this parameter up to 50 times in one
96
- # request.
92
+ # Provides information about a list of specific people by specifying a list
93
+ # of requested resource names. Use `people/me` to indicate the authenticated
94
+ # user.
97
95
  # @param [String] request_mask_include_field
98
- # Comma-separated list of fields to be included in the response. Omitting this
99
- # field will include all fields. Each path should start with `person.`: for
100
- # example, `person.names` or `person.photos`.
101
- # @param [String] fields
102
- # Selector specifying which fields to include in a partial response.
96
+ # Comma-separated list of fields to be included in the response. Omitting
97
+ # this field will include all fields except for connections.list requests,
98
+ # which have a default mask that includes common fields like metadata, name,
99
+ # photo, and profile url.
100
+ # Each path should start with `person.`: for example, `person.names` or
101
+ # `person.photos`.
102
+ # @param [Array<String>, String] resource_names
103
+ # The resource name, such as one returned by
104
+ # [`people.connections.list`](/people/api/rest/v1/people.connections/list),
105
+ # of one of the people to provide information about. You can include this
106
+ # parameter up to 50 times in one request.
103
107
  # @param [String] quota_user
104
108
  # Available to use for quota purposes for server-side applications. Can be any
105
109
  # arbitrary string assigned to a user, but should not exceed 40 characters.
110
+ # @param [String] fields
111
+ # Selector specifying which fields to include in a partial response.
106
112
  # @param [Google::Apis::RequestOptions] options
107
113
  # Request-specific options
108
114
  #
@@ -115,41 +121,42 @@ module Google
115
121
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
116
122
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
117
123
  # @raise [Google::Apis::AuthorizationError] Authorization is required
118
- def get_people(resource_names: nil, request_mask_include_field: nil, fields: nil, quota_user: nil, options: nil, &block)
124
+ def get_people(request_mask_include_field: nil, resource_names: nil, quota_user: nil, fields: nil, options: nil, &block)
119
125
  command = make_simple_command(:get, 'v1/people:batchGet', options)
120
126
  command.response_representation = Google::Apis::PeopleV1::GetPeopleResponse::Representation
121
127
  command.response_class = Google::Apis::PeopleV1::GetPeopleResponse
122
- command.query['resourceNames'] = resource_names unless resource_names.nil?
123
128
  command.query['requestMask.includeField'] = request_mask_include_field unless request_mask_include_field.nil?
124
- command.query['fields'] = fields unless fields.nil?
129
+ command.query['resourceNames'] = resource_names unless resource_names.nil?
125
130
  command.query['quotaUser'] = quota_user unless quota_user.nil?
131
+ command.query['fields'] = fields unless fields.nil?
126
132
  execute_or_queue_command(command, &block)
127
133
  end
128
134
 
129
- # Provides a list of the authenticated user's contacts merged with any linked
130
- # profiles.
131
- # @param [String] resource_name
132
- # The resource name to return connections for. Only `people/me` is valid.
135
+ # Provides a list of the authenticated user's contacts merged with any
136
+ # linked profiles.
133
137
  # @param [String] page_token
134
138
  # The token of the page to be returned.
135
139
  # @param [Fixnum] page_size
136
- # The number of connections to include in the response. Valid values are between
137
- # 1 and 500, inclusive. Defaults to 100.
140
+ # The number of connections to include in the response. Valid values are
141
+ # between 1 and 500, inclusive. Defaults to 100.
142
+ # @param [String] request_mask_include_field
143
+ # Comma-separated list of fields to be included in the response. Omitting
144
+ # this field will include all fields except for connections.list requests,
145
+ # which have a default mask that includes common fields like metadata, name,
146
+ # photo, and profile url.
147
+ # Each path should start with `person.`: for example, `person.names` or
148
+ # `person.photos`.
138
149
  # @param [String] sort_order
139
- # The order in which the connections should be sorted. Defaults to `
140
- # LAST_MODIFIED_ASCENDING`.
150
+ # The order in which the connections should be sorted. Defaults to
151
+ # `LAST_MODIFIED_ASCENDING`.
141
152
  # @param [String] sync_token
142
- # A sync token, returned by a previous call to `people.connections.list`. Only
143
- # resources changed since the sync token was created are returned.
144
- # @param [String] request_mask_include_field
145
- # Comma-separated list of fields to be included in the response. Omitting this
146
- # field will include all fields. Each path should start with `person.`: for
147
- # example, `person.names` or `person.photos`.
148
- # @param [String] fields
149
- # Selector specifying which fields to include in a partial response.
153
+ # A sync token, returned by a previous call to `people.connections.list`.
154
+ # Only resources changed since the sync token was created will be returned.
150
155
  # @param [String] quota_user
151
156
  # Available to use for quota purposes for server-side applications. Can be any
152
157
  # arbitrary string assigned to a user, but should not exceed 40 characters.
158
+ # @param [String] fields
159
+ # Selector specifying which fields to include in a partial response.
153
160
  # @param [Google::Apis::RequestOptions] options
154
161
  # Request-specific options
155
162
  #
@@ -162,18 +169,17 @@ module Google
162
169
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
163
170
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
164
171
  # @raise [Google::Apis::AuthorizationError] Authorization is required
165
- def list_person_connections(resource_name, page_token: nil, page_size: nil, sort_order: nil, sync_token: nil, request_mask_include_field: nil, fields: nil, quota_user: nil, options: nil, &block)
166
- command = make_simple_command(:get, 'v1/{+resourceName}/connections', options)
172
+ def list_person_me_connections(page_token: nil, page_size: nil, request_mask_include_field: nil, sort_order: nil, sync_token: nil, quota_user: nil, fields: nil, options: nil, &block)
173
+ command = make_simple_command(:get, 'v1/people/me/connections', options)
167
174
  command.response_representation = Google::Apis::PeopleV1::ListConnectionsResponse::Representation
168
175
  command.response_class = Google::Apis::PeopleV1::ListConnectionsResponse
169
- command.params['resourceName'] = resource_name unless resource_name.nil?
170
176
  command.query['pageToken'] = page_token unless page_token.nil?
171
177
  command.query['pageSize'] = page_size unless page_size.nil?
178
+ command.query['requestMask.includeField'] = request_mask_include_field unless request_mask_include_field.nil?
172
179
  command.query['sortOrder'] = sort_order unless sort_order.nil?
173
180
  command.query['syncToken'] = sync_token unless sync_token.nil?
174
- command.query['requestMask.includeField'] = request_mask_include_field unless request_mask_include_field.nil?
175
- command.query['fields'] = fields unless fields.nil?
176
181
  command.query['quotaUser'] = quota_user unless quota_user.nil?
182
+ command.query['fields'] = fields unless fields.nil?
177
183
  execute_or_queue_command(command, &block)
178
184
  end
179
185
 
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/+/domains/
26
26
  module PlusDomainsV1
27
27
  VERSION = 'V1'
28
- REVISION = '20170201'
28
+ REVISION = '20170208'
29
29
 
30
30
  # View your circles and the people and pages in them
31
31
  AUTH_PLUS_CIRCLES_READ = 'https://www.googleapis.com/auth/plus.circles.read'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/+/api/
26
26
  module PlusV1
27
27
  VERSION = 'V1'
28
- REVISION = '20170201'
28
+ REVISION = '20170208'
29
29
 
30
30
  # Know the list of people in your circles, your age range, and language
31
31
  AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'
@@ -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 = '20170105'
28
+ REVISION = '20170124'
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,248 @@ 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
+ # The message payload.
106
+ # Corresponds to the JSON property `data`
107
+ # @return [String]
108
+ attr_accessor :data
109
+
110
+ # Optional attributes for this message.
111
+ # Corresponds to the JSON property `attributes`
112
+ # @return [Hash<String,String>]
113
+ attr_accessor :attributes
114
+
115
+ # ID of this message, assigned by the server when the message is published.
116
+ # Guaranteed to be unique within the topic. This value may be read by a
117
+ # subscriber that receives a `PubsubMessage` via a `Pull` call or a push
118
+ # delivery. It must not be populated by the publisher in a `Publish` call.
119
+ # Corresponds to the JSON property `messageId`
120
+ # @return [String]
121
+ attr_accessor :message_id
122
+
123
+ # The time at which the message was published, populated by the server when
124
+ # it receives the `Publish` call. It must not be populated by the
125
+ # publisher in a `Publish` call.
126
+ # Corresponds to the JSON property `publishTime`
127
+ # @return [String]
128
+ attr_accessor :publish_time
129
+
130
+ def initialize(**args)
131
+ update!(**args)
132
+ end
133
+
134
+ # Update properties of this object
135
+ def update!(**args)
136
+ @data = args[:data] if args.key?(:data)
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
+ end
141
+ end
142
+
143
+ # Request for the ModifyPushConfig method.
144
+ class ModifyPushConfigRequest
145
+ include Google::Apis::Core::Hashable
146
+
147
+ # Configuration for a push delivery endpoint.
148
+ # Corresponds to the JSON property `pushConfig`
149
+ # @return [Google::Apis::PubsubV1::PushConfig]
150
+ attr_accessor :push_config
151
+
152
+ def initialize(**args)
153
+ update!(**args)
154
+ end
155
+
156
+ # Update properties of this object
157
+ def update!(**args)
158
+ @push_config = args[:push_config] if args.key?(:push_config)
159
+ end
160
+ end
161
+
162
+ # Associates `members` with a `role`.
163
+ class Binding
164
+ include Google::Apis::Core::Hashable
165
+
166
+ # Specifies the identities requesting access for a Cloud Platform resource.
167
+ # `members` can have the following values:
168
+ # * `allUsers`: A special identifier that represents anyone who is
169
+ # on the internet; with or without a Google account.
170
+ # * `allAuthenticatedUsers`: A special identifier that represents anyone
171
+ # who is authenticated with a Google account or a service account.
172
+ # * `user:`emailid``: An email address that represents a specific Google
173
+ # account. For example, `alice@gmail.com` or `joe@example.com`.
174
+ # * `serviceAccount:`emailid``: An email address that represents a service
175
+ # account. For example, `my-other-app@appspot.gserviceaccount.com`.
176
+ # * `group:`emailid``: An email address that represents a Google group.
177
+ # For example, `admins@example.com`.
178
+ # * `domain:`domain``: A Google Apps domain name that represents all the
179
+ # users of that domain. For example, `google.com` or `example.com`.
180
+ # Corresponds to the JSON property `members`
181
+ # @return [Array<String>]
182
+ attr_accessor :members
183
+
184
+ # Role that is assigned to `members`.
185
+ # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
186
+ # Required
187
+ # Corresponds to the JSON property `role`
188
+ # @return [String]
189
+ attr_accessor :role
190
+
191
+ def initialize(**args)
192
+ update!(**args)
193
+ end
194
+
195
+ # Update properties of this object
196
+ def update!(**args)
197
+ @members = args[:members] if args.key?(:members)
198
+ @role = args[:role] if args.key?(:role)
199
+ end
200
+ end
201
+
202
+ # Response for the `ListTopics` method.
203
+ class ListTopicsResponse
204
+ include Google::Apis::Core::Hashable
205
+
206
+ # The resulting topics.
207
+ # Corresponds to the JSON property `topics`
208
+ # @return [Array<Google::Apis::PubsubV1::Topic>]
209
+ attr_accessor :topics
210
+
211
+ # If not empty, indicates that there may be more topics that match the
212
+ # request; this value should be passed in a new `ListTopicsRequest`.
213
+ # Corresponds to the JSON property `nextPageToken`
214
+ # @return [String]
215
+ attr_accessor :next_page_token
216
+
217
+ def initialize(**args)
218
+ update!(**args)
219
+ end
220
+
221
+ # Update properties of this object
222
+ def update!(**args)
223
+ @topics = args[:topics] if args.key?(:topics)
224
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
225
+ end
226
+ end
227
+
228
+ # A generic empty message that you can re-use to avoid defining duplicated
229
+ # empty messages in your APIs. A typical example is to use it as the request
230
+ # or the response type of an API method. For instance:
231
+ # service Foo `
232
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
233
+ # `
234
+ # The JSON representation for `Empty` is empty JSON object ````.
235
+ class Empty
236
+ include Google::Apis::Core::Hashable
237
+
238
+ def initialize(**args)
239
+ update!(**args)
240
+ end
241
+
242
+ # Update properties of this object
243
+ def update!(**args)
244
+ end
245
+ end
246
+
247
+ # Request for the Acknowledge method.
248
+ class AcknowledgeRequest
249
+ include Google::Apis::Core::Hashable
250
+
251
+ # The acknowledgment ID for the messages being acknowledged that was returned
252
+ # by the Pub/Sub system in the `Pull` response. Must not be empty.
253
+ # Corresponds to the JSON property `ackIds`
254
+ # @return [Array<String>]
255
+ attr_accessor :ack_ids
256
+
257
+ def initialize(**args)
258
+ update!(**args)
259
+ end
260
+
261
+ # Update properties of this object
262
+ def update!(**args)
263
+ @ack_ids = args[:ack_ids] if args.key?(:ack_ids)
264
+ end
265
+ end
266
+
25
267
  # Response for the `ListTopicSubscriptions` method.
26
268
  class ListTopicSubscriptionsResponse
27
269
  include Google::Apis::Core::Hashable
@@ -163,12 +405,6 @@ module Google
163
405
  class PullRequest
164
406
  include Google::Apis::Core::Hashable
165
407
 
166
- # The maximum number of messages returned for this request. The Pub/Sub
167
- # system may return fewer than the number specified.
168
- # Corresponds to the JSON property `maxMessages`
169
- # @return [Fixnum]
170
- attr_accessor :max_messages
171
-
172
408
  # If this field set to true, the system will respond immediately even if
173
409
  # it there are no messages available to return in the `Pull` response.
174
410
  # Otherwise, the system may wait (for a bounded amount of time) until at
@@ -180,14 +416,20 @@ module Google
180
416
  attr_accessor :return_immediately
181
417
  alias_method :return_immediately?, :return_immediately
182
418
 
419
+ # The maximum number of messages returned for this request. The Pub/Sub
420
+ # system may return fewer than the number specified.
421
+ # Corresponds to the JSON property `maxMessages`
422
+ # @return [Fixnum]
423
+ attr_accessor :max_messages
424
+
183
425
  def initialize(**args)
184
426
  update!(**args)
185
427
  end
186
428
 
187
429
  # Update properties of this object
188
430
  def update!(**args)
189
- @max_messages = args[:max_messages] if args.key?(:max_messages)
190
431
  @return_immediately = args[:return_immediately] if args.key?(:return_immediately)
432
+ @max_messages = args[:max_messages] if args.key?(:max_messages)
191
433
  end
192
434
  end
193
435
 
@@ -393,6 +635,13 @@ module Google
393
635
  class Policy
394
636
  include Google::Apis::Core::Hashable
395
637
 
638
+ # Associates a list of `members` to a `role`.
639
+ # Multiple `bindings` must not be specified for the same `role`.
640
+ # `bindings` with no members will result in an error.
641
+ # Corresponds to the JSON property `bindings`
642
+ # @return [Array<Google::Apis::PubsubV1::Binding>]
643
+ attr_accessor :bindings
644
+
396
645
  # `etag` is used for optimistic concurrency control as a way to help
397
646
  # prevent simultaneous updates of a policy from overwriting each other.
398
647
  # It is strongly suggested that systems make use of the `etag` in the
@@ -411,264 +660,15 @@ module Google
411
660
  # @return [Fixnum]
412
661
  attr_accessor :version
413
662
 
414
- # Associates a list of `members` to a `role`.
415
- # Multiple `bindings` must not be specified for the same `role`.
416
- # `bindings` with no members will result in an error.
417
- # Corresponds to the JSON property `bindings`
418
- # @return [Array<Google::Apis::PubsubV1::Binding>]
419
- attr_accessor :bindings
420
-
421
663
  def initialize(**args)
422
664
  update!(**args)
423
665
  end
424
666
 
425
667
  # Update properties of this object
426
668
  def update!(**args)
669
+ @bindings = args[:bindings] if args.key?(:bindings)
427
670
  @etag = args[:etag] if args.key?(:etag)
428
671
  @version = args[:version] if args.key?(:version)
429
- @bindings = args[:bindings] if args.key?(:bindings)
430
- end
431
- end
432
-
433
- # Request for the ModifyAckDeadline method.
434
- class ModifyAckDeadlineRequest
435
- include Google::Apis::Core::Hashable
436
-
437
- # The new ack deadline with respect to the time this request was sent to
438
- # the Pub/Sub system. For example, if the value is 10, the new
439
- # ack deadline will expire 10 seconds after the `ModifyAckDeadline` call
440
- # was made. Specifying zero may immediately make the message available for
441
- # another pull request.
442
- # The minimum deadline you can specify is 0 seconds.
443
- # The maximum deadline you can specify is 600 seconds (10 minutes).
444
- # Corresponds to the JSON property `ackDeadlineSeconds`
445
- # @return [Fixnum]
446
- attr_accessor :ack_deadline_seconds
447
-
448
- # List of acknowledgment IDs.
449
- # Corresponds to the JSON property `ackIds`
450
- # @return [Array<String>]
451
- attr_accessor :ack_ids
452
-
453
- def initialize(**args)
454
- update!(**args)
455
- end
456
-
457
- # Update properties of this object
458
- def update!(**args)
459
- @ack_deadline_seconds = args[:ack_deadline_seconds] if args.key?(:ack_deadline_seconds)
460
- @ack_ids = args[:ack_ids] if args.key?(:ack_ids)
461
- end
462
- end
463
-
464
- # Request message for `SetIamPolicy` method.
465
- class SetIamPolicyRequest
466
- include Google::Apis::Core::Hashable
467
-
468
- # Defines an Identity and Access Management (IAM) policy. It is used to
469
- # specify access control policies for Cloud Platform resources.
470
- # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
471
- # `members` to a `role`, where the members can be user accounts, Google groups,
472
- # Google domains, and service accounts. A `role` is a named list of permissions
473
- # defined by IAM.
474
- # **Example**
475
- # `
476
- # "bindings": [
477
- # `
478
- # "role": "roles/owner",
479
- # "members": [
480
- # "user:mike@example.com",
481
- # "group:admins@example.com",
482
- # "domain:google.com",
483
- # "serviceAccount:my-other-app@appspot.gserviceaccount.com",
484
- # ]
485
- # `,
486
- # `
487
- # "role": "roles/viewer",
488
- # "members": ["user:sean@example.com"]
489
- # `
490
- # ]
491
- # `
492
- # For a description of IAM and its features, see the
493
- # [IAM developer's guide](https://cloud.google.com/iam).
494
- # Corresponds to the JSON property `policy`
495
- # @return [Google::Apis::PubsubV1::Policy]
496
- attr_accessor :policy
497
-
498
- def initialize(**args)
499
- update!(**args)
500
- end
501
-
502
- # Update properties of this object
503
- def update!(**args)
504
- @policy = args[:policy] if args.key?(:policy)
505
- end
506
- end
507
-
508
- # A message data and its attributes. The message payload must not be empty;
509
- # it must contain either a non-empty data field, or at least one attribute.
510
- class Message
511
- include Google::Apis::Core::Hashable
512
-
513
- # Optional attributes for this message.
514
- # Corresponds to the JSON property `attributes`
515
- # @return [Hash<String,String>]
516
- attr_accessor :attributes
517
-
518
- # ID of this message, assigned by the server when the message is published.
519
- # Guaranteed to be unique within the topic. This value may be read by a
520
- # subscriber that receives a `PubsubMessage` via a `Pull` call or a push
521
- # delivery. It must not be populated by the publisher in a `Publish` call.
522
- # Corresponds to the JSON property `messageId`
523
- # @return [String]
524
- attr_accessor :message_id
525
-
526
- # The time at which the message was published, populated by the server when
527
- # it receives the `Publish` call. It must not be populated by the
528
- # publisher in a `Publish` call.
529
- # Corresponds to the JSON property `publishTime`
530
- # @return [String]
531
- attr_accessor :publish_time
532
-
533
- # The message payload.
534
- # Corresponds to the JSON property `data`
535
- # @return [String]
536
- attr_accessor :data
537
-
538
- def initialize(**args)
539
- update!(**args)
540
- end
541
-
542
- # Update properties of this object
543
- def update!(**args)
544
- @attributes = args[:attributes] if args.key?(:attributes)
545
- @message_id = args[:message_id] if args.key?(:message_id)
546
- @publish_time = args[:publish_time] if args.key?(:publish_time)
547
- @data = args[:data] if args.key?(:data)
548
- end
549
- end
550
-
551
- # Request for the ModifyPushConfig method.
552
- class ModifyPushConfigRequest
553
- include Google::Apis::Core::Hashable
554
-
555
- # Configuration for a push delivery endpoint.
556
- # Corresponds to the JSON property `pushConfig`
557
- # @return [Google::Apis::PubsubV1::PushConfig]
558
- attr_accessor :push_config
559
-
560
- def initialize(**args)
561
- update!(**args)
562
- end
563
-
564
- # Update properties of this object
565
- def update!(**args)
566
- @push_config = args[:push_config] if args.key?(:push_config)
567
- end
568
- end
569
-
570
- # Associates `members` with a `role`.
571
- class Binding
572
- include Google::Apis::Core::Hashable
573
-
574
- # Specifies the identities requesting access for a Cloud Platform resource.
575
- # `members` can have the following values:
576
- # * `allUsers`: A special identifier that represents anyone who is
577
- # on the internet; with or without a Google account.
578
- # * `allAuthenticatedUsers`: A special identifier that represents anyone
579
- # who is authenticated with a Google account or a service account.
580
- # * `user:`emailid``: An email address that represents a specific Google
581
- # account. For example, `alice@gmail.com` or `joe@example.com`.
582
- # * `serviceAccount:`emailid``: An email address that represents a service
583
- # account. For example, `my-other-app@appspot.gserviceaccount.com`.
584
- # * `group:`emailid``: An email address that represents a Google group.
585
- # For example, `admins@example.com`.
586
- # * `domain:`domain``: A Google Apps domain name that represents all the
587
- # users of that domain. For example, `google.com` or `example.com`.
588
- # Corresponds to the JSON property `members`
589
- # @return [Array<String>]
590
- attr_accessor :members
591
-
592
- # Role that is assigned to `members`.
593
- # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
594
- # Required
595
- # Corresponds to the JSON property `role`
596
- # @return [String]
597
- attr_accessor :role
598
-
599
- def initialize(**args)
600
- update!(**args)
601
- end
602
-
603
- # Update properties of this object
604
- def update!(**args)
605
- @members = args[:members] if args.key?(:members)
606
- @role = args[:role] if args.key?(:role)
607
- end
608
- end
609
-
610
- # Request for the Acknowledge method.
611
- class AcknowledgeRequest
612
- include Google::Apis::Core::Hashable
613
-
614
- # The acknowledgment ID for the messages being acknowledged that was returned
615
- # by the Pub/Sub system in the `Pull` response. Must not be empty.
616
- # Corresponds to the JSON property `ackIds`
617
- # @return [Array<String>]
618
- attr_accessor :ack_ids
619
-
620
- def initialize(**args)
621
- update!(**args)
622
- end
623
-
624
- # Update properties of this object
625
- def update!(**args)
626
- @ack_ids = args[:ack_ids] if args.key?(:ack_ids)
627
- end
628
- end
629
-
630
- # A generic empty message that you can re-use to avoid defining duplicated
631
- # empty messages in your APIs. A typical example is to use it as the request
632
- # or the response type of an API method. For instance:
633
- # service Foo `
634
- # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
635
- # `
636
- # The JSON representation for `Empty` is empty JSON object ````.
637
- class Empty
638
- include Google::Apis::Core::Hashable
639
-
640
- def initialize(**args)
641
- update!(**args)
642
- end
643
-
644
- # Update properties of this object
645
- def update!(**args)
646
- end
647
- end
648
-
649
- # Response for the `ListTopics` method.
650
- class ListTopicsResponse
651
- include Google::Apis::Core::Hashable
652
-
653
- # If not empty, indicates that there may be more topics that match the
654
- # request; this value should be passed in a new `ListTopicsRequest`.
655
- # Corresponds to the JSON property `nextPageToken`
656
- # @return [String]
657
- attr_accessor :next_page_token
658
-
659
- # The resulting topics.
660
- # Corresponds to the JSON property `topics`
661
- # @return [Array<Google::Apis::PubsubV1::Topic>]
662
- attr_accessor :topics
663
-
664
- def initialize(**args)
665
- update!(**args)
666
- end
667
-
668
- # Update properties of this object
669
- def update!(**args)
670
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
671
- @topics = args[:topics] if args.key?(:topics)
672
672
  end
673
673
  end
674
674
  end