google-api-client 0.9.2 → 0.9.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (182) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -0
  3. data/CHANGELOG.md +9 -0
  4. data/Gemfile +1 -0
  5. data/README.md +2 -2
  6. data/api_names.yaml +19 -0
  7. data/api_names_out.yaml +843 -269
  8. data/bin/generate-api +18 -4
  9. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  10. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +249 -9
  11. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +208 -1
  12. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +68 -0
  13. data/generated/google/apis/adexchangeseller_v2_0/representations.rb +38 -0
  14. data/generated/google/apis/admin_datatransfer_v1.rb +2 -2
  15. data/generated/google/apis/admin_datatransfer_v1/representations.rb +12 -0
  16. data/generated/google/apis/admin_datatransfer_v1/service.rb +1 -1
  17. data/generated/google/apis/admin_directory_v1/representations.rb +118 -0
  18. data/generated/google/apis/admin_reports_v1/representations.rb +26 -0
  19. data/generated/google/apis/adsense_v1_4.rb +1 -1
  20. data/generated/google/apis/adsense_v1_4/classes.rb +0 -7
  21. data/generated/google/apis/adsense_v1_4/representations.rb +62 -1
  22. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  23. data/generated/google/apis/adsensehost_v4_1/representations.rb +40 -0
  24. data/generated/google/apis/analytics_v3.rb +1 -1
  25. data/generated/google/apis/analytics_v3/representations.rb +188 -0
  26. data/generated/google/apis/analytics_v3/service.rb +3 -3
  27. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  28. data/generated/google/apis/androidenterprise_v1/representations.rb +76 -0
  29. data/generated/google/apis/androidenterprise_v1/service.rb +6 -2
  30. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  31. data/generated/google/apis/androidpublisher_v2/representations.rb +92 -0
  32. data/generated/google/apis/appengine_v1beta5.rb +1 -1
  33. data/generated/google/apis/appengine_v1beta5/classes.rb +22 -1
  34. data/generated/google/apis/appengine_v1beta5/representations.rb +69 -0
  35. data/generated/google/apis/appengine_v1beta5/service.rb +43 -0
  36. data/generated/google/apis/appsactivity_v1/representations.rb +22 -0
  37. data/generated/google/apis/appstate_v1.rb +1 -1
  38. data/generated/google/apis/appstate_v1/representations.rb +8 -0
  39. data/generated/google/apis/autoscaler_v1beta2/representations.rb +32 -0
  40. data/generated/google/apis/bigquery_v2.rb +1 -1
  41. data/generated/google/apis/bigquery_v2/classes.rb +31 -0
  42. data/generated/google/apis/bigquery_v2/representations.rb +98 -0
  43. data/generated/google/apis/blogger_v3/representations.rb +70 -0
  44. data/generated/google/apis/books_v1/representations.rb +196 -0
  45. data/generated/google/apis/calendar_v3.rb +1 -1
  46. data/generated/google/apis/calendar_v3/representations.rb +64 -0
  47. data/generated/google/apis/civicinfo_v2/representations.rb +40 -0
  48. data/generated/google/apis/classroom_v1/representations.rb +28 -0
  49. data/generated/google/apis/cloudbilling_v1/representations.rb +8 -0
  50. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  51. data/generated/google/apis/cloudbuild_v1/classes.rb +1 -1
  52. data/generated/google/apis/cloudbuild_v1/representations.rb +24 -0
  53. data/generated/google/apis/cloudbuild_v1/service.rb +2 -2
  54. data/generated/google/apis/clouddebugger_v2/representations.rb +54 -0
  55. data/generated/google/apis/cloudlatencytest_v2/representations.rb +14 -0
  56. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  57. data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +42 -0
  58. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  59. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +15 -2
  60. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +38 -0
  61. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +4 -1
  62. data/generated/google/apis/cloudtrace_v1/representations.rb +10 -0
  63. data/generated/google/apis/clouduseraccounts_beta/representations.rb +38 -0
  64. data/generated/google/apis/compute_beta.rb +1 -1
  65. data/generated/google/apis/compute_beta/classes.rb +512 -0
  66. data/generated/google/apis/compute_beta/representations.rb +599 -0
  67. data/generated/google/apis/compute_beta/service.rb +415 -0
  68. data/generated/google/apis/compute_v1.rb +1 -1
  69. data/generated/google/apis/compute_v1/representations.rb +386 -0
  70. data/generated/google/apis/container_v1/representations.rb +20 -0
  71. data/generated/google/apis/content_v2/representations.rb +296 -0
  72. data/generated/google/apis/coordinate_v1/representations.rb +36 -0
  73. data/generated/google/apis/customsearch_v1/representations.rb +26 -0
  74. data/generated/google/apis/dataproc_v1.rb +1 -1
  75. data/generated/google/apis/dataproc_v1/classes.rb +1415 -0
  76. data/generated/google/apis/dataproc_v1/representations.rb +569 -0
  77. data/generated/google/apis/dataproc_v1/service.rb +581 -4
  78. data/generated/google/apis/datastore_v1beta2/representations.rb +68 -0
  79. data/generated/google/apis/deploymentmanager_v2/representations.rb +58 -0
  80. data/generated/google/apis/dfareporting_v2_3/representations.rb +386 -0
  81. data/generated/google/apis/discovery_v1/representations.rb +40 -0
  82. data/generated/google/apis/dns_v1.rb +1 -1
  83. data/generated/google/apis/dns_v1/classes.rb +2 -2
  84. data/generated/google/apis/dns_v1/representations.rb +16 -0
  85. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +42 -0
  86. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  87. data/generated/google/apis/doubleclicksearch_v2/representations.rb +34 -0
  88. data/generated/google/apis/drive_v2.rb +1 -1
  89. data/generated/google/apis/drive_v2/classes.rb +7 -0
  90. data/generated/google/apis/drive_v2/representations.rb +83 -0
  91. data/generated/google/apis/drive_v3.rb +1 -1
  92. data/generated/google/apis/drive_v3/classes.rb +7 -0
  93. data/generated/google/apis/drive_v3/representations.rb +51 -0
  94. data/generated/google/apis/fitness_v1/representations.rb +40 -0
  95. data/generated/google/apis/fusiontables_v2.rb +1 -1
  96. data/generated/google/apis/fusiontables_v2/representations.rb +48 -0
  97. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  98. data/generated/google/apis/games_configuration_v1configuration/representations.rb +22 -0
  99. data/generated/google/apis/games_management_v1management.rb +1 -1
  100. data/generated/google/apis/games_management_v1management/representations.rb +30 -0
  101. data/generated/google/apis/games_v1.rb +1 -1
  102. data/generated/google/apis/games_v1/representations.rb +198 -0
  103. data/generated/google/apis/gan_v1beta1/representations.rb +34 -0
  104. data/generated/google/apis/genomics_v1.rb +1 -1
  105. data/generated/google/apis/genomics_v1/classes.rb +2 -211
  106. data/generated/google/apis/genomics_v1/representations.rb +119 -84
  107. data/generated/google/apis/gmail_v1/representations.rb +44 -0
  108. data/generated/google/apis/groupsmigration_v1/representations.rb +2 -0
  109. data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
  110. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  111. data/generated/google/apis/identitytoolkit_v3/classes.rb +105 -0
  112. data/generated/google/apis/identitytoolkit_v3/representations.rb +99 -0
  113. data/generated/google/apis/identitytoolkit_v3/service.rb +36 -1
  114. data/generated/google/apis/kgsearch_v1/representations.rb +2 -0
  115. data/generated/google/apis/licensing_v1/representations.rb +6 -0
  116. data/generated/google/apis/logging_v2beta1/representations.rb +40 -0
  117. data/generated/google/apis/manager_v1beta2/representations.rb +70 -0
  118. data/generated/google/apis/mirror_v1/representations.rb +40 -0
  119. data/generated/google/apis/oauth2_v2.rb +1 -1
  120. data/generated/google/apis/oauth2_v2/representations.rb +8 -0
  121. data/generated/google/apis/pagespeedonline_v2/representations.rb +28 -0
  122. data/generated/google/apis/partners_v2/representations.rb +52 -0
  123. data/generated/google/apis/people_v1.rb +11 -11
  124. data/generated/google/apis/people_v1/classes.rb +888 -961
  125. data/generated/google/apis/people_v1/representations.rb +295 -225
  126. data/generated/google/apis/people_v1/service.rb +61 -65
  127. data/generated/google/apis/plus_domains_v1.rb +1 -1
  128. data/generated/google/apis/plus_domains_v1/representations.rb +124 -0
  129. data/generated/google/apis/plus_v1.rb +1 -1
  130. data/generated/google/apis/plus_v1/representations.rb +102 -0
  131. data/generated/google/apis/prediction_v1_6/classes.rb +1 -1
  132. data/generated/google/apis/prediction_v1_6/representations.rb +42 -0
  133. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +38 -0
  134. data/generated/google/apis/pubsub_v1/representations.rb +42 -0
  135. data/generated/google/apis/qpx_express_v1/representations.rb +48 -0
  136. data/generated/google/apis/replicapool_v1beta2/representations.rb +28 -0
  137. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +30 -0
  138. data/generated/google/apis/reseller_v1.rb +1 -1
  139. data/generated/google/apis/reseller_v1/classes.rb +6 -0
  140. data/generated/google/apis/reseller_v1/representations.rb +23 -0
  141. data/generated/google/apis/resourceviews_v1beta2/representations.rb +32 -0
  142. data/generated/google/apis/script_v1/representations.rb +12 -0
  143. data/generated/google/apis/site_verification_v1/representations.rb +12 -0
  144. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  145. data/generated/google/apis/sqladmin_v1beta4/classes.rb +50 -21
  146. data/generated/google/apis/sqladmin_v1beta4/representations.rb +98 -0
  147. data/generated/google/apis/sqladmin_v1beta4/service.rb +3 -3
  148. data/generated/google/apis/storage_v1.rb +1 -1
  149. data/generated/google/apis/storage_v1/representations.rb +52 -0
  150. data/generated/google/apis/storagetransfer_v1/representations.rb +48 -0
  151. data/generated/google/apis/tagmanager_v1.rb +1 -1
  152. data/generated/google/apis/tagmanager_v1/classes.rb +110 -0
  153. data/generated/google/apis/tagmanager_v1/representations.rb +96 -0
  154. data/generated/google/apis/tagmanager_v1/service.rb +303 -1
  155. data/generated/google/apis/taskqueue_v1beta2/representations.rb +12 -0
  156. data/generated/google/apis/tasks_v1/representations.rb +10 -0
  157. data/generated/google/apis/translate_v2.rb +1 -1
  158. data/generated/google/apis/translate_v2/representations.rb +12 -0
  159. data/generated/google/apis/urlshortener_v1/representations.rb +10 -0
  160. data/generated/google/apis/vision_v1.rb +37 -0
  161. data/generated/google/apis/vision_v1/classes.rb +1259 -0
  162. data/generated/google/apis/vision_v1/representations.rb +418 -0
  163. data/generated/google/apis/vision_v1/service.rb +91 -0
  164. data/generated/google/apis/webmasters_v3/representations.rb +32 -0
  165. data/generated/google/apis/youtube_analytics_v1/representations.rb +30 -0
  166. data/generated/google/apis/youtube_v3/representations.rb +332 -0
  167. data/generated/google/apis/youtubereporting_v1/representations.rb +16 -0
  168. data/google-api-client.gemspec +0 -2
  169. data/lib/google/api_client/client_secrets.rb +3 -4
  170. data/lib/google/apis/core/api_command.rb +5 -4
  171. data/lib/google/apis/core/http_command.rb +20 -4
  172. data/lib/google/apis/core/json_representation.rb +20 -2
  173. data/lib/google/apis/generator/annotator.rb +1 -1
  174. data/lib/google/apis/generator/templates/_representation_stub.tmpl +2 -0
  175. data/lib/google/apis/version.rb +1 -1
  176. data/script/generate +2 -1
  177. data/spec/google/api_client/client_secrets_spec.rb +2 -2
  178. data/spec/google/apis/core/api_command_spec.rb +2 -2
  179. data/spec/google/apis/core/http_command_spec.rb +19 -0
  180. data/spec/google/apis/core/json_representation_spec.rb +14 -7
  181. data/spec/google/apis/generator/generator_spec.rb +52 -0
  182. metadata +6 -30
