google-api-client 0.9.28 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (138) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +7 -4
  3. data/CHANGELOG.md +10 -0
  4. data/api_names.yaml +36512 -36326
  5. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +41 -41
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +13 -13
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +110 -110
  9. data/generated/google/apis/adsense_v1_4.rb +1 -1
  10. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  11. data/generated/google/apis/analyticsreporting_v4.rb +3 -3
  12. data/generated/google/apis/analyticsreporting_v4/classes.rb +845 -845
  13. data/generated/google/apis/analyticsreporting_v4/representations.rb +184 -184
  14. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  15. data/generated/google/apis/androidenterprise_v1/classes.rb +5 -5
  16. data/generated/google/apis/androidenterprise_v1/service.rb +3 -1
  17. data/generated/google/apis/appstate_v1.rb +1 -1
  18. data/generated/google/apis/calendar_v3.rb +1 -1
  19. data/generated/google/apis/classroom_v1.rb +22 -25
  20. data/generated/google/apis/classroom_v1/classes.rb +998 -907
  21. data/generated/google/apis/classroom_v1/representations.rb +240 -240
  22. data/generated/google/apis/classroom_v1/service.rb +1269 -1061
  23. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  24. data/generated/google/apis/cloudbuild_v1/classes.rb +322 -322
  25. data/generated/google/apis/cloudbuild_v1/representations.rb +88 -88
  26. data/generated/google/apis/cloudbuild_v1/service.rb +57 -57
  27. data/generated/google/apis/clouddebugger_v2.rb +4 -4
  28. data/generated/google/apis/clouddebugger_v2/classes.rb +311 -311
  29. data/generated/google/apis/clouddebugger_v2/representations.rb +92 -92
  30. data/generated/google/apis/clouddebugger_v2/service.rb +41 -41
  31. data/generated/google/apis/cloudkms_v1beta1.rb +1 -1
  32. data/generated/google/apis/cloudkms_v1beta1/classes.rb +611 -611
  33. data/generated/google/apis/cloudkms_v1beta1/representations.rb +124 -124
  34. data/generated/google/apis/cloudkms_v1beta1/service.rb +254 -248
  35. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  36. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +116 -116
  37. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +28 -28
  38. data/generated/google/apis/cloudresourcemanager_v1/service.rb +257 -257
  39. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  40. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +394 -394
  41. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +79 -79
  42. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +269 -269
  43. data/generated/google/apis/cloudtrace_v1.rb +8 -8
  44. data/generated/google/apis/cloudtrace_v1/classes.rb +90 -84
  45. data/generated/google/apis/cloudtrace_v1/representations.rb +22 -22
  46. data/generated/google/apis/cloudtrace_v1/service.rb +40 -35
  47. data/generated/google/apis/compute_beta.rb +1 -1
  48. data/generated/google/apis/compute_beta/classes.rb +406 -31
  49. data/generated/google/apis/compute_beta/representations.rb +154 -0
  50. data/generated/google/apis/compute_beta/service.rb +262 -9
  51. data/generated/google/apis/compute_v1.rb +1 -1
  52. data/generated/google/apis/compute_v1/classes.rb +17 -20
  53. data/generated/google/apis/content_v2.rb +1 -1
  54. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  55. data/generated/google/apis/dataflow_v1b3/classes.rb +3226 -2847
  56. data/generated/google/apis/dataflow_v1b3/representations.rb +825 -677
  57. data/generated/google/apis/dataflow_v1b3/service.rb +175 -175
  58. data/generated/google/apis/dataproc_v1.rb +2 -2
  59. data/generated/google/apis/dataproc_v1/classes.rb +1213 -1136
  60. data/generated/google/apis/dataproc_v1/representations.rb +262 -244
  61. data/generated/google/apis/dataproc_v1/service.rb +298 -243
  62. data/generated/google/apis/datastore_v1.rb +4 -4
  63. data/generated/google/apis/datastore_v1/classes.rb +728 -728
  64. data/generated/google/apis/datastore_v1/representations.rb +167 -167
  65. data/generated/google/apis/datastore_v1/service.rb +68 -68
  66. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  67. data/generated/google/apis/drive_v2.rb +1 -1
  68. data/generated/google/apis/drive_v3.rb +1 -1
  69. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  70. data/generated/google/apis/games_management_v1management.rb +1 -1
  71. data/generated/google/apis/games_v1.rb +1 -1
  72. data/generated/google/apis/genomics_v1.rb +7 -7
  73. data/generated/google/apis/genomics_v1/classes.rb +932 -932
  74. data/generated/google/apis/genomics_v1/representations.rb +205 -205
  75. data/generated/google/apis/genomics_v1/service.rb +1228 -1228
  76. data/generated/google/apis/gmail_v1.rb +1 -1
  77. data/generated/google/apis/iam_v1/classes.rb +440 -440
  78. data/generated/google/apis/iam_v1/representations.rb +94 -94
  79. data/generated/google/apis/iam_v1/service.rb +60 -60
  80. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  81. data/generated/google/apis/identitytoolkit_v3/classes.rb +21 -1
  82. data/generated/google/apis/identitytoolkit_v3/representations.rb +3 -0
  83. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  84. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  85. data/generated/google/apis/kgsearch_v1/service.rb +21 -21
  86. data/generated/google/apis/language_v1beta1.rb +1 -1
  87. data/generated/google/apis/language_v1beta1/classes.rb +232 -232
  88. data/generated/google/apis/language_v1beta1/representations.rb +75 -75
  89. data/generated/google/apis/logging_v2beta1.rb +1 -1
  90. data/generated/google/apis/logging_v2beta1/classes.rb +345 -337
  91. data/generated/google/apis/logging_v2beta1/representations.rb +55 -55
  92. data/generated/google/apis/logging_v2beta1/service.rb +331 -306
  93. data/generated/google/apis/monitoring_v3.rb +1 -1
  94. data/generated/google/apis/monitoring_v3/classes.rb +253 -253
  95. data/generated/google/apis/monitoring_v3/representations.rb +58 -58
  96. data/generated/google/apis/monitoring_v3/service.rb +135 -135
  97. data/generated/google/apis/people_v1.rb +15 -16
  98. data/generated/google/apis/people_v1/classes.rb +985 -855
  99. data/generated/google/apis/people_v1/representations.rb +227 -220
  100. data/generated/google/apis/people_v1/service.rb +58 -52
  101. data/generated/google/apis/plus_domains_v1.rb +1 -1
  102. data/generated/google/apis/plus_v1.rb +1 -1
  103. data/generated/google/apis/pubsub_v1.rb +1 -1
  104. data/generated/google/apis/pubsub_v1/classes.rb +257 -257
  105. data/generated/google/apis/pubsub_v1/representations.rb +83 -83
  106. data/generated/google/apis/pubsub_v1/service.rb +390 -390
  107. data/generated/google/apis/script_v1.rb +17 -17
  108. data/generated/google/apis/script_v1/classes.rb +149 -141
  109. data/generated/google/apis/script_v1/representations.rb +26 -27
  110. data/generated/google/apis/script_v1/service.rb +9 -8
  111. data/generated/google/apis/sheets_v4.rb +1 -1
  112. data/generated/google/apis/sheets_v4/classes.rb +4223 -4188
  113. data/generated/google/apis/sheets_v4/representations.rb +850 -834
  114. data/generated/google/apis/sheets_v4/service.rb +192 -192
  115. data/generated/google/apis/slides_v1.rb +1 -1
  116. data/generated/google/apis/slides_v1/classes.rb +927 -800
  117. data/generated/google/apis/slides_v1/representations.rb +253 -211
  118. data/generated/google/apis/speech_v1beta1.rb +1 -1
  119. data/generated/google/apis/speech_v1beta1/classes.rb +94 -107
  120. data/generated/google/apis/speech_v1beta1/representations.rb +24 -36
  121. data/generated/google/apis/speech_v1beta1/service.rb +51 -54
  122. data/generated/google/apis/storage_v1.rb +1 -1
  123. data/generated/google/apis/vision_v1.rb +1 -1
  124. data/generated/google/apis/vision_v1/classes.rb +888 -885
  125. data/generated/google/apis/vision_v1/representations.rb +139 -139
  126. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  127. data/generated/google/apis/youtube_analytics_v1/service.rb +5 -1
  128. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  129. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  130. data/generated/google/apis/youtubereporting_v1/classes.rb +80 -80
  131. data/generated/google/apis/youtubereporting_v1/representations.rb +23 -23
  132. data/generated/google/apis/youtubereporting_v1/service.rb +51 -51
  133. data/google-api-client.gemspec +2 -2
  134. data/lib/google/apis/core/api_command.rb +1 -1
  135. data/lib/google/apis/core/json_representation.rb +2 -2
  136. data/lib/google/apis/version.rb +1 -1
  137. data/samples/cli/lib/samples/you_tube.rb +4 -1
  138. metadata +36 -30
