google-api-client 0.9.15 → 0.9.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. checksums.yaml +4 -4
  2. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
  3. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +298 -0
  4. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +122 -0
  5. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +458 -0
  6. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  7. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +82 -3
  8. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +33 -0
  9. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +38 -0
  10. data/generated/google/apis/admin_directory_v1.rb +1 -1
  11. data/generated/google/apis/admin_directory_v1/classes.rb +80 -0
  12. data/generated/google/apis/admin_directory_v1/representations.rb +23 -0
  13. data/generated/google/apis/admin_directory_v1/service.rb +39 -0
  14. data/generated/google/apis/adsense_v1_4.rb +1 -1
  15. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  16. data/generated/google/apis/analytics_v3.rb +1 -1
  17. data/generated/google/apis/analytics_v3/classes.rb +11 -5
  18. data/generated/google/apis/analytics_v3/representations.rb +1 -0
  19. data/generated/google/apis/analytics_v3/service.rb +17 -18
  20. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  21. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  22. data/generated/google/apis/androidenterprise_v1/classes.rb +80 -2
  23. data/generated/google/apis/androidenterprise_v1/representations.rb +30 -0
  24. data/generated/google/apis/androidenterprise_v1/service.rb +55 -6
  25. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  26. data/generated/google/apis/appengine_v1beta5.rb +1 -1
  27. data/generated/google/apis/appengine_v1beta5/classes.rb +1 -1
  28. data/generated/google/apis/appengine_v1beta5/service.rb +36 -0
  29. data/generated/google/apis/appsactivity_v1.rb +1 -1
  30. data/generated/google/apis/bigquery_v2.rb +1 -1
  31. data/generated/google/apis/bigquery_v2/classes.rb +2 -2
  32. data/generated/google/apis/books_v1.rb +1 -1
  33. data/generated/google/apis/books_v1/classes.rb +2 -1
  34. data/generated/google/apis/calendar_v3.rb +1 -1
  35. data/generated/google/apis/classroom_v1.rb +1 -1
  36. data/generated/google/apis/classroom_v1/classes.rb +7 -0
  37. data/generated/google/apis/classroom_v1/representations.rb +1 -0
  38. data/generated/google/apis/classroom_v1/service.rb +25 -15
  39. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  40. data/generated/google/apis/cloudbuild_v1/classes.rb +56 -8
  41. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  42. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +535 -298
  43. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +141 -36
  44. data/generated/google/apis/cloudresourcemanager_v1/service.rb +250 -45
  45. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  46. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +99 -4
  47. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +44 -0
  48. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +24 -33
  49. data/generated/google/apis/compute_beta.rb +1 -1
  50. data/generated/google/apis/compute_beta/classes.rb +44 -29
  51. data/generated/google/apis/compute_beta/representations.rb +1 -0
  52. data/generated/google/apis/compute_beta/service.rb +123 -25
  53. data/generated/google/apis/compute_v1.rb +1 -1
  54. data/generated/google/apis/compute_v1/classes.rb +43 -20
  55. data/generated/google/apis/compute_v1/representations.rb +3 -0
  56. data/generated/google/apis/compute_v1/service.rb +608 -67
  57. data/generated/google/apis/content_v2.rb +1 -1
  58. data/generated/google/apis/dataflow_v1b3.rb +38 -0
  59. data/generated/google/apis/dataflow_v1b3/classes.rb +4009 -0
  60. data/generated/google/apis/dataflow_v1b3/representations.rb +1718 -0
  61. data/generated/google/apis/dataflow_v1b3/service.rb +515 -0
  62. data/generated/google/apis/datastore_v1.rb +1 -1
  63. data/generated/google/apis/dns_v1.rb +1 -1
  64. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  65. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +79 -86
  66. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +25 -28
  67. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +10 -8
  68. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  69. data/generated/google/apis/drive_v2.rb +1 -1
  70. data/generated/google/apis/drive_v2/classes.rb +9 -0
  71. data/generated/google/apis/drive_v2/representations.rb +1 -0
  72. data/generated/google/apis/drive_v2/service.rb +8 -1
  73. data/generated/google/apis/drive_v3.rb +1 -1
  74. data/generated/google/apis/drive_v3/classes.rb +7 -0
  75. data/generated/google/apis/drive_v3/representations.rb +1 -0
  76. data/generated/google/apis/drive_v3/service.rb +8 -1
  77. data/generated/google/apis/genomics_v1.rb +1 -1
  78. data/generated/google/apis/iam_v1.rb +2 -2
  79. data/generated/google/apis/iam_v1/classes.rb +181 -206
  80. data/generated/google/apis/iam_v1/representations.rb +36 -45
  81. data/generated/google/apis/iam_v1/service.rb +101 -67
  82. data/generated/google/apis/identitytoolkit_v3.rb +4 -1
  83. data/generated/google/apis/identitytoolkit_v3/classes.rb +11 -27
  84. data/generated/google/apis/identitytoolkit_v3/representations.rb +2 -16
  85. data/generated/google/apis/language_v1beta1.rb +1 -1
  86. data/generated/google/apis/language_v1beta1/classes.rb +4 -2
  87. data/generated/google/apis/language_v1beta1/service.rb +2 -4
  88. data/generated/google/apis/logging_v2beta1.rb +6 -6
  89. data/generated/google/apis/logging_v2beta1/classes.rb +742 -732
  90. data/generated/google/apis/logging_v2beta1/representations.rb +134 -147
  91. data/generated/google/apis/logging_v2beta1/service.rb +276 -209
  92. data/generated/google/apis/monitoring_v3.rb +1 -1
  93. data/generated/google/apis/monitoring_v3/classes.rb +20 -13
  94. data/generated/google/apis/monitoring_v3/service.rb +1 -1
  95. data/generated/google/apis/oauth2_v2.rb +1 -1
  96. data/generated/google/apis/plus_domains_v1.rb +1 -1
  97. data/generated/google/apis/plus_v1.rb +1 -1
  98. data/generated/google/apis/pubsub_v1.rb +1 -1
  99. data/generated/google/apis/pubsub_v1/classes.rb +10 -9
  100. data/generated/google/apis/pubsub_v1/service.rb +128 -27
  101. data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -2
  102. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +3 -1
  103. data/generated/google/apis/sheets_v4.rb +1 -1
  104. data/generated/google/apis/sheets_v4/classes.rb +2 -0
  105. data/generated/google/apis/speech_v1beta1.rb +1 -1
  106. data/generated/google/apis/speech_v1beta1/classes.rb +20 -30
  107. data/generated/google/apis/speech_v1beta1/representations.rb +6 -7
  108. data/generated/google/apis/speech_v1beta1/service.rb +68 -65
  109. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  110. data/generated/google/apis/sqladmin_v1beta4/classes.rb +6 -0
  111. data/generated/google/apis/sqladmin_v1beta4/representations.rb +1 -0
  112. data/generated/google/apis/storage_v1.rb +1 -1
  113. data/generated/google/apis/storage_v1/classes.rb +3 -3
  114. data/generated/google/apis/storage_v1/representations.rb +2 -1
  115. data/generated/google/apis/storage_v1/service.rb +5 -2
  116. data/generated/google/apis/vision_v1.rb +1 -1
  117. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  118. data/lib/google/apis/version.rb +1 -1
  119. metadata +10 -2
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/android-publisher
26
26
  module AndroidpublisherV2
27
27
  VERSION = 'V2'
28
- REVISION = '20160817'
28
+ REVISION = '20161004'
29
29
 
30
30
  # View and manage your Google Play Developer account
31
31
  AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/appengine/docs/admin-api/
26
26
  module AppengineV1beta5
27
27
  VERSION = 'V1beta5'
28
- REVISION = '20160802'
28
+ REVISION = '20161012'
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'
@@ -1616,7 +1616,7 @@ module Google
1616
1616
  # @return [String]
1617
1617
  attr_accessor :name
1618
1618
 
1619
- # The cononical id for this location. For example: `"us-east1"`.
1619
+ # The canonical id for this location. For example: `"us-east1"`.
1620
1620
  # Corresponds to the JSON property `locationId`
1621
1621
  # @return [String]
1622
1622
  attr_accessor :location_id
@@ -118,6 +118,42 @@ module Google
118
118
  execute_or_queue_command(command, &block)
119
119
  end
120
120
 
121
+ # Updates application parameters.
122
+ # @param [String] apps_id
123
+ # Part of `name`. Name of the application to update. Example: `apps/myapp`.
124
+ # @param [Google::Apis::AppengineV1beta5::Application] application_object
125
+ # @param [String] mask
126
+ # Standard field mask for the set of fields to be updated.
127
+ # @param [String] fields
128
+ # Selector specifying which fields to include in a partial response.
129
+ # @param [String] quota_user
130
+ # Available to use for quota purposes for server-side applications. Can be any
131
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
132
+ # @param [Google::Apis::RequestOptions] options
133
+ # Request-specific options
134
+ #
135
+ # @yield [result, err] Result & error if block supplied
136
+ # @yieldparam result [Google::Apis::AppengineV1beta5::Operation] parsed result object
137
+ # @yieldparam err [StandardError] error object if request failed
138
+ #
139
+ # @return [Google::Apis::AppengineV1beta5::Operation]
140
+ #
141
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
142
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
143
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
144
+ def patch_app(apps_id, application_object = nil, mask: nil, fields: nil, quota_user: nil, options: nil, &block)
145
+ command = make_simple_command(:patch, 'v1beta5/apps/{appsId}', options)
146
+ command.request_representation = Google::Apis::AppengineV1beta5::Application::Representation
147
+ command.request_object = application_object
148
+ command.response_representation = Google::Apis::AppengineV1beta5::Operation::Representation
149
+ command.response_class = Google::Apis::AppengineV1beta5::Operation
150
+ command.params['appsId'] = apps_id unless apps_id.nil?
151
+ command.query['mask'] = mask unless mask.nil?
152
+ command.query['fields'] = fields unless fields.nil?
153
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
154
+ execute_or_queue_command(command, &block)
155
+ end
156
+
121
157
  # Gets the latest state of a long-running operation. Clients can use this method
122
158
  # to poll the operation result at intervals as recommended by the API service.
123
159
  # @param [String] apps_id
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/google-apps/activity/
26
26
  module AppsactivityV1
27
27
  VERSION = 'V1'
28
- REVISION = '20160830'
28
+ REVISION = '20160916'
29
29
 
30
30
  # View the activity history of your Google Apps
31
31
  AUTH_ACTIVITY = 'https://www.googleapis.com/auth/activity'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/bigquery/
26
26
  module BigqueryV2
27
27
  VERSION = 'V2'
28
- REVISION = '20160910'
28
+ REVISION = '20161006'
29
29
 
30
30
  # View and manage your data in Google BigQuery
31
31
  AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
@@ -2758,8 +2758,8 @@ module Google
2758
2758
  attr_accessor :name
2759
2759
 
2760
2760
  # [Required] The field data type. Possible values include STRING, BYTES, INTEGER,
2761
- # FLOAT, BOOLEAN, TIMESTAMP or RECORD (where RECORD indicates that the field
2762
- # contains a nested schema).
2761
+ # FLOAT, BOOLEAN, TIMESTAMP, DATE, TIME, DATETIME, or RECORD (where RECORD
2762
+ # indicates that the field contains a nested schema).
2763
2763
  # Corresponds to the JSON property `type`
2764
2764
  # @return [String]
2765
2765
  attr_accessor :type
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/books/docs/v1/getting_started
26
26
  module BooksV1
27
27
  VERSION = 'V1'
28
- REVISION = '20160823'
28
+ REVISION = '20161005'
29
29
 
30
30
  # Manage your books
31
31
  AUTH_BOOKS = 'https://www.googleapis.com/auth/books'
@@ -2413,7 +2413,8 @@ module Google
2413
2413
  # @return [String]
2414
2414
  attr_accessor :kind
2415
2415
 
2416
- #
2416
+ # Series info list. The client always expects this element in the JSON output,
2417
+ # hence declared here as OutputAlways.
2417
2418
  # Corresponds to the JSON property `series`
2418
2419
  # @return [Array<Google::Apis::BooksV1::Series::Series>]
2419
2420
  attr_accessor :series
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/google-apps/calendar/firstapp
26
26
  module CalendarV3
27
27
  VERSION = 'V3'
28
- REVISION = '20160913'
28
+ REVISION = '20161004'
29
29
 
30
30
  # Manage your calendars
31
31
  AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/classroom/
26
26
  module ClassroomV1
27
27
  VERSION = 'V1'
28
- REVISION = '20160816'
28
+ REVISION = '20161006'
29
29
 
30
30
  # View instructions for teacher-assigned work in your Google Classroom classes
31
31
  AUTH_CLASSROOM_COURSE_WORK_READONLY = 'https://www.googleapis.com/auth/classroom.course-work.readonly'
@@ -129,6 +129,12 @@ module Google
129
129
  # @return [Array<Google::Apis::ClassroomV1::CourseMaterialSet>]
130
130
  attr_accessor :course_material_sets
131
131
 
132
+ # Whether or not guardian notifications are enabled for this course. Read-only.
133
+ # Corresponds to the JSON property `guardiansEnabled`
134
+ # @return [Boolean]
135
+ attr_accessor :guardians_enabled
136
+ alias_method :guardians_enabled?, :guardians_enabled
137
+
132
138
  def initialize(**args)
133
139
  update!(**args)
134
140
  end
@@ -151,6 +157,7 @@ module Google
151
157
  @course_group_email = args[:course_group_email] if args.key?(:course_group_email)
152
158
  @teacher_folder = args[:teacher_folder] if args.key?(:teacher_folder)
153
159
  @course_material_sets = args[:course_material_sets] if args.key?(:course_material_sets)
160
+ @guardians_enabled = args[:guardians_enabled] if args.key?(:guardians_enabled)
154
161
  end
155
162
  end
156
163
 
@@ -301,6 +301,7 @@ module Google
301
301
 
302
302
  collection :course_material_sets, as: 'courseMaterialSets', class: Google::Apis::ClassroomV1::CourseMaterialSet, decorator: Google::Apis::ClassroomV1::CourseMaterialSet::Representation
303
303
 
304
+ property :guardians_enabled, as: 'guardiansEnabled'
304
305
  end
305
306
  end
306
307
 
@@ -43,7 +43,7 @@ module Google
43
43
  attr_accessor :quota_user
44
44
 
45
45
  def initialize
46
- super('https://classroom.googleapis.com/', '')
46
+ super('https://prod-day0-classroom.sandbox.googleapis.com/', '')
47
47
  end
48
48
 
49
49
  # Creates a course. The user specified in `ownerId` is the owner of the created
@@ -249,6 +249,8 @@ module Google
249
249
  # identifier. The identifier can be one of the following: * the numeric
250
250
  # identifier for the user * the email address of the user * the string literal `"
251
251
  # me"`, indicating the requesting user
252
+ # @param [Array<String>, String] course_states
253
+ # Restricts returned courses to those in one of the specified states
252
254
  # @param [Fixnum] page_size
253
255
  # Maximum number of items to return. Zero or unspecified indicates that the
254
256
  # server may assign a maximum. The server may return fewer than the specified
@@ -274,12 +276,13 @@ module Google
274
276
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
275
277
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
276
278
  # @raise [Google::Apis::AuthorizationError] Authorization is required
277
- def list_courses(student_id: nil, teacher_id: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
279
+ def list_courses(student_id: nil, teacher_id: nil, course_states: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
278
280
  command = make_simple_command(:get, 'v1/courses', options)
279
281
  command.response_representation = Google::Apis::ClassroomV1::ListCoursesResponse::Representation
280
282
  command.response_class = Google::Apis::ClassroomV1::ListCoursesResponse
281
283
  command.query['studentId'] = student_id unless student_id.nil?
282
284
  command.query['teacherId'] = teacher_id unless teacher_id.nil?
285
+ command.query['courseStates'] = course_states unless course_states.nil?
283
286
  command.query['pageSize'] = page_size unless page_size.nil?
284
287
  command.query['pageToken'] = page_token unless page_token.nil?
285
288
  command.query['fields'] = fields unless fields.nil?
@@ -1277,18 +1280,21 @@ module Google
1277
1280
  # to view, filtered by the parameters provided. This method returns the
1278
1281
  # following error codes: * `PERMISSION_DENIED` if a `student_id` is specified,
1279
1282
  # and the requesting user is not permitted to view guardian invitations for that
1280
- # student, if guardians are not enabled for the domain in question, or for other
1281
- # access errors. * `INVALID_ARGUMENT` if a `student_id` is specified, but its
1282
- # format cannot be recognized (it is not an email address, nor a `student_id`
1283
- # from the API, nor the literal string `me`). May also be returned if an invalid
1284
- # `page_token` or `state` is provided. * `NOT_FOUND` if a `student_id` is
1285
- # specified, and its format can be recognized, but Classroom has no record of
1286
- # that student.
1283
+ # student, if `"-"` is specified as the `student_id` and the user is not a
1284
+ # domain administrator, if guardians are not enabled for the domain in question,
1285
+ # or for other access errors. * `INVALID_ARGUMENT` if a `student_id` is
1286
+ # specified, but its format cannot be recognized (it is not an email address,
1287
+ # nor a `student_id` from the API, nor the literal string `me`). May also be
1288
+ # returned if an invalid `page_token` or `state` is provided. * `NOT_FOUND` if a
1289
+ # `student_id` is specified, and its format can be recognized, but Classroom has
1290
+ # no record of that student.
1287
1291
  # @param [String] student_id
1288
1292
  # The ID of the student whose guardian invitations are to be returned. The
1289
1293
  # identifier can be one of the following: * the numeric identifier for the user *
1290
1294
  # the email address of the user * the string literal `"me"`, indicating the
1291
- # requesting user
1295
+ # requesting user * the string literal `"-"`, indicating that results should be
1296
+ # returned for all students that the requesting user is permitted to view
1297
+ # guardian invitations.
1292
1298
  # @param [String] invited_email_address
1293
1299
  # If specified, only results with the specified `invited_email_address` will be
1294
1300
  # returned.
@@ -1485,10 +1491,13 @@ module Google
1485
1491
  end
1486
1492
 
1487
1493
  # Returns a list of guardians that the requesting user is permitted to view,
1488
- # restricted to those that match the request. This method returns the following
1489
- # error codes: * `PERMISSION_DENIED` if a `student_id` is specified, and the
1490
- # requesting user is not permitted to view guardian information for that student,
1491
- # if guardians are not enabled for the domain in question, if the `
1494
+ # restricted to those that match the request. To list guardians for any student
1495
+ # that the requesting user may view guardians for, use the literal character `-`
1496
+ # for the student ID. This method returns the following error codes: * `
1497
+ # PERMISSION_DENIED` if a `student_id` is specified, and the requesting user is
1498
+ # not permitted to view guardian information for that student, if `"-"` is
1499
+ # specified as the `student_id` and the user is not a domain administrator, if
1500
+ # guardians are not enabled for the domain in question, if the `
1492
1501
  # invited_email_address` filter is set by a user who is not a domain
1493
1502
  # administrator, or for other access errors. * `INVALID_ARGUMENT` if a `
1494
1503
  # student_id` is specified, but its format cannot be recognized (it is not an
@@ -1500,7 +1509,8 @@ module Google
1500
1509
  # Filter results by the student who the guardian is linked to. The identifier
1501
1510
  # can be one of the following: * the numeric identifier for the user * the email
1502
1511
  # address of the user * the string literal `"me"`, indicating the requesting
1503
- # user
1512
+ # user * the string literal `"-"`, indicating that results should be returned
1513
+ # for all students that the requesting user has access to view.
1504
1514
  # @param [String] invited_email_address
1505
1515
  # Filter results by the email address that the original invitation was sent to,
1506
1516
  # resulting in this guardian link. This filter can only be used by domain
@@ -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 = '20160920'
28
+ REVISION = '20161013'
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'
@@ -102,6 +102,15 @@ module Google
102
102
  # At a high level, a Build describes where to find source code, how to build
103
103
  # it (for example, the builder image to run on the source), and what tag to
104
104
  # apply to the built image when it is pushed to Google Container Registry.
105
+ # Fields can include the following variables which will be expanded when the
106
+ # build is created:
107
+ # - $PROJECT_ID: the project ID of the build.
108
+ # - $BUILD_ID: the autogenerated ID of the build.
109
+ # - $REPO_NAME: the source repository name specified by RepoSource.
110
+ # - $BRANCH_NAME: the branch name specified by RepoSource.
111
+ # - $TAG_NAME: the tag name specified by RepoSource.
112
+ # - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or
113
+ # resolved from the specified branch or tag.
105
114
  # Corresponds to the JSON property `build`
106
115
  # @return [Google::Apis::CloudbuildV1::Build]
107
116
  attr_accessor :build
@@ -326,6 +335,15 @@ module Google
326
335
  # At a high level, a Build describes where to find source code, how to build
327
336
  # it (for example, the builder image to run on the source), and what tag to
328
337
  # apply to the built image when it is pushed to Google Container Registry.
338
+ # Fields can include the following variables which will be expanded when the
339
+ # build is created:
340
+ # - $PROJECT_ID: the project ID of the build.
341
+ # - $BUILD_ID: the autogenerated ID of the build.
342
+ # - $REPO_NAME: the source repository name specified by RepoSource.
343
+ # - $BRANCH_NAME: the branch name specified by RepoSource.
344
+ # - $TAG_NAME: the tag name specified by RepoSource.
345
+ # - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or
346
+ # resolved from the specified branch or tag.
329
347
  # Corresponds to the JSON property `build`
330
348
  # @return [Google::Apis::CloudbuildV1::Build]
331
349
  attr_accessor :build
@@ -464,6 +482,15 @@ module Google
464
482
  # At a high level, a Build describes where to find source code, how to build
465
483
  # it (for example, the builder image to run on the source), and what tag to
466
484
  # apply to the built image when it is pushed to Google Container Registry.
485
+ # Fields can include the following variables which will be expanded when the
486
+ # build is created:
487
+ # - $PROJECT_ID: the project ID of the build.
488
+ # - $BUILD_ID: the autogenerated ID of the build.
489
+ # - $REPO_NAME: the source repository name specified by RepoSource.
490
+ # - $BRANCH_NAME: the branch name specified by RepoSource.
491
+ # - $TAG_NAME: the tag name specified by RepoSource.
492
+ # - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or
493
+ # resolved from the specified branch or tag.
467
494
  class Build
468
495
  include Google::Apis::Core::Hashable
469
496
 
@@ -538,10 +565,13 @@ module Google
538
565
  # @return [String]
539
566
  attr_accessor :status_detail
540
567
 
541
- # List of images expected to be built and pushed to Google Container
542
- # Registry. If an image is listed here and the image is not produced by
543
- # one of the build steps, the build will fail. Any images present when
544
- # the build steps are complete will be pushed to Container Registry.
568
+ # A list of images to be pushed upon the successful completion of all build
569
+ # steps.
570
+ # The images will be pushed using the builder
571
+ # service account's credentials.
572
+ # The digests of the pushed images will be stored in the Build resource's
573
+ # results field.
574
+ # If any of the images fail to be pushed, the build is marked FAILURE.
545
575
  # Corresponds to the JSON property `images`
546
576
  # @return [Array<String>]
547
577
  attr_accessor :images
@@ -724,7 +754,9 @@ module Google
724
754
  # @return [String]
725
755
  attr_accessor :id
726
756
 
727
- # Additional environment variables to set for this step's container.
757
+ # A list of environment variable definitions to be used when running a step.
758
+ # The elements are of the form "KEY=VALUE" for the environment variable "KEY"
759
+ # being given the value "VALUE".
728
760
  # Corresponds to the JSON property `env`
729
761
  # @return [Array<String>]
730
762
  attr_accessor :env
@@ -738,13 +770,29 @@ module Google
738
770
  # @return [Array<String>]
739
771
  attr_accessor :wait_for
740
772
 
741
- # Command-line arguments to use when running this step's container.
773
+ # A list of arguments that will be presented to the step when it is started.
774
+ # If the image used to run the step's container has an entrypoint, these args
775
+ # will be used as arguments to that entrypoint. If the image does not define
776
+ # an entrypoint, the first element in args will be used as the entrypoint,
777
+ # and the remainder will be used as arguments.
742
778
  # Corresponds to the JSON property `args`
743
779
  # @return [Array<String>]
744
780
  attr_accessor :args
745
781
 
746
- # Name of the container image to use for creating this stage in the
747
- # pipeline, as presented to `docker pull`.
782
+ # The name of the container image that will run this particular build step.
783
+ # If the image is already available in the host's
784
+ # Docker daemon's cache, it will be run directly. If not, the host will
785
+ # attempt to pull the image first, using the builder service account's
786
+ # credentials if necessary.
787
+ # The Docker daemon's cache will already have the latest versions of all of
788
+ # the officially supported build steps
789
+ # (https://github.com/GoogleCloudPlatform/cloud-builders). The Docker daemon
790
+ # will also have cached many of the layers for some popular images, like
791
+ # "ubuntu", "debian", but they will be refreshed at the time you attempt to
792
+ # use them.
793
+ # If you built an image in a previous build step, it will be stored in the
794
+ # host's Docker daemon's cache and is available to use as the name for a
795
+ # later build step.
748
796
  # Corresponds to the JSON property `name`
749
797
  # @return [String]
750
798
  attr_accessor :name
@@ -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 = '20160617'
29
+ REVISION = '20160927'
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'
@@ -22,60 +22,79 @@ module Google
22
22
  module Apis
23
23
  module CloudresourcemanagerV1
24
24
 
25
- # A Project is a high-level Google Cloud Platform entity. It is a container for
26
- # ACLs, APIs, AppEngine Apps, VMs, and other Google Cloud Platform resources.
27
- class Project
25
+ # This resource represents a long-running operation that is the result of a
26
+ # network API call.
27
+ class Operation
28
28
  include Google::Apis::Core::Hashable
29
29
 
30
- # The number uniquely identifying the project. Example: 415104041262 Read-only.
31
- # Corresponds to the JSON property `projectNumber`
32
- # @return [String]
33
- attr_accessor :project_number
34
-
35
- # The unique, user-assigned ID of the Project. It must be 6 to 30 lowercase
36
- # letters, digits, or hyphens. It must start with a letter. Trailing hyphens are
37
- # prohibited. Example: tokyo-rain-123 Read-only after creation.
38
- # Corresponds to the JSON property `projectId`
39
- # @return [String]
40
- attr_accessor :project_id
41
-
42
- # The Project lifecycle state. Read-only.
43
- # Corresponds to the JSON property `lifecycleState`
44
- # @return [String]
45
- attr_accessor :lifecycle_state
46
-
47
- # The user-assigned display name of the Project. It must be 4 to 30 characters.
48
- # Allowed characters are: lowercase and uppercase letters, numbers, hyphen,
49
- # single-quote, double-quote, space, and exclamation point. Example: My Project
50
- # Read-write.
30
+ # The server-assigned name, which is only unique within the same service that
31
+ # originally returns it. If you use the default HTTP mapping, the `name` should
32
+ # have the format of `operations/some/unique/name`.
51
33
  # Corresponds to the JSON property `name`
52
34
  # @return [String]
53
35
  attr_accessor :name
54
36
 
55
- # Creation time. Read-only.
56
- # Corresponds to the JSON property `createTime`
57
- # @return [String]
58
- attr_accessor :create_time
37
+ # Service-specific metadata associated with the operation. It typically contains
38
+ # progress information and common metadata such as create time. Some services
39
+ # might not provide such metadata. Any method that returns a long-running
40
+ # operation should document the metadata type, if any.
41
+ # Corresponds to the JSON property `metadata`
42
+ # @return [Hash<String,Object>]
43
+ attr_accessor :metadata
59
44
 
60
- # The labels associated with this Project. Label keys must be between 1 and 63
61
- # characters long and must conform to the following regular expression: \[a-z\](\
62
- # [-a-z0-9\]*\[a-z0-9\])?. Label values must be between 0 and 63 characters long
63
- # and must conform to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
64
- # No more than 256 labels can be associated with a given resource. Clients
65
- # should store labels in a representation such as JSON that does not depend on
66
- # specific characters being disallowed. Example: "environment" : "dev" Read-
67
- # write.
68
- # Corresponds to the JSON property `labels`
69
- # @return [Hash<String,String>]
70
- attr_accessor :labels
45
+ # If the value is `false`, it means the operation is still in progress. If true,
46
+ # the operation is completed, and either `error` or `response` is available.
47
+ # Corresponds to the JSON property `done`
48
+ # @return [Boolean]
49
+ attr_accessor :done
50
+ alias_method :done?, :done
71
51
 
72
- # A container to reference an id for any resource type. A `resource` in Google
73
- # Cloud Platform is a generic term for something you (a developer) may want to
74
- # interact with through one of our API's. Some examples are an AppEngine app, a
75
- # Compute Engine instance, a Cloud SQL database, and so on.
76
- # Corresponds to the JSON property `parent`
77
- # @return [Google::Apis::CloudresourcemanagerV1::ResourceId]
78
- attr_accessor :parent
52
+ # The `Status` type defines a logical error model that is suitable for different
53
+ # programming environments, including REST APIs and RPC APIs. It is used by [
54
+ # gRPC](https://github.com/grpc). The error model is designed to be: - Simple to
55
+ # use and understand for most users - Flexible enough to meet unexpected needs #
56
+ # Overview The `Status` message contains three pieces of data: error code, error
57
+ # message, and error details. The error code should be an enum value of google.
58
+ # rpc.Code, but it may accept additional error codes if needed. The error
59
+ # message should be a developer-facing English message that helps developers *
60
+ # understand* and *resolve* the error. If a localized user-facing error message
61
+ # is needed, put the localized message in the error details or localize it in
62
+ # the client. The optional error details may contain arbitrary information about
63
+ # the error. There is a predefined set of error detail types in the package `
64
+ # google.rpc` which can be used for common error conditions. # Language mapping
65
+ # The `Status` message is the logical representation of the error model, but it
66
+ # is not necessarily the actual wire format. When the `Status` message is
67
+ # exposed in different client libraries and different wire protocols, it can be
68
+ # mapped differently. For example, it will likely be mapped to some exceptions
69
+ # in Java, but more likely mapped to some error codes in C. # Other uses The
70
+ # error model and the `Status` message can be used in a variety of environments,
71
+ # either with or without APIs, to provide a consistent developer experience
72
+ # across different environments. Example uses of this error model include: -
73
+ # Partial errors. If a service needs to return partial errors to the client, it
74
+ # may embed the `Status` in the normal response to indicate the partial errors. -
75
+ # Workflow errors. A typical workflow has multiple steps. Each step may have a `
76
+ # Status` message for error reporting purpose. - Batch operations. If a client
77
+ # uses batch request and batch response, the `Status` message should be used
78
+ # directly inside batch response, one for each error sub-response. -
79
+ # Asynchronous operations. If an API call embeds asynchronous operation results
80
+ # in its response, the status of those operations should be represented directly
81
+ # using the `Status` message. - Logging. If some API errors are stored in logs,
82
+ # the message `Status` could be used directly after any stripping needed for
83
+ # security/privacy reasons.
84
+ # Corresponds to the JSON property `error`
85
+ # @return [Google::Apis::CloudresourcemanagerV1::Status]
86
+ attr_accessor :error
87
+
88
+ # The normal response of the operation in case of success. If the original
89
+ # method returns no data on success, such as `Delete`, the response is `google.
90
+ # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
91
+ # the response should be the resource. For other methods, the response should
92
+ # have the type `XxxResponse`, where `Xxx` is the original method name. For
93
+ # example, if the original method name is `TakeSnapshot()`, the inferred
94
+ # response type is `TakeSnapshotResponse`.
95
+ # Corresponds to the JSON property `response`
96
+ # @return [Hash<String,Object>]
97
+ attr_accessor :response
79
98
 
80
99
  def initialize(**args)
81
100
  update!(**args)
@@ -83,34 +102,105 @@ module Google
83
102
 
84
103
  # Update properties of this object
85
104
  def update!(**args)
86
- @project_number = args[:project_number] if args.key?(:project_number)
87
- @project_id = args[:project_id] if args.key?(:project_id)
88
- @lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
89
105
  @name = args[:name] if args.key?(:name)
90
- @create_time = args[:create_time] if args.key?(:create_time)
91
- @labels = args[:labels] if args.key?(:labels)
92
- @parent = args[:parent] if args.key?(:parent)
106
+ @metadata = args[:metadata] if args.key?(:metadata)
107
+ @done = args[:done] if args.key?(:done)
108
+ @error = args[:error] if args.key?(:error)
109
+ @response = args[:response] if args.key?(:response)
93
110
  end
94
111
  end
95
112
 
96
- # A container to reference an id for any resource type. A `resource` in Google
97
- # Cloud Platform is a generic term for something you (a developer) may want to
98
- # interact with through one of our API's. Some examples are an AppEngine app, a
99
- # Compute Engine instance, a Cloud SQL database, and so on.
100
- class ResourceId
113
+ # The `Status` type defines a logical error model that is suitable for different
114
+ # programming environments, including REST APIs and RPC APIs. It is used by [
115
+ # gRPC](https://github.com/grpc). The error model is designed to be: - Simple to
116
+ # use and understand for most users - Flexible enough to meet unexpected needs #
117
+ # Overview The `Status` message contains three pieces of data: error code, error
118
+ # message, and error details. The error code should be an enum value of google.
119
+ # rpc.Code, but it may accept additional error codes if needed. The error
120
+ # message should be a developer-facing English message that helps developers *
121
+ # understand* and *resolve* the error. If a localized user-facing error message
122
+ # is needed, put the localized message in the error details or localize it in
123
+ # the client. The optional error details may contain arbitrary information about
124
+ # the error. There is a predefined set of error detail types in the package `
125
+ # google.rpc` which can be used for common error conditions. # Language mapping
126
+ # The `Status` message is the logical representation of the error model, but it
127
+ # is not necessarily the actual wire format. When the `Status` message is
128
+ # exposed in different client libraries and different wire protocols, it can be
129
+ # mapped differently. For example, it will likely be mapped to some exceptions
130
+ # in Java, but more likely mapped to some error codes in C. # Other uses The
131
+ # error model and the `Status` message can be used in a variety of environments,
132
+ # either with or without APIs, to provide a consistent developer experience
133
+ # across different environments. Example uses of this error model include: -
134
+ # Partial errors. If a service needs to return partial errors to the client, it
135
+ # may embed the `Status` in the normal response to indicate the partial errors. -
136
+ # Workflow errors. A typical workflow has multiple steps. Each step may have a `
137
+ # Status` message for error reporting purpose. - Batch operations. If a client
138
+ # uses batch request and batch response, the `Status` message should be used
139
+ # directly inside batch response, one for each error sub-response. -
140
+ # Asynchronous operations. If an API call embeds asynchronous operation results
141
+ # in its response, the status of those operations should be represented directly
142
+ # using the `Status` message. - Logging. If some API errors are stored in logs,
143
+ # the message `Status` could be used directly after any stripping needed for
144
+ # security/privacy reasons.
145
+ class Status
101
146
  include Google::Apis::Core::Hashable
102
147
 
103
- # Required field representing the resource type this id is for. At present, the
104
- # only valid type is "organization".
105
- # Corresponds to the JSON property `type`
148
+ # The status code, which should be an enum value of google.rpc.Code.
149
+ # Corresponds to the JSON property `code`
150
+ # @return [Fixnum]
151
+ attr_accessor :code
152
+
153
+ # A developer-facing error message, which should be in English. Any user-facing
154
+ # error message should be localized and sent in the google.rpc.Status.details
155
+ # field, or localized by the client.
156
+ # Corresponds to the JSON property `message`
106
157
  # @return [String]
107
- attr_accessor :type
158
+ attr_accessor :message
108
159
 
109
- # Required field for the type-specific id. This should correspond to the id used
110
- # in the type-specific API's.
111
- # Corresponds to the JSON property `id`
160
+ # A list of messages that carry the error details. There will be a common set of
161
+ # message types for APIs to use.
162
+ # Corresponds to the JSON property `details`
163
+ # @return [Array<Hash<String,Object>>]
164
+ attr_accessor :details
165
+
166
+ def initialize(**args)
167
+ update!(**args)
168
+ end
169
+
170
+ # Update properties of this object
171
+ def update!(**args)
172
+ @code = args[:code] if args.key?(:code)
173
+ @message = args[:message] if args.key?(:message)
174
+ @details = args[:details] if args.key?(:details)
175
+ end
176
+ end
177
+
178
+ # The request sent to the `SearchOrganizations` method.
179
+ class SearchOrganizationsRequest
180
+ include Google::Apis::Core::Hashable
181
+
182
+ # The maximum number of Organizations to return in the response. This field is
183
+ # optional.
184
+ # Corresponds to the JSON property `pageSize`
185
+ # @return [Fixnum]
186
+ attr_accessor :page_size
187
+
188
+ # A pagination token returned from a previous call to `SearchOrganizations` that
189
+ # indicates from where listing should continue. This field is optional.
190
+ # Corresponds to the JSON property `pageToken`
112
191
  # @return [String]
113
- attr_accessor :id
192
+ attr_accessor :page_token
193
+
194
+ # An optional query string used to filter the Organizations to return in the
195
+ # response. Filter rules are case-insensitive. Organizations may be filtered by `
196
+ # owner.directoryCustomerId` or by `domain`, where the domain is a Google for
197
+ # Work domain, for example: |Filter|Description| |------|-----------| |owner.
198
+ # directorycustomerid:123456789|Organizations with `owner.directory_customer_id`
199
+ # equal to `123456789`.| |domain:google.com|Organizations corresponding to the
200
+ # domain `google.com`.| This field is optional.
201
+ # Corresponds to the JSON property `filter`
202
+ # @return [String]
203
+ attr_accessor :filter
114
204
 
115
205
  def initialize(**args)
116
206
  update!(**args)
@@ -118,28 +208,26 @@ module Google
118
208
 
119
209
  # Update properties of this object
120
210
  def update!(**args)
121
- @type = args[:type] if args.key?(:type)
122
- @id = args[:id] if args.key?(:id)
211
+ @page_size = args[:page_size] if args.key?(:page_size)
212
+ @page_token = args[:page_token] if args.key?(:page_token)
213
+ @filter = args[:filter] if args.key?(:filter)
123
214
  end
124
215
  end
125
216
 
126
- # A page of the response received from the ListProjects method. A paginated
127
- # response where more pages are available has `next_page_token` set. This token
128
- # can be used in a subsequent request to retrieve the next request page.
129
- class ListProjectsResponse
217
+ # The response returned from the `SearchOrganizations` method.
218
+ class SearchOrganizationsResponse
130
219
  include Google::Apis::Core::Hashable
131
220
 
132
- # The list of Projects that matched the list filter. This list can be paginated.
133
- # Corresponds to the JSON property `projects`
134
- # @return [Array<Google::Apis::CloudresourcemanagerV1::Project>]
135
- attr_accessor :projects
221
+ # The list of Organizations that matched the search query, possibly paginated.
222
+ # Corresponds to the JSON property `organizations`
223
+ # @return [Array<Google::Apis::CloudresourcemanagerV1::Organization>]
224
+ attr_accessor :organizations
136
225
 
137
- # Pagination token. If the result set is too large to fit in a single response,
138
- # this token is returned. It encodes the position of the current result cursor.
139
- # Feeding this value into a new list request with the `page_token` parameter
140
- # gives the next page of the results. When `next_page_token` is not filled in,
141
- # there is no next page and the list returned is the last page in the result set.
142
- # Pagination tokens have a limited lifetime.
226
+ # A pagination token to be used to retrieve the next page of results. If the
227
+ # result is too large to fit within the page size specified in the request, this
228
+ # field will be set with a token that can be used to fetch the next page of
229
+ # results. If this field is empty, it indicates that this response contains the
230
+ # last page of results.
143
231
  # Corresponds to the JSON property `nextPageToken`
144
232
  # @return [String]
145
233
  attr_accessor :next_page_token
@@ -150,51 +238,111 @@ module Google
150
238
 
151
239
  # Update properties of this object
152
240
  def update!(**args)
153
- @projects = args[:projects] if args.key?(:projects)
241
+ @organizations = args[:organizations] if args.key?(:organizations)
154
242
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
155
243
  end
156
244
  end
157
245
 
158
- # A generic empty message that you can re-use to avoid defining duplicated empty
159
- # messages in your APIs. A typical example is to use it as the request or the
160
- # response type of an API method. For instance: service Foo ` rpc Bar(google.
161
- # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
162
- # `Empty` is empty JSON object ````.
163
- class Empty
246
+ # The root node in the resource hierarchy to which a particular entity's (e.g.,
247
+ # company) resources belong.
248
+ class Organization
164
249
  include Google::Apis::Core::Hashable
165
250
 
251
+ # Output Only. The resource name of the organization. This is the organization's
252
+ # relative path in the API. Its format is "organizations/[organization_id]". For
253
+ # example, "organizations/1234".
254
+ # Corresponds to the JSON property `name`
255
+ # @return [String]
256
+ attr_accessor :name
257
+
258
+ # A friendly string to be used to refer to the Organization in the UI. Assigned
259
+ # by the server, set to the firm name of the Google For Work customer that owns
260
+ # this organization. @OutputOnly
261
+ # Corresponds to the JSON property `displayName`
262
+ # @return [String]
263
+ attr_accessor :display_name
264
+
265
+ # The entity that owns an Organization. The lifetime of the Organization and all
266
+ # of its descendants are bound to the `OrganizationOwner`. If the `
267
+ # OrganizationOwner` is deleted, the Organization and all its descendants will
268
+ # be deleted.
269
+ # Corresponds to the JSON property `owner`
270
+ # @return [Google::Apis::CloudresourcemanagerV1::OrganizationOwner]
271
+ attr_accessor :owner
272
+
273
+ # Timestamp when the Organization was created. Assigned by the server. @
274
+ # OutputOnly
275
+ # Corresponds to the JSON property `creationTime`
276
+ # @return [String]
277
+ attr_accessor :creation_time
278
+
279
+ # The organization's current lifecycle state. Assigned by the server. @
280
+ # OutputOnly
281
+ # Corresponds to the JSON property `lifecycleState`
282
+ # @return [String]
283
+ attr_accessor :lifecycle_state
284
+
166
285
  def initialize(**args)
167
286
  update!(**args)
168
287
  end
169
288
 
170
289
  # Update properties of this object
171
290
  def update!(**args)
291
+ @name = args[:name] if args.key?(:name)
292
+ @display_name = args[:display_name] if args.key?(:display_name)
293
+ @owner = args[:owner] if args.key?(:owner)
294
+ @creation_time = args[:creation_time] if args.key?(:creation_time)
295
+ @lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
172
296
  end
173
297
  end
174
298
 
175
- # The request sent to the UndeleteProject method.
176
- class UndeleteProjectRequest
299
+ # The entity that owns an Organization. The lifetime of the Organization and all
300
+ # of its descendants are bound to the `OrganizationOwner`. If the `
301
+ # OrganizationOwner` is deleted, the Organization and all its descendants will
302
+ # be deleted.
303
+ class OrganizationOwner
177
304
  include Google::Apis::Core::Hashable
178
305
 
306
+ # The Google for Work customer id used in the Directory API.
307
+ # Corresponds to the JSON property `directoryCustomerId`
308
+ # @return [String]
309
+ attr_accessor :directory_customer_id
310
+
179
311
  def initialize(**args)
180
312
  update!(**args)
181
313
  end
182
314
 
183
315
  # Update properties of this object
184
316
  def update!(**args)
317
+ @directory_customer_id = args[:directory_customer_id] if args.key?(:directory_customer_id)
185
318
  end
186
319
  end
187
320
 
188
- # Request message for `GetIamPolicy` method.
189
- class GetIamPolicyRequest
321
+ # Request message for `SetIamPolicy` method.
322
+ class SetIamPolicyRequest
190
323
  include Google::Apis::Core::Hashable
191
324
 
325
+ # Defines an Identity and Access Management (IAM) policy. It is used to specify
326
+ # access control policies for Cloud Platform resources. A `Policy` consists of a
327
+ # list of `bindings`. A `Binding` binds a list of `members` to a `role`, where
328
+ # the members can be user accounts, Google groups, Google domains, and service
329
+ # accounts. A `role` is a named list of permissions defined by IAM. **Example** `
330
+ # "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@example.com", "
331
+ # group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@
332
+ # appspot.gserviceaccount.com", ] `, ` "role": "roles/viewer", "members": ["user:
333
+ # sean@example.com"] ` ] ` For a description of IAM and its features, see the [
334
+ # IAM developer's guide](https://cloud.google.com/iam).
335
+ # Corresponds to the JSON property `policy`
336
+ # @return [Google::Apis::CloudresourcemanagerV1::Policy]
337
+ attr_accessor :policy
338
+
192
339
  def initialize(**args)
193
340
  update!(**args)
194
341
  end
195
342
 
196
343
  # Update properties of this object
197
344
  def update!(**args)
345
+ @policy = args[:policy] if args.key?(:policy)
198
346
  end
199
347
  end
200
348
 
@@ -211,29 +359,221 @@ module Google
211
359
  class Policy
212
360
  include Google::Apis::Core::Hashable
213
361
 
214
- # Version of the `Policy`. The default version is 0.
215
- # Corresponds to the JSON property `version`
216
- # @return [Fixnum]
217
- attr_accessor :version
218
-
219
- # Associates a list of `members` to a `role`. Multiple `bindings` must not be
220
- # specified for the same `role`. `bindings` with no members will result in an
221
- # error.
222
- # Corresponds to the JSON property `bindings`
223
- # @return [Array<Google::Apis::CloudresourcemanagerV1::Binding>]
224
- attr_accessor :bindings
362
+ # Version of the `Policy`. The default version is 0.
363
+ # Corresponds to the JSON property `version`
364
+ # @return [Fixnum]
365
+ attr_accessor :version
366
+
367
+ # Associates a list of `members` to a `role`. Multiple `bindings` must not be
368
+ # specified for the same `role`. `bindings` with no members will result in an
369
+ # error.
370
+ # Corresponds to the JSON property `bindings`
371
+ # @return [Array<Google::Apis::CloudresourcemanagerV1::Binding>]
372
+ attr_accessor :bindings
373
+
374
+ # `etag` is used for optimistic concurrency control as a way to help prevent
375
+ # simultaneous updates of a policy from overwriting each other. It is strongly
376
+ # suggested that systems make use of the `etag` in the read-modify-write cycle
377
+ # to perform policy updates in order to avoid race conditions: An `etag` is
378
+ # returned in the response to `getIamPolicy`, and systems are expected to put
379
+ # that etag in the request to `setIamPolicy` to ensure that their change will be
380
+ # applied to the same version of the policy. If no `etag` is provided in the
381
+ # call to `setIamPolicy`, then the existing policy is overwritten blindly.
382
+ # Corresponds to the JSON property `etag`
383
+ # @return [String]
384
+ attr_accessor :etag
385
+
386
+ def initialize(**args)
387
+ update!(**args)
388
+ end
389
+
390
+ # Update properties of this object
391
+ def update!(**args)
392
+ @version = args[:version] if args.key?(:version)
393
+ @bindings = args[:bindings] if args.key?(:bindings)
394
+ @etag = args[:etag] if args.key?(:etag)
395
+ end
396
+ end
397
+
398
+ # Associates `members` with a `role`.
399
+ class Binding
400
+ include Google::Apis::Core::Hashable
401
+
402
+ # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
403
+ # , or `roles/owner`. Required
404
+ # Corresponds to the JSON property `role`
405
+ # @return [String]
406
+ attr_accessor :role
407
+
408
+ # Specifies the identities requesting access for a Cloud Platform resource. `
409
+ # members` can have the following values: * `allUsers`: A special identifier
410
+ # that represents anyone who is on the internet; with or without a Google
411
+ # account. * `allAuthenticatedUsers`: A special identifier that represents
412
+ # anyone who is authenticated with a Google account or a service account. * `
413
+ # user:`emailid``: An email address that represents a specific Google account.
414
+ # For example, `alice@gmail.com` or `joe@example.com`. * `serviceAccount:`
415
+ # emailid``: An email address that represents a service account. For example, `
416
+ # my-other-app@appspot.gserviceaccount.com`. * `group:`emailid``: An email
417
+ # address that represents a Google group. For example, `admins@example.com`. * `
418
+ # domain:`domain``: A Google Apps domain name that represents all the users of
419
+ # that domain. For example, `google.com` or `example.com`.
420
+ # Corresponds to the JSON property `members`
421
+ # @return [Array<String>]
422
+ attr_accessor :members
423
+
424
+ def initialize(**args)
425
+ update!(**args)
426
+ end
427
+
428
+ # Update properties of this object
429
+ def update!(**args)
430
+ @role = args[:role] if args.key?(:role)
431
+ @members = args[:members] if args.key?(:members)
432
+ end
433
+ end
434
+
435
+ # Request message for `GetIamPolicy` method.
436
+ class GetIamPolicyRequest
437
+ include Google::Apis::Core::Hashable
438
+
439
+ def initialize(**args)
440
+ update!(**args)
441
+ end
442
+
443
+ # Update properties of this object
444
+ def update!(**args)
445
+ end
446
+ end
447
+
448
+ # Request message for `TestIamPermissions` method.
449
+ class TestIamPermissionsRequest
450
+ include Google::Apis::Core::Hashable
451
+
452
+ # The set of permissions to check for the `resource`. Permissions with wildcards
453
+ # (such as '*' or 'storage.*') are not allowed. For more information see [IAM
454
+ # Overview](https://cloud.google.com/iam/docs/overview#permissions).
455
+ # Corresponds to the JSON property `permissions`
456
+ # @return [Array<String>]
457
+ attr_accessor :permissions
458
+
459
+ def initialize(**args)
460
+ update!(**args)
461
+ end
462
+
463
+ # Update properties of this object
464
+ def update!(**args)
465
+ @permissions = args[:permissions] if args.key?(:permissions)
466
+ end
467
+ end
468
+
469
+ # Response message for `TestIamPermissions` method.
470
+ class TestIamPermissionsResponse
471
+ include Google::Apis::Core::Hashable
472
+
473
+ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
474
+ # Corresponds to the JSON property `permissions`
475
+ # @return [Array<String>]
476
+ attr_accessor :permissions
477
+
478
+ def initialize(**args)
479
+ update!(**args)
480
+ end
481
+
482
+ # Update properties of this object
483
+ def update!(**args)
484
+ @permissions = args[:permissions] if args.key?(:permissions)
485
+ end
486
+ end
487
+
488
+ # A Project is a high-level Google Cloud Platform entity. It is a container for
489
+ # ACLs, APIs, AppEngine Apps, VMs, and other Google Cloud Platform resources.
490
+ class Project
491
+ include Google::Apis::Core::Hashable
492
+
493
+ # The number uniquely identifying the project. Example: 415104041262 Read-only.
494
+ # Corresponds to the JSON property `projectNumber`
495
+ # @return [String]
496
+ attr_accessor :project_number
497
+
498
+ # The unique, user-assigned ID of the Project. It must be 6 to 30 lowercase
499
+ # letters, digits, or hyphens. It must start with a letter. Trailing hyphens are
500
+ # prohibited. Example: tokyo-rain-123 Read-only after creation.
501
+ # Corresponds to the JSON property `projectId`
502
+ # @return [String]
503
+ attr_accessor :project_id
504
+
505
+ # The Project lifecycle state. Read-only.
506
+ # Corresponds to the JSON property `lifecycleState`
507
+ # @return [String]
508
+ attr_accessor :lifecycle_state
509
+
510
+ # The user-assigned display name of the Project. It must be 4 to 30 characters.
511
+ # Allowed characters are: lowercase and uppercase letters, numbers, hyphen,
512
+ # single-quote, double-quote, space, and exclamation point. Example: My Project
513
+ # Read-write.
514
+ # Corresponds to the JSON property `name`
515
+ # @return [String]
516
+ attr_accessor :name
517
+
518
+ # Creation time. Read-only.
519
+ # Corresponds to the JSON property `createTime`
520
+ # @return [String]
521
+ attr_accessor :create_time
522
+
523
+ # The labels associated with this Project. Label keys must be between 1 and 63
524
+ # characters long and must conform to the following regular expression: \[a-z\](\
525
+ # [-a-z0-9\]*\[a-z0-9\])?. Label values must be between 0 and 63 characters long
526
+ # and must conform to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
527
+ # No more than 256 labels can be associated with a given resource. Clients
528
+ # should store labels in a representation such as JSON that does not depend on
529
+ # specific characters being disallowed. Example: "environment" : "dev" Read-
530
+ # write.
531
+ # Corresponds to the JSON property `labels`
532
+ # @return [Hash<String,String>]
533
+ attr_accessor :labels
534
+
535
+ # A container to reference an id for any resource type. A `resource` in Google
536
+ # Cloud Platform is a generic term for something you (a developer) may want to
537
+ # interact with through one of our API's. Some examples are an AppEngine app, a
538
+ # Compute Engine instance, a Cloud SQL database, and so on.
539
+ # Corresponds to the JSON property `parent`
540
+ # @return [Google::Apis::CloudresourcemanagerV1::ResourceId]
541
+ attr_accessor :parent
542
+
543
+ def initialize(**args)
544
+ update!(**args)
545
+ end
546
+
547
+ # Update properties of this object
548
+ def update!(**args)
549
+ @project_number = args[:project_number] if args.key?(:project_number)
550
+ @project_id = args[:project_id] if args.key?(:project_id)
551
+ @lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
552
+ @name = args[:name] if args.key?(:name)
553
+ @create_time = args[:create_time] if args.key?(:create_time)
554
+ @labels = args[:labels] if args.key?(:labels)
555
+ @parent = args[:parent] if args.key?(:parent)
556
+ end
557
+ end
558
+
559
+ # A container to reference an id for any resource type. A `resource` in Google
560
+ # Cloud Platform is a generic term for something you (a developer) may want to
561
+ # interact with through one of our API's. Some examples are an AppEngine app, a
562
+ # Compute Engine instance, a Cloud SQL database, and so on.
563
+ class ResourceId
564
+ include Google::Apis::Core::Hashable
565
+
566
+ # Required field representing the resource type this id is for. At present, the
567
+ # only valid type is "organization".
568
+ # Corresponds to the JSON property `type`
569
+ # @return [String]
570
+ attr_accessor :type
225
571
 
226
- # `etag` is used for optimistic concurrency control as a way to help prevent
227
- # simultaneous updates of a policy from overwriting each other. It is strongly
228
- # suggested that systems make use of the `etag` in the read-modify-write cycle
229
- # to perform policy updates in order to avoid race conditions: An `etag` is
230
- # returned in the response to `getIamPolicy`, and systems are expected to put
231
- # that etag in the request to `setIamPolicy` to ensure that their change will be
232
- # applied to the same version of the policy. If no `etag` is provided in the
233
- # call to `setIamPolicy`, then the existing policy is overwritten blindly.
234
- # Corresponds to the JSON property `etag`
572
+ # Required field for the type-specific id. This should correspond to the id used
573
+ # in the type-specific API's.
574
+ # Corresponds to the JSON property `id`
235
575
  # @return [String]
236
- attr_accessor :etag
576
+ attr_accessor :id
237
577
 
238
578
  def initialize(**args)
239
579
  update!(**args)
@@ -241,37 +581,31 @@ module Google
241
581
 
242
582
  # Update properties of this object
243
583
  def update!(**args)
244
- @version = args[:version] if args.key?(:version)
245
- @bindings = args[:bindings] if args.key?(:bindings)
246
- @etag = args[:etag] if args.key?(:etag)
584
+ @type = args[:type] if args.key?(:type)
585
+ @id = args[:id] if args.key?(:id)
247
586
  end
248
587
  end
249
588
 
250
- # Associates `members` with a `role`.
251
- class Binding
589
+ # A page of the response received from the ListProjects method. A paginated
590
+ # response where more pages are available has `next_page_token` set. This token
591
+ # can be used in a subsequent request to retrieve the next request page.
592
+ class ListProjectsResponse
252
593
  include Google::Apis::Core::Hashable
253
594
 
254
- # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
255
- # , or `roles/owner`. Required
256
- # Corresponds to the JSON property `role`
257
- # @return [String]
258
- attr_accessor :role
595
+ # The list of Projects that matched the list filter. This list can be paginated.
596
+ # Corresponds to the JSON property `projects`
597
+ # @return [Array<Google::Apis::CloudresourcemanagerV1::Project>]
598
+ attr_accessor :projects
259
599
 
260
- # Specifies the identities requesting access for a Cloud Platform resource. `
261
- # members` can have the following values: * `allUsers`: A special identifier
262
- # that represents anyone who is on the internet; with or without a Google
263
- # account. * `allAuthenticatedUsers`: A special identifier that represents
264
- # anyone who is authenticated with a Google account or a service account. * `
265
- # user:`emailid``: An email address that represents a specific Google account.
266
- # For example, `alice@gmail.com` or `joe@example.com`. * `serviceAccount:`
267
- # emailid``: An email address that represents a service account. For example, `
268
- # my-other-app@appspot.gserviceaccount.com`. * `group:`emailid``: An email
269
- # address that represents a Google group. For example, `admins@example.com`. * `
270
- # domain:`domain``: A Google Apps domain name that represents all the users of
271
- # that domain. For example, `google.com` or `example.com`.
272
- # Corresponds to the JSON property `members`
273
- # @return [Array<String>]
274
- attr_accessor :members
600
+ # Pagination token. If the result set is too large to fit in a single response,
601
+ # this token is returned. It encodes the position of the current result cursor.
602
+ # Feeding this value into a new list request with the `page_token` parameter
603
+ # gives the next page of the results. When `next_page_token` is not filled in,
604
+ # there is no next page and the list returned is the last page in the result set.
605
+ # Pagination tokens have a limited lifetime.
606
+ # Corresponds to the JSON property `nextPageToken`
607
+ # @return [String]
608
+ attr_accessor :next_page_token
275
609
 
276
610
  def initialize(**args)
277
611
  update!(**args)
@@ -279,68 +613,64 @@ module Google
279
613
 
280
614
  # Update properties of this object
281
615
  def update!(**args)
282
- @role = args[:role] if args.key?(:role)
283
- @members = args[:members] if args.key?(:members)
616
+ @projects = args[:projects] if args.key?(:projects)
617
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
284
618
  end
285
619
  end
286
620
 
287
- # Request message for `SetIamPolicy` method.
288
- class SetIamPolicyRequest
621
+ # A generic empty message that you can re-use to avoid defining duplicated empty
622
+ # messages in your APIs. A typical example is to use it as the request or the
623
+ # response type of an API method. For instance: service Foo ` rpc Bar(google.
624
+ # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
625
+ # `Empty` is empty JSON object ````.
626
+ class Empty
289
627
  include Google::Apis::Core::Hashable
290
628
 
291
- # Defines an Identity and Access Management (IAM) policy. It is used to specify
292
- # access control policies for Cloud Platform resources. A `Policy` consists of a
293
- # list of `bindings`. A `Binding` binds a list of `members` to a `role`, where
294
- # the members can be user accounts, Google groups, Google domains, and service
295
- # accounts. A `role` is a named list of permissions defined by IAM. **Example** `
296
- # "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@example.com", "
297
- # group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@
298
- # appspot.gserviceaccount.com", ] `, ` "role": "roles/viewer", "members": ["user:
299
- # sean@example.com"] ` ] ` For a description of IAM and its features, see the [
300
- # IAM developer's guide](https://cloud.google.com/iam).
301
- # Corresponds to the JSON property `policy`
302
- # @return [Google::Apis::CloudresourcemanagerV1::Policy]
303
- attr_accessor :policy
304
-
305
629
  def initialize(**args)
306
630
  update!(**args)
307
631
  end
308
632
 
309
633
  # Update properties of this object
310
634
  def update!(**args)
311
- @policy = args[:policy] if args.key?(:policy)
312
635
  end
313
636
  end
314
637
 
315
- # Request message for `TestIamPermissions` method.
316
- class TestIamPermissionsRequest
638
+ # The request sent to the UndeleteProject method.
639
+ class UndeleteProjectRequest
317
640
  include Google::Apis::Core::Hashable
318
641
 
319
- # The set of permissions to check for the `resource`. Permissions with wildcards
320
- # (such as '*' or 'storage.*') are not allowed. For more information see IAM
321
- # Overview.
322
- # Corresponds to the JSON property `permissions`
323
- # @return [Array<String>]
324
- attr_accessor :permissions
325
-
326
642
  def initialize(**args)
327
643
  update!(**args)
328
644
  end
329
645
 
330
646
  # Update properties of this object
331
647
  def update!(**args)
332
- @permissions = args[:permissions] if args.key?(:permissions)
333
648
  end
334
649
  end
335
650
 
336
- # Response message for `TestIamPermissions` method.
337
- class TestIamPermissionsResponse
651
+ # A status object which is used as the `metadata` field for the Operation
652
+ # returned by CreateProject. It provides insight for when significant phases of
653
+ # Project creation have completed.
654
+ class ProjectCreationStatus
338
655
  include Google::Apis::Core::Hashable
339
656
 
340
- # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
341
- # Corresponds to the JSON property `permissions`
342
- # @return [Array<String>]
343
- attr_accessor :permissions
657
+ # Creation time of the project creation workflow.
658
+ # Corresponds to the JSON property `createTime`
659
+ # @return [String]
660
+ attr_accessor :create_time
661
+
662
+ # True if the project can be retrieved using GetProject. No other operations on
663
+ # the project are guaranteed to work until the project creation is complete.
664
+ # Corresponds to the JSON property `gettable`
665
+ # @return [Boolean]
666
+ attr_accessor :gettable
667
+ alias_method :gettable?, :gettable
668
+
669
+ # True if the project creation process is complete.
670
+ # Corresponds to the JSON property `ready`
671
+ # @return [Boolean]
672
+ attr_accessor :ready
673
+ alias_method :ready?, :ready
344
674
 
345
675
  def initialize(**args)
346
676
  update!(**args)
@@ -348,83 +678,37 @@ module Google
348
678
 
349
679
  # Update properties of this object
350
680
  def update!(**args)
351
- @permissions = args[:permissions] if args.key?(:permissions)
681
+ @create_time = args[:create_time] if args.key?(:create_time)
682
+ @gettable = args[:gettable] if args.key?(:gettable)
683
+ @ready = args[:ready] if args.key?(:ready)
352
684
  end
353
685
  end
354
686
 
355
- # This resource represents a long-running operation that is the result of a
356
- # network API call.
357
- class Operation
687
+ # Metadata describing a long running folder operation
688
+ class FolderOperation
358
689
  include Google::Apis::Core::Hashable
359
690
 
360
- # The server-assigned name, which is only unique within the same service that
361
- # originally returns it. If you use the default HTTP mapping, the `name` should
362
- # have the format of `operations/some/unique/name`.
363
- # Corresponds to the JSON property `name`
691
+ # The display name of the folder.
692
+ # Corresponds to the JSON property `displayName`
364
693
  # @return [String]
365
- attr_accessor :name
366
-
367
- # Service-specific metadata associated with the operation. It typically contains
368
- # progress information and common metadata such as create time. Some services
369
- # might not provide such metadata. Any method that returns a long-running
370
- # operation should document the metadata type, if any.
371
- # Corresponds to the JSON property `metadata`
372
- # @return [Hash<String,Object>]
373
- attr_accessor :metadata
694
+ attr_accessor :display_name
374
695
 
375
- # If the value is `false`, it means the operation is still in progress. If true,
376
- # the operation is completed, and either `error` or `response` is available.
377
- # Corresponds to the JSON property `done`
378
- # @return [Boolean]
379
- attr_accessor :done
380
- alias_method :done?, :done
696
+ # The type of this operation.
697
+ # Corresponds to the JSON property `operationType`
698
+ # @return [String]
699
+ attr_accessor :operation_type
381
700
 
382
- # The `Status` type defines a logical error model that is suitable for different
383
- # programming environments, including REST APIs and RPC APIs. It is used by [
384
- # gRPC](https://github.com/grpc). The error model is designed to be: - Simple to
385
- # use and understand for most users - Flexible enough to meet unexpected needs #
386
- # Overview The `Status` message contains three pieces of data: error code, error
387
- # message, and error details. The error code should be an enum value of google.
388
- # rpc.Code, but it may accept additional error codes if needed. The error
389
- # message should be a developer-facing English message that helps developers *
390
- # understand* and *resolve* the error. If a localized user-facing error message
391
- # is needed, put the localized message in the error details or localize it in
392
- # the client. The optional error details may contain arbitrary information about
393
- # the error. There is a predefined set of error detail types in the package `
394
- # google.rpc` which can be used for common error conditions. # Language mapping
395
- # The `Status` message is the logical representation of the error model, but it
396
- # is not necessarily the actual wire format. When the `Status` message is
397
- # exposed in different client libraries and different wire protocols, it can be
398
- # mapped differently. For example, it will likely be mapped to some exceptions
399
- # in Java, but more likely mapped to some error codes in C. # Other uses The
400
- # error model and the `Status` message can be used in a variety of environments,
401
- # either with or without APIs, to provide a consistent developer experience
402
- # across different environments. Example uses of this error model include: -
403
- # Partial errors. If a service needs to return partial errors to the client, it
404
- # may embed the `Status` in the normal response to indicate the partial errors. -
405
- # Workflow errors. A typical workflow has multiple steps. Each step may have a `
406
- # Status` message for error reporting purpose. - Batch operations. If a client
407
- # uses batch request and batch response, the `Status` message should be used
408
- # directly inside batch response, one for each error sub-response. -
409
- # Asynchronous operations. If an API call embeds asynchronous operation results
410
- # in its response, the status of those operations should be represented directly
411
- # using the `Status` message. - Logging. If some API errors are stored in logs,
412
- # the message `Status` could be used directly after any stripping needed for
413
- # security/privacy reasons.
414
- # Corresponds to the JSON property `error`
415
- # @return [Google::Apis::CloudresourcemanagerV1::Status]
416
- attr_accessor :error
701
+ # The resource name of the folder's parent. Only applicable when the
702
+ # operation_type is MOVE.
703
+ # Corresponds to the JSON property `sourceParent`
704
+ # @return [String]
705
+ attr_accessor :source_parent
417
706
 
418
- # The normal response of the operation in case of success. If the original
419
- # method returns no data on success, such as `Delete`, the response is `google.
420
- # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
421
- # the response should be the resource. For other methods, the response should
422
- # have the type `XxxResponse`, where `Xxx` is the original method name. For
423
- # example, if the original method name is `TakeSnapshot()`, the inferred
424
- # response type is `TakeSnapshotResponse`.
425
- # Corresponds to the JSON property `response`
426
- # @return [Hash<String,Object>]
427
- attr_accessor :response
707
+ # The resource name of the folder or organization we are either creating the
708
+ # folder under or moving the folder to.
709
+ # Corresponds to the JSON property `destinationParent`
710
+ # @return [String]
711
+ attr_accessor :destination_parent
428
712
 
429
713
  def initialize(**args)
430
714
  update!(**args)
@@ -432,66 +716,21 @@ module Google
432
716
 
433
717
  # Update properties of this object
434
718
  def update!(**args)
435
- @name = args[:name] if args.key?(:name)
436
- @metadata = args[:metadata] if args.key?(:metadata)
437
- @done = args[:done] if args.key?(:done)
438
- @error = args[:error] if args.key?(:error)
439
- @response = args[:response] if args.key?(:response)
719
+ @display_name = args[:display_name] if args.key?(:display_name)
720
+ @operation_type = args[:operation_type] if args.key?(:operation_type)
721
+ @source_parent = args[:source_parent] if args.key?(:source_parent)
722
+ @destination_parent = args[:destination_parent] if args.key?(:destination_parent)
440
723
  end
441
724
  end
442
725
 
443
- # The `Status` type defines a logical error model that is suitable for different
444
- # programming environments, including REST APIs and RPC APIs. It is used by [
445
- # gRPC](https://github.com/grpc). The error model is designed to be: - Simple to
446
- # use and understand for most users - Flexible enough to meet unexpected needs #
447
- # Overview The `Status` message contains three pieces of data: error code, error
448
- # message, and error details. The error code should be an enum value of google.
449
- # rpc.Code, but it may accept additional error codes if needed. The error
450
- # message should be a developer-facing English message that helps developers *
451
- # understand* and *resolve* the error. If a localized user-facing error message
452
- # is needed, put the localized message in the error details or localize it in
453
- # the client. The optional error details may contain arbitrary information about
454
- # the error. There is a predefined set of error detail types in the package `
455
- # google.rpc` which can be used for common error conditions. # Language mapping
456
- # The `Status` message is the logical representation of the error model, but it
457
- # is not necessarily the actual wire format. When the `Status` message is
458
- # exposed in different client libraries and different wire protocols, it can be
459
- # mapped differently. For example, it will likely be mapped to some exceptions
460
- # in Java, but more likely mapped to some error codes in C. # Other uses The
461
- # error model and the `Status` message can be used in a variety of environments,
462
- # either with or without APIs, to provide a consistent developer experience
463
- # across different environments. Example uses of this error model include: -
464
- # Partial errors. If a service needs to return partial errors to the client, it
465
- # may embed the `Status` in the normal response to indicate the partial errors. -
466
- # Workflow errors. A typical workflow has multiple steps. Each step may have a `
467
- # Status` message for error reporting purpose. - Batch operations. If a client
468
- # uses batch request and batch response, the `Status` message should be used
469
- # directly inside batch response, one for each error sub-response. -
470
- # Asynchronous operations. If an API call embeds asynchronous operation results
471
- # in its response, the status of those operations should be represented directly
472
- # using the `Status` message. - Logging. If some API errors are stored in logs,
473
- # the message `Status` could be used directly after any stripping needed for
474
- # security/privacy reasons.
475
- class Status
726
+ # A classification of the Folder Operation error.
727
+ class FolderOperationError
476
728
  include Google::Apis::Core::Hashable
477
729
 
478
- # The status code, which should be an enum value of google.rpc.Code.
479
- # Corresponds to the JSON property `code`
480
- # @return [Fixnum]
481
- attr_accessor :code
482
-
483
- # A developer-facing error message, which should be in English. Any user-facing
484
- # error message should be localized and sent in the google.rpc.Status.details
485
- # field, or localized by the client.
486
- # Corresponds to the JSON property `message`
730
+ # The type of operation error experienced.
731
+ # Corresponds to the JSON property `errorMessageId`
487
732
  # @return [String]
488
- attr_accessor :message
489
-
490
- # A list of messages that carry the error details. There will be a common set of
491
- # message types for APIs to use.
492
- # Corresponds to the JSON property `details`
493
- # @return [Array<Hash<String,Object>>]
494
- attr_accessor :details
733
+ attr_accessor :error_message_id
495
734
 
496
735
  def initialize(**args)
497
736
  update!(**args)
@@ -499,9 +738,7 @@ module Google
499
738
 
500
739
  # Update properties of this object
501
740
  def update!(**args)
502
- @code = args[:code] if args.key?(:code)
503
- @message = args[:message] if args.key?(:message)
504
- @details = args[:details] if args.key?(:details)
741
+ @error_message_id = args[:error_message_id] if args.key?(:error_message_id)
505
742
  end
506
743
  end
507
744
  end