google-api-client 0.9.4 → 0.9.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (134) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -0
  3. data/README.md +34 -0
  4. data/api_names.yaml +3 -0
  5. data/api_names_out.yaml +1058 -20
  6. data/bin/generate-api +1 -1
  7. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  8. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +203 -6
  9. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +78 -0
  10. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +36 -0
  11. data/generated/google/apis/admin_directory_v1.rb +1 -1
  12. data/generated/google/apis/adsense_v1_4.rb +1 -1
  13. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  14. data/generated/google/apis/androidenterprise_v1.rb +2 -3
  15. data/generated/google/apis/androidenterprise_v1/classes.rb +11 -4
  16. data/generated/google/apis/androidenterprise_v1/representations.rb +1 -0
  17. data/generated/google/apis/androidenterprise_v1/service.rb +5 -6
  18. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  19. data/generated/google/apis/androidpublisher_v2/classes.rb +47 -0
  20. data/generated/google/apis/androidpublisher_v2/representations.rb +6 -0
  21. data/generated/google/apis/appengine_v1beta5.rb +2 -3
  22. data/generated/google/apis/appengine_v1beta5/classes.rb +143 -8
  23. data/generated/google/apis/appengine_v1beta5/representations.rb +42 -0
  24. data/generated/google/apis/appengine_v1beta5/service.rb +48 -6
  25. data/generated/google/apis/appstate_v1.rb +1 -1
  26. data/generated/google/apis/bigquery_v2.rb +1 -1
  27. data/generated/google/apis/bigquery_v2/classes.rb +68 -14
  28. data/generated/google/apis/bigquery_v2/representations.rb +30 -0
  29. data/generated/google/apis/books_v1.rb +1 -1
  30. data/generated/google/apis/books_v1/classes.rb +68 -3
  31. data/generated/google/apis/books_v1/representations.rb +21 -0
  32. data/generated/google/apis/calendar_v3.rb +2 -2
  33. data/generated/google/apis/calendar_v3/service.rb +1 -1
  34. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  35. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  36. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  37. data/generated/google/apis/cloudresourcemanager_v1/service.rb +2 -2
  38. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  39. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +2 -2
  40. data/generated/google/apis/clouduseraccounts_beta.rb +1 -1
  41. data/generated/google/apis/clouduseraccounts_beta/classes.rb +1 -1
  42. data/generated/google/apis/compute_beta.rb +1 -1
  43. data/generated/google/apis/compute_beta/classes.rb +138 -108
  44. data/generated/google/apis/compute_beta/representations.rb +16 -18
  45. data/generated/google/apis/compute_beta/service.rb +52 -2
  46. data/generated/google/apis/compute_v1.rb +1 -1
  47. data/generated/google/apis/compute_v1/classes.rb +55 -74
  48. data/generated/google/apis/compute_v1/representations.rb +14 -18
  49. data/generated/google/apis/compute_v1/service.rb +45 -1
  50. data/generated/google/apis/container_v1.rb +3 -3
  51. data/generated/google/apis/container_v1/classes.rb +200 -42
  52. data/generated/google/apis/container_v1/representations.rb +54 -0
  53. data/generated/google/apis/container_v1/service.rb +31 -30
  54. data/generated/google/apis/content_v2.rb +1 -1
  55. data/generated/google/apis/datastore_v1beta2.rb +2 -2
  56. data/generated/google/apis/datastore_v1beta2/service.rb +1 -1
  57. data/generated/google/apis/deploymentmanager_v2.rb +2 -3
  58. data/generated/google/apis/deploymentmanager_v2/classes.rb +7 -1
  59. data/generated/google/apis/deploymentmanager_v2/representations.rb +1 -0
  60. data/generated/google/apis/deploymentmanager_v2/service.rb +26 -27
  61. data/generated/google/apis/dfareporting_v2_3.rb +2 -2
  62. data/generated/google/apis/dfareporting_v2_3/classes.rb +1 -1
  63. data/generated/google/apis/dfareporting_v2_3/service.rb +2 -2
  64. data/generated/google/apis/dns_v1.rb +1 -1
  65. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  66. data/generated/google/apis/doubleclicksearch_v2/classes.rb +6 -4
  67. data/generated/google/apis/drive_v2.rb +1 -1
  68. data/generated/google/apis/drive_v2/classes.rb +10 -4
  69. data/generated/google/apis/drive_v2/representations.rb +1 -0
  70. data/generated/google/apis/drive_v3.rb +1 -1
  71. data/generated/google/apis/drive_v3/classes.rb +7 -0
  72. data/generated/google/apis/drive_v3/representations.rb +1 -0
  73. data/generated/google/apis/fusiontables_v2.rb +1 -1
  74. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  75. data/generated/google/apis/games_management_v1management.rb +1 -1
  76. data/generated/google/apis/games_v1.rb +1 -1
  77. data/generated/google/apis/genomics_v1.rb +2 -2
  78. data/generated/google/apis/genomics_v1/classes.rb +770 -82
  79. data/generated/google/apis/genomics_v1/representations.rb +287 -24
  80. data/generated/google/apis/genomics_v1/service.rb +412 -13
  81. data/generated/google/apis/gmail_v1.rb +1 -1
  82. data/generated/google/apis/groupssettings_v1.rb +1 -1
  83. data/generated/google/apis/groupssettings_v1/classes.rb +13 -6
  84. data/generated/google/apis/groupssettings_v1/representations.rb +1 -0
  85. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  86. data/generated/google/apis/identitytoolkit_v3/classes.rb +50 -0
  87. data/generated/google/apis/identitytoolkit_v3/representations.rb +10 -0
  88. data/generated/google/apis/logging_v2beta1.rb +2 -3
  89. data/generated/google/apis/logging_v2beta1/classes.rb +219 -63
  90. data/generated/google/apis/logging_v2beta1/representations.rb +24 -1
  91. data/generated/google/apis/logging_v2beta1/service.rb +25 -32
  92. data/generated/google/apis/oauth2_v2.rb +2 -2
  93. data/generated/google/apis/oauth2_v2/service.rb +1 -1
  94. data/generated/google/apis/plus_domains_v1.rb +1 -1
  95. data/generated/google/apis/plus_v1.rb +1 -1
  96. data/generated/google/apis/pubsub_v1.rb +1 -1
  97. data/generated/google/apis/pubsub_v1/classes.rb +20 -12
  98. data/generated/google/apis/pubsub_v1/service.rb +32 -35
  99. data/generated/google/apis/reseller_v1.rb +1 -1
  100. data/generated/google/apis/reseller_v1/classes.rb +23 -9
  101. data/generated/google/apis/reseller_v1/representations.rb +2 -0
  102. data/generated/google/apis/sheets_v1.rb +43 -0
  103. data/generated/google/apis/sheets_v1/classes.rb +4542 -0
  104. data/generated/google/apis/sheets_v1/representations.rb +1703 -0
  105. data/generated/google/apis/sheets_v1/service.rb +363 -0
  106. data/generated/google/apis/sqladmin_v1beta4.rb +3 -2
  107. data/generated/google/apis/sqladmin_v1beta4/classes.rb +4 -3
  108. data/generated/google/apis/sqladmin_v1beta4/service.rb +2 -1
  109. data/generated/google/apis/storage_v1.rb +1 -1
  110. data/generated/google/apis/vision_v1.rb +2 -2
  111. data/generated/google/apis/vision_v1/classes.rb +11 -11
  112. data/generated/google/apis/vision_v1/service.rb +1 -1
  113. data/generated/google/apis/webmasters_v3.rb +2 -2
  114. data/generated/google/apis/webmasters_v3/classes.rb +7 -0
  115. data/generated/google/apis/webmasters_v3/representations.rb +1 -0
  116. data/generated/google/apis/webmasters_v3/service.rb +1 -1
  117. data/generated/google/apis/youtube_partner_v1.rb +37 -0
  118. data/generated/google/apis/youtube_partner_v1/classes.rb +3656 -0
  119. data/generated/google/apis/youtube_partner_v1/representations.rb +1452 -0
  120. data/generated/google/apis/youtube_partner_v1/service.rb +3165 -0
  121. data/generated/google/apis/youtube_v3.rb +3 -2
  122. data/generated/google/apis/youtube_v3/classes.rb +100 -3
  123. data/generated/google/apis/youtube_v3/representations.rb +50 -0
  124. data/generated/google/apis/youtube_v3/service.rb +2 -1
  125. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  126. data/generated/google/apis/youtubereporting_v1/classes.rb +17 -0
  127. data/generated/google/apis/youtubereporting_v1/representations.rb +2 -0
  128. data/generated/google/apis/youtubereporting_v1/service.rb +21 -3
  129. data/google-api-client.gemspec +2 -0
  130. data/lib/google/apis.rb +12 -2
  131. data/lib/google/apis/version.rb +1 -1
  132. data/script/generate +5 -2
  133. data/spec/google/apis/logging_spec.rb +55 -0
  134. metadata +12 -4
@@ -817,6 +817,42 @@ module Google
817
817
  execute_or_queue_command(command, &block)
818
818
  end
819
819
 
820
+ # Update a given private auction proposal
821
+ # @param [String] private_auction_id
822
+ # The private auction id to be updated.
823
+ # @param [Google::Apis::AdexchangebuyerV1_4::UpdatePrivateAuctionProposalRequest] update_private_auction_proposal_request_object
824
+ # @param [String] fields
825
+ # Selector specifying which fields to include in a partial response.
826
+ # @param [String] quota_user
827
+ # Available to use for quota purposes for server-side applications. Can be any
828
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
829
+ # Overrides userIp if both are provided.
830
+ # @param [String] user_ip
831
+ # IP address of the site where the request originates. Use this if you want to
832
+ # enforce per-user limits.
833
+ # @param [Google::Apis::RequestOptions] options
834
+ # Request-specific options
835
+ #
836
+ # @yield [result, err] Result & error if block supplied
837
+ # @yieldparam result [NilClass] No result returned for this method
838
+ # @yieldparam err [StandardError] error object if request failed
839
+ #
840
+ # @return [void]
841
+ #
842
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
843
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
844
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
845
+ def update_marketplace_private_auction_proposal(private_auction_id, update_private_auction_proposal_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
846
+ command = make_simple_command(:post, 'privateauction/{privateAuctionId}/updateproposal', options)
847
+ command.request_representation = Google::Apis::AdexchangebuyerV1_4::UpdatePrivateAuctionProposalRequest::Representation
848
+ command.request_object = update_private_auction_proposal_request_object
849
+ command.params['privateAuctionId'] = private_auction_id unless private_auction_id.nil?
850
+ command.query['fields'] = fields unless fields.nil?
851
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
852
+ command.query['userIp'] = user_ip unless user_ip.nil?
853
+ execute_or_queue_command(command, &block)
854
+ end
855
+
820
856
  # Retrieves the authenticated user's list of performance metrics.
821
857
  # @param [String] account_id
822
858
  # The account id to get the reports.
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/admin-sdk/directory/
27
27
  module AdminDirectoryV1
28
28
  VERSION = 'DirectoryV1'
29
- REVISION = '20151208'
29
+ REVISION = '20160323'
30
30
 
31
31
  # View and manage customer related information
32
32
  AUTH_ADMIN_DIRECTORY_CUSTOMER = 'https://www.googleapis.com/auth/admin.directory.customer'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/adsense/management/
26
26
  module AdsenseV1_4
27
27
  VERSION = 'V1_4'
28
- REVISION = '20160309'
28
+ REVISION = '20160411'
29
29
 
30
30
  # View and manage your AdSense data
31
31
  AUTH_ADSENSE = 'https://www.googleapis.com/auth/adsense'
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/adsense/host/
27
27
  module AdsensehostV4_1
28
28
  VERSION = 'V4_1'
29
- REVISION = '20160309'
29
+ REVISION = '20160411'
30
30
 
31
31
  # View and manage your AdSense host data and associated accounts
32
32
  AUTH_ADSENSEHOST = 'https://www.googleapis.com/auth/adsensehost'
@@ -20,13 +20,12 @@ module Google
20
20
  module Apis
21
21
  # Google Play EMM API
22
22
  #
23
- # Allows MDMs/EMMs and enterprises to manage the deployment of apps to Android
24
- # for Work users.
23
+ # Manages the deployment of apps to Android for Work users.
25
24
  #
26
25
  # @see https://developers.google.com/android/work/play/emm-api
27
26
  module AndroidenterpriseV1
28
27
  VERSION = 'V1'
29
- REVISION = '20160302'
28
+ REVISION = '20160408'
30
29
 
31
30
  # Manage corporate Android devices
32
31
  AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise'
@@ -416,7 +416,7 @@ module Google
416
416
  end
417
417
  end
418
418
 
419
- # An enterprise resource represents a binding between an organisation and their
419
+ # An enterprise resource represents a binding between an organization and their
420
420
  # EMM.
421
421
  # To create an enterprise, an admin of the enterprise must first go through a
422
422
  # Play for Work sign-up flow. At the end of this the admin will be presented
@@ -962,7 +962,8 @@ module Google
962
962
  # @return [String]
963
963
  attr_accessor :distribution_channel
964
964
 
965
- # A link to an image that can be used as an icon for the product.
965
+ # A link to an image that can be used as an icon for the product. This image is
966
+ # suitable for use at up to 512px x 512px.
966
967
  # Corresponds to the JSON property `iconUrl`
967
968
  # @return [String]
968
969
  attr_accessor :icon_url
@@ -991,6 +992,12 @@ module Google
991
992
  attr_accessor :requires_container_app
992
993
  alias_method :requires_container_app?, :requires_container_app
993
994
 
995
+ # A link to a smaller image that can be used as an icon for the product. This
996
+ # image is suitable for use at up to 128px x 128px.
997
+ # Corresponds to the JSON property `smallIconUrl`
998
+ # @return [String]
999
+ attr_accessor :small_icon_url
1000
+
994
1001
  # The name of the product.
995
1002
  # Corresponds to the JSON property `title`
996
1003
  # @return [String]
@@ -1017,6 +1024,7 @@ module Google
1017
1024
  @product_id = args[:product_id] if args.key?(:product_id)
1018
1025
  @product_pricing = args[:product_pricing] if args.key?(:product_pricing)
1019
1026
  @requires_container_app = args[:requires_container_app] if args.key?(:requires_container_app)
1027
+ @small_icon_url = args[:small_icon_url] if args.key?(:small_icon_url)
1020
1028
  @title = args[:title] if args.key?(:title)
1021
1029
  @work_details_url = args[:work_details_url] if args.key?(:work_details_url)
1022
1030
  end
@@ -1359,8 +1367,7 @@ module Google
1359
1367
  # @return [String]
1360
1368
  attr_accessor :kind
1361
1369
 
1362
- # The user's primary email, e.g. "jsmith@example.com". Will always be set for
1363
- # Google managed users and not set for EMM managed users.
1370
+ # The user's primary email, e.g. "jsmith@example.com".
1364
1371
  # Corresponds to the JSON property `primaryEmail`
1365
1372
  # @return [String]
1366
1373
  attr_accessor :primary_email
@@ -488,6 +488,7 @@ module Google
488
488
  property :product_id, as: 'productId'
489
489
  property :product_pricing, as: 'productPricing'
490
490
  property :requires_container_app, as: 'requiresContainerApp'
491
+ property :small_icon_url, as: 'smallIconUrl'
491
492
  property :title, as: 'title'
492
493
  property :work_details_url, as: 'workDetailsUrl'
493
494
  end
@@ -22,8 +22,7 @@ module Google
22
22
  module AndroidenterpriseV1
23
23
  # Google Play EMM API
24
24
  #
25
- # Allows MDMs/EMMs and enterprises to manage the deployment of apps to Android
26
- # for Work users.
25
+ # Manages the deployment of apps to Android for Work users.
27
26
  #
28
27
  # @example
29
28
  # require 'google/apis/androidenterprise_v1'
@@ -1036,7 +1035,7 @@ module Google
1036
1035
  # @param [String] user_id
1037
1036
  # The ID of the user.
1038
1037
  # @param [String] entitlement_id
1039
- # The ID of the entitlement, e.g. "app:com.google.android.gm".
1038
+ # The ID of the entitlement (a product ID), e.g. "app:com.google.android.gm".
1040
1039
  # @param [String] fields
1041
1040
  # Selector specifying which fields to include in a partial response.
1042
1041
  # @param [String] quota_user
@@ -1075,7 +1074,7 @@ module Google
1075
1074
  # @param [String] user_id
1076
1075
  # The ID of the user.
1077
1076
  # @param [String] entitlement_id
1078
- # The ID of the entitlement, e.g. "app:com.google.android.gm".
1077
+ # The ID of the entitlement (a product ID), e.g. "app:com.google.android.gm".
1079
1078
  # @param [String] fields
1080
1079
  # Selector specifying which fields to include in a partial response.
1081
1080
  # @param [String] quota_user
@@ -1155,7 +1154,7 @@ module Google
1155
1154
  # @param [String] user_id
1156
1155
  # The ID of the user.
1157
1156
  # @param [String] entitlement_id
1158
- # The ID of the entitlement, e.g. "app:com.google.android.gm".
1157
+ # The ID of the entitlement (a product ID), e.g. "app:com.google.android.gm".
1159
1158
  # @param [Google::Apis::AndroidenterpriseV1::Entitlement] entitlement_object
1160
1159
  # @param [Boolean] install
1161
1160
  # Set to true to also install the product on all the user's devices where
@@ -1205,7 +1204,7 @@ module Google
1205
1204
  # @param [String] user_id
1206
1205
  # The ID of the user.
1207
1206
  # @param [String] entitlement_id
1208
- # The ID of the entitlement, e.g. "app:com.google.android.gm".
1207
+ # The ID of the entitlement (a product ID), e.g. "app:com.google.android.gm".
1209
1208
  # @param [Google::Apis::AndroidenterpriseV1::Entitlement] entitlement_object
1210
1209
  # @param [Boolean] install
1211
1210
  # Set to true to also install the product on all the user's devices where
@@ -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 = '20160221'
28
+ REVISION = '20160324'
29
29
 
30
30
  # View and manage your Google Play Developer account
31
31
  AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
@@ -1232,6 +1232,27 @@ module Google
1232
1232
  attr_accessor :auto_renewing
1233
1233
  alias_method :auto_renewing?, :auto_renewing
1234
1234
 
1235
+ # The cancel reason of the subscription, if the subscription is not auto
1236
+ # renewing. Possible values are:
1237
+ # - User cancelled the subscription
1238
+ # - Subscription was cancelled by the system, for example because of a billing
1239
+ # problem
1240
+ # Corresponds to the JSON property `cancelReason`
1241
+ # @return [Fixnum]
1242
+ attr_accessor :cancel_reason
1243
+
1244
+ # ISO 3166-1 alpha-2 billing country/region code of the user at the time the
1245
+ # subscription was granted.
1246
+ # Corresponds to the JSON property `countryCode`
1247
+ # @return [String]
1248
+ attr_accessor :country_code
1249
+
1250
+ # A developer-specified string that contains supplemental information about an
1251
+ # order.
1252
+ # Corresponds to the JSON property `developerPayload`
1253
+ # @return [String]
1254
+ attr_accessor :developer_payload
1255
+
1235
1256
  # Time at which the subscription will expire, in milliseconds since Epoch.
1236
1257
  # Corresponds to the JSON property `expiryTimeMillis`
1237
1258
  # @return [String]
@@ -1243,6 +1264,26 @@ module Google
1243
1264
  # @return [String]
1244
1265
  attr_accessor :kind
1245
1266
 
1267
+ # The payment state of the subscription. Possible values are:
1268
+ # - Payment pending
1269
+ # - Payment received
1270
+ # Corresponds to the JSON property `paymentState`
1271
+ # @return [Fixnum]
1272
+ attr_accessor :payment_state
1273
+
1274
+ # Price of the subscription, not including tax. Price is expressed in micro-
1275
+ # units, where 1,000,000 micro-units equal one unit of the currency. For example,
1276
+ # if the subscription price is €1.99, price_amount_micros is 1990000.
1277
+ # Corresponds to the JSON property `priceAmountMicros`
1278
+ # @return [String]
1279
+ attr_accessor :price_amount_micros
1280
+
1281
+ # ISO 4217 currency code for the subscription price. For example, if the price
1282
+ # is specified in British pounds sterling, price_currency_code is "GBP".
1283
+ # Corresponds to the JSON property `priceCurrencyCode`
1284
+ # @return [String]
1285
+ attr_accessor :price_currency_code
1286
+
1246
1287
  # Time at which the subscription was granted, in milliseconds since Epoch.
1247
1288
  # Corresponds to the JSON property `startTimeMillis`
1248
1289
  # @return [String]
@@ -1255,8 +1296,14 @@ module Google
1255
1296
  # Update properties of this object
1256
1297
  def update!(**args)
1257
1298
  @auto_renewing = args[:auto_renewing] if args.key?(:auto_renewing)
1299
+ @cancel_reason = args[:cancel_reason] if args.key?(:cancel_reason)
1300
+ @country_code = args[:country_code] if args.key?(:country_code)
1301
+ @developer_payload = args[:developer_payload] if args.key?(:developer_payload)
1258
1302
  @expiry_time_millis = args[:expiry_time_millis] if args.key?(:expiry_time_millis)
1259
1303
  @kind = args[:kind] if args.key?(:kind)
1304
+ @payment_state = args[:payment_state] if args.key?(:payment_state)
1305
+ @price_amount_micros = args[:price_amount_micros] if args.key?(:price_amount_micros)
1306
+ @price_currency_code = args[:price_currency_code] if args.key?(:price_currency_code)
1260
1307
  @start_time_millis = args[:start_time_millis] if args.key?(:start_time_millis)
1261
1308
  end
1262
1309
  end
@@ -679,8 +679,14 @@ module Google
679
679
  # @private
680
680
  class Representation < Google::Apis::Core::JsonRepresentation
681
681
  property :auto_renewing, as: 'autoRenewing'
682
+ property :cancel_reason, as: 'cancelReason'
683
+ property :country_code, as: 'countryCode'
684
+ property :developer_payload, as: 'developerPayload'
682
685
  property :expiry_time_millis, as: 'expiryTimeMillis'
683
686
  property :kind, as: 'kind'
687
+ property :payment_state, as: 'paymentState'
688
+ property :price_amount_micros, as: 'priceAmountMicros'
689
+ property :price_currency_code, as: 'priceCurrencyCode'
684
690
  property :start_time_millis, as: 'startTimeMillis'
685
691
  end
686
692
  end
@@ -20,13 +20,12 @@ module Google
20
20
  module Apis
21
21
  # Google App Engine Admin API
22
22
  #
23
- # The Google App Engine Admin API enables developers to provision and manage
24
- # their App Engine applications.
23
+ # Provisions and manages App Engine applications.
25
24
  #
26
25
  # @see https://cloud.google.com/appengine/docs/admin-api/
27
26
  module AppengineV1beta5
28
27
  VERSION = 'V1beta5'
29
- REVISION = '20160223'
28
+ REVISION = '20160407'
30
29
 
31
30
  # View and manage your data across Google Cloud Platform services
32
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -28,8 +28,8 @@ module Google
28
28
  include Google::Apis::Core::Hashable
29
29
 
30
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 above, the `name`
32
- # should have the format of `operations/some/unique/name`.
31
+ # originally returns it. If you use the default HTTP mapping, the `name` should
32
+ # have the format of `operations/some/unique/name`.
33
33
  # Corresponds to the JSON property `name`
34
34
  # @return [String]
35
35
  attr_accessor :name
@@ -217,7 +217,7 @@ module Google
217
217
  attr_accessor :id
218
218
 
219
219
  # HTTP path dispatch rules for requests to the app that do not explicitly target
220
- # a service or version. The rules are order-dependent.
220
+ # a service or version. The rules are order-dependent. @OutputOnly
221
221
  # Corresponds to the JSON property `dispatchRules`
222
222
  # @return [Array<Google::Apis::AppengineV1beta5::UrlDispatchRule>]
223
223
  attr_accessor :dispatch_rules
@@ -229,10 +229,11 @@ module Google
229
229
  # @return [String]
230
230
  attr_accessor :auth_domain
231
231
 
232
- # The location from which the application will be run. Choices are "us" for
233
- # United States and "eu" for European Union. Application instances will run out
234
- # of data centers in the chosen location and all of the application's End User
235
- # Content will be stored at rest in the chosen location. The default is "us".
232
+ # The location from which the application will be run. Application instances
233
+ # will run out of data centers in the chosen location and all of the application'
234
+ # s End User Content will be stored at rest. The default is "us-central".
235
+ # Choices are: "us-central" - Central US "europe-west" - Western Europe "us-
236
+ # east1" - Eastern US
236
237
  # Corresponds to the JSON property `location`
237
238
  # @return [String]
238
239
  attr_accessor :location
@@ -244,7 +245,7 @@ module Google
244
245
  # @return [String]
245
246
  attr_accessor :code_bucket
246
247
 
247
- # Determines the cookie expiration policy for the application.
248
+ # Determines the cookie expiration policy for the application. @OutputOnly
248
249
  # Corresponds to the JSON property `defaultCookieExpiration`
249
250
  # @return [String]
250
251
  attr_accessor :default_cookie_expiration
@@ -1441,6 +1442,140 @@ module Google
1441
1442
  end
1442
1443
  end
1443
1444
 
1445
+ # Response message for `Instances.ListInstances`.
1446
+ class ListInstancesResponse
1447
+ include Google::Apis::Core::Hashable
1448
+
1449
+ # The instances belonging to the requested version.
1450
+ # Corresponds to the JSON property `instances`
1451
+ # @return [Array<Google::Apis::AppengineV1beta5::Instance>]
1452
+ attr_accessor :instances
1453
+
1454
+ # Continuation token for fetching the next page of results.
1455
+ # Corresponds to the JSON property `nextPageToken`
1456
+ # @return [String]
1457
+ attr_accessor :next_page_token
1458
+
1459
+ def initialize(**args)
1460
+ update!(**args)
1461
+ end
1462
+
1463
+ # Update properties of this object
1464
+ def update!(**args)
1465
+ @instances = args[:instances] if args.key?(:instances)
1466
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1467
+ end
1468
+ end
1469
+
1470
+ # Instances are the computing units that App Engine uses to automatically scale
1471
+ # an application.
1472
+ class Instance
1473
+ include Google::Apis::Core::Hashable
1474
+
1475
+ # The full path to the Instance resource in the API. Example: "apps/myapp/
1476
+ # services/default/versions/v1/instances/instance-1" @OutputOnly
1477
+ # Corresponds to the JSON property `name`
1478
+ # @return [String]
1479
+ attr_accessor :name
1480
+
1481
+ # The relative name/path of the instance within the version. Example: "instance-
1482
+ # 1" @OutputOnly
1483
+ # Corresponds to the JSON property `id`
1484
+ # @return [String]
1485
+ attr_accessor :id
1486
+
1487
+ # The App Engine release the instance is running on. @OutputOnly
1488
+ # Corresponds to the JSON property `appEngineRelease`
1489
+ # @return [String]
1490
+ attr_accessor :app_engine_release
1491
+
1492
+ # Availability of instance. @OutputOnly
1493
+ # Corresponds to the JSON property `availability`
1494
+ # @return [String]
1495
+ attr_accessor :availability
1496
+
1497
+ # For VMEngines instances, the name of GCE VM where the instance lives. @
1498
+ # OutputOnly
1499
+ # Corresponds to the JSON property `vmName`
1500
+ # @return [String]
1501
+ attr_accessor :vm_name
1502
+
1503
+ # For VMEngines instances, the zone where the GCE VM is located. @OutputOnly
1504
+ # Corresponds to the JSON property `vmZoneName`
1505
+ # @return [String]
1506
+ attr_accessor :vm_zone_name
1507
+
1508
+ # For VMEngines instances, the GCE VM ID of the instance. @OutputOnly
1509
+ # Corresponds to the JSON property `vmId`
1510
+ # @return [String]
1511
+ attr_accessor :vm_id
1512
+
1513
+ # Time when instance was started. @OutputOnly
1514
+ # Corresponds to the JSON property `startTimestamp`
1515
+ # @return [String]
1516
+ attr_accessor :start_timestamp
1517
+
1518
+ # Number of requests (since the clone was started). @OutputOnly
1519
+ # Corresponds to the JSON property `requests`
1520
+ # @return [Fixnum]
1521
+ attr_accessor :requests
1522
+
1523
+ # Number of errors since the instance was started. @OutputOnly
1524
+ # Corresponds to the JSON property `errors`
1525
+ # @return [Fixnum]
1526
+ attr_accessor :errors
1527
+
1528
+ # QPS for this instance (averaged over the last minute). @OutputOnly
1529
+ # Corresponds to the JSON property `qps`
1530
+ # @return [Float]
1531
+ attr_accessor :qps
1532
+
1533
+ # Latency in milliseconds (averaged over the last minute). @OutputOnly
1534
+ # Corresponds to the JSON property `averageLatency`
1535
+ # @return [Fixnum]
1536
+ attr_accessor :average_latency
1537
+
1538
+ # Memory usage (in bytes). @OutputOnly
1539
+ # Corresponds to the JSON property `memoryUsage`
1540
+ # @return [String]
1541
+ attr_accessor :memory_usage
1542
+
1543
+ # For VMEngines instances, the status of GCE VM where the instance lives. @
1544
+ # OutputOnly
1545
+ # Corresponds to the JSON property `vmStatus`
1546
+ # @return [String]
1547
+ attr_accessor :vm_status
1548
+
1549
+ # For VMEngines instances, whether the instance has been unlocked. @OutputOnly
1550
+ # Corresponds to the JSON property `vmUnlocked`
1551
+ # @return [Boolean]
1552
+ attr_accessor :vm_unlocked
1553
+ alias_method :vm_unlocked?, :vm_unlocked
1554
+
1555
+ def initialize(**args)
1556
+ update!(**args)
1557
+ end
1558
+
1559
+ # Update properties of this object
1560
+ def update!(**args)
1561
+ @name = args[:name] if args.key?(:name)
1562
+ @id = args[:id] if args.key?(:id)
1563
+ @app_engine_release = args[:app_engine_release] if args.key?(:app_engine_release)
1564
+ @availability = args[:availability] if args.key?(:availability)
1565
+ @vm_name = args[:vm_name] if args.key?(:vm_name)
1566
+ @vm_zone_name = args[:vm_zone_name] if args.key?(:vm_zone_name)
1567
+ @vm_id = args[:vm_id] if args.key?(:vm_id)
1568
+ @start_timestamp = args[:start_timestamp] if args.key?(:start_timestamp)
1569
+ @requests = args[:requests] if args.key?(:requests)
1570
+ @errors = args[:errors] if args.key?(:errors)
1571
+ @qps = args[:qps] if args.key?(:qps)
1572
+ @average_latency = args[:average_latency] if args.key?(:average_latency)
1573
+ @memory_usage = args[:memory_usage] if args.key?(:memory_usage)
1574
+ @vm_status = args[:vm_status] if args.key?(:vm_status)
1575
+ @vm_unlocked = args[:vm_unlocked] if args.key?(:vm_unlocked)
1576
+ end
1577
+ end
1578
+
1444
1579
  # Metadata for the given google.longrunning.Operation.
1445
1580
  class OperationMetadata
1446
1581
  include Google::Apis::Core::Hashable