google-api-client 0.24.2 → 0.24.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (185) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +68 -0
  3. data/README.md +9 -0
  4. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +5 -4
  5. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +90 -87
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +17 -15
  7. data/generated/google/apis/admin_directory_v1.rb +1 -1
  8. data/generated/google/apis/admin_directory_v1/classes.rb +155 -0
  9. data/generated/google/apis/admin_directory_v1/representations.rb +82 -0
  10. data/generated/google/apis/alertcenter_v1beta1.rb +31 -0
  11. data/generated/google/apis/alertcenter_v1beta1/classes.rb +835 -0
  12. data/generated/google/apis/alertcenter_v1beta1/representations.rb +394 -0
  13. data/generated/google/apis/alertcenter_v1beta1/service.rb +302 -0
  14. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  15. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +37 -0
  16. data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +6 -0
  17. data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +8 -1
  18. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  19. data/generated/google/apis/androidenterprise_v1/classes.rb +8 -4
  20. data/generated/google/apis/androidenterprise_v1/representations.rb +1 -0
  21. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  22. data/generated/google/apis/androidpublisher_v2/service.rb +5 -1
  23. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  24. data/generated/google/apis/androidpublisher_v3/service.rb +5 -1
  25. data/generated/google/apis/appengine_v1.rb +1 -1
  26. data/generated/google/apis/appengine_v1/classes.rb +8 -1
  27. data/generated/google/apis/appengine_v1/representations.rb +1 -0
  28. data/generated/google/apis/appengine_v1beta.rb +1 -1
  29. data/generated/google/apis/appengine_v1beta/classes.rb +1 -1
  30. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  31. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +6 -5
  32. data/generated/google/apis/bigquerydatatransfer_v1/service.rb +12 -10
  33. data/generated/google/apis/calendar_v3.rb +1 -1
  34. data/generated/google/apis/calendar_v3/service.rb +52 -18
  35. data/generated/google/apis/cloudasset_v1beta1.rb +34 -0
  36. data/generated/google/apis/cloudasset_v1beta1/classes.rb +798 -0
  37. data/generated/google/apis/cloudasset_v1beta1/representations.rb +263 -0
  38. data/generated/google/apis/cloudasset_v1beta1/service.rb +313 -0
  39. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  40. data/generated/google/apis/cloudbuild_v1/classes.rb +42 -5
  41. data/generated/google/apis/cloudbuild_v1/representations.rb +6 -0
  42. data/generated/google/apis/cloudiot_v1.rb +1 -1
  43. data/generated/google/apis/cloudiot_v1/classes.rb +59 -0
  44. data/generated/google/apis/cloudiot_v1/representations.rb +28 -0
  45. data/generated/google/apis/cloudiot_v1/service.rb +94 -0
  46. data/generated/google/apis/composer_v1.rb +1 -1
  47. data/generated/google/apis/composer_v1/classes.rb +1 -0
  48. data/generated/google/apis/composer_v1beta1.rb +1 -1
  49. data/generated/google/apis/composer_v1beta1/classes.rb +34 -5
  50. data/generated/google/apis/composer_v1beta1/representations.rb +1 -0
  51. data/generated/google/apis/compute_alpha.rb +1 -1
  52. data/generated/google/apis/compute_alpha/classes.rb +227 -48
  53. data/generated/google/apis/compute_alpha/representations.rb +84 -1
  54. data/generated/google/apis/compute_alpha/service.rb +50 -10
  55. data/generated/google/apis/compute_beta.rb +1 -1
  56. data/generated/google/apis/compute_beta/classes.rb +593 -77
  57. data/generated/google/apis/compute_beta/representations.rb +224 -18
  58. data/generated/google/apis/compute_beta/service.rb +174 -3
  59. data/generated/google/apis/compute_v1.rb +1 -1
  60. data/generated/google/apis/compute_v1/classes.rb +41 -18
  61. data/generated/google/apis/compute_v1/representations.rb +3 -0
  62. data/generated/google/apis/content_v2.rb +1 -1
  63. data/generated/google/apis/content_v2/classes.rb +372 -119
  64. data/generated/google/apis/content_v2/representations.rb +157 -39
  65. data/generated/google/apis/content_v2/service.rb +101 -11
  66. data/generated/google/apis/content_v2sandbox.rb +1 -1
  67. data/generated/google/apis/content_v2sandbox/classes.rb +372 -119
  68. data/generated/google/apis/content_v2sandbox/representations.rb +157 -39
  69. data/generated/google/apis/content_v2sandbox/service.rb +90 -0
  70. data/generated/google/apis/customsearch_v1.rb +1 -1
  71. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  72. data/generated/google/apis/dataflow_v1b3/classes.rb +7 -0
  73. data/generated/google/apis/dataflow_v1b3/representations.rb +1 -0
  74. data/generated/google/apis/dataproc_v1.rb +1 -1
  75. data/generated/google/apis/dataproc_v1/classes.rb +12 -0
  76. data/generated/google/apis/dataproc_v1/representations.rb +2 -0
  77. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  78. data/generated/google/apis/dataproc_v1beta2/classes.rb +21 -6
  79. data/generated/google/apis/dataproc_v1beta2/representations.rb +2 -0
  80. data/generated/google/apis/datastore_v1.rb +1 -1
  81. data/generated/google/apis/datastore_v1/classes.rb +2 -2
  82. data/generated/google/apis/datastore_v1beta3.rb +1 -1
  83. data/generated/google/apis/datastore_v1beta3/classes.rb +2 -2
  84. data/generated/google/apis/dlp_v2.rb +1 -1
  85. data/generated/google/apis/dlp_v2/classes.rb +110 -5
  86. data/generated/google/apis/dlp_v2/representations.rb +17 -0
  87. data/generated/google/apis/dlp_v2/service.rb +41 -3
  88. data/generated/google/apis/file_v1beta1.rb +1 -1
  89. data/generated/google/apis/file_v1beta1/classes.rb +0 -234
  90. data/generated/google/apis/file_v1beta1/representations.rb +0 -79
  91. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  92. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +19 -1
  93. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +3 -0
  94. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +4 -1
  95. data/generated/google/apis/firebasehosting_v1beta1.rb +43 -0
  96. data/generated/google/apis/firebasehosting_v1beta1/classes.rb +767 -0
  97. data/generated/google/apis/firebasehosting_v1beta1/representations.rb +337 -0
  98. data/generated/google/apis/firebasehosting_v1beta1/service.rb +502 -0
  99. data/generated/google/apis/firebaserules_v1.rb +1 -1
  100. data/generated/google/apis/firebaserules_v1/classes.rb +8 -0
  101. data/generated/google/apis/firebaserules_v1/representations.rb +1 -0
  102. data/generated/google/apis/firebaserules_v1/service.rb +1 -1
  103. data/generated/google/apis/firestore_v1beta2.rb +1 -1
  104. data/generated/google/apis/firestore_v1beta2/service.rb +80 -80
  105. data/generated/google/apis/games_v1.rb +1 -1
  106. data/generated/google/apis/games_v1/service.rb +4 -1
  107. data/generated/google/apis/iam_v1.rb +1 -1
  108. data/generated/google/apis/iam_v1/classes.rb +3 -1
  109. data/generated/google/apis/iamcredentials_v1.rb +1 -1
  110. data/generated/google/apis/iamcredentials_v1/service.rb +0 -10
  111. data/generated/google/apis/iap_v1beta1.rb +1 -1
  112. data/generated/google/apis/iap_v1beta1/service.rb +339 -0
  113. data/generated/google/apis/jobs_v2.rb +1 -1
  114. data/generated/google/apis/jobs_v2/classes.rb +45 -37
  115. data/generated/google/apis/jobs_v3.rb +1 -1
  116. data/generated/google/apis/jobs_v3/classes.rb +21 -18
  117. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  118. data/generated/google/apis/jobs_v3p1beta1/classes.rb +45 -20
  119. data/generated/google/apis/jobs_v3p1beta1/representations.rb +2 -0
  120. data/generated/google/apis/language_v1.rb +1 -1
  121. data/generated/google/apis/language_v1beta1.rb +1 -1
  122. data/generated/google/apis/language_v1beta2.rb +1 -1
  123. data/generated/google/apis/logging_v2.rb +1 -1
  124. data/generated/google/apis/logging_v2/classes.rb +12 -0
  125. data/generated/google/apis/logging_v2/representations.rb +1 -0
  126. data/generated/google/apis/logging_v2beta1.rb +1 -1
  127. data/generated/google/apis/logging_v2beta1/classes.rb +12 -0
  128. data/generated/google/apis/logging_v2beta1/representations.rb +1 -0
  129. data/generated/google/apis/ml_v1.rb +1 -1
  130. data/generated/google/apis/ml_v1/classes.rb +2 -2
  131. data/generated/google/apis/monitoring_v3.rb +1 -1
  132. data/generated/google/apis/monitoring_v3/classes.rb +19 -17
  133. data/generated/google/apis/monitoring_v3/representations.rb +1 -2
  134. data/generated/google/apis/partners_v2.rb +1 -1
  135. data/generated/google/apis/partners_v2/classes.rb +18 -15
  136. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  137. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +18 -15
  138. data/generated/google/apis/redis_v1.rb +1 -1
  139. data/generated/google/apis/redis_v1/classes.rb +1 -1
  140. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  141. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +1 -1
  142. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  143. data/generated/google/apis/servicemanagement_v1/classes.rb +2 -150
  144. data/generated/google/apis/servicemanagement_v1/representations.rb +0 -42
  145. data/generated/google/apis/servicenetworking_v1beta.rb +38 -0
  146. data/generated/google/apis/servicenetworking_v1beta/classes.rb +3440 -0
  147. data/generated/google/apis/servicenetworking_v1beta/representations.rb +992 -0
  148. data/generated/google/apis/servicenetworking_v1beta/service.rb +227 -0
  149. data/generated/google/apis/serviceusage_v1.rb +1 -1
  150. data/generated/google/apis/serviceusage_v1/classes.rb +1 -1
  151. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  152. data/generated/google/apis/serviceusage_v1beta1/classes.rb +1 -1
  153. data/generated/google/apis/serviceuser_v1.rb +1 -1
  154. data/generated/google/apis/serviceuser_v1/classes.rb +2 -150
  155. data/generated/google/apis/serviceuser_v1/representations.rb +0 -42
  156. data/generated/google/apis/spanner_v1.rb +1 -1
  157. data/generated/google/apis/spanner_v1/classes.rb +308 -30
  158. data/generated/google/apis/spanner_v1/representations.rb +17 -0
  159. data/generated/google/apis/streetviewpublish_v1.rb +1 -1
  160. data/generated/google/apis/streetviewpublish_v1/classes.rb +12 -0
  161. data/generated/google/apis/streetviewpublish_v1/representations.rb +1 -0
  162. data/generated/google/apis/testing_v1.rb +1 -1
  163. data/generated/google/apis/testing_v1/classes.rb +47 -0
  164. data/generated/google/apis/testing_v1/representations.rb +18 -0
  165. data/generated/google/apis/videointelligence_v1.rb +1 -1
  166. data/generated/google/apis/videointelligence_v1/classes.rb +676 -0
  167. data/generated/google/apis/videointelligence_v1/representations.rb +306 -0
  168. data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
  169. data/generated/google/apis/videointelligence_v1beta2/classes.rb +676 -0
  170. data/generated/google/apis/videointelligence_v1beta2/representations.rb +306 -0
  171. data/generated/google/apis/{videointelligence_v1beta1.rb → videointelligence_v1p1beta1.rb} +6 -6
  172. data/generated/google/apis/{videointelligence_v1beta1 → videointelligence_v1p1beta1}/classes.rb +885 -489
  173. data/generated/google/apis/{videointelligence_v1beta1 → videointelligence_v1p1beta1}/representations.rb +357 -194
  174. data/generated/google/apis/{videointelligence_v1beta1 → videointelligence_v1p1beta1}/service.rb +12 -12
  175. data/generated/google/apis/vision_v1.rb +1 -1
  176. data/generated/google/apis/vision_v1/classes.rb +1 -1
  177. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  178. data/generated/google/apis/vision_v1p1beta1/classes.rb +1 -1
  179. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  180. data/generated/google/apis/vision_v1p2beta1/classes.rb +1 -1
  181. data/generated/google/apis/youtube_partner_v1.rb +2 -2
  182. data/generated/google/apis/youtube_partner_v1/classes.rb +2 -1
  183. data/generated/google/apis/youtube_partner_v1/service.rb +1 -1
  184. data/lib/google/apis/version.rb +1 -1
  185. metadata +22 -6
