google-api-client 0.9.6 → 0.9.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (149) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -0
  3. data/api_names.yaml +15 -0
  4. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  5. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +75 -12
  6. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +25 -5
  7. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +6 -2
  8. data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
  9. data/generated/google/apis/admin_directory_v1/classes.rb +1 -1
  10. data/generated/google/apis/admin_directory_v1/representations.rb +1 -2
  11. data/generated/google/apis/adsense_v1_4.rb +1 -1
  12. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  13. data/generated/google/apis/analytics_v3.rb +1 -1
  14. data/generated/google/apis/analyticsreporting_v4.rb +37 -0
  15. data/generated/google/apis/analyticsreporting_v4/classes.rb +1385 -0
  16. data/generated/google/apis/analyticsreporting_v4/representations.rb +597 -0
  17. data/generated/google/apis/analyticsreporting_v4/service.rb +88 -0
  18. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  19. data/generated/google/apis/androidenterprise_v1/classes.rb +98 -2
  20. data/generated/google/apis/androidenterprise_v1/representations.rb +48 -0
  21. data/generated/google/apis/androidenterprise_v1/service.rb +63 -1
  22. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  23. data/generated/google/apis/androidpublisher_v2/classes.rb +268 -0
  24. data/generated/google/apis/androidpublisher_v2/representations.rb +142 -0
  25. data/generated/google/apis/androidpublisher_v2/service.rb +121 -0
  26. data/generated/google/apis/appstate_v1.rb +1 -1
  27. data/generated/google/apis/autoscaler_v1beta2.rb +1 -1
  28. data/generated/google/apis/autoscaler_v1beta2/classes.rb +10 -47
  29. data/generated/google/apis/autoscaler_v1beta2/representations.rb +1 -18
  30. data/generated/google/apis/autoscaler_v1beta2/service.rb +4 -4
  31. data/generated/google/apis/bigquery_v2.rb +1 -1
  32. data/generated/google/apis/bigquery_v2/classes.rb +97 -61
  33. data/generated/google/apis/bigquery_v2/representations.rb +23 -18
  34. data/generated/google/apis/calendar_v3.rb +1 -1
  35. data/generated/google/apis/classroom_v1.rb +23 -2
  36. data/generated/google/apis/classroom_v1/classes.rb +920 -6
  37. data/generated/google/apis/classroom_v1/representations.rb +419 -0
  38. data/generated/google/apis/classroom_v1/service.rb +507 -1
  39. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  40. data/generated/google/apis/cloudbuild_v1/classes.rb +30 -23
  41. data/generated/google/apis/cloudbuild_v1/representations.rb +4 -3
  42. data/generated/google/apis/cloudbuild_v1/service.rb +25 -25
  43. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  44. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  45. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  46. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +55 -0
  47. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +40 -0
  48. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +35 -0
  49. data/generated/google/apis/cloudtrace_v1.rb +11 -3
  50. data/generated/google/apis/cloudtrace_v1/classes.rb +5 -5
  51. data/generated/google/apis/cloudtrace_v1/service.rb +8 -6
  52. data/generated/google/apis/compute_beta.rb +2 -2
  53. data/generated/google/apis/compute_beta/classes.rb +162 -32
  54. data/generated/google/apis/compute_beta/representations.rb +58 -0
  55. data/generated/google/apis/compute_beta/service.rb +392 -267
  56. data/generated/google/apis/compute_v1.rb +2 -2
  57. data/generated/google/apis/compute_v1/classes.rb +21 -9
  58. data/generated/google/apis/compute_v1/representations.rb +1 -0
  59. data/generated/google/apis/compute_v1/service.rb +291 -253
  60. data/generated/google/apis/container_v1.rb +1 -1
  61. data/generated/google/apis/container_v1/classes.rb +148 -0
  62. data/generated/google/apis/container_v1/representations.rb +55 -0
  63. data/generated/google/apis/container_v1/service.rb +161 -0
  64. data/generated/google/apis/content_v2.rb +1 -1
  65. data/generated/google/apis/content_v2/classes.rb +18 -6
  66. data/generated/google/apis/content_v2/representations.rb +1 -0
  67. data/generated/google/apis/customsearch_v1.rb +1 -1
  68. data/generated/google/apis/dataproc_v1.rb +2 -11
  69. data/generated/google/apis/dataproc_v1/classes.rb +0 -19
  70. data/generated/google/apis/dataproc_v1/representations.rb +0 -13
  71. data/generated/google/apis/dataproc_v1/service.rb +8 -87
  72. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  73. data/generated/google/apis/dfareporting_v2_3.rb +1 -1
  74. data/generated/google/apis/dfareporting_v2_3/classes.rb +41 -32
  75. data/generated/google/apis/discovery_v1.rb +2 -2
  76. data/generated/google/apis/discovery_v1/service.rb +2 -2
  77. data/generated/google/apis/dns_v1.rb +2 -3
  78. data/generated/google/apis/dns_v1/service.rb +1 -2
  79. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  80. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  81. data/generated/google/apis/drive_v2.rb +3 -2
  82. data/generated/google/apis/drive_v2/service.rb +2 -1
  83. data/generated/google/apis/drive_v3.rb +3 -2
  84. data/generated/google/apis/drive_v3/service.rb +2 -1
  85. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  86. data/generated/google/apis/games_management_v1management.rb +1 -1
  87. data/generated/google/apis/games_management_v1management/classes.rb +34 -0
  88. data/generated/google/apis/games_management_v1management/representations.rb +16 -0
  89. data/generated/google/apis/games_v1.rb +1 -1
  90. data/generated/google/apis/games_v1/classes.rb +34 -0
  91. data/generated/google/apis/games_v1/representations.rb +16 -0
  92. data/generated/google/apis/games_v1/service.rb +212 -53
  93. data/generated/google/apis/genomics_v1.rb +1 -1
  94. data/generated/google/apis/genomics_v1/classes.rb +18 -0
  95. data/generated/google/apis/genomics_v1/representations.rb +3 -0
  96. data/generated/google/apis/genomics_v1/service.rb +2 -2
  97. data/generated/google/apis/gmail_v1.rb +1 -1
  98. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  99. data/generated/google/apis/identitytoolkit_v3/classes.rb +19 -7
  100. data/generated/google/apis/identitytoolkit_v3/representations.rb +3 -1
  101. data/generated/google/apis/mybusiness_v3.rb +32 -0
  102. data/generated/google/apis/mybusiness_v3/classes.rb +1864 -0
  103. data/generated/google/apis/mybusiness_v3/representations.rb +741 -0
  104. data/generated/google/apis/mybusiness_v3/service.rb +960 -0
  105. data/generated/google/apis/pagespeedonline_v2.rb +1 -1
  106. data/generated/google/apis/plus_domains_v1.rb +2 -2
  107. data/generated/google/apis/plus_domains_v1/service.rb +1 -1
  108. data/generated/google/apis/plus_v1.rb +2 -2
  109. data/generated/google/apis/plus_v1/service.rb +1 -1
  110. data/generated/google/apis/prediction_v1_6.rb +4 -1
  111. data/generated/google/apis/proximitybeacon_v1beta1.rb +5 -2
  112. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +169 -22
  113. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +36 -1
  114. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +254 -39
  115. data/generated/google/apis/replicapool_v1beta2.rb +3 -3
  116. data/generated/google/apis/replicapool_v1beta2/service.rb +2 -2
  117. data/generated/google/apis/resourceviews_v1beta2.rb +1 -1
  118. data/generated/google/apis/script_v1.rb +6 -3
  119. data/generated/google/apis/script_v1/service.rb +2 -2
  120. data/generated/google/apis/sheets_v4.rb +43 -0
  121. data/generated/google/apis/sheets_v4/classes.rb +5425 -0
  122. data/generated/google/apis/sheets_v4/representations.rb +2070 -0
  123. data/generated/google/apis/sheets_v4/service.rb +402 -0
  124. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  125. data/generated/google/apis/sqladmin_v1beta4/classes.rb +19 -4
  126. data/generated/google/apis/sqladmin_v1beta4/representations.rb +3 -0
  127. data/generated/google/apis/storage_v1.rb +1 -1
  128. data/generated/google/apis/storage_v1/classes.rb +2 -1
  129. data/generated/google/apis/taskqueue_v1beta2.rb +2 -2
  130. data/generated/google/apis/taskqueue_v1beta2/service.rb +1 -1
  131. data/generated/google/apis/vision_v1.rb +4 -5
  132. data/generated/google/apis/vision_v1/classes.rb +69 -68
  133. data/generated/google/apis/vision_v1/representations.rb +13 -13
  134. data/generated/google/apis/vision_v1/service.rb +3 -4
  135. data/generated/google/apis/youtube_analytics_v1.rb +2 -2
  136. data/generated/google/apis/youtube_analytics_v1/service.rb +1 -1
  137. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  138. data/generated/google/apis/youtube_partner_v1/classes.rb +121 -0
  139. data/generated/google/apis/youtube_partner_v1/representations.rb +50 -0
  140. data/generated/google/apis/youtube_partner_v1/service.rb +40 -0
  141. data/generated/google/apis/youtube_v3.rb +1 -1
  142. data/generated/google/apis/youtube_v3/classes.rb +24 -0
  143. data/generated/google/apis/youtube_v3/representations.rb +4 -0
  144. data/generated/google/apis/youtubereporting_v1.rb +3 -3
  145. data/generated/google/apis/youtubereporting_v1/classes.rb +19 -0
  146. data/generated/google/apis/youtubereporting_v1/representations.rb +3 -0
  147. data/generated/google/apis/youtubereporting_v1/service.rb +3 -4
  148. data/lib/google/apis/version.rb +1 -1
  149. metadata +14 -2
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/container-builder/docs/
26
26
  module CloudbuildV1
