google-api-client 0.9.6 → 0.9.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (149) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -0
  3. data/api_names.yaml +15 -0
  4. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  5. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +75 -12
  6. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +25 -5
  7. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +6 -2
  8. data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
  9. data/generated/google/apis/admin_directory_v1/classes.rb +1 -1
  10. data/generated/google/apis/admin_directory_v1/representations.rb +1 -2
  11. data/generated/google/apis/adsense_v1_4.rb +1 -1
  12. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  13. data/generated/google/apis/analytics_v3.rb +1 -1
  14. data/generated/google/apis/analyticsreporting_v4.rb +37 -0
  15. data/generated/google/apis/analyticsreporting_v4/classes.rb +1385 -0
  16. data/generated/google/apis/analyticsreporting_v4/representations.rb +597 -0
  17. data/generated/google/apis/analyticsreporting_v4/service.rb +88 -0
  18. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  19. data/generated/google/apis/androidenterprise_v1/classes.rb +98 -2
  20. data/generated/google/apis/androidenterprise_v1/representations.rb +48 -0
  21. data/generated/google/apis/androidenterprise_v1/service.rb +63 -1
  22. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  23. data/generated/google/apis/androidpublisher_v2/classes.rb +268 -0
  24. data/generated/google/apis/androidpublisher_v2/representations.rb +142 -0
  25. data/generated/google/apis/androidpublisher_v2/service.rb +121 -0
  26. data/generated/google/apis/appstate_v1.rb +1 -1
  27. data/generated/google/apis/autoscaler_v1beta2.rb +1 -1
  28. data/generated/google/apis/autoscaler_v1beta2/classes.rb +10 -47
  29. data/generated/google/apis/autoscaler_v1beta2/representations.rb +1 -18
  30. data/generated/google/apis/autoscaler_v1beta2/service.rb +4 -4
  31. data/generated/google/apis/bigquery_v2.rb +1 -1
  32. data/generated/google/apis/bigquery_v2/classes.rb +97 -61
  33. data/generated/google/apis/bigquery_v2/representations.rb +23 -18
  34. data/generated/google/apis/calendar_v3.rb +1 -1
  35. data/generated/google/apis/classroom_v1.rb +23 -2
  36. data/generated/google/apis/classroom_v1/classes.rb +920 -6
  37. data/generated/google/apis/classroom_v1/representations.rb +419 -0
  38. data/generated/google/apis/classroom_v1/service.rb +507 -1
  39. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  40. data/generated/google/apis/cloudbuild_v1/classes.rb +30 -23
  41. data/generated/google/apis/cloudbuild_v1/representations.rb +4 -3
  42. data/generated/google/apis/cloudbuild_v1/service.rb +25 -25
  43. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  44. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  45. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  46. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +55 -0
  47. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +40 -0
  48. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +35 -0
  49. data/generated/google/apis/cloudtrace_v1.rb +11 -3
  50. data/generated/google/apis/cloudtrace_v1/classes.rb +5 -5
  51. data/generated/google/apis/cloudtrace_v1/service.rb +8 -6
  52. data/generated/google/apis/compute_beta.rb +2 -2
  53. data/generated/google/apis/compute_beta/classes.rb +162 -32
  54. data/generated/google/apis/compute_beta/representations.rb +58 -0
  55. data/generated/google/apis/compute_beta/service.rb +392 -267
  56. data/generated/google/apis/compute_v1.rb +2 -2
  57. data/generated/google/apis/compute_v1/classes.rb +21 -9
  58. data/generated/google/apis/compute_v1/representations.rb +1 -0
  59. data/generated/google/apis/compute_v1/service.rb +291 -253
  60. data/generated/google/apis/container_v1.rb +1 -1
  61. data/generated/google/apis/container_v1/classes.rb +148 -0
  62. data/generated/google/apis/container_v1/representations.rb +55 -0
  63. data/generated/google/apis/container_v1/service.rb +161 -0
  64. data/generated/google/apis/content_v2.rb +1 -1
  65. data/generated/google/apis/content_v2/classes.rb +18 -6
  66. data/generated/google/apis/content_v2/representations.rb +1 -0
  67. data/generated/google/apis/customsearch_v1.rb +1 -1
  68. data/generated/google/apis/dataproc_v1.rb +2 -11
  69. data/generated/google/apis/dataproc_v1/classes.rb +0 -19
  70. data/generated/google/apis/dataproc_v1/representations.rb +0 -13
  71. data/generated/google/apis/dataproc_v1/service.rb +8 -87
  72. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  73. data/generated/google/apis/dfareporting_v2_3.rb +1 -1
  74. data/generated/google/apis/dfareporting_v2_3/classes.rb +41 -32
  75. data/generated/google/apis/discovery_v1.rb +2 -2
  76. data/generated/google/apis/discovery_v1/service.rb +2 -2
  77. data/generated/google/apis/dns_v1.rb +2 -3
  78. data/generated/google/apis/dns_v1/service.rb +1 -2
  79. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  80. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  81. data/generated/google/apis/drive_v2.rb +3 -2
  82. data/generated/google/apis/drive_v2/service.rb +2 -1
  83. data/generated/google/apis/drive_v3.rb +3 -2
  84. data/generated/google/apis/drive_v3/service.rb +2 -1
  85. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  86. data/generated/google/apis/games_management_v1management.rb +1 -1
  87. data/generated/google/apis/games_management_v1management/classes.rb +34 -0
  88. data/generated/google/apis/games_management_v1management/representations.rb +16 -0
  89. data/generated/google/apis/games_v1.rb +1 -1
  90. data/generated/google/apis/games_v1/classes.rb +34 -0
  91. data/generated/google/apis/games_v1/representations.rb +16 -0
  92. data/generated/google/apis/games_v1/service.rb +212 -53
  93. data/generated/google/apis/genomics_v1.rb +1 -1
  94. data/generated/google/apis/genomics_v1/classes.rb +18 -0
  95. data/generated/google/apis/genomics_v1/representations.rb +3 -0
  96. data/generated/google/apis/genomics_v1/service.rb +2 -2
  97. data/generated/google/apis/gmail_v1.rb +1 -1
  98. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  99. data/generated/google/apis/identitytoolkit_v3/classes.rb +19 -7
  100. data/generated/google/apis/identitytoolkit_v3/representations.rb +3 -1
  101. data/generated/google/apis/mybusiness_v3.rb +32 -0
  102. data/generated/google/apis/mybusiness_v3/classes.rb +1864 -0
  103. data/generated/google/apis/mybusiness_v3/representations.rb +741 -0
  104. data/generated/google/apis/mybusiness_v3/service.rb +960 -0
  105. data/generated/google/apis/pagespeedonline_v2.rb +1 -1
  106. data/generated/google/apis/plus_domains_v1.rb +2 -2
  107. data/generated/google/apis/plus_domains_v1/service.rb +1 -1
  108. data/generated/google/apis/plus_v1.rb +2 -2
  109. data/generated/google/apis/plus_v1/service.rb +1 -1
  110. data/generated/google/apis/prediction_v1_6.rb +4 -1
  111. data/generated/google/apis/proximitybeacon_v1beta1.rb +5 -2
  112. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +169 -22
  113. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +36 -1
  114. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +254 -39
  115. data/generated/google/apis/replicapool_v1beta2.rb +3 -3
  116. data/generated/google/apis/replicapool_v1beta2/service.rb +2 -2
  117. data/generated/google/apis/resourceviews_v1beta2.rb +1 -1
  118. data/generated/google/apis/script_v1.rb +6 -3
  119. data/generated/google/apis/script_v1/service.rb +2 -2
  120. data/generated/google/apis/sheets_v4.rb +43 -0
  121. data/generated/google/apis/sheets_v4/classes.rb +5425 -0
  122. data/generated/google/apis/sheets_v4/representations.rb +2070 -0
  123. data/generated/google/apis/sheets_v4/service.rb +402 -0
  124. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  125. data/generated/google/apis/sqladmin_v1beta4/classes.rb +19 -4
  126. data/generated/google/apis/sqladmin_v1beta4/representations.rb +3 -0
  127. data/generated/google/apis/storage_v1.rb +1 -1
  128. data/generated/google/apis/storage_v1/classes.rb +2 -1
  129. data/generated/google/apis/taskqueue_v1beta2.rb +2 -2
  130. data/generated/google/apis/taskqueue_v1beta2/service.rb +1 -1
  131. data/generated/google/apis/vision_v1.rb +4 -5
  132. data/generated/google/apis/vision_v1/classes.rb +69 -68
  133. data/generated/google/apis/vision_v1/representations.rb +13 -13
  134. data/generated/google/apis/vision_v1/service.rb +3 -4
  135. data/generated/google/apis/youtube_analytics_v1.rb +2 -2
  136. data/generated/google/apis/youtube_analytics_v1/service.rb +1 -1
  137. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  138. data/generated/google/apis/youtube_partner_v1/classes.rb +121 -0
  139. data/generated/google/apis/youtube_partner_v1/representations.rb +50 -0
  140. data/generated/google/apis/youtube_partner_v1/service.rb +40 -0
  141. data/generated/google/apis/youtube_v3.rb +1 -1
  142. data/generated/google/apis/youtube_v3/classes.rb +24 -0
  143. data/generated/google/apis/youtube_v3/representations.rb +4 -0
  144. data/generated/google/apis/youtubereporting_v1.rb +3 -3
  145. data/generated/google/apis/youtubereporting_v1/classes.rb +19 -0
  146. data/generated/google/apis/youtubereporting_v1/representations.rb +3 -0
  147. data/generated/google/apis/youtubereporting_v1/service.rb +3 -4
  148. data/lib/google/apis/version.rb +1 -1
  149. metadata +14 -2
@@ -20,16 +20,24 @@ module Google
20
20
  module Apis
21
21
  # Google Cloud Trace API
22
22
  #
23
- # The Cloud Trace API allows you to send traces to and retrieve traces from
24
- # Google Cloud Trace.
23
+ # Send and retrieve trace data from Google Cloud Trace. Data is generated and
24
+ # available by default for all App Engine applications. Data from other
25
+ # applications can be written to Cloud Trace for display, reporting, and
26
+ # analysis.
25
27
  #
26
28
  # @see https://cloud.google.com/tools/cloud-trace
27
29
  module CloudtraceV1
28
30
  VERSION = 'V1'
29
- REVISION = '20151207'
31
+ REVISION = '20160518'
30
32
 
31
33
  # View and manage your data across Google Cloud Platform services
32
34
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
35
+
36
+ # Write Trace data for a project or application
37
+ AUTH_TRACE_APPEND = 'https://www.googleapis.com/auth/trace.append'
38
+
39
+ # Read Trace data for a project or application
40
+ AUTH_TRACE_READONLY = 'https://www.googleapis.com/auth/trace.readonly'
33
41
  end
34
42
  end
35
43
  end
@@ -103,11 +103,11 @@ module Google
103
103
  # @return [String]
104
104
  attr_accessor :kind
105
105
 
106
- # Name of the trace. The trace name is sanitized and displayed in the Cloud
107
- # Trace tool in the Google Developers Console. The name may be a method name or
108
- # some other per-call site name. For the same executable and the same call point,
109
- # a best practice is to use a consistent name, which makes it easier to
110
- # correlate cross-trace spans.
106
+ # Name of the trace. The trace name is sanitized and displayed in the
107
+ # Stackdriver Trace tool in the `% dynamic print site_values.console_name %`.
108
+ # The name may be a method name or some other per-call site name. For the same
109
+ # executable and the same call point, a best practice is to use a consistent
110
+ # name, which makes it easier to correlate cross-trace spans.
111
111
  # Corresponds to the JSON property `name`
112
112
  # @return [String]
113
113
  attr_accessor :name
@@ -22,17 +22,19 @@ module Google
22
22
  module CloudtraceV1
23
23
  # Google Cloud Trace API
24
24
  #
25
- # The Cloud Trace API allows you to send traces to and retrieve traces from
26
- # Google Cloud Trace.
25
+ # Send and retrieve trace data from Google Cloud Trace. Data is generated and
26
+ # available by default for all App Engine applications. Data from other
27
+ # applications can be written to Cloud Trace for display, reporting, and
28
+ # analysis.
27
29
  #
28
30
  # @example
29
31
  # require 'google/apis/cloudtrace_v1'
30
32
  #
31
33
  # Cloudtrace = Google::Apis::CloudtraceV1 # Alias the module
32
- # service = Cloudtrace::CloudtraceService.new
34
+ # service = Cloudtrace::CloudTraceService.new
33
35
  #
34
36
  # @see https://cloud.google.com/tools/cloud-trace
35
- class CloudtraceService < Google::Apis::Core::BaseService
37
+ class CloudTraceService < Google::Apis::Core::BaseService
36
38
  # @return [String]
37
39
  # API key. Your API key identifies your project and provides you with API access,
38
40
  # quota, and reports. Required unless you provide an OAuth 2.0 token.
@@ -47,8 +49,8 @@ module Google
47
49
  super('https://cloudtrace.googleapis.com/', '')
48
50
  end
49
51
 
50
- # Sends new traces to Cloud Trace or updates existing traces. If the ID of a
51
- # trace that you send matches that of an existing trace, any fields in the
52
+ # Sends new traces to Stackdriver Trace or updates existing traces. If the ID of
53
+ # a trace that you send matches that of an existing trace, any fields in the
52
54
  # existing trace and its spans are overwritten by the provided values, and any
53
55
  # new fields provided are merged with the existing trace data. If the ID does
54
56
  # not match, a new trace is created.
@@ -20,12 +20,12 @@ module Google
20
20
  module Apis
21
21
  # Compute Engine API
22
22
  #
23
- # API for the Google Compute Engine service.
23
+ # Creates and runs virtual machines on Google Cloud Platform.
24
24
  #
25
25
  # @see https://developers.google.com/compute/docs/reference/latest/
26
26
  module ComputeBeta
27
27
  VERSION = 'Beta'
28
- REVISION = '20160407'
28
+ REVISION = '20160519'
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'
@@ -1272,6 +1272,32 @@ module Google
1272
1272
  end
1273
1273
  end
1274
1274
 
1275
+ #
1276
+ class CustomerEncryptionKeyProtectedDisk
1277
+ include Google::Apis::Core::Hashable
1278
+
1279
+ # Represents a customer-supplied encryption key
1280
+ # Corresponds to the JSON property `diskEncryptionKey`
1281
+ # @return [Google::Apis::ComputeBeta::CustomerEncryptionKey]
1282
+ attr_accessor :disk_encryption_key
1283
+
1284
+ # Specifies a valid partial or full URL to an existing Persistent Disk resource.
1285
+ # This field is only applicable for persistent disks.
1286
+ # Corresponds to the JSON property `source`
1287
+ # @return [String]
1288
+ attr_accessor :source
1289
+
1290
+ def initialize(**args)
1291
+ update!(**args)
1292
+ end
1293
+
1294
+ # Update properties of this object
1295
+ def update!(**args)
1296
+ @disk_encryption_key = args[:disk_encryption_key] if args.key?(:disk_encryption_key)
1297
+ @source = args[:source] if args.key?(:source)
1298
+ end
1299
+ end
1300
+
1275
1301
  # Deprecation status for a public resource.
1276
1302
  class DeprecationStatus
1277
1303
  include Google::Apis::Core::Hashable
@@ -1365,13 +1391,9 @@ module Google
1365
1391
  # @return [String]
1366
1392
  attr_accessor :label_fingerprint
1367
1393
 
1368
- # Labels to apply to this disk. These can be later modified by the setLabels()
1369
- # method. Each label key & value must comply with RFC1035. Specifically, the
1370
- # name must be 1-63 characters long and match the regular expression [a-z]([-a-
1371
- # z0-9]*[a-z0-9])? which means the first character must be a lowercase letter,
1372
- # and all following characters must be a dash, lowercase letter, or digit,
1373
- # except the last character, which cannot be a dash. A label value can also be
1374
- # empty (e.g. "example-label": "").
1394
+ # Labels to apply to this disk. These can be later modified by the setLabels
1395
+ # method. Each label key/value pair must comply with RFC1035. Label values may
1396
+ # be empty.
1375
1397
  # Corresponds to the JSON property `labels`
1376
1398
  # @return [Hash<String,String>]
1377
1399
  attr_accessor :labels
@@ -1638,6 +1660,39 @@ module Google
1638
1660
  end
1639
1661
  end
1640
1662
 
1663
+ #
1664
+ class DiskMoveRequest
1665
+ include Google::Apis::Core::Hashable
1666
+
1667
+ # The URL of the destination zone to move the disk. This can be a full or
1668
+ # partial URL. For example, the following are all valid URLs to a zone:
1669
+ # - https://www.googleapis.com/compute/v1/projects/project/zones/zone
1670
+ # - projects/project/zones/zone
1671
+ # - zones/zone
1672
+ # Corresponds to the JSON property `destinationZone`
1673
+ # @return [String]
1674
+ attr_accessor :destination_zone
1675
+
1676
+ # The URL of the target disk to move. This can be a full or partial URL. For
1677
+ # example, the following are all valid URLs to a disk:
1678
+ # - https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk
1679
+ # - projects/project/zones/zone/disks/disk
1680
+ # - zones/zone/disks/disk
1681
+ # Corresponds to the JSON property `targetDisk`
1682
+ # @return [String]
1683
+ attr_accessor :target_disk
1684
+
1685
+ def initialize(**args)
1686
+ update!(**args)
1687
+ end
1688
+
1689
+ # Update properties of this object
1690
+ def update!(**args)
1691
+ @destination_zone = args[:destination_zone] if args.key?(:destination_zone)
1692
+ @target_disk = args[:target_disk] if args.key?(:target_disk)
1693
+ end
1694
+ end
1695
+
1641
1696
  # A DiskType resource.
1642
1697
  class DiskType
1643
1698
  include Google::Apis::Core::Hashable
@@ -2084,6 +2139,10 @@ module Google
2084
2139
  # If both properties are set, an inbound connection is allowed if the range
2085
2140
  # matches the sourceRanges OR the tag of the source matches the sourceTags
2086
2141
  # property. The connection does not need to match both properties.
2142
+ # Source tags cannot be used to allow access to an instance's external IP
2143
+ # address. Because tags are associated with an instance, not an IP address,
2144
+ # source tags can only be used to control traffic traveling from an instance
2145
+ # inside the same network as the firewall.
2087
2146
  # Corresponds to the JSON property `sourceTags`
2088
2147
  # @return [Array<String>]
2089
2148
  attr_accessor :source_tags
@@ -2212,7 +2271,7 @@ module Google
2212
2271
  attr_accessor :ip_address
2213
2272
 
2214
2273
  # The IP protocol to which this rule applies. Valid options are TCP, UDP, ESP,
2215
- # AH or SCTP.
2274
+ # AH, SCTP or ICMP.
2216
2275
  # Corresponds to the JSON property `IPProtocol`
2217
2276
  # @return [String]
2218
2277
  attr_accessor :ip_protocol
@@ -2498,7 +2557,13 @@ module Google
2498
2557
  # @return [String]
2499
2558
  attr_accessor :label_fingerprint
2500
2559
 
2501
- # The labels to set for this resource.
2560
+ # A list of labels to apply for this resource. Each label key & value must
2561
+ # comply with RFC1035. Specifically, the name must be 1-63 characters long and
2562
+ # match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first
2563
+ # character must be a lowercase letter, and all following characters must be a
2564
+ # dash, lowercase letter, or digit, except the last character, which cannot be a
2565
+ # dash. For example, "webserver-frontend": "images". A label value can also be
2566
+ # empty (e.g. "my-label": "").
2502
2567
  # Corresponds to the JSON property `labels`
2503
2568
  # @return [Hash<String,String>]
2504
2569
  attr_accessor :labels
@@ -2980,13 +3045,9 @@ module Google
2980
3045
  # @return [String]
2981
3046
  attr_accessor :label_fingerprint
2982
3047
 
2983
- # Labels to apply to this image. These can be later modified by the setLabels()
2984
- # method. Each label key & value must comply with RFC1035. Specifically, the
2985
- # name must be 1-63 characters long and match the regular expression [a-z]([-a-
2986
- # z0-9]*[a-z0-9])? which means the first character must be a lowercase letter,
2987
- # and all following characters must be a dash, lowercase letter, or digit,
2988
- # except the last character, which cannot be a dash. A label value can also be
2989
- # empty (e.g. "example-label": "").
3048
+ # Labels to apply to this image. These can be later modified by the setLabels
3049
+ # method. Each label key/value pair must comply with RFC1035. Label values may
3050
+ # be empty.
2990
3051
  # Corresponds to the JSON property `labels`
2991
3052
  # @return [Hash<String,String>]
2992
3053
  attr_accessor :labels
@@ -3613,9 +3674,8 @@ module Google
3613
3674
  # @return [String]
3614
3675
  attr_accessor :description
3615
3676
 
3616
- # [Output Only] The fingerprint of the target pools information. You can use
3617
- # this optional field for optimistic locking when you update the target pool
3618
- # entries.
3677
+ # [Output Only] The fingerprint of the resource data. You can use this optional
3678
+ # field for optimistic locking when you update the resource.
3619
3679
  # Corresponds to the JSON property `fingerprint`
3620
3680
  # @return [String]
3621
3681
  attr_accessor :fingerprint
@@ -4472,6 +4532,40 @@ module Google
4472
4532
  end
4473
4533
  end
4474
4534
 
4535
+ #
4536
+ class MoveInstanceRequest
4537
+ include Google::Apis::Core::Hashable
4538
+
4539
+ # The URL of the destination zone to move the instance. This can be a full or
4540
+ # partial URL. For example, the following are all valid URLs to a zone:
4541
+ # - https://www.googleapis.com/compute/v1/projects/project/zones/zone
4542
+ # - projects/project/zones/zone
4543
+ # - zones/zone
4544
+ # Corresponds to the JSON property `destinationZone`
4545
+ # @return [String]
4546
+ attr_accessor :destination_zone
4547
+
4548
+ # The URL of the target instance to move. This can be a full or partial URL. For
4549
+ # example, the following are all valid URLs to an instance:
4550
+ # - https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/
4551
+ # instance
4552
+ # - projects/project/zones/zone/instances/instance
4553
+ # - zones/zone/instances/instance
4554
+ # Corresponds to the JSON property `targetInstance`
4555
+ # @return [String]
4556
+ attr_accessor :target_instance
4557
+
4558
+ def initialize(**args)
4559
+ update!(**args)
4560
+ end
4561
+
4562
+ # Update properties of this object
4563
+ def update!(**args)
4564
+ @destination_zone = args[:destination_zone] if args.key?(:destination_zone)
4565
+ @target_instance = args[:target_instance] if args.key?(:target_instance)
4566
+ end
4567
+ end
4568
+
4475
4569
  #
4476
4570
  class InstanceProperties
4477
4571
  include Google::Apis::Core::Hashable
@@ -4815,7 +4909,14 @@ module Google
4815
4909
  # @return [String]
4816
4910
  attr_accessor :label_fingerprint
4817
4911
 
4818
- # The new labels for the resource, in the form of key/value pairs.
4912
+ # A list of labels to apply for this instance. Changing instance labels will
4913
+ # also change the instance tags.
4914
+ # Each label key & value must comply with RFC1035. Specifically, the name must
4915
+ # be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-
4916
+ # 9])? which means the first character must be a lowercase letter, and all
4917
+ # following characters must be a dash, lowercase letter, or digit, except the
4918
+ # last character, which cannot be a dash. For example, "webserver-frontend": "
4919
+ # images". A label value can also be empty (e.g. "my-label": "").
4819
4920
  # Corresponds to the JSON property `labels`
4820
4921
  # @return [Hash<String,String>]
4821
4922
  attr_accessor :labels
@@ -4852,6 +4953,30 @@ module Google
4852
4953
  end
4853
4954
  end
4854
4955
 
4956
+ #
4957
+ class InstancesStartWithEncryptionKeyRequest
4958
+ include Google::Apis::Core::Hashable
4959
+
4960
+ # Array of disks associated with this instance that are protected with a
4961
+ # customer-supplied encryption key.
4962
+ # In order to start the instance, the disk url and its corresponding key must be
4963
+ # provided.
4964
+ # If the disk is not protected with a customer-supplied encryption key it should
4965
+ # not be specified.
4966
+ # Corresponds to the JSON property `disks`
4967
+ # @return [Array<Google::Apis::ComputeBeta::CustomerEncryptionKeyProtectedDisk>]
4968
+ attr_accessor :disks
4969
+
4970
+ def initialize(**args)
4971
+ update!(**args)
4972
+ end
4973
+
4974
+ # Update properties of this object
4975
+ def update!(**args)
4976
+ @disks = args[:disks] if args.key?(:disks)
4977
+ end
4978
+ end
4979
+
4855
4980
  # A license resource.
4856
4981
  class License
4857
4982
  include Google::Apis::Core::Hashable
@@ -4922,6 +5047,13 @@ module Google
4922
5047
  # @return [String]
4923
5048
  attr_accessor :id
4924
5049
 
5050
+ # [Output Only] Whether this machine type has a shared CPU. See Shared-core
5051
+ # machine types for more information.
5052
+ # Corresponds to the JSON property `isSharedCpu`
5053
+ # @return [Boolean]
5054
+ attr_accessor :is_shared_cpu
5055
+ alias_method :is_shared_cpu?, :is_shared_cpu
5056
+
4925
5057
  # [Output Only] The type of the resource. Always compute#machineType for machine
4926
5058
  # types.
4927
5059
  # Corresponds to the JSON property `kind`
@@ -4971,6 +5103,7 @@ module Google
4971
5103
  @description = args[:description] if args.key?(:description)
4972
5104
  @guest_cpus = args[:guest_cpus] if args.key?(:guest_cpus)
4973
5105
  @id = args[:id] if args.key?(:id)
5106
+ @is_shared_cpu = args[:is_shared_cpu] if args.key?(:is_shared_cpu)
4974
5107
  @kind = args[:kind] if args.key?(:kind)
4975
5108
  @maximum_persistent_disks = args[:maximum_persistent_disks] if args.key?(:maximum_persistent_disks)
4976
5109
  @maximum_persistent_disks_size_gb = args[:maximum_persistent_disks_size_gb] if args.key?(:maximum_persistent_disks_size_gb)
@@ -5520,8 +5653,9 @@ module Google
5520
5653
  # @return [String]
5521
5654
  attr_accessor :network
5522
5655
 
5523
- # [Output Only] An optional IPV4 internal network address assigned to the
5524
- # instance for this network interface.
5656
+ # An IPv4 internal network address to assign to the instance for this network
5657
+ # interface. If not specified by the user, an unused internal IP is assigned by
5658
+ # the system.
5525
5659
  # Corresponds to the JSON property `networkIP`
5526
5660
  # @return [String]
5527
5661
  attr_accessor :network_ip
@@ -5532,9 +5666,9 @@ module Google
5532
5666
  # subnet mode, then this field should be specified. If you specify this property,
5533
5667
  # you can specify the subnetwork as a full or partial URL. For example, the
5534
5668
  # following are all valid URLs:
5535
- # - https://www.googleapis.com/compute/v1/projects/project/zones/zone/
5669
+ # - https://www.googleapis.com/compute/v1/projects/project/regions/region/
5536
5670
  # subnetworks/subnetwork
5537
- # - zones/zone/subnetworks/subnetwork
5671
+ # - regions/region/subnetworks/subnetwork
5538
5672
  # Corresponds to the JSON property `subnetwork`
5539
5673
  # @return [String]
5540
5674
  attr_accessor :subnetwork
@@ -7329,13 +7463,9 @@ module Google
7329
7463
  # @return [String]
7330
7464
  attr_accessor :label_fingerprint
7331
7465
 
7332
- # Labels to apply to this snapshot. These can be later modified by the setLabels(
7333
- # ) method. Each label key & value must comply with RFC1035. Specifically, the
7334
- # name must be 1-63 characters long and match the regular expression [a-z]([-a-
7335
- # z0-9]*[a-z0-9])? which means the first character must be a lowercase letter,
7336
- # and all following characters must be a dash, lowercase letter, or digit,
7337
- # except the last character, which cannot be a dash. A label value can also be
7338
- # empty (e.g. "example-label": "").
7466
+ # Labels to apply to this snapshot. These can be later modified by the setLabels
7467
+ # method. Each label key/value pair must comply with RFC1035. Label values may
7468
+ # be empty.
7339
7469
  # Corresponds to the JSON property `labels`
7340
7470
  # @return [Hash<String,String>]
7341
7471
  attr_accessor :labels
@@ -9295,7 +9425,7 @@ module Google
9295
9425
  attr_accessor :self_link
9296
9426
 
9297
9427
  # The list of expected URL mappings. Request to update this UrlMap will succeed
9298
- # only all of the test cases pass.
9428
+ # only if all of the test cases pass.
9299
9429
  # Corresponds to the JSON property `tests`
9300
9430
  # @return [Array<Google::Apis::ComputeBeta::UrlMapTest>]
9301
9431
  attr_accessor :tests
@@ -172,6 +172,12 @@ module Google
172
172
  include Google::Apis::Core::JsonObjectSupport
173
173
  end
174
174
 
175
+ class CustomerEncryptionKeyProtectedDisk
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
175
181
  class DeprecationStatus
176
182
  class Representation < Google::Apis::Core::JsonRepresentation; end
177
183
 
@@ -196,6 +202,12 @@ module Google
196
202
  include Google::Apis::Core::JsonObjectSupport
197
203
  end
198
204
 
205
+ class DiskMoveRequest
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
199
211
  class DiskType
200
212
  class Representation < Google::Apis::Core::JsonRepresentation; end
201
213
 
@@ -556,6 +568,12 @@ module Google
556
568
  include Google::Apis::Core::JsonObjectSupport
557
569
  end
558
570
 
571
+ class MoveInstanceRequest
572
+ class Representation < Google::Apis::Core::JsonRepresentation; end
573
+
574
+ include Google::Apis::Core::JsonObjectSupport
575
+ end
576
+
559
577
  class InstanceProperties
560
578
  class Representation < Google::Apis::Core::JsonRepresentation; end
561
579
 
@@ -616,6 +634,12 @@ module Google
616
634
  include Google::Apis::Core::JsonObjectSupport
617
635
  end
618
636
 
637
+ class InstancesStartWithEncryptionKeyRequest
638
+ class Representation < Google::Apis::Core::JsonRepresentation; end
639
+
640
+ include Google::Apis::Core::JsonObjectSupport
641
+ end
642
+
619
643
  class License
620
644
  class Representation < Google::Apis::Core::JsonRepresentation; end
621
645
 
@@ -1583,6 +1607,15 @@ module Google
1583
1607
  end
1584
1608
  end
1585
1609
 
1610
+ class CustomerEncryptionKeyProtectedDisk
1611
+ # @private
1612
+ class Representation < Google::Apis::Core::JsonRepresentation
1613
+ property :disk_encryption_key, as: 'diskEncryptionKey', class: Google::Apis::ComputeBeta::CustomerEncryptionKey, decorator: Google::Apis::ComputeBeta::CustomerEncryptionKey::Representation
1614
+
1615
+ property :source, as: 'source'
1616
+ end
1617
+ end
1618
+
1586
1619
  class DeprecationStatus
1587
1620
  # @private
1588
1621
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1652,6 +1685,14 @@ module Google
1652
1685
  end
1653
1686
  end
1654
1687
 
1688
+ class DiskMoveRequest
1689
+ # @private
1690
+ class Representation < Google::Apis::Core::JsonRepresentation
1691
+ property :destination_zone, as: 'destinationZone'
1692
+ property :target_disk, as: 'targetDisk'
1693
+ end
1694
+ end
1695
+
1655
1696
  class DiskType
1656
1697
  # @private
1657
1698
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2340,6 +2381,14 @@ module Google
2340
2381
  end
2341
2382
  end
2342
2383
 
2384
+ class MoveInstanceRequest
2385
+ # @private
2386
+ class Representation < Google::Apis::Core::JsonRepresentation
2387
+ property :destination_zone, as: 'destinationZone'
2388
+ property :target_instance, as: 'targetInstance'
2389
+ end
2390
+ end
2391
+
2343
2392
  class InstanceProperties
2344
2393
  # @private
2345
2394
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2447,6 +2496,14 @@ module Google
2447
2496
  end
2448
2497
  end
2449
2498
 
2499
+ class InstancesStartWithEncryptionKeyRequest
2500
+ # @private
2501
+ class Representation < Google::Apis::Core::JsonRepresentation
2502
+ collection :disks, as: 'disks', class: Google::Apis::ComputeBeta::CustomerEncryptionKeyProtectedDisk, decorator: Google::Apis::ComputeBeta::CustomerEncryptionKeyProtectedDisk::Representation
2503
+
2504
+ end
2505
+ end
2506
+
2450
2507
  class License
2451
2508
  # @private
2452
2509
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2466,6 +2523,7 @@ module Google
2466
2523
  property :description, as: 'description'
2467
2524
  property :guest_cpus, as: 'guestCpus'
2468
2525
  property :id, as: 'id'
2526
+ property :is_shared_cpu, as: 'isSharedCpu'
2469
2527
  property :kind, as: 'kind'
2470
2528
  property :maximum_persistent_disks, as: 'maximumPersistentDisks'
2471
2529
  property :maximum_persistent_disks_size_gb, as: 'maximumPersistentDisksSizeGb'