@@ -0,0 +1,227 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module ServicenetworkingV1beta
23
+ # Service Networking API
24
+ #
25
+ # Provides automatic management of network configurations necessary for certain
26
+ # services.
27
+ #
28
+ # @example
29
+ # require 'google/apis/servicenetworking_v1beta'
30
+ #
31
+ # Servicenetworking = Google::Apis::ServicenetworkingV1beta # Alias the module
32
+ # service = Servicenetworking::ServiceNetworkingService.new
33
+ #
34
+ # @see https://cloud.google.com/service-infrastructure/docs/service-networking/getting-started
35
+ class ServiceNetworkingService < Google::Apis::Core::BaseService
36
+ # @return [String]
37
+ # API key. Your API key identifies your project and provides you with API access,
38
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
39
+ attr_accessor :key
40
+
41
+ # @return [String]
42
+ # Available to use for quota purposes for server-side applications. Can be any
43
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
44
+ attr_accessor :quota_user
45
+
46
+ def initialize
47
+ super('https://servicenetworking.googleapis.com/', '')
48
+ @batch_path = 'batch'
49
+ end
50
+
51
+ # Gets the latest state of a long-running operation. Clients can use this
52
+ # method to poll the operation result at intervals as recommended by the API
53
+ # service.
54
+ # @param [String] name
55
+ # The name of the operation resource.
56
+ # @param [String] fields
57
+ # Selector specifying which fields to include in a partial response.
58
+ # @param [String] quota_user
59
+ # Available to use for quota purposes for server-side applications. Can be any
60
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
61
+ # @param [Google::Apis::RequestOptions] options
62
+ # Request-specific options
63
+ #
64
+ # @yield [result, err] Result & error if block supplied
65
+ # @yieldparam result [Google::Apis::ServicenetworkingV1beta::Operation] parsed result object
66
+ # @yieldparam err [StandardError] error object if request failed
67
+ #
68
+ # @return [Google::Apis::ServicenetworkingV1beta::Operation]
69
+ #
70
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
71
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
72
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
73
+ def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
74
+ command = make_simple_command(:get, 'v1beta/{+name}', options)
75
+ command.response_representation = Google::Apis::ServicenetworkingV1beta::Operation::Representation
76
+ command.response_class = Google::Apis::ServicenetworkingV1beta::Operation
77
+ command.params['name'] = name unless name.nil?
78
+ command.query['fields'] = fields unless fields.nil?
79
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
80
+ execute_or_queue_command(command, &block)
81
+ end
82
+
83
+ # Service producers use this method to provision a new subnet in
84
+ # peered service shared VPC network.
85
+ # It will validate previously provided allocated ranges, find
86
+ # non-conflicting sub-range of requested size (expressed in
87
+ # number of leading bits of ipv4 network mask, as in CIDR range
88
+ # notation). It will then create a subnetwork in the request
89
+ # region. The subsequent call will try to reuse the
90
+ # subnetwork previously created if subnetwork name, region and
91
+ # prefix length of the IP range match.
92
+ # Operation<response: Subnetwork>
93
+ # @param [String] parent
94
+ # Required. This is a 'tenant' project in the service producer organization.
95
+ # services/`service`/`collection-id`/`resource-id`
96
+ # `collection id` is the cloud resource collection type representing the
97
+ # tenant project. Only 'projects' are currently supported.
98
+ # `resource id` is the tenant project numeric id: '123456'.
99
+ # `service` the name of the peering service, for example
100
+ # 'service-peering.example.com'. This service must be activated.
101
+ # in the consumer project.
102
+ # @param [Google::Apis::ServicenetworkingV1beta::AddSubnetworkRequest] add_subnetwork_request_object
103
+ # @param [String] fields
104
+ # Selector specifying which fields to include in a partial response.
105
+ # @param [String] quota_user
106
+ # Available to use for quota purposes for server-side applications. Can be any
107
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
108
+ # @param [Google::Apis::RequestOptions] options
109
+ # Request-specific options
110
+ #
111
+ # @yield [result, err] Result & error if block supplied
112
+ # @yieldparam result [Google::Apis::ServicenetworkingV1beta::Operation] parsed result object
113
+ # @yieldparam err [StandardError] error object if request failed
114
+ #
115
+ # @return [Google::Apis::ServicenetworkingV1beta::Operation]
116
+ #
117
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
118
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
119
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
120
+ def add_service_subnetwork(parent, add_subnetwork_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
121
+ command = make_simple_command(:post, 'v1beta/{+parent}:addSubnetwork', options)
122
+ command.request_representation = Google::Apis::ServicenetworkingV1beta::AddSubnetworkRequest::Representation
123
+ command.request_object = add_subnetwork_request_object
124
+ command.response_representation = Google::Apis::ServicenetworkingV1beta::Operation::Representation
125
+ command.response_class = Google::Apis::ServicenetworkingV1beta::Operation
126
+ command.params['parent'] = parent unless parent.nil?
127
+ command.query['fields'] = fields unless fields.nil?
128
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
129
+ execute_or_queue_command(command, &block)
130
+ end
131
+
132
+ # To connect service to a VPC network peering connection
133
+ # must be established prior to service provisioning.
134
+ # This method must be invoked by the consumer VPC network administrator
135
+ # It will establish a permanent peering connection with a shared
136
+ # network created in the service producer organization and register a
137
+ # allocated IP range(s) to be used for service subnetwork provisioning.
138
+ # This connection will be used for all supported services in the service
139
+ # producer organization, so it only needs to be invoked once.
140
+ # Operation<response: Connection>.
141
+ # @param [String] parent
142
+ # Provider peering service that is managing peering connectivity for a
143
+ # service provider organization.
144
+ # For Google services that support this functionality it is
145
+ # 'services/servicenetworking.googleapis.com'.
146
+ # @param [Google::Apis::ServicenetworkingV1beta::Connection] connection_object
147
+ # @param [String] fields
148
+ # Selector specifying which fields to include in a partial response.
149
+ # @param [String] quota_user
150
+ # Available to use for quota purposes for server-side applications. Can be any
151
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
152
+ # @param [Google::Apis::RequestOptions] options
153
+ # Request-specific options
154
+ #
155
+ # @yield [result, err] Result & error if block supplied
156
+ # @yieldparam result [Google::Apis::ServicenetworkingV1beta::Operation] parsed result object
157
+ # @yieldparam err [StandardError] error object if request failed
158
+ #
159
+ # @return [Google::Apis::ServicenetworkingV1beta::Operation]
160
+ #
161
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
162
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
163
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
164
+ def create_service_connection(parent, connection_object = nil, fields: nil, quota_user: nil, options: nil, &block)
165
+ command = make_simple_command(:post, 'v1beta/{+parent}/connections', options)
166
+ command.request_representation = Google::Apis::ServicenetworkingV1beta::Connection::Representation
167
+ command.request_object = connection_object
168
+ command.response_representation = Google::Apis::ServicenetworkingV1beta::Operation::Representation
169
+ command.response_class = Google::Apis::ServicenetworkingV1beta::Operation
170
+ command.params['parent'] = parent unless parent.nil?
171
+ command.query['fields'] = fields unless fields.nil?
172
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
173
+ execute_or_queue_command(command, &block)
174
+ end
175
+
176
+ # Service consumers use this method to list configured peering connection for
177
+ # the given service and consumer network.
178
+ # @param [String] parent
179
+ # Provider peering service that is managing peering connectivity for a
180
+ # service provider organization.
181
+ # For Google services that support this functionality it is
182
+ # 'services/servicenetworking.googleapis.com'.
183
+ # @param [String] network
184
+ # Network name in the consumer project. This network must have been
185
+ # already peered with a shared VPC network using CreateConnection
186
+ # method.
187
+ # Must be in a form 'projects/`project`/global/networks/`network`'.
188
+ # `project` is a project number, as in '12345'
189
+ # `network` is network name.
190
+ # @param [String] fields
191
+ # Selector specifying which fields to include in a partial response.
192
+ # @param [String] quota_user
193
+ # Available to use for quota purposes for server-side applications. Can be any
194
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
195
+ # @param [Google::Apis::RequestOptions] options
196
+ # Request-specific options
197
+ #
198
+ # @yield [result, err] Result & error if block supplied
199
+ # @yieldparam result [Google::Apis::ServicenetworkingV1beta::ListConnectionsResponse] parsed result object
200
+ # @yieldparam err [StandardError] error object if request failed
201
+ #
202
+ # @return [Google::Apis::ServicenetworkingV1beta::ListConnectionsResponse]
203
+ #
204
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
205
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
206
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
207
+ def list_service_connections(parent, network: nil, fields: nil, quota_user: nil, options: nil, &block)
208
+ command = make_simple_command(:get, 'v1beta/{+parent}/connections', options)
209
+ command.response_representation = Google::Apis::ServicenetworkingV1beta::ListConnectionsResponse::Representation
210
+ command.response_class = Google::Apis::ServicenetworkingV1beta::ListConnectionsResponse
211
+ command.params['parent'] = parent unless parent.nil?
212
+ command.query['network'] = network unless network.nil?
213
+ command.query['fields'] = fields unless fields.nil?
214
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
215
+ execute_or_queue_command(command, &block)
216
+ end
217
+
218
+ protected
219
+
220
+ def apply_command_defaults(command)
221
+ command.query['key'] = key unless key.nil?
222
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
223
+ end
224
+ end
225
+ end
226
+ end
227
+ end
@@ -27,7 +27,7 @@ module Google
27
27
  # @see https://cloud.google.com/service-usage/
28
28
  module ServiceusageV1
29
29
  VERSION = 'V1'
30
- REVISION = '20180919'
30
+ REVISION = '20181004'
31
31
 
32
32
  # View and manage your data across Google Cloud Platform services
33
33
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -1981,7 +1981,7 @@ module Google
1981
1981
  # service Messaging `
1982
1982
  # rpc GetMessage(GetMessageRequest) returns (Message) `
1983
1983
  # option (google.api.http) = `
1984
- # get: "/v1/`name=messages/*"`"
1984
+ # get: "/v1/`name=messages/*`"
1985
1985
  # `;
1986
1986
  # `
1987
1987
  # `
@@ -27,7 +27,7 @@ module Google
27
27
  # @see https://cloud.google.com/service-usage/
28
28
  module ServiceusageV1beta1
29
29
  VERSION = 'V1beta1'
30
- REVISION = '20180919'
30
+ REVISION = '20181004'
31
31
 
32
32
  # View and manage your data across Google Cloud Platform services
33
33
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -1957,7 +1957,7 @@ module Google
1957
1957
  # service Messaging `
1958
1958
  # rpc GetMessage(GetMessageRequest) returns (Message) `
1959
1959
  # option (google.api.http) = `
1960
- # get: "/v1/`name=messages/*"`"
1960
+ # get: "/v1/`name=messages/*`"
1961
1961
  # `;
1962
1962
  # `
1963
1963
  # `
@@ -27,7 +27,7 @@ module Google
27
27
  # @see https://cloud.google.com/service-management/
28
28
  module ServiceuserV1
29
29
  VERSION = 'V1'
30
- REVISION = '20180907'
30
+ REVISION = '20180922'
31
31
 
32
32
  # View and manage your data across Google Cloud Platform services
33
33
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -1373,22 +1373,6 @@ module Google
1373
1373
  # @return [String]
1374
1374
  attr_accessor :get
1375
1375
 
1376
- # Defines the Media configuration for a service in case of a download.
1377
- # Use this only for Scotty Requests. Do not use this for media support using
1378
- # Bytestream, add instead [][google.bytestream.RestByteStream] as an API to
1379
- # your configuration for Bytestream methods.
1380
- # Corresponds to the JSON property `mediaDownload`
1381
- # @return [Google::Apis::ServiceuserV1::MediaDownload]
1382
- attr_accessor :media_download
1383
-
1384
- # Defines the Media configuration for a service in case of an upload.
1385
- # Use this only for Scotty Requests. Do not use this for media support using
1386
- # Bytestream, add instead [][google.bytestream.RestByteStream] as an API to
1387
- # your configuration for Bytestream methods.
1388
- # Corresponds to the JSON property `mediaUpload`
1389
- # @return [Google::Apis::ServiceuserV1::MediaUpload]
1390
- attr_accessor :media_upload
1391
-
1392
1376
  # Maps to HTTP PATCH. Used for updating a resource.
1393
1377
  # Corresponds to the JSON property `patch`
1394
1378
  # @return [String]
@@ -1430,8 +1414,6 @@ module Google
1430
1414
  @custom = args[:custom] if args.key?(:custom)
1431
1415
  @delete = args[:delete] if args.key?(:delete)
1432
1416
  @get = args[:get] if args.key?(:get)
1433
- @media_download = args[:media_download] if args.key?(:media_download)
1434
- @media_upload = args[:media_upload] if args.key?(:media_upload)
1435
1417
  @patch = args[:patch] if args.key?(:patch)
1436
1418
  @post = args[:post] if args.key?(:post)
1437
1419
  @put = args[:put] if args.key?(:put)
@@ -1634,138 +1616,6 @@ module Google
1634
1616
  end
1635
1617
  end
1636
1618
 
1637
- # Defines the Media configuration for a service in case of a download.
1638
- # Use this only for Scotty Requests. Do not use this for media support using
1639
- # Bytestream, add instead [][google.bytestream.RestByteStream] as an API to
1640
- # your configuration for Bytestream methods.
1641
- class MediaDownload
1642
- include Google::Apis::Core::Hashable
1643
-
1644
- # A boolean that determines whether a notification for the completion of a
1645
- # download should be sent to the backend.
1646
- # Corresponds to the JSON property `completeNotification`
1647
- # @return [Boolean]
1648
- attr_accessor :complete_notification
1649
- alias_method :complete_notification?, :complete_notification
1650
-
1651
- # DO NOT USE FIELDS BELOW THIS LINE UNTIL THIS WARNING IS REMOVED.
1652
- # Specify name of the download service if one is used for download.
1653
- # Corresponds to the JSON property `downloadService`
1654
- # @return [String]
1655
- attr_accessor :download_service
1656
-
1657
- # Name of the Scotty dropzone to use for the current API.
1658
- # Corresponds to the JSON property `dropzone`
1659
- # @return [String]
1660
- attr_accessor :dropzone
1661
-
1662
- # Whether download is enabled.
1663
- # Corresponds to the JSON property `enabled`
1664
- # @return [Boolean]
1665
- attr_accessor :enabled
1666
- alias_method :enabled?, :enabled
1667
-
1668
- # Optional maximum acceptable size for direct download.
1669
- # The size is specified in bytes.
1670
- # Corresponds to the JSON property `maxDirectDownloadSize`
1671
- # @return [Fixnum]
1672
- attr_accessor :max_direct_download_size
1673
-
1674
- # A boolean that determines if direct download from ESF should be used for
1675
- # download of this media.
1676
- # Corresponds to the JSON property `useDirectDownload`
1677
- # @return [Boolean]
1678
- attr_accessor :use_direct_download
1679
- alias_method :use_direct_download?, :use_direct_download
1680
-
1681
- def initialize(**args)
1682
- update!(**args)
1683
- end
1684
-
1685
- # Update properties of this object
1686
- def update!(**args)
1687
- @complete_notification = args[:complete_notification] if args.key?(:complete_notification)
1688
- @download_service = args[:download_service] if args.key?(:download_service)
1689
- @dropzone = args[:dropzone] if args.key?(:dropzone)
1690
- @enabled = args[:enabled] if args.key?(:enabled)
1691
- @max_direct_download_size = args[:max_direct_download_size] if args.key?(:max_direct_download_size)
1692
- @use_direct_download = args[:use_direct_download] if args.key?(:use_direct_download)
1693
- end
1694
- end
1695
-
1696
- # Defines the Media configuration for a service in case of an upload.
1697
- # Use this only for Scotty Requests. Do not use this for media support using
1698
- # Bytestream, add instead [][google.bytestream.RestByteStream] as an API to
1699
- # your configuration for Bytestream methods.
1700
- class MediaUpload
1701
- include Google::Apis::Core::Hashable
1702
-
1703
- # A boolean that determines whether a notification for the completion of an
1704
- # upload should be sent to the backend. These notifications will not be seen
1705
- # by the client and will not consume quota.
1706
- # Corresponds to the JSON property `completeNotification`
1707
- # @return [Boolean]
1708
- attr_accessor :complete_notification
1709
- alias_method :complete_notification?, :complete_notification
1710
-
1711
- # Name of the Scotty dropzone to use for the current API.
1712
- # Corresponds to the JSON property `dropzone`
1713
- # @return [String]
1714
- attr_accessor :dropzone
1715
-
1716
- # Whether upload is enabled.
1717
- # Corresponds to the JSON property `enabled`
1718
- # @return [Boolean]
1719
- attr_accessor :enabled
1720
- alias_method :enabled?, :enabled
1721
-
1722
- # Optional maximum acceptable size for an upload.
1723
- # The size is specified in bytes.
1724
- # Corresponds to the JSON property `maxSize`
1725
- # @return [Fixnum]
1726
- attr_accessor :max_size
1727
-
1728
- # An array of mimetype patterns. Esf will only accept uploads that match one
1729
- # of the given patterns.
1730
- # Corresponds to the JSON property `mimeTypes`
1731
- # @return [Array<String>]
1732
- attr_accessor :mime_types
1733
-
1734
- # Whether to receive a notification for progress changes of media upload.
1735
- # Corresponds to the JSON property `progressNotification`
1736
- # @return [Boolean]
1737
- attr_accessor :progress_notification
1738
- alias_method :progress_notification?, :progress_notification
1739
-
1740
- # Whether to receive a notification on the start of media upload.
1741
- # Corresponds to the JSON property `startNotification`
1742
- # @return [Boolean]
1743
- attr_accessor :start_notification
1744
- alias_method :start_notification?, :start_notification
1745
-
1746
- # DO NOT USE FIELDS BELOW THIS LINE UNTIL THIS WARNING IS REMOVED.
1747
- # Specify name of the upload service if one is used for upload.
1748
- # Corresponds to the JSON property `uploadService`
1749
- # @return [String]
1750
- attr_accessor :upload_service
1751
-
1752
- def initialize(**args)
1753
- update!(**args)
1754
- end
1755
-
1756
- # Update properties of this object
1757
- def update!(**args)
1758
- @complete_notification = args[:complete_notification] if args.key?(:complete_notification)
1759
- @dropzone = args[:dropzone] if args.key?(:dropzone)
1760
- @enabled = args[:enabled] if args.key?(:enabled)
1761
- @max_size = args[:max_size] if args.key?(:max_size)
1762
- @mime_types = args[:mime_types] if args.key?(:mime_types)
1763
- @progress_notification = args[:progress_notification] if args.key?(:progress_notification)
1764
- @start_notification = args[:start_notification] if args.key?(:start_notification)
1765
- @upload_service = args[:upload_service] if args.key?(:upload_service)
1766
- end
1767
- end
1768
-
1769
1619
  # Method represents a method of an API interface.
1770
1620
  class MethodProp
1771
1621
  include Google::Apis::Core::Hashable
@@ -2578,6 +2428,7 @@ module Google
2578
2428
  # quota checks at runtime.
2579
2429
  # An example quota configuration in yaml format:
2580
2430
  # quota:
2431
+ # limits:
2581
2432
  # - name: apiWriteQpsPerProject
2582
2433
  # metric: library.googleapis.com/write_calls
2583
2434
  # unit: "1/min/`project`" # rate limit for consumer projects
@@ -3108,6 +2959,7 @@ module Google
3108
2959
  # quota checks at runtime.
3109
2960
  # An example quota configuration in yaml format:
3110
2961
  # quota:
2962
+ # limits:
3111
2963
  # - name: apiWriteQpsPerProject
3112
2964
  # metric: library.googleapis.com/write_calls
3113
2965
  # unit: "1/min/`project`" # rate limit for consumer projects