27
27
  VERSION = 'V1'
28
- REVISION = '20160413'
28
+ REVISION = '20160525'
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'
@@ -193,6 +193,14 @@ module Google
193
193
  attr_accessor :done
194
194
  alias_method :done?, :done
195
195
 
196
+ # Service-specific metadata associated with the operation. It typically
197
+ # contains progress information and common metadata such as create time.
198
+ # Some services might not provide such metadata. Any method that returns a
199
+ # long-running operation should document the metadata type, if any.
200
+ # Corresponds to the JSON property `metadata`
201
+ # @return [Hash<String,Object>]
202
+ attr_accessor :metadata
203
+
196
204
  # The normal response of the operation in case of success. If the original
197
205
  # method returns no data on success, such as `Delete`, the response is
198
206
  # `google.protobuf.Empty`. If the original method is standard
@@ -205,14 +213,6 @@ module Google
205
213
  # @return [Hash<String,Object>]
206
214
  attr_accessor :response
207
215
 
208
- # Service-specific metadata associated with the operation. It typically
209
- # contains progress information and common metadata such as create time.
210
- # Some services might not provide such metadata. Any method that returns a
211
- # long-running operation should document the metadata type, if any.
212
- # Corresponds to the JSON property `metadata`
213
- # @return [Hash<String,Object>]
214
- attr_accessor :metadata
215
-
216
216
  # The server-assigned name, which is only unique within the same service that