@@ -171,6 +171,19 @@ module Google
171
171
  end
172
172
  end
173
173
 
174
+ # The request sent to the UndeleteProject method.
175
+ class UndeleteProjectRequest
176
+ include Google::Apis::Core::Hashable
177
+
178
+ def initialize(**args)
179
+ update!(**args)
180
+ end
181
+
182
+ # Update properties of this object
183
+ def update!(**args)
184
+ end
185
+ end
186
+
174
187
  # Request message for `GetIamPolicy` method.
175
188
  class GetIamPolicyRequest
176
189
  include Google::Apis::Core::Hashable
@@ -191,7 +204,7 @@ module Google
191
204
  # accounts. A `role` is a named list of permissions defined by IAM. **Example** `
192
205
  # "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@example.com", "
193
206
  # group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@
194
- # appspot.gserviceaccount.com"] `, ` "role": "roles/viewer", "members": ["user:
207
+ # appspot.gserviceaccount.com", ] `, ` "role": "roles/viewer", "members": ["user:
195
208
  # sean@example.com"] ` ] ` For a description of IAM and its features, see the [
196
209
  # IAM developer's guide](https://cloud.google.com/iam).
197
210
  class Policy
@@ -281,7 +294,7 @@ module Google
281
294
  # accounts. A `role` is a named list of permissions defined by IAM. **Example** `