@@ -22,6 +22,48 @@ module Google
22
22
  module Apis
23
23
  module ComputeBeta
24
24
 
25
+ class AcceleratorConfig
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class AcceleratorType
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class AcceleratorTypeAggregatedList
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class AcceleratorTypeList
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class AcceleratorTypesScopedList
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ class Warning
53
+ class Representation < Google::Apis::Core::JsonRepresentation; end
54
+
55
+ class Datum
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ include Google::Apis::Core::JsonObjectSupport
62
+ end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
25
67
  class AccessConfig
26
68
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
69
 
@@ -748,6 +790,12 @@ module Google
748
790
  include Google::Apis::Core::JsonObjectSupport
749
791
  end
750
792
 
793
+ class InstancesSetMachineResourcesRequest
794
+ class Representation < Google::Apis::Core::JsonRepresentation; end
795
+
796
+ include Google::Apis::Core::JsonObjectSupport
797
+ end
798
+
751
799
  class InstancesSetMachineTypeRequest
752
800
  class Representation < Google::Apis::Core::JsonRepresentation; end
753
801
 
@@ -880,6 +928,12 @@ module Google
880
928
  include Google::Apis::Core::JsonObjectSupport
881
929
  end
882
930
 
931
+ class NetworkPeering
932
+ class Representation < Google::Apis::Core::JsonRepresentation; end
933
+
934
+ include Google::Apis::Core::JsonObjectSupport
935
+ end
936
+
883
937
  class Operation