217
217
  # originally returns it. If you use the default HTTP mapping, the
218
218
  # `name` should have the format of `operations/some/unique/name`.
@@ -228,8 +228,8 @@ module Google
228
228
  def update!(**args)
229
229
  @error = args[:error] if args.key?(:error)
230
230
  @done = args[:done] if args.key?(:done)
231
- @response = args[:response] if args.key?(:response)
232
231
  @metadata = args[:metadata] if args.key?(:metadata)
232
+ @response = args[:response] if args.key?(:response)
233
233
  @name = args[:name] if args.key?(:name)
234
234
  end
235
235
  end
@@ -265,12 +265,6 @@ module Google
265
265
  class StorageSource
266
266
  include Google::Apis::Core::Hashable
267
267
 
268
- # Google Cloud Storage generation for the object. If the generation is
269
- # omitted, the latest generation will be used.
270
- # Corresponds to the JSON property `generation`
271
- # @return [String]
272
- attr_accessor :generation
273
-
274
268
  # Google Cloud Storage bucket containing source (see
275
269
  # [Bucket Name
276
270
  # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)
@@ -279,6 +273,12 @@ module Google
279
273
  # @return [String]
280
274
  attr_accessor :bucket
281
275
 
276
+ # Google Cloud Storage generation for the object. If the generation is
277
+ # omitted, the latest generation will be used.
278
+ # Corresponds to the JSON property `generation`
279
+ # @return [String]
280
+ attr_accessor :generation
281
+
282
282
  # Google Cloud Storage object containing source.