282
295
  # "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@example.com", "
283
296
  # group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@
284
- # appspot.gserviceaccount.com"] `, ` "role": "roles/viewer", "members": ["user:
297
+ # appspot.gserviceaccount.com", ] `, ` "role": "roles/viewer", "members": ["user:
285
298
  # sean@example.com"] ` ] ` For a description of IAM and its features, see the [
286
299
  # IAM developer's guide](https://cloud.google.com/iam).
287
300
  # Corresponds to the JSON property `policy`
@@ -24,54 +24,86 @@ module Google
24
24
 
25
25
  class Project
26
26
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
27
29
  end
28
30
 
29
31
  class ResourceId
30
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
31
35
  end
32
36
 
33
37
  class ListProjectsResponse
34
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
35
41
  end
36
42
 
37
43
  class Empty
38
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class UndeleteProjectRequest
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
39
53
  end
40
54
 
41
55
  class GetIamPolicyRequest
42
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
43
59
  end
44
60
 
45
61
  class Policy
46
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
47
65
  end
48
66
 
49
67
  class Binding
50
68
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
51
71
  end
52
72
 
53
73
  class SetIamPolicyRequest
54
74
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
55
77
  end
56
78
 
57
79
  class TestIamPermissionsRequest
58
80
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
59
83
  end
60
84
 
61
85
  class TestIamPermissionsResponse
62
86
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
63
89
  end
64
90
 
65
91
  class ListOrganizationsResponse
66
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
67
95
  end
68
96
 
69
97
  class Organization
70
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
71
101
  end
72
102
 
73
103
  class OrganizationOwner
74
104
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
75
107
  end
76
108
 
77
109
  class Project
@@ -111,6 +143,12 @@ module Google
111
143
  end
112
144
  end
113
145
 
146
+ class UndeleteProjectRequest
147
+ # @private
148
+ class Representation < Google::Apis::Core::JsonRepresentation
149
+ end
150
+ end
151
+
114
152
  class GetIamPolicyRequest
115
153
  # @private
116
154
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -243,6 +243,7 @@ module Google
243
243
  # caller must have modify permissions for this Project.
244
244
  # @param [String] project_id
245
245
  # The project ID (for example, `foo-bar-123`). Required.
246
+ # @param [Google::Apis::CloudresourcemanagerV1beta1::UndeleteProjectRequest] undelete_project_request_object
246
247
  # @param [String] fields
247
248
  # Selector specifying which fields to include in a partial response.
248
249
  # @param [String] quota_user
@@ -260,8 +261,10 @@ module Google
260
261
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
261
262
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
262
263
  # @raise [Google::Apis::AuthorizationError] Authorization is required
263
- def undelete_project(project_id, fields: nil, quota_user: nil, options: nil, &block)
264
+ def undelete_project(project_id, undelete_project_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
264
265
  command = make_simple_command(:post, 'v1beta1/projects/{projectId}:undelete', options)
266
+ command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::UndeleteProjectRequest::Representation
267
+ command.request_object = undelete_project_request_object
265
268
  command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Empty::Representation
266
269
  command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Empty
267
270
  command.params['projectId'] = project_id unless project_id.nil?
@@ -24,22 +24,32 @@ module Google
24
24
 
25
25
  class ListTracesResponse
26
26
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
27
29
  end
28
30
 
29
31
  class Trace
30
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
31
35
  end
32
36
 
33
37
  class TraceSpan
34
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
35
41
  end
36
42
 
37
43
  class Traces
38
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
39
47
  end
40
48
 
41
49
  class Empty
42
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
43
53
  end
44
54
 
45
55
  class ListTracesResponse
@@ -24,42 +24,62 @@ module Google
24
24
 
25
25
  class AuthorizedKeysView
26
26
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
27
29
  end
28
30
 
29
31
  class Group
30
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
31
35
  end
32
36
 
33
37
  class GroupList
34
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
35
41
  end
36
42
 
37
43
  class GroupsAddMemberRequest
38
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
39
47
  end
40
48
 
41
49
  class GroupsRemoveMemberRequest
42
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
43
53
  end
44
54
 
45
55
  class LinuxAccountViews
46
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
47
59
  end
48
60
 
49
61
  class LinuxGetAuthorizedKeysViewResponse
50
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
51
65
  end
52
66
 
53
67
  class LinuxGetLinuxAccountViewsResponse
54
68
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
55
71
  end
56
72
 
57
73
  class LinuxGroupView
58
74
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
59
77
  end
60
78
 
61
79
  class LinuxUserView
62
80
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
63
83
  end
64
84
 
65
85
  class Operation
@@ -70,7 +90,11 @@ module Google
70
90
 
71
91
  class Error
72
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
73
95
  end
96
+
97
+ include Google::Apis::Core::JsonObjectSupport
74
98
  end
75
99
 
76
100
  class Warning
@@ -78,24 +102,38 @@ module Google
78
102
 
79
103
  class Datum
80
104
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
81
107
  end
108
+
109
+ include Google::Apis::Core::JsonObjectSupport
82
110
  end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
83
113
  end
84
114
 
85
115
  class OperationList
86
116
  class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
87
119
  end
88
120
 
89
121
  class PublicKey
90
122
  class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
91
125
  end
92
126
 
93
127
  class User
94
128
  class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
95
131
  end
96
132
 
97
133
  class UserList
98
134
  class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
99
137
  end
100
138
 
101
139
  class AuthorizedKeysView
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/compute/docs/reference/latest/
26
26
  module ComputeBeta
27
27
  VERSION = 'Beta'
28
- REVISION = '20160205'
28
+ REVISION = '20160212'
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'
@@ -6479,6 +6479,512 @@ module Google
6479
6479
  end
6480
6480
  end
6481
6481
 
6482
+ # Router resource.
6483
+ class Router
6484
+ include Google::Apis::Core::Hashable
6485
+
6486
+ #
6487
+ # Corresponds to the JSON property `bgp`
6488
+ # @return [Google::Apis::ComputeBeta::RouterBgp]
6489
+ attr_accessor :bgp
6490
+
6491
+ #
6492
+ # Corresponds to the JSON property `bgpPeers`
6493
+ # @return [Array<Google::Apis::ComputeBeta::RouterBgpPeer>]
6494
+ attr_accessor :bgp_peers
6495
+
6496
+ # [Output Only] Creation timestamp in RFC3339 text format.
6497
+ # Corresponds to the JSON property `creationTimestamp`
6498
+ # @return [String]
6499
+ attr_accessor :creation_timestamp
6500
+
6501
+ # An optional description of this resource. Provide this property when you
6502
+ # create the resource.
6503
+ # Corresponds to the JSON property `description`
6504
+ # @return [String]
6505
+ attr_accessor :description
6506
+
6507
+ # [Output Only] The unique identifier for the resource. This identifier is
6508
+ # defined by the server.
6509
+ # Corresponds to the JSON property `id`
6510
+ # @return [String]
6511
+ attr_accessor :id
6512
+
6513
+ #
6514
+ # Corresponds to the JSON property `interfaces`
6515
+ # @return [Array<Google::Apis::ComputeBeta::RouterInterface>]
6516
+ attr_accessor :interfaces
6517
+
6518
+ # [Output Only] Type of resource. Always compute#router for routers.
6519
+ # Corresponds to the JSON property `kind`
6520
+ # @return [String]
6521
+ attr_accessor :kind
6522
+
6523
+ # Name of the resource. Provided by the client when the resource is created. The
6524
+ # name must be 1-63 characters long and comply with RFC1035.
6525
+ # Corresponds to the JSON property `name`
6526
+ # @return [String]
6527
+ attr_accessor :name
6528
+
6529
+ # URI of the network to which this router belongs.
6530
+ # Corresponds to the JSON property `network`
6531
+ # @return [String]
6532
+ attr_accessor :network
6533
+
6534
+ # [Output Only] URI of the region where the router resides.
6535
+ # Corresponds to the JSON property `region`
6536
+ # @return [String]
6537
+ attr_accessor :region
6538
+
6539
+ # [Output Only] Server-defined URL for the resource.
6540
+ # Corresponds to the JSON property `selfLink`
6541
+ # @return [String]
6542
+ attr_accessor :self_link
6543
+
6544
+ def initialize(**args)
6545
+ update!(**args)
6546
+ end
6547
+
6548
+ # Update properties of this object
6549
+ def update!(**args)
6550
+ @bgp = args[:bgp] if args.key?(:bgp)
6551
+ @bgp_peers = args[:bgp_peers] if args.key?(:bgp_peers)
6552
+ @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
6553
+ @description = args[:description] if args.key?(:description)
6554
+ @id = args[:id] if args.key?(:id)
6555
+ @interfaces = args[:interfaces] if args.key?(:interfaces)
6556
+ @kind = args[:kind] if args.key?(:kind)
6557
+ @name = args[:name] if args.key?(:name)
6558
+ @network = args[:network] if args.key?(:network)
6559
+ @region = args[:region] if args.key?(:region)
6560
+ @self_link = args[:self_link] if args.key?(:self_link)
6561
+ end
6562
+ end
6563
+
6564
+ # Contains a list of RoutersScopedList.
6565
+ class RouterAggregatedList
6566
+ include Google::Apis::Core::Hashable
6567
+
6568
+ # [Output Only] The unique identifier for the resource. This identifier is
6569
+ # defined by the server.
6570
+ # Corresponds to the JSON property `id`
6571
+ # @return [String]
6572
+ attr_accessor :id
6573
+
6574
+ # A map of scoped Router lists.
6575
+ # Corresponds to the JSON property `items`
6576
+ # @return [Hash<String,Google::Apis::ComputeBeta::RoutersScopedList>]
6577
+ attr_accessor :items
6578
+
6579
+ # Type of resource.
6580
+ # Corresponds to the JSON property `kind`
6581
+ # @return [String]
6582
+ attr_accessor :kind
6583
+
6584
+ # [Output Only] This token allows you to get the next page of results for list
6585
+ # requests. If the number of results is larger than maxResults, use the
6586
+ # nextPageToken as a value for the query parameter pageToken in the next list
6587
+ # request. Subsequent list requests will have their own nextPageToken to
6588
+ # continue paging through the results.
6589
+ # Corresponds to the JSON property `nextPageToken`
6590
+ # @return [String]
6591
+ attr_accessor :next_page_token
6592
+
6593
+ # [Output Only] Server-defined URL for this resource.
6594
+ # Corresponds to the JSON property `selfLink`
6595
+ # @return [String]
6596
+ attr_accessor :self_link
6597
+
6598
+ def initialize(**args)
6599
+ update!(**args)
6600
+ end
6601
+
6602
+ # Update properties of this object
6603
+ def update!(**args)
6604
+ @id = args[:id] if args.key?(:id)
6605
+ @items = args[:items] if args.key?(:items)
6606
+ @kind = args[:kind] if args.key?(:kind)
6607
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
6608
+ @self_link = args[:self_link] if args.key?(:self_link)
6609
+ end
6610
+ end
6611
+
6612
+ #
6613
+ class RouterBgp
6614
+ include Google::Apis::Core::Hashable
6615
+
6616
+ # Local BGP Autonomous System Number (ASN) Can be a constant public ASN value
6617
+ # for google, or a customer-specified private ASN. In either case, the value
6618
+ # will be fixed for this router resource. All VPN tunnels that link to this
6619
+ # router will have the same local ASN.
6620
+ # Corresponds to the JSON property `asn`
6621
+ # @return [Fixnum]
6622
+ attr_accessor :asn
6623
+
6624
+ def initialize(**args)
6625
+ update!(**args)
6626
+ end
6627
+
6628
+ # Update properties of this object
6629
+ def update!(**args)
6630
+ @asn = args[:asn] if args.key?(:asn)
6631
+ end
6632
+ end
6633
+
6634
+ # BGP information that needs to be configured into the routing stack to
6635
+ # establish the BGP peering. It must specify peer ASN and either interface name,
6636
+ # IP, or peer IP. Reference: https://tools.ietf.org/html/rfc4273
6637
+ class RouterBgpPeer
6638
+ include Google::Apis::Core::Hashable
6639
+
6640
+ # The priority of routes advertised to this BGP peer. In the case where there is
6641
+ # more than one matching route of maximum length, the routes with lowest
6642
+ # priority value win.
6643
+ # Corresponds to the JSON property `advertisedRoutePriority`
6644
+ # @return [Fixnum]
6645
+ attr_accessor :advertised_route_priority
6646
+
6647
+ # Name of the interface it is associated with.
6648
+ # Corresponds to the JSON property `interfaceName`
6649
+ # @return [String]
6650
+ attr_accessor :interface_name
6651
+
6652
+ # IP address of the interface inside Google cloud.
6653
+ # Corresponds to the JSON property `ipAddress`
6654
+ # @return [String]
6655
+ attr_accessor :ip_address
6656
+
6657
+ # Name of this BGP Peer. The name must be 1-63 characters long and comply with
6658
+ # RFC1035.
6659
+ # Corresponds to the JSON property `name`
6660
+ # @return [String]
6661
+ attr_accessor :name
6662
+
6663
+ # Peer BGP Autonomous System Number (ASN). For VPN use case, this value can be
6664
+ # different for every tunnel.
6665
+ # Corresponds to the JSON property `peerAsn`
6666
+ # @return [Fixnum]
6667
+ attr_accessor :peer_asn
6668
+
6669
+ # IP address of the BGP interface outside Google cloud.
6670
+ # Corresponds to the JSON property `peerIpAddress`
6671
+ # @return [String]
6672
+ attr_accessor :peer_ip_address
6673
+
6674
+ def initialize(**args)
6675
+ update!(**args)
6676
+ end
6677
+
6678
+ # Update properties of this object
6679
+ def update!(**args)
6680
+ @advertised_route_priority = args[:advertised_route_priority] if args.key?(:advertised_route_priority)
6681
+ @interface_name = args[:interface_name] if args.key?(:interface_name)
6682
+ @ip_address = args[:ip_address] if args.key?(:ip_address)
6683
+ @name = args[:name] if args.key?(:name)
6684
+ @peer_asn = args[:peer_asn] if args.key?(:peer_asn)
6685
+ @peer_ip_address = args[:peer_ip_address] if args.key?(:peer_ip_address)
6686
+ end
6687
+ end
6688
+
6689
+ # Router interfaces. Each interface requires either one linked resource (e.g.
6690
+ # linked_vpn_tunnel) or IP address + range (specified in ip_range).
6691
+ class RouterInterface
6692
+ include Google::Apis::Core::Hashable
6693
+
6694
+ # IP address and range of the interface. The value should be a CIDR formatted
6695
+ # string, for example: 169.254.0.1/30. NOTE: Do NOT trucate address, as it
6696
+ # represents IP address of interface.
6697
+ # Corresponds to the JSON property `ipRange`
6698
+ # @return [String]
6699
+ attr_accessor :ip_range
6700
+
6701
+ # URI of linked VPN tunnel. It must be in the same region as the router. Each
6702
+ # interface can have at most one linked resource.
6703
+ # Corresponds to the JSON property `linkedVpnTunnel`
6704
+ # @return [String]
6705
+ attr_accessor :linked_vpn_tunnel
6706
+
6707
+ # Name of this interface entry. The name must be 1-63 characters long and comply
6708
+ # with RFC1035.
6709
+ # Corresponds to the JSON property `name`
6710
+ # @return [String]
6711
+ attr_accessor :name
6712
+
6713
+ def initialize(**args)
6714
+ update!(**args)
6715
+ end
6716
+
6717
+ # Update properties of this object
6718
+ def update!(**args)
6719
+ @ip_range = args[:ip_range] if args.key?(:ip_range)
6720
+ @linked_vpn_tunnel = args[:linked_vpn_tunnel] if args.key?(:linked_vpn_tunnel)
6721
+ @name = args[:name] if args.key?(:name)
6722
+ end
6723
+ end
6724
+
6725
+ # Contains a list of Router resources.
6726
+ class RouterList
6727
+ include Google::Apis::Core::Hashable
6728
+
6729
+ # [Output Only] The unique identifier for the resource. This identifier is
6730
+ # defined by the server.
6731
+ # Corresponds to the JSON property `id`
6732
+ # @return [String]
6733
+ attr_accessor :id
6734
+
6735
+ # A list of Router resources.
6736
+ # Corresponds to the JSON property `items`
6737
+ # @return [Array<Google::Apis::ComputeBeta::Router>]
6738
+ attr_accessor :items
6739
+
6740
+ # [Output Only] Type of resource. Always compute#router for routers.
6741
+ # Corresponds to the JSON property `kind`
6742
+ # @return [String]
6743
+ attr_accessor :kind
6744
+
6745
+ # [Output Only] This token allows you to get the next page of results for list
6746
+ # requests. If the number of results is larger than maxResults, use the
6747
+ # nextPageToken as a value for the query parameter pageToken in the next list
6748
+ # request. Subsequent list requests will have their own nextPageToken to
6749
+ # continue paging through the results.
6750
+ # Corresponds to the JSON property `nextPageToken`
6751
+ # @return [String]
6752
+ attr_accessor :next_page_token
6753
+
6754
+ # [Output Only] Server-defined URL for the resource.
6755
+ # Corresponds to the JSON property `selfLink`
6756
+ # @return [String]
6757
+ attr_accessor :self_link
6758
+
6759
+ def initialize(**args)
6760
+ update!(**args)
6761
+ end
6762
+
6763
+ # Update properties of this object
6764
+ def update!(**args)
6765
+ @id = args[:id] if args.key?(:id)
6766
+ @items = args[:items] if args.key?(:items)
6767
+ @kind = args[:kind] if args.key?(:kind)
6768
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
6769
+ @self_link = args[:self_link] if args.key?(:self_link)
6770
+ end
6771
+ end
6772
+
6773
+ #
6774
+ class RouterStatus
6775
+ include Google::Apis::Core::Hashable
6776
+
6777
+ # Best routes for this Router.
6778
+ # Corresponds to the JSON property `bestRoutes`
6779
+ # @return [Array<Google::Apis::ComputeBeta::Route>]
6780
+ attr_accessor :best_routes
6781
+
6782
+ #
6783
+ # Corresponds to the JSON property `bgpPeerStatus`
6784
+ # @return [Array<Google::Apis::ComputeBeta::RouterStatusBgpPeerStatus>]
6785
+ attr_accessor :bgp_peer_status
6786
+
6787
+ # URI of the network to which this router belongs.
6788
+ # Corresponds to the JSON property `network`
6789
+ # @return [String]
6790
+ attr_accessor :network
6791
+
6792
+ def initialize(**args)
6793
+ update!(**args)
6794
+ end
6795
+
6796
+ # Update properties of this object
6797
+ def update!(**args)
6798
+ @best_routes = args[:best_routes] if args.key?(:best_routes)
6799
+ @bgp_peer_status = args[:bgp_peer_status] if args.key?(:bgp_peer_status)
6800
+ @network = args[:network] if args.key?(:network)
6801
+ end
6802
+ end
6803
+
6804
+ #
6805
+ class RouterStatusBgpPeerStatus
6806
+ include Google::Apis::Core::Hashable
6807
+
6808
+ # Routes that were advertised to the remote BgpPeer
6809
+ # Corresponds to the JSON property `advertisedRoutes`
6810
+ # @return [Array<Google::Apis::ComputeBeta::Route>]
6811
+ attr_accessor :advertised_routes
6812
+
6813
+ # IP address of the local BGP interface.
6814
+ # Corresponds to the JSON property `ipAddress`
6815
+ # @return [String]
6816
+ attr_accessor :ip_address
6817
+
6818
+ # URL of the VPN tunnel that this BgpPeer controls.
6819
+ # Corresponds to the JSON property `linkedVpnTunnel`
6820
+ # @return [String]
6821
+ attr_accessor :linked_vpn_tunnel
6822
+
6823
+ # Name of this BgpPeer which is unique within the Router resource.
6824
+ # Corresponds to the JSON property `name`
6825
+ # @return [String]
6826
+ attr_accessor :name
6827
+
6828
+ # Number of routes learned from the remote BGP Peer.
6829
+ # Corresponds to the JSON property `numLearnedRoutes`
6830
+ # @return [Fixnum]
6831
+ attr_accessor :num_learned_routes
6832
+
6833
+ # IP address of the remote BGP interface.
6834
+ # Corresponds to the JSON property `peerIpAddress`
6835
+ # @return [String]
6836
+ attr_accessor :peer_ip_address
6837
+
6838
+ # BGP state as specified in RFC-1771.
6839
+ # Corresponds to the JSON property `state`
6840
+ # @return [String]
6841
+ attr_accessor :state
6842
+
6843
+ # Status of the BgpPeer: `UP, DOWN`
6844
+ # Corresponds to the JSON property `status`
6845
+ # @return [String]
6846
+ attr_accessor :status
6847
+
6848
+ # Time this session has been up. Format: 1 second < uptime < 1 day = "23:59:59"
6849
+ # 1 day <= uptime < 1 week = "6d:23h:59m" 1 week <= uptime = "123w:6d:23h"
6850
+ # Corresponds to the JSON property `uptime`
6851
+ # @return [String]
6852
+ attr_accessor :uptime
6853
+
6854
+ def initialize(**args)
6855
+ update!(**args)
6856
+ end
6857
+
6858
+ # Update properties of this object
6859
+ def update!(**args)
6860
+ @advertised_routes = args[:advertised_routes] if args.key?(:advertised_routes)
6861
+ @ip_address = args[:ip_address] if args.key?(:ip_address)
6862
+ @linked_vpn_tunnel = args[:linked_vpn_tunnel] if args.key?(:linked_vpn_tunnel)
6863
+ @name = args[:name] if args.key?(:name)
6864
+ @num_learned_routes = args[:num_learned_routes] if args.key?(:num_learned_routes)
6865
+ @peer_ip_address = args[:peer_ip_address] if args.key?(:peer_ip_address)
6866
+ @state = args[:state] if args.key?(:state)
6867
+ @status = args[:status] if args.key?(:status)
6868
+ @uptime = args[:uptime] if args.key?(:uptime)
6869
+ end
6870
+ end
6871
+
6872
+ #
6873
+ class RouterStatusResponse
6874
+ include Google::Apis::Core::Hashable
6875
+
6876
+ # Type of resource.
6877
+ # Corresponds to the JSON property `kind`
6878
+ # @return [String]
6879
+ attr_accessor :kind
6880
+
6881
+ #
6882
+ # Corresponds to the JSON property `result`
6883
+ # @return [Google::Apis::ComputeBeta::RouterStatus]
6884
+ attr_accessor :result
6885
+
6886
+ def initialize(**args)
6887
+ update!(**args)
6888
+ end
6889
+
6890
+ # Update properties of this object
6891
+ def update!(**args)
6892
+ @kind = args[:kind] if args.key?(:kind)
6893
+ @result = args[:result] if args.key?(:result)
6894
+ end
6895
+ end
6896
+
6897
+ #
6898
+ class RoutersScopedList
6899
+ include Google::Apis::Core::Hashable
6900
+
6901
+ # List of Routers contained in this scope.
6902
+ # Corresponds to the JSON property `routers`
6903
+ # @return [Array<Google::Apis::ComputeBeta::Router>]
6904
+ attr_accessor :routers
6905
+
6906
+ # Informational warning which replaces the list of routers when the list is
6907
+ # empty.
6908
+ # Corresponds to the JSON property `warning`
6909
+ # @return [Google::Apis::ComputeBeta::RoutersScopedList::Warning]
6910
+ attr_accessor :warning
6911
+
6912
+ def initialize(**args)
6913
+ update!(**args)
6914
+ end
6915
+
6916
+ # Update properties of this object
6917
+ def update!(**args)
6918
+ @routers = args[:routers] if args.key?(:routers)
6919
+ @warning = args[:warning] if args.key?(:warning)
6920
+ end
6921
+
6922
+ # Informational warning which replaces the list of routers when the list is
6923
+ # empty.
6924
+ class Warning
6925
+ include Google::Apis::Core::Hashable
6926
+
6927
+ # [Output Only] A warning code, if applicable. For example, Compute Engine
6928
+ # returns NO_RESULTS_ON_PAGE if there are no results in the response.
6929
+ # Corresponds to the JSON property `code`
6930
+ # @return [String]
6931
+ attr_accessor :code
6932
+
6933
+ # [Output Only] Metadata about this warning in key: value format. For example:
6934
+ # "data": [ ` "key": "scope", "value": "zones/us-east1-d" `
6935
+ # Corresponds to the JSON property `data`
6936
+ # @return [Array<Google::Apis::ComputeBeta::RoutersScopedList::Warning::Datum>]
6937
+ attr_accessor :data
6938
+
6939
+ # [Output Only] A human-readable description of the warning code.
6940
+ # Corresponds to the JSON property `message`
6941
+ # @return [String]
6942
+ attr_accessor :message
6943
+
6944
+ def initialize(**args)
6945
+ update!(**args)
6946
+ end
6947
+
6948
+ # Update properties of this object
6949
+ def update!(**args)
6950
+ @code = args[:code] if args.key?(:code)
6951
+ @data = args[:data] if args.key?(:data)
6952
+ @message = args[:message] if args.key?(:message)
6953
+ end
6954
+
6955
+ #
6956
+ class Datum
6957
+ include Google::Apis::Core::Hashable
6958
+
6959
+ # [Output Only] A key that provides more detail on the warning being returned.
6960
+ # For example, for warnings where there are no results in a list request for a
6961
+ # particular zone, this key might be scope and the key value might be the zone
6962
+ # name. Other examples might be a key indicating a deprecated resource, and a
6963
+ # suggested replacement, or a warning about invalid network settings (for
6964
+ # example, if an instance attempts to perform IP forwarding but is not enabled
6965
+ # for IP forwarding).
6966
+ # Corresponds to the JSON property `key`
6967
+ # @return [String]
6968
+ attr_accessor :key
6969
+
6970
+ # [Output Only] A warning data value corresponding to the key.
6971
+ # Corresponds to the JSON property `value`
6972
+ # @return [String]
6973
+ attr_accessor :value
6974
+
6975
+ def initialize(**args)
6976
+ update!(**args)
6977
+ end
6978
+
6979
+ # Update properties of this object
6980
+ def update!(**args)
6981
+ @key = args[:key] if args.key?(:key)
6982
+ @value = args[:value] if args.key?(:value)
6983
+ end
6984
+ end
6985
+ end
6986
+ end
6987
+
6482
6988
  # Sets the scheduling options for an Instance.
6483
6989
  class Scheduling
6484
6990
  include Google::Apis::Core::Hashable
@@ -8827,6 +9333,11 @@ module Google
8827
9333
  # @return [String]
8828
9334
  attr_accessor :region
8829
9335
 
9336
+ # URL of Router resource to be used for dynamic routing.
9337
+ # Corresponds to the JSON property `router`
9338
+ # @return [String]
9339
+ attr_accessor :router
9340
+
8830
9341
  # [Output Only] Server-defined URL for the resource.
8831
9342
  # Corresponds to the JSON property `selfLink`
8832
9343
  # @return [String]
@@ -8870,6 +9381,7 @@ module Google
8870
9381
  @name = args[:name] if args.key?(:name)
8871
9382
  @peer_ip = args[:peer_ip] if args.key?(:peer_ip)
8872
9383
  @region = args[:region] if args.key?(:region)
9384
+ @router = args[:router] if args.key?(:router)
8873
9385
  @self_link = args[:self_link] if args.key?(:self_link)
8874
9386
  @shared_secret = args[:shared_secret] if args.key?(:shared_secret)
8875
9387
  @shared_secret_hash = args[:shared_secret_hash] if args.key?(:shared_secret_hash)