884
938
  class Representation < Google::Apis::Core::JsonRepresentation; end
885
939
 
@@ -1618,6 +1672,82 @@ module Google
1618
1672
  include Google::Apis::Core::JsonObjectSupport
1619
1673
  end
1620
1674
 
1675
+ class AcceleratorConfig
1676
+ # @private
1677
+ class Representation < Google::Apis::Core::JsonRepresentation
1678
+ property :accelerator_count, as: 'acceleratorCount'
1679
+ property :accelerator_type, as: 'acceleratorType'
1680
+ end
1681
+ end
1682
+
1683
+ class AcceleratorType
1684
+ # @private
1685
+ class Representation < Google::Apis::Core::JsonRepresentation
1686
+ property :creation_timestamp, as: 'creationTimestamp'
1687
+ property :deprecated, as: 'deprecated', class: Google::Apis::ComputeBeta::DeprecationStatus, decorator: Google::Apis::ComputeBeta::DeprecationStatus::Representation
1688
+
1689
+ property :description, as: 'description'
1690
+ property :id, as: 'id'
1691
+ property :kind, as: 'kind'
1692
+ property :maximum_cards_per_instance, as: 'maximumCardsPerInstance'
1693
+ property :name, as: 'name'
1694
+ property :self_link, as: 'selfLink'
1695
+ property :zone, as: 'zone'
1696
+ end
1697
+ end
1698
+
1699
+ class AcceleratorTypeAggregatedList
1700
+ # @private
1701
+ class Representation < Google::Apis::Core::JsonRepresentation
1702
+ property :id, as: 'id'
1703
+ hash :items, as: 'items', class: Google::Apis::ComputeBeta::AcceleratorTypesScopedList, decorator: Google::Apis::ComputeBeta::AcceleratorTypesScopedList::Representation
1704
+
1705
+ property :kind, as: 'kind'
1706
+ property :next_page_token, as: 'nextPageToken'
1707
+ property :self_link, as: 'selfLink'
1708
+ end
1709
+ end
1710
+
1711
+ class AcceleratorTypeList
1712
+ # @private
1713
+ class Representation < Google::Apis::Core::JsonRepresentation
1714
+ property :id, as: 'id'
1715
+ collection :items, as: 'items', class: Google::Apis::ComputeBeta::AcceleratorType, decorator: Google::Apis::ComputeBeta::AcceleratorType::Representation
1716
+
1717
+ property :kind, as: 'kind'
1718
+ property :next_page_token, as: 'nextPageToken'
1719
+ property :self_link, as: 'selfLink'
1720
+ end
1721
+ end
1722
+
1723
+ class AcceleratorTypesScopedList
1724
+ # @private
1725
+ class Representation < Google::Apis::Core::JsonRepresentation
1726
+ collection :accelerator_types, as: 'acceleratorTypes', class: Google::Apis::ComputeBeta::AcceleratorType, decorator: Google::Apis::ComputeBeta::AcceleratorType::Representation
1727
+
1728
+ property :warning, as: 'warning', class: Google::Apis::ComputeBeta::AcceleratorTypesScopedList::Warning, decorator: Google::Apis::ComputeBeta::AcceleratorTypesScopedList::Warning::Representation
1729
+
1730
+ end
1731
+
1732
+ class Warning
1733
+ # @private
1734
+ class Representation < Google::Apis::Core::JsonRepresentation
1735
+ property :code, as: 'code'
1736
+ collection :data, as: 'data', class: Google::Apis::ComputeBeta::AcceleratorTypesScopedList::Warning::Datum, decorator: Google::Apis::ComputeBeta::AcceleratorTypesScopedList::Warning::Datum::Representation
1737
+
1738
+ property :message, as: 'message'
1739
+ end
1740
+
1741
+ class Datum
1742
+ # @private
1743
+ class Representation < Google::Apis::Core::JsonRepresentation
1744
+ property :key, as: 'key'
1745
+ property :value, as: 'value'
1746
+ end
1747
+ end
1748
+ end
1749
+ end
1750
+
1621
1751
  class AccessConfig
1622
1752
  # @private
1623
1753
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2599,6 +2729,8 @@ module Google
2599
2729
  property :description, as: 'description'
2600
2730
  collection :disks, as: 'disks', class: Google::Apis::ComputeBeta::AttachedDisk, decorator: Google::Apis::ComputeBeta::AttachedDisk::Representation
2601
2731
 
2732
+ collection :guest_accelerators, as: 'guestAccelerators', class: Google::Apis::ComputeBeta::AcceleratorConfig, decorator: Google::Apis::ComputeBeta::AcceleratorConfig::Representation
2733
+
2602
2734
  property :id, as: 'id'
2603
2735
  property :kind, as: 'kind'
2604
2736
  property :label_fingerprint, :base64 => true, as: 'labelFingerprint'
@@ -3033,6 +3165,14 @@ module Google
3033
3165
  end
3034
3166
  end
3035
3167
 
3168
+ class InstancesSetMachineResourcesRequest
3169
+ # @private
3170
+ class Representation < Google::Apis::Core::JsonRepresentation
3171
+ collection :guest_accelerators, as: 'guestAccelerators', class: Google::Apis::ComputeBeta::AcceleratorConfig, decorator: Google::Apis::ComputeBeta::AcceleratorConfig::Representation
3172
+
3173
+ end
3174
+ end
3175
+
3036
3176
  class InstancesSetMachineTypeRequest
3037
3177
  # @private
3038
3178
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3228,6 +3368,8 @@ module Google
3228
3368
  property :id, as: 'id'
3229
3369
  property :kind, as: 'kind'
3230
3370
  property :name, as: 'name'
3371
+ collection :peerings, as: 'peerings', class: Google::Apis::ComputeBeta::NetworkPeering, decorator: Google::Apis::ComputeBeta::NetworkPeering::Representation
3372
+
3231
3373
  property :self_link, as: 'selfLink'
3232
3374
  collection :subnetworks, as: 'subnetworks'
3233
3375
  end
@@ -3258,6 +3400,17 @@ module Google
3258
3400
  end
3259
3401
  end
3260
3402
 
3403
+ class NetworkPeering
3404
+ # @private
3405
+ class Representation < Google::Apis::Core::JsonRepresentation
3406
+ property :auto_create_routes, as: 'autoCreateRoutes'
3407
+ property :name, as: 'name'
3408
+ property :network, as: 'network'
3409
+ property :state, as: 'state'
3410
+ property :state_details, as: 'stateDetails'
3411
+ end
3412
+ end
3413
+
3261
3414
  class Operation
3262
3415
  # @private
3263
3416
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3615,6 +3768,7 @@ module Google
3615
3768
  property :next_hop_instance, as: 'nextHopInstance'
3616
3769
  property :next_hop_ip, as: 'nextHopIp'
3617
3770
  property :next_hop_network, as: 'nextHopNetwork'
3771
+ property :next_hop_peering, as: 'nextHopPeering'
3618
3772
  property :next_hop_vpn_tunnel, as: 'nextHopVpnTunnel'
3619
3773
  property :priority, as: 'priority'
3620
3774
  property :self_link, as: 'selfLink'
@@ -52,6 +52,205 @@ module Google
52
52
  super('https://www.googleapis.com/', 'compute/beta/projects/')
53
53
  end
54
54
 
55
+ # Retrieves an aggregated list of accelerator types.
56
+ # @param [String] project
57
+ # Project ID for this request.
58
+ # @param [String] filter
59
+ # Sets a filter expression for filtering listed resources, in the form filter=`
60
+ # expression`. Your `expression` must be in the format: field_name
61
+ # comparison_string literal_string.
62
+ # The field_name is the name of the field you want to compare. Only atomic field
63
+ # types are supported (string, number, boolean). The comparison_string must be
64
+ # either eq (equals) or ne (not equals). The literal_string is the string value
65
+ # to filter to. The literal value must be valid for the type of field you are
66
+ # filtering by (string, number, boolean). For string fields, the literal value
67
+ # is interpreted as a regular expression using RE2 syntax. The literal value
68
+ # must match the entire field.
69
+ # For example, to filter for instances that do not have a name of example-
70
+ # instance, you would use filter=name ne example-instance.
71
+ # You can filter on nested fields. For example, you could filter on instances
72
+ # that have set the scheduling.automaticRestart field to true. Use filtering on
73
+ # nested fields to take advantage of labels to organize and search for results
74
+ # based on label values.
75
+ # To filter on multiple expressions, provide each separate expression within
76
+ # parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
77
+ # central1-f). Multiple expressions are treated as AND expressions, meaning that
78
+ # resources must match all expressions to pass the filters.
79
+ # @param [Fixnum] max_results
80
+ # The maximum number of results per page that should be returned. If the number
81
+ # of available results is larger than maxResults, Compute Engine returns a
82
+ # nextPageToken that can be used to get the next page of results in subsequent
83
+ # list requests.
84
+ # @param [String] order_by
85
+ # Sorts list results by a certain order. By default, results are returned in
86
+ # alphanumerical order based on the resource name.
87
+ # You can also sort results in descending order based on the creation timestamp
88
+ # using orderBy="creationTimestamp desc". This sorts results based on the
89
+ # creationTimestamp field in reverse chronological order (newest result first).
90
+ # Use this to sort resources like operations so that the newest operation is
91
+ # returned first.
92
+ # Currently, only sorting by name or creationTimestamp desc is supported.
93
+ # @param [String] page_token
94
+ # Specifies a page token to use. Set pageToken to the nextPageToken returned by
95
+ # a previous list request to get the next page of results.
96
+ # @param [String] fields
97
+ # Selector specifying which fields to include in a partial response.
98
+ # @param [String] quota_user
99
+ # Available to use for quota purposes for server-side applications. Can be any
100
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
101
+ # Overrides userIp if both are provided.
102
+ # @param [String] user_ip
103
+ # IP address of the site where the request originates. Use this if you want to
104
+ # enforce per-user limits.
105
+ # @param [Google::Apis::RequestOptions] options
106
+ # Request-specific options
107
+ #
108
+ # @yield [result, err] Result & error if block supplied
109
+ # @yieldparam result [Google::Apis::ComputeBeta::AcceleratorTypeAggregatedList] parsed result object
110
+ # @yieldparam err [StandardError] error object if request failed
111
+ #
112
+ # @return [Google::Apis::ComputeBeta::AcceleratorTypeAggregatedList]
113
+ #
114
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
115
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
116
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
117
+ def aggregated_accelerator_type_list(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
118
+ command = make_simple_command(:get, '{project}/aggregated/acceleratorTypes', options)
119
+ command.response_representation = Google::Apis::ComputeBeta::AcceleratorTypeAggregatedList::Representation
120
+ command.response_class = Google::Apis::ComputeBeta::AcceleratorTypeAggregatedList
121
+ command.params['project'] = project unless project.nil?
122
+ command.query['filter'] = filter unless filter.nil?
123
+ command.query['maxResults'] = max_results unless max_results.nil?
124
+ command.query['orderBy'] = order_by unless order_by.nil?
125
+ command.query['pageToken'] = page_token unless page_token.nil?
126
+ command.query['fields'] = fields unless fields.nil?
127
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
128
+ command.query['userIp'] = user_ip unless user_ip.nil?
129
+ execute_or_queue_command(command, &block)
130
+ end
131
+
132
+ # Returns the specified accelerator type. Get a list of available accelerator
133
+ # types by making a list() request.
134
+ # @param [String] project
135
+ # Project ID for this request.
136
+ # @param [String] zone
137
+ # The name of the zone for this request.
138
+ # @param [String] accelerator_type
139
+ # Name of the accelerator type to return.
140
+ # @param [String] fields
141
+ # Selector specifying which fields to include in a partial response.
142
+ # @param [String] quota_user
143
+ # Available to use for quota purposes for server-side applications. Can be any
144
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
145
+ # Overrides userIp if both are provided.
146
+ # @param [String] user_ip
147
+ # IP address of the site where the request originates. Use this if you want to
148
+ # enforce per-user limits.
149
+ # @param [Google::Apis::RequestOptions] options
150
+ # Request-specific options
151
+ #
152
+ # @yield [result, err] Result & error if block supplied
153
+ # @yieldparam result [Google::Apis::ComputeBeta::AcceleratorType] parsed result object
154
+ # @yieldparam err [StandardError] error object if request failed
155
+ #
156
+ # @return [Google::Apis::ComputeBeta::AcceleratorType]
157
+ #
158
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
159
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
160
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
161
+ def get_accelerator_type(project, zone, accelerator_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
162
+ command = make_simple_command(:get, '{project}/zones/{zone}/acceleratorTypes/{acceleratorType}', options)
163
+ command.response_representation = Google::Apis::ComputeBeta::AcceleratorType::Representation
164
+ command.response_class = Google::Apis::ComputeBeta::AcceleratorType
165
+ command.params['project'] = project unless project.nil?
166
+ command.params['zone'] = zone unless zone.nil?
167
+ command.params['acceleratorType'] = accelerator_type unless accelerator_type.nil?
168
+ command.query['fields'] = fields unless fields.nil?
169
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
170
+ command.query['userIp'] = user_ip unless user_ip.nil?
171
+ execute_or_queue_command(command, &block)
172
+ end
173
+
174
+ # Retrieves a list of accelerator types available to the specified project.
175
+ # @param [String] project
176
+ # Project ID for this request.
177
+ # @param [String] zone
178
+ # The name of the zone for this request.
179
+ # @param [String] filter
180
+ # Sets a filter expression for filtering listed resources, in the form filter=`
181
+ # expression`. Your `expression` must be in the format: field_name
182
+ # comparison_string literal_string.
183
+ # The field_name is the name of the field you want to compare. Only atomic field
184
+ # types are supported (string, number, boolean). The comparison_string must be
185
+ # either eq (equals) or ne (not equals). The literal_string is the string value
186
+ # to filter to. The literal value must be valid for the type of field you are
187
+ # filtering by (string, number, boolean). For string fields, the literal value
188
+ # is interpreted as a regular expression using RE2 syntax. The literal value
189
+ # must match the entire field.
190
+ # For example, to filter for instances that do not have a name of example-
191
+ # instance, you would use filter=name ne example-instance.
192
+ # You can filter on nested fields. For example, you could filter on instances
193
+ # that have set the scheduling.automaticRestart field to true. Use filtering on
194
+ # nested fields to take advantage of labels to organize and search for results
195
+ # based on label values.
196
+ # To filter on multiple expressions, provide each separate expression within
197
+ # parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
198
+ # central1-f). Multiple expressions are treated as AND expressions, meaning that
199
+ # resources must match all expressions to pass the filters.
200
+ # @param [Fixnum] max_results
201
+ # The maximum number of results per page that should be returned. If the number
202
+ # of available results is larger than maxResults, Compute Engine returns a
203
+ # nextPageToken that can be used to get the next page of results in subsequent
204
+ # list requests.
205
+ # @param [String] order_by
206
+ # Sorts list results by a certain order. By default, results are returned in
207
+ # alphanumerical order based on the resource name.
208
+ # You can also sort results in descending order based on the creation timestamp
209
+ # using orderBy="creationTimestamp desc". This sorts results based on the
210
+ # creationTimestamp field in reverse chronological order (newest result first).
211
+ # Use this to sort resources like operations so that the newest operation is
212
+ # returned first.
213
+ # Currently, only sorting by name or creationTimestamp desc is supported.
214
+ # @param [String] page_token
215
+ # Specifies a page token to use. Set pageToken to the nextPageToken returned by
216
+ # a previous list request to get the next page of results.
217
+ # @param [String] fields
218
+ # Selector specifying which fields to include in a partial response.
219
+ # @param [String] quota_user
220
+ # Available to use for quota purposes for server-side applications. Can be any
221
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
222
+ # Overrides userIp if both are provided.
223
+ # @param [String] user_ip
224
+ # IP address of the site where the request originates. Use this if you want to
225
+ # enforce per-user limits.
226
+ # @param [Google::Apis::RequestOptions] options
227
+ # Request-specific options
228
+ #
229
+ # @yield [result, err] Result & error if block supplied
230
+ # @yieldparam result [Google::Apis::ComputeBeta::AcceleratorTypeList] parsed result object
231
+ # @yieldparam err [StandardError] error object if request failed
232
+ #
233
+ # @return [Google::Apis::ComputeBeta::AcceleratorTypeList]
234
+ #
235
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
236
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
237
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
238
+ def list_accelerator_types(project, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
239
+ command = make_simple_command(:get, '{project}/zones/{zone}/acceleratorTypes', options)
240
+ command.response_representation = Google::Apis::ComputeBeta::AcceleratorTypeList::Representation
241
+ command.response_class = Google::Apis::ComputeBeta::AcceleratorTypeList
242
+ command.params['project'] = project unless project.nil?
243
+ command.params['zone'] = zone unless zone.nil?
244
+ command.query['filter'] = filter unless filter.nil?
245
+ command.query['maxResults'] = max_results unless max_results.nil?
246
+ command.query['orderBy'] = order_by unless order_by.nil?
247
+ command.query['pageToken'] = page_token unless page_token.nil?
248
+ command.query['fields'] = fields unless fields.nil?
249
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
250
+ command.query['userIp'] = user_ip unless user_ip.nil?
251
+ execute_or_queue_command(command, &block)
252
+ end
253
+
55
254
  # Retrieves an aggregated list of addresses.
56
255
  # @param [String] project
57
256
  # Project ID for this request.
@@ -5369,10 +5568,11 @@ module Google
5369
5568
  end
5370
5569
 
5371
5570
  # Updates a managed instance group using the information that you specify in the
5372
- # request. This operation is marked as DONE when the group is updated even if
5373
- # the instances in the group have not yet been updated. You must separately
5374
- # verify the status of the individual instances with the listmanagedinstances
5375
- # method. This method supports patch semantics.
5571
+ # request. The field statefulPolicy is updated using PATCH semantics. This
5572
+ # operation is marked as DONE when the group is updated even if the instances in
5573
+ # the group have not yet been updated. You must separately verify the status of
5574
+ # the individual instances with the listmanagedinstances method. This method
5575
+ # supports patch semantics.
5376
5576
  # @param [String] project
5377
5577
  # Project ID for this request.
5378
5578
  # @param [String] zone
@@ -5752,10 +5952,10 @@ module Google
5752
5952
  end
5753
5953
 
5754
5954
  # Updates a managed instance group using the information that you specify in the
5755
- # request. This operation is marked as DONE when the group is updated even if
5756
- # the instances in the group have not yet been updated. You must separately
5757
- # verify the status of the individual instances with the listmanagedinstances
5758
- # method.
5955
+ # request. The field statefulPolicy is updated using PATCH semantics. This
5956
+ # operation is marked as DONE when the group is updated even if the instances in
5957
+ # the group have not yet been updated. You must separately verify the status of
5958
+ # the individual instances with the listmanagedinstances method.
5759
5959
  # @param [String] project
5760
5960
  # Project ID for this request.
5761
5961
  # @param [String] zone
@@ -7237,6 +7437,51 @@ module Google
7237
7437
  execute_or_queue_command(command, &block)
7238
7438
  end
7239
7439
 
7440
+ # Changes the number and/or type of accelerator for a stopped instance to the
7441
+ # values specified in the request.
7442
+ # @param [String] project
7443
+ # Project ID for this request.
7444
+ # @param [String] zone
7445
+ # The name of the zone for this request.
7446
+ # @param [String] instance
7447
+ # Name of the instance scoping this request.
7448
+ # @param [Google::Apis::ComputeBeta::InstancesSetMachineResourcesRequest] instances_set_machine_resources_request_object
7449
+ # @param [String] fields
7450
+ # Selector specifying which fields to include in a partial response.
7451
+ # @param [String] quota_user
7452
+ # Available to use for quota purposes for server-side applications. Can be any
7453
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
7454
+ # Overrides userIp if both are provided.
7455
+ # @param [String] user_ip
7456
+ # IP address of the site where the request originates. Use this if you want to
7457
+ # enforce per-user limits.
7458
+ # @param [Google::Apis::RequestOptions] options
7459
+ # Request-specific options
7460
+ #
7461
+ # @yield [result, err] Result & error if block supplied
7462
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
7463
+ # @yieldparam err [StandardError] error object if request failed
7464
+ #
7465
+ # @return [Google::Apis::ComputeBeta::Operation]
7466
+ #
7467
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7468
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7469
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
7470
+ def set_instance_machine_resources(project, zone, instance, instances_set_machine_resources_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
7471
+ command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/setMachineResources', options)
7472
+ command.request_representation = Google::Apis::ComputeBeta::InstancesSetMachineResourcesRequest::Representation
7473
+ command.request_object = instances_set_machine_resources_request_object
7474
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
7475
+ command.response_class = Google::Apis::ComputeBeta::Operation
7476
+ command.params['project'] = project unless project.nil?
7477
+ command.params['zone'] = zone unless zone.nil?
7478
+ command.params['instance'] = instance unless instance.nil?
7479
+ command.query['fields'] = fields unless fields.nil?
7480
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
7481
+ command.query['userIp'] = user_ip unless user_ip.nil?
7482
+ execute_or_queue_command(command, &block)
7483
+ end
7484
+
7240
7485
  # Changes the machine type for a stopped instance to the machine type specified
7241
7486
  # in the request.
7242
7487
  # @param [String] project
@@ -8220,6 +8465,10 @@ module Google
8220
8465
  # @param [String] project
8221
8466
  # Project ID for this request.
8222
8467
  # @param [Google::Apis::ComputeBeta::ProjectsListXpnHostsRequest] projects_list_xpn_hosts_request_object
8468
+ # @param [String] filter
8469
+ # @param [Fixnum] max_results
8470
+ # @param [String] order_by
8471
+ # @param [String] page_token
8223
8472
  # @param [String] fields
8224
8473
  # Selector specifying which fields to include in a partial response.
8225
8474
  # @param [String] quota_user
@@ -8241,13 +8490,17 @@ module Google
8241
8490
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8242
8491
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8243
8492
  # @raise [Google::Apis::AuthorizationError] Authorization is required
8244
- def list_project_xpn_hosts(project, projects_list_xpn_hosts_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8493
+ def list_project_xpn_hosts(project, projects_list_xpn_hosts_request_object = nil, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8245
8494
  command = make_simple_command(:post, '{project}/listXpnHosts', options)
8246
8495
  command.request_representation = Google::Apis::ComputeBeta::ProjectsListXpnHostsRequest::Representation
8247
8496
  command.request_object = projects_list_xpn_hosts_request_object
8248
8497
  command.response_representation = Google::Apis::ComputeBeta::XpnHostList::Representation
8249
8498
  command.response_class = Google::Apis::ComputeBeta::XpnHostList
8250
8499
  command.params['project'] = project unless project.nil?
8500
+ command.query['filter'] = filter unless filter.nil?
8501
+ command.query['maxResults'] = max_results unless max_results.nil?
8502
+ command.query['order_by'] = order_by unless order_by.nil?
8503
+ command.query['pageToken'] = page_token unless page_token.nil?
8251
8504
  command.query['fields'] = fields unless fields.nil?
8252
8505
  command.query['quotaUser'] = quota_user unless quota_user.nil?
8253
8506
  command.query['userIp'] = user_ip unless user_ip.nil?