283
283
  # This object must be a gzipped archive file (.tar.gz) containing source to
284
284
  # build.
@@ -292,8 +292,8 @@ module Google
292
292
 
293
293
  # Update properties of this object
294
294
  def update!(**args)
295
- @generation = args[:generation] if args.key?(:generation)
296
295
  @bucket = args[:bucket] if args.key?(:bucket)
296
+ @generation = args[:generation] if args.key?(:generation)
297
297
  @object = args[:object] if args.key?(:object)
298
298
  end
299
299
  end
@@ -341,7 +341,7 @@ module Google
341
341
  # @return [String]
342
342
  attr_accessor :status
343
343
 
344
- # Time at whihc execution of the build was finished.
344
+ # Time at which execution of the build was finished.
345
345
  # @OutputOnly
346
346
  # Corresponds to the JSON property `finishTime`
347
347
  # @return [String]
@@ -372,6 +372,12 @@ module Google
372
372
  # @return [String]
373
373
  attr_accessor :create_time
374
374
 
375
+ # Customer-readable message about the current status.
376
+ # @OutputOnly
377
+ # Corresponds to the JSON property `statusDetail`
378
+ # @return [String]
379
+ attr_accessor :status_detail
380
+
375
381
  # List of images expected to be built and pushed to Google Container
376
382
  # Registry. If an image is listed here and the image is not produced by
377
383
  # one of the build steps, the build will fail. Any images present when
@@ -415,6 +421,7 @@ module Google
415
421
  @steps = args[:steps] if args.key?(:steps)
416
422
  @source = args[:source] if args.key?(:source)
417
423
  @create_time = args[:create_time] if args.key?(:create_time)
424
+ @status_detail = args[:status_detail] if args.key?(:status_detail)
418
425
  @images = args[:images] if args.key?(:images)
419
426
  @start_time = args[:start_time] if args.key?(:start_time)
420
427
  @logs_bucket = args[:logs_bucket] if args.key?(:logs_bucket)
@@ -475,17 +482,17 @@ module Google
475
482
  # @return [String]
476
483
  attr_accessor :dir
477
484
 
478
- # Additional environment variables to set for this step's container.
479
- # Corresponds to the JSON property `env`
480
- # @return [Array<String>]
481
- attr_accessor :env
482
-
483
485
  # Name of the container image to use for creating this stage in the
484
486
  # pipeline, as presented to `docker pull`.
485
487
  # Corresponds to the JSON property `name`
486
488
  # @return [String]
487
489
  attr_accessor :name
488
490
 
491
+ # Additional environment variables to set for this step's container.
492
+ # Corresponds to the JSON property `env`
493
+ # @return [Array<String>]
494
+ attr_accessor :env
495
+
489
496
  def initialize(**args)
490
497
  update!(**args)
491
498
  end
@@ -494,8 +501,8 @@ module Google
494
501
  def update!(**args)
495
502
  @args = args[:args] if args.key?(:args)
496
503
  @dir = args[:dir] if args.key?(:dir)
497
- @env = args[:env] if args.key?(:env)
498
504
  @name = args[:name] if args.key?(:name)
505
+ @env = args[:env] if args.key?(:env)
499
506
  end
500
507
  end
501
508
 
@@ -125,8 +125,8 @@ module Google
125
125
  property :error, as: 'error', class: Google::Apis::CloudbuildV1::Status, decorator: Google::Apis::CloudbuildV1::Status::Representation
126
126
 
127
127
  property :done, as: 'done'
128
- hash :response, as: 'response'
129
128
  hash :metadata, as: 'metadata'
129
+ hash :response, as: 'response'
130
130
  property :name, as: 'name'
131
131
  end
132
132
  end
@@ -142,8 +142,8 @@ module Google
142
142
  class StorageSource
143
143
  # @private
144
144
  class Representation < Google::Apis::Core::JsonRepresentation
145
- property :generation, as: 'generation'
146
145
  property :bucket, as: 'bucket'
146
+ property :generation, as: 'generation'
147
147
  property :object, as: 'object'
148
148
  end
149
149
  end
@@ -170,6 +170,7 @@ module Google
170
170
  property :source, as: 'source', class: Google::Apis::CloudbuildV1::Source, decorator: Google::Apis::CloudbuildV1::Source::Representation
171
171
 
172
172
  property :create_time, as: 'createTime'
173
+ property :status_detail, as: 'statusDetail'
173
174
  collection :images, as: 'images'
174
175
  property :start_time, as: 'startTime'
175
176
  property :logs_bucket, as: 'logsBucket'
@@ -197,8 +198,8 @@ module Google
197
198
  class Representation < Google::Apis::Core::JsonRepresentation
198
199
  collection :args, as: 'args'
199
200
  property :dir, as: 'dir'
200
- collection :env, as: 'env'
201
201
  property :name, as: 'name'
202
+ collection :env, as: 'env'
202
203
  end
203
204
  end
204
205
 
@@ -46,13 +46,13 @@ module Google
46
46
  super('https://cloudbuild.googleapis.com/', '')
47
47
  end
48
48
 
49
- # Returns information about a previously requested build.
50
- # The Build that is returned includes its status (e.g., success or failure,
51
- # or in-progress), and timing information.
49
+ # Starts a build with the specified configuration.
50
+ # The long-running Operation returned by this method will include the ID of
51
+ # the build, which can be passed to GetBuild to determine its status (e.g.,
52
+ # success or failure).
52
53
  # @param [String] project_id
53
54
  # ID of the project.
54
- # @param [String] id
55
- # ID of the build.
55
+ # @param [Google::Apis::CloudbuildV1::Build] build_object
56
56
  # @param [String] quota_user
57
57
  # Available to use for quota purposes for server-side applications. Can be any
58
58
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -62,32 +62,33 @@ module Google
62
62
  # Request-specific options
63
63
  #
64
64
  # @yield [result, err] Result & error if block supplied
65
- # @yieldparam result [Google::Apis::CloudbuildV1::Build] parsed result object
65
+ # @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object
66
66
  # @yieldparam err [StandardError] error object if request failed
67
67
  #
68
- # @return [Google::Apis::CloudbuildV1::Build]
68
+ # @return [Google::Apis::CloudbuildV1::Operation]
69
69
  #
70
70
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
71
71
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
72
72
  # @raise [Google::Apis::AuthorizationError] Authorization is required
73
- def get_project_build(project_id, id, quota_user: nil, fields: nil, options: nil, &block)
74
- command = make_simple_command(:get, 'v1/projects/{projectId}/builds/{id}', options)
75
- command.response_representation = Google::Apis::CloudbuildV1::Build::Representation
76
- command.response_class = Google::Apis::CloudbuildV1::Build
73
+ def create_project_build(project_id, build_object = nil, quota_user: nil, fields: nil, options: nil, &block)
74
+ command = make_simple_command(:post, 'v1/projects/{projectId}/builds', options)
75
+ command.request_representation = Google::Apis::CloudbuildV1::Build::Representation
76
+ command.request_object = build_object
77
+ command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
78
+ command.response_class = Google::Apis::CloudbuildV1::Operation
77
79
  command.params['projectId'] = project_id unless project_id.nil?
78
- command.params['id'] = id unless id.nil?
79
80
  command.query['quotaUser'] = quota_user unless quota_user.nil?
80
81
  command.query['fields'] = fields unless fields.nil?
81
82
  execute_or_queue_command(command, &block)
82
83
  end
83
84
 
84
- # Starts a build with the specified configuration.
85
- # The long-running Operation returned by this method will include the ID of
86
- # the build, which can be passed to GetBuild to determine its status (e.g.,
87
- # success or failure).
85
+ # Returns information about a previously requested build.
86
+ # The Build that is returned includes its status (e.g., success or failure,
87
+ # or in-progress), and timing information.
88
88
  # @param [String] project_id
89
89
  # ID of the project.
90
- # @param [Google::Apis::CloudbuildV1::Build] build_object
90
+ # @param [String] id
91
+ # ID of the build.
91
92
  # @param [String] quota_user
92
93
  # Available to use for quota purposes for server-side applications. Can be any
93
94
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -97,21 +98,20 @@ module Google
97
98
  # Request-specific options
98
99
  #
99
100
  # @yield [result, err] Result & error if block supplied
100
- # @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object
101
+ # @yieldparam result [Google::Apis::CloudbuildV1::Build] parsed result object
101
102
  # @yieldparam err [StandardError] error object if request failed
102
103
  #
103
- # @return [Google::Apis::CloudbuildV1::Operation]
104
+ # @return [Google::Apis::CloudbuildV1::Build]
104
105
  #
105
106
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
106
107
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
107
108
  # @raise [Google::Apis::AuthorizationError] Authorization is required
108
- def create_project_build(project_id, build_object = nil, quota_user: nil, fields: nil, options: nil, &block)
109
- command = make_simple_command(:post, 'v1/projects/{projectId}/builds', options)
110
- command.request_representation = Google::Apis::CloudbuildV1::Build::Representation
111
- command.request_object = build_object
112
- command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
113
- command.response_class = Google::Apis::CloudbuildV1::Operation
109
+ def get_project_build(project_id, id, quota_user: nil, fields: nil, options: nil, &block)
110
+ command = make_simple_command(:get, 'v1/projects/{projectId}/builds/{id}', options)
111
+ command.response_representation = Google::Apis::CloudbuildV1::Build::Representation
112
+ command.response_class = Google::Apis::CloudbuildV1::Build
114
113
  command.params['projectId'] = project_id unless project_id.nil?
114
+ command.params['id'] = id unless id.nil?
115
115
  command.query['quotaUser'] = quota_user unless quota_user.nil?
116
116
  command.query['fields'] = fields unless fields.nil?
117
117
  execute_or_queue_command(command, &block)
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/monitoring/v2beta2/
26
26
  module CloudmonitoringV2beta2
27
27
  VERSION = 'V2beta2'
28
- REVISION = '20160403'
28
+ REVISION = '20160415'
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'
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/resource-manager
27
27
  module CloudresourcemanagerV1
28
28
  VERSION = 'V1'
29
- REVISION = '20160316'
29
+ REVISION = '20160518'
30
30
 
31
31
  # View and manage your data across Google Cloud Platform services
32
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/resource-manager
27
27
  module CloudresourcemanagerV1beta1
28
28
  VERSION = 'V1beta1'
29
- REVISION = '20160316'
29
+ REVISION = '20160518'
30
30
 
31
31
  # View and manage your data across Google Cloud Platform services
32
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -184,6 +184,61 @@ module Google
184
184
  end
185
185
  end
186
186
 
187
+ # The request sent to the GetAncestry method.
188
+ class GetAncestryRequest
189
+ include Google::Apis::Core::Hashable
190
+
191
+ def initialize(**args)
192
+ update!(**args)
193
+ end
194
+
195
+ # Update properties of this object
196
+ def update!(**args)
197
+ end
198
+ end
199
+
200
+ # Response from the GetAncestry method.
201
+ class GetAncestryResponse
202
+ include Google::Apis::Core::Hashable
203
+
204
+ # Ancestors are ordered from bottom to top of the resource hierarchy. The first
205
+ # ancestor is the project itself, followed by the project's parent, etc.
206
+ # Corresponds to the JSON property `ancestor`
207
+ # @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Ancestor>]
208
+ attr_accessor :ancestor
209
+
210
+ def initialize(**args)
211
+ update!(**args)
212
+ end
213
+
214
+ # Update properties of this object
215
+ def update!(**args)
216
+ @ancestor = args[:ancestor] if args.key?(:ancestor)
217
+ end
218
+ end
219
+
220
+ # Identifying information for a single ancestor of a project.
221
+ class Ancestor
222
+ include Google::Apis::Core::Hashable
223
+
224
+ # A container to reference an id for any resource type. A `resource` in Google
225
+ # Cloud Platform is a generic term for something you (a developer) may want to
226
+ # interact with through one of our API's. Some examples are an AppEngine app, a
227
+ # Compute Engine instance, a Cloud SQL database, and so on.
228
+ # Corresponds to the JSON property `resourceId`
229
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::ResourceId]
230
+ attr_accessor :resource_id
231
+
232
+ def initialize(**args)
233
+ update!(**args)
234
+ end
235
+
236
+ # Update properties of this object
237
+ def update!(**args)
238
+ @resource_id = args[:resource_id] if args.key?(:resource_id)
239
+ end
240
+ end
241
+
187
242
  # Request message for `GetIamPolicy` method.
188
243
  class GetIamPolicyRequest
189
244
  include Google::Apis::Core::Hashable
@@ -52,6 +52,24 @@ module Google
52
52
  include Google::Apis::Core::JsonObjectSupport
53
53
  end
54
54
 
55
+ class GetAncestryRequest
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class GetAncestryResponse
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class Ancestor
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
55
73
  class GetIamPolicyRequest
56
74
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
75
 
@@ -149,6 +167,28 @@ module Google
149
167
  end
150
168
  end
151
169
 
170
+ class GetAncestryRequest
171
+ # @private
172
+ class Representation < Google::Apis::Core::JsonRepresentation
173
+ end
174
+ end
175
+
176
+ class GetAncestryResponse
177
+ # @private
178
+ class Representation < Google::Apis::Core::JsonRepresentation
179
+ collection :ancestor, as: 'ancestor', class: Google::Apis::CloudresourcemanagerV1beta1::Ancestor, decorator: Google::Apis::CloudresourcemanagerV1beta1::Ancestor::Representation
180
+
181
+ end
182
+ end
183
+
184
+ class Ancestor
185
+ # @private
186
+ class Representation < Google::Apis::Core::JsonRepresentation
187
+ property :resource_id, as: 'resourceId', class: Google::Apis::CloudresourcemanagerV1beta1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1beta1::ResourceId::Representation
188
+
189
+ end
190
+ end
191
+
152
192
  class GetIamPolicyRequest
153
193
  # @private
154
194
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -273,6 +273,41 @@ module Google
273
273
  execute_or_queue_command(command, &block)
274
274
  end
275
275
 
276
+ # Gets a list of ancestors in the resource hierarchy for the Project identified
277
+ # by the specified `project_id` (for example, `my-project-123`). The caller must
278
+ # have read permissions for this Project.
279
+ # @param [String] project_id
280
+ # The Project ID (for example, `my-project-123`). Required.
281
+ # @param [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryRequest] get_ancestry_request_object
282
+ # @param [String] fields
283
+ # Selector specifying which fields to include in a partial response.
284
+ # @param [String] quota_user
285
+ # Available to use for quota purposes for server-side applications. Can be any
286
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
287
+ # @param [Google::Apis::RequestOptions] options
288
+ # Request-specific options
289
+ #
290
+ # @yield [result, err] Result & error if block supplied
291
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse] parsed result object
292
+ # @yieldparam err [StandardError] error object if request failed
293
+ #
294
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse]
295
+ #
296
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
297
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
298
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
299
+ def get_project_ancestry(project_id, get_ancestry_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
300
+ command = make_simple_command(:post, 'v1beta1/projects/{projectId}:getAncestry', options)
301
+ command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryRequest::Representation
302
+ command.request_object = get_ancestry_request_object
303
+ command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse::Representation
304
+ command.response_class = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse
305
+ command.params['projectId'] = project_id unless project_id.nil?
306
+ command.query['fields'] = fields unless fields.nil?
307
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
308
+ execute_or_queue_command(command, &block)
309
+ end
310
+
276
311
  # Returns the IAM access control policy for the specified Project. Permission is
277
312
  # denied if the policy or the resource does not exist.
278
313
  # @param [String] resource