google-api-client 0.9.13 → 0.9.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -0
  3. data/generated/google/apis/adsense_v1_4.rb +1 -1
  4. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  5. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  6. data/generated/google/apis/androidenterprise_v1/classes.rb +8 -8
  7. data/generated/google/apis/appsactivity_v1.rb +1 -1
  8. data/generated/google/apis/appstate_v1.rb +1 -1
  9. data/generated/google/apis/bigquery_v2.rb +1 -1
  10. data/generated/google/apis/bigquery_v2/classes.rb +2 -6
  11. data/generated/google/apis/bigquery_v2/representations.rb +1 -1
  12. data/generated/google/apis/bigquery_v2/service.rb +4 -5
  13. data/generated/google/apis/books_v1.rb +1 -1
  14. data/generated/google/apis/books_v1/service.rb +5 -1
  15. data/generated/google/apis/calendar_v3.rb +1 -1
  16. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  17. data/generated/google/apis/cloudbuild_v1/classes.rb +32 -19
  18. data/generated/google/apis/cloudbuild_v1/representations.rb +5 -3
  19. data/generated/google/apis/cloudbuild_v1/service.rb +4 -1
  20. data/generated/google/apis/compute_beta.rb +1 -1
  21. data/generated/google/apis/compute_beta/classes.rb +226 -11
  22. data/generated/google/apis/compute_beta/representations.rb +85 -0
  23. data/generated/google/apis/compute_beta/service.rb +465 -0
  24. data/generated/google/apis/compute_v1.rb +1 -1
  25. data/generated/google/apis/compute_v1/classes.rb +654 -11
  26. data/generated/google/apis/compute_v1/representations.rb +231 -0
  27. data/generated/google/apis/compute_v1/service.rb +574 -0
  28. data/generated/google/apis/content_v2.rb +1 -1
  29. data/generated/google/apis/content_v2/classes.rb +6 -0
  30. data/generated/google/apis/content_v2/representations.rb +1 -0
  31. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  32. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  33. data/generated/google/apis/drive_v2.rb +1 -1
  34. data/generated/google/apis/drive_v3.rb +1 -1
  35. data/generated/google/apis/drive_v3/classes.rb +30 -16
  36. data/generated/google/apis/fitness_v1.rb +1 -1
  37. data/generated/google/apis/fitness_v1/classes.rb +8 -1
  38. data/generated/google/apis/fitness_v1/representations.rb +1 -0
  39. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  40. data/generated/google/apis/games_management_v1management.rb +1 -1
  41. data/generated/google/apis/games_v1.rb +1 -1
  42. data/generated/google/apis/genomics_v1.rb +1 -1
  43. data/generated/google/apis/genomics_v1/classes.rb +7 -7
  44. data/generated/google/apis/genomics_v1/service.rb +1 -1
  45. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  46. data/generated/google/apis/identitytoolkit_v3/classes.rb +63 -4
  47. data/generated/google/apis/identitytoolkit_v3/representations.rb +20 -0
  48. data/generated/google/apis/language_v1beta1.rb +1 -1
  49. data/generated/google/apis/monitoring_v3.rb +2 -2
  50. data/generated/google/apis/monitoring_v3/classes.rb +14 -10
  51. data/generated/google/apis/monitoring_v3/service.rb +1 -1
  52. data/generated/google/apis/oauth2_v2.rb +1 -1
  53. data/generated/google/apis/plus_domains_v1.rb +1 -1
  54. data/generated/google/apis/plus_v1.rb +1 -1
  55. data/generated/google/apis/sheets_v4.rb +1 -1
  56. data/generated/google/apis/speech_v1beta1.rb +1 -1
  57. data/generated/google/apis/speech_v1beta1/classes.rb +9 -0
  58. data/generated/google/apis/speech_v1beta1/representations.rb +1 -0
  59. data/generated/google/apis/speech_v1beta1/service.rb +2 -2
  60. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  61. data/generated/google/apis/storage_v1.rb +1 -1
  62. data/generated/google/apis/storage_v1/classes.rb +0 -34
  63. data/generated/google/apis/storage_v1/representations.rb +0 -16
  64. data/generated/google/apis/storage_v1/service.rb +3 -18
  65. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  66. data/lib/google/apis/core/api_command.rb +4 -0
  67. data/lib/google/apis/core/download.rb +7 -2
  68. data/lib/google/apis/core/http_command.rb +5 -1
  69. data/lib/google/apis/version.rb +1 -1
  70. metadata +2 -2
@@ -154,6 +154,12 @@ module Google
154
154
  include Google::Apis::Core::JsonObjectSupport
155
155
  end
156
156
 
157
+ class BackendServiceAggregatedList
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
157
163
  class BackendServiceGroupHealth
158
164
  class Representation < Google::Apis::Core::JsonRepresentation; end
159
165
 
@@ -166,6 +172,24 @@ module Google
166
172
  include Google::Apis::Core::JsonObjectSupport
167
173
  end
168
174
 
175
+ class BackendServicesScopedList
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ class Warning
179
+ class Representation < Google::Apis::Core::JsonRepresentation; end
180
+
181
+ class Datum
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
187
+ include Google::Apis::Core::JsonObjectSupport
188
+ end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
169
193
  class CacheInvalidationRule
170
194
  class Representation < Google::Apis::Core::JsonRepresentation; end
171
195
 
@@ -340,6 +364,12 @@ module Google
340
364
  include Google::Apis::Core::JsonObjectSupport
341
365
  end
342
366
 
367
+ class GuestOsFeature
368
+ class Representation < Google::Apis::Core::JsonRepresentation; end
369
+
370
+ include Google::Apis::Core::JsonObjectSupport
371
+ end
372
+
343
373
  class Http2HealthCheck
344
374
  class Representation < Google::Apis::Core::JsonRepresentation; end
345
375
 
@@ -1751,6 +1781,7 @@ module Google
1751
1781
  collection :health_checks, as: 'healthChecks'
1752
1782
  property :id, as: 'id'
1753
1783
  property :kind, as: 'kind'
1784
+ property :load_balancing_scheme, as: 'loadBalancingScheme'
1754
1785
  property :name, as: 'name'
1755
1786
  property :port, as: 'port'
1756
1787
  property :port_name, as: 'portName'
@@ -1762,6 +1793,18 @@ module Google
1762
1793
  end
1763
1794
  end
1764
1795
 
1796
+ class BackendServiceAggregatedList
1797
+ # @private
1798
+ class Representation < Google::Apis::Core::JsonRepresentation
1799
+ property :id, as: 'id'
1800
+ hash :items, as: 'items', class: Google::Apis::ComputeBeta::BackendServicesScopedList, decorator: Google::Apis::ComputeBeta::BackendServicesScopedList::Representation
1801
+
1802
+ property :kind, as: 'kind'
1803
+ property :next_page_token, as: 'nextPageToken'
1804
+ property :self_link, as: 'selfLink'
1805
+ end
1806
+ end
1807
+
1765
1808
  class BackendServiceGroupHealth
1766
1809
  # @private
1767
1810
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1783,6 +1826,34 @@ module Google
1783
1826
  end
1784
1827
  end
1785
1828
 
1829
+ class BackendServicesScopedList
1830
+ # @private
1831
+ class Representation < Google::Apis::Core::JsonRepresentation
1832
+ collection :backend_services, as: 'backendServices', class: Google::Apis::ComputeBeta::BackendService, decorator: Google::Apis::ComputeBeta::BackendService::Representation
1833
+
1834
+ property :warning, as: 'warning', class: Google::Apis::ComputeBeta::BackendServicesScopedList::Warning, decorator: Google::Apis::ComputeBeta::BackendServicesScopedList::Warning::Representation
1835
+
1836
+ end
1837
+
1838
+ class Warning
1839
+ # @private
1840
+ class Representation < Google::Apis::Core::JsonRepresentation
1841
+ property :code, as: 'code'
1842
+ collection :data, as: 'data', class: Google::Apis::ComputeBeta::BackendServicesScopedList::Warning::Datum, decorator: Google::Apis::ComputeBeta::BackendServicesScopedList::Warning::Datum::Representation
1843
+
1844
+ property :message, as: 'message'
1845
+ end
1846
+
1847
+ class Datum
1848
+ # @private
1849
+ class Representation < Google::Apis::Core::JsonRepresentation
1850
+ property :key, as: 'key'
1851
+ property :value, as: 'value'
1852
+ end
1853
+ end
1854
+ end
1855
+ end
1856
+
1786
1857
  class CacheInvalidationRule
1787
1858
  # @private
1788
1859
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2039,14 +2110,19 @@ module Google
2039
2110
  class Representation < Google::Apis::Core::JsonRepresentation
2040
2111
  property :ip_address, as: 'IPAddress'
2041
2112
  property :ip_protocol, as: 'IPProtocol'
2113
+ property :backend_service, as: 'backendService'
2042
2114
  property :creation_timestamp, as: 'creationTimestamp'
2043
2115
  property :description, as: 'description'
2044
2116
  property :id, as: 'id'
2045
2117
  property :kind, as: 'kind'
2118
+ property :load_balancing_scheme, as: 'loadBalancingScheme'
2046
2119
  property :name, as: 'name'
2120
+ property :network, as: 'network'
2047
2121
  property :port_range, as: 'portRange'
2122
+ collection :ports, as: 'ports'
2048
2123
  property :region, as: 'region'
2049
2124
  property :self_link, as: 'selfLink'
2125
+ property :subnetwork, as: 'subnetwork'
2050
2126
  property :target, as: 'target'
2051
2127
  end
2052
2128
  end
@@ -2111,6 +2187,13 @@ module Google
2111
2187
  end
2112
2188
  end
2113
2189
 
2190
+ class GuestOsFeature
2191
+ # @private
2192
+ class Representation < Google::Apis::Core::JsonRepresentation
2193
+ property :type, as: 'type'
2194
+ end
2195
+ end
2196
+
2114
2197
  class Http2HealthCheck
2115
2198
  # @private
2116
2199
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2281,6 +2364,8 @@ module Google
2281
2364
  property :description, as: 'description'
2282
2365
  property :disk_size_gb, as: 'diskSizeGb'
2283
2366
  property :family, as: 'family'
2367
+ collection :guest_os_features, as: 'guestOsFeatures', class: Google::Apis::ComputeBeta::GuestOsFeature, decorator: Google::Apis::ComputeBeta::GuestOsFeature::Representation
2368
+
2284
2369
  property :id, as: 'id'
2285
2370
  property :image_encryption_key, as: 'imageEncryptionKey', class: Google::Apis::ComputeBeta::CustomerEncryptionKey, decorator: Google::Apis::ComputeBeta::CustomerEncryptionKey::Representation
2286
2371
 
@@ -793,6 +793,84 @@ module Google
793
793
  execute_or_queue_command(command, &block)
794
794
  end
795
795
 
796
+ # Retrieves the list of all BackendService resources, regional and global,
797
+ # available to the specified project.
798
+ # @param [String] project
799
+ # Name of the project scoping this request.
800
+ # @param [String] filter
801
+ # Sets a filter expression for filtering listed resources, in the form filter=`
802
+ # expression`. Your `expression` must be in the format: field_name
803
+ # comparison_string literal_string.
804
+ # The field_name is the name of the field you want to compare. Only atomic field
805
+ # types are supported (string, number, boolean). The comparison_string must be
806
+ # either eq (equals) or ne (not equals). The literal_string is the string value
807
+ # to filter to. The literal value must be valid for the type of field you are
808
+ # filtering by (string, number, boolean). For string fields, the literal value
809
+ # is interpreted as a regular expression using RE2 syntax. The literal value
810
+ # must match the entire field.
811
+ # For example, to filter for instances that do not have a name of example-
812
+ # instance, you would use filter=name ne example-instance.
813
+ # You can filter on nested fields. For example, you could filter on instances
814
+ # that have set the scheduling.automaticRestart field to true. Use filtering on
815
+ # nested fields to take advantage of labels to organize and search for results
816
+ # based on label values.
817
+ # To filter on multiple expressions, provide each separate expression within
818
+ # parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
819
+ # central1-f). Multiple expressions are treated as AND expressions, meaning that
820
+ # resources must match all expressions to pass the filters.
821
+ # @param [Fixnum] max_results
822
+ # The maximum number of results per page that should be returned. If the number
823
+ # of available results is larger than maxResults, Compute Engine returns a
824
+ # nextPageToken that can be used to get the next page of results in subsequent
825
+ # list requests.
826
+ # @param [String] order_by
827
+ # Sorts list results by a certain order. By default, results are returned in
828
+ # alphanumerical order based on the resource name.
829
+ # You can also sort results in descending order based on the creation timestamp
830
+ # using orderBy="creationTimestamp desc". This sorts results based on the
831
+ # creationTimestamp field in reverse chronological order (newest result first).
832
+ # Use this to sort resources like operations so that the newest operation is
833
+ # returned first.
834
+ # Currently, only sorting by name or creationTimestamp desc is supported.
835
+ # @param [String] page_token
836
+ # Specifies a page token to use. Set pageToken to the nextPageToken returned by
837
+ # a previous list request to get the next page of results.
838
+ # @param [String] fields
839
+ # Selector specifying which fields to include in a partial response.
840
+ # @param [String] quota_user
841
+ # Available to use for quota purposes for server-side applications. Can be any
842
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
843
+ # Overrides userIp if both are provided.
844
+ # @param [String] user_ip
845
+ # IP address of the site where the request originates. Use this if you want to
846
+ # enforce per-user limits.
847
+ # @param [Google::Apis::RequestOptions] options
848
+ # Request-specific options
849
+ #
850
+ # @yield [result, err] Result & error if block supplied
851
+ # @yieldparam result [Google::Apis::ComputeBeta::BackendServiceAggregatedList] parsed result object
852
+ # @yieldparam err [StandardError] error object if request failed
853
+ #
854
+ # @return [Google::Apis::ComputeBeta::BackendServiceAggregatedList]
855
+ #
856
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
857
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
858
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
859
+ def aggregated_backend_service_list(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
860
+ command = make_simple_command(:get, '{project}/aggregated/backendServices', options)
861
+ command.response_representation = Google::Apis::ComputeBeta::BackendServiceAggregatedList::Representation
862
+ command.response_class = Google::Apis::ComputeBeta::BackendServiceAggregatedList
863
+ command.params['project'] = project unless project.nil?
864
+ command.query['filter'] = filter unless filter.nil?
865
+ command.query['maxResults'] = max_results unless max_results.nil?
866
+ command.query['orderBy'] = order_by unless order_by.nil?
867
+ command.query['pageToken'] = page_token unless page_token.nil?
868
+ command.query['fields'] = fields unless fields.nil?
869
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
870
+ command.query['userIp'] = user_ip unless user_ip.nil?
871
+ execute_or_queue_command(command, &block)
872
+ end
873
+
796
874
  # Deletes the specified BackendService resource.
797
875
  # @param [String] project
798
876
  # Project ID for this request.
@@ -8166,6 +8244,393 @@ module Google
8166
8244
  execute_or_queue_command(command, &block)
8167
8245
  end
8168
8246
 
8247
+ # Deletes the specified regional BackendService resource.
8248
+ # @param [String] project
8249
+ # Project ID for this request.
8250
+ # @param [String] region
8251
+ # Name of the region scoping this request.
8252
+ # @param [String] backend_service
8253
+ # Name of the BackendService resource to delete.
8254
+ # @param [String] fields
8255
+ # Selector specifying which fields to include in a partial response.
8256
+ # @param [String] quota_user
8257
+ # Available to use for quota purposes for server-side applications. Can be any
8258
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8259
+ # Overrides userIp if both are provided.
8260
+ # @param [String] user_ip
8261
+ # IP address of the site where the request originates. Use this if you want to
8262
+ # enforce per-user limits.
8263
+ # @param [Google::Apis::RequestOptions] options
8264
+ # Request-specific options
8265
+ #
8266
+ # @yield [result, err] Result & error if block supplied
8267
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
8268
+ # @yieldparam err [StandardError] error object if request failed
8269
+ #
8270
+ # @return [Google::Apis::ComputeBeta::Operation]
8271
+ #
8272
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8273
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8274
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8275
+ def delete_region_backend_service(project, region, backend_service, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8276
+ command = make_simple_command(:delete, '{project}/regions/{region}/backendServices/{backendService}', options)
8277
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
8278
+ command.response_class = Google::Apis::ComputeBeta::Operation
8279
+ command.params['project'] = project unless project.nil?
8280
+ command.params['region'] = region unless region.nil?
8281
+ command.params['backendService'] = backend_service unless backend_service.nil?
8282
+ command.query['fields'] = fields unless fields.nil?
8283
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8284
+ command.query['userIp'] = user_ip unless user_ip.nil?
8285
+ execute_or_queue_command(command, &block)
8286
+ end
8287
+
8288
+ # Returns the specified regional BackendService resource.
8289
+ # @param [String] project
8290
+ # Project ID for this request.
8291
+ # @param [String] region
8292
+ # Name of the region scoping this request.
8293
+ # @param [String] backend_service
8294
+ # Name of the BackendService resource to return.
8295
+ # @param [String] fields
8296
+ # Selector specifying which fields to include in a partial response.
8297
+ # @param [String] quota_user
8298
+ # Available to use for quota purposes for server-side applications. Can be any
8299
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8300
+ # Overrides userIp if both are provided.
8301
+ # @param [String] user_ip
8302
+ # IP address of the site where the request originates. Use this if you want to
8303
+ # enforce per-user limits.
8304
+ # @param [Google::Apis::RequestOptions] options
8305
+ # Request-specific options
8306
+ #
8307
+ # @yield [result, err] Result & error if block supplied
8308
+ # @yieldparam result [Google::Apis::ComputeBeta::BackendService] parsed result object
8309
+ # @yieldparam err [StandardError] error object if request failed
8310
+ #
8311
+ # @return [Google::Apis::ComputeBeta::BackendService]
8312
+ #
8313
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8314
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8315
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8316
+ def get_region_backend_service(project, region, backend_service, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8317
+ command = make_simple_command(:get, '{project}/regions/{region}/backendServices/{backendService}', options)
8318
+ command.response_representation = Google::Apis::ComputeBeta::BackendService::Representation
8319
+ command.response_class = Google::Apis::ComputeBeta::BackendService
8320
+ command.params['project'] = project unless project.nil?
8321
+ command.params['region'] = region unless region.nil?
8322
+ command.params['backendService'] = backend_service unless backend_service.nil?
8323
+ command.query['fields'] = fields unless fields.nil?
8324
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8325
+ command.query['userIp'] = user_ip unless user_ip.nil?
8326
+ execute_or_queue_command(command, &block)
8327
+ end
8328
+
8329
+ # Gets the most recent health check results for this regional BackendService.
8330
+ # @param [String] project
8331
+ # @param [String] region
8332
+ # Name of the region scoping this request.
8333
+ # @param [String] backend_service
8334
+ # Name of the BackendService resource to which the queried instance belongs.
8335
+ # @param [Google::Apis::ComputeBeta::ResourceGroupReference] resource_group_reference_object
8336
+ # @param [String] fields
8337
+ # Selector specifying which fields to include in a partial response.
8338
+ # @param [String] quota_user
8339
+ # Available to use for quota purposes for server-side applications. Can be any
8340
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8341
+ # Overrides userIp if both are provided.
8342
+ # @param [String] user_ip
8343
+ # IP address of the site where the request originates. Use this if you want to
8344
+ # enforce per-user limits.
8345
+ # @param [Google::Apis::RequestOptions] options
8346
+ # Request-specific options
8347
+ #
8348
+ # @yield [result, err] Result & error if block supplied
8349
+ # @yieldparam result [Google::Apis::ComputeBeta::BackendServiceGroupHealth] parsed result object
8350
+ # @yieldparam err [StandardError] error object if request failed
8351
+ #
8352
+ # @return [Google::Apis::ComputeBeta::BackendServiceGroupHealth]
8353
+ #
8354
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8355
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8356
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8357
+ def get_region_backend_service_health(project, region, backend_service, resource_group_reference_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8358
+ command = make_simple_command(:post, '{project}/regions/{region}/backendServices/{backendService}/getHealth', options)
8359
+ command.request_representation = Google::Apis::ComputeBeta::ResourceGroupReference::Representation
8360
+ command.request_object = resource_group_reference_object
8361
+ command.response_representation = Google::Apis::ComputeBeta::BackendServiceGroupHealth::Representation
8362
+ command.response_class = Google::Apis::ComputeBeta::BackendServiceGroupHealth
8363
+ command.params['project'] = project unless project.nil?
8364
+ command.params['region'] = region unless region.nil?
8365
+ command.params['backendService'] = backend_service unless backend_service.nil?
8366
+ command.query['fields'] = fields unless fields.nil?
8367
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8368
+ command.query['userIp'] = user_ip unless user_ip.nil?
8369
+ execute_or_queue_command(command, &block)
8370
+ end
8371
+
8372
+ # Creates a regional BackendService resource in the specified project using the
8373
+ # data included in the request. There are several restrictions and guidelines to
8374
+ # keep in mind when creating a regional backend service. Read Restrictions and
8375
+ # Guidelines for more information.
8376
+ # @param [String] project
8377
+ # Project ID for this request.
8378
+ # @param [String] region
8379
+ # Name of the region scoping this request.
8380
+ # @param [Google::Apis::ComputeBeta::BackendService] backend_service_object
8381
+ # @param [String] fields
8382
+ # Selector specifying which fields to include in a partial response.
8383
+ # @param [String] quota_user
8384
+ # Available to use for quota purposes for server-side applications. Can be any
8385
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8386
+ # Overrides userIp if both are provided.
8387
+ # @param [String] user_ip
8388
+ # IP address of the site where the request originates. Use this if you want to
8389
+ # enforce per-user limits.
8390
+ # @param [Google::Apis::RequestOptions] options
8391
+ # Request-specific options
8392
+ #
8393
+ # @yield [result, err] Result & error if block supplied
8394
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
8395
+ # @yieldparam err [StandardError] error object if request failed
8396
+ #
8397
+ # @return [Google::Apis::ComputeBeta::Operation]
8398
+ #
8399
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8400
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8401
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8402
+ def insert_region_backend_service(project, region, backend_service_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8403
+ command = make_simple_command(:post, '{project}/regions/{region}/backendServices', options)
8404
+ command.request_representation = Google::Apis::ComputeBeta::BackendService::Representation
8405
+ command.request_object = backend_service_object
8406
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
8407
+ command.response_class = Google::Apis::ComputeBeta::Operation
8408
+ command.params['project'] = project unless project.nil?
8409
+ command.params['region'] = region unless region.nil?
8410
+ command.query['fields'] = fields unless fields.nil?
8411
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8412
+ command.query['userIp'] = user_ip unless user_ip.nil?
8413
+ execute_or_queue_command(command, &block)
8414
+ end
8415
+
8416
+ # Retrieves the list of regional BackendService resources available to the
8417
+ # specified project in the given region.
8418
+ # @param [String] project
8419
+ # Project ID for this request.
8420
+ # @param [String] region
8421
+ # Name of the region scoping this request.
8422
+ # @param [String] filter
8423
+ # Sets a filter expression for filtering listed resources, in the form filter=`
8424
+ # expression`. Your `expression` must be in the format: field_name
8425
+ # comparison_string literal_string.
8426
+ # The field_name is the name of the field you want to compare. Only atomic field
8427
+ # types are supported (string, number, boolean). The comparison_string must be
8428
+ # either eq (equals) or ne (not equals). The literal_string is the string value
8429
+ # to filter to. The literal value must be valid for the type of field you are
8430
+ # filtering by (string, number, boolean). For string fields, the literal value
8431
+ # is interpreted as a regular expression using RE2 syntax. The literal value
8432
+ # must match the entire field.
8433
+ # For example, to filter for instances that do not have a name of example-
8434
+ # instance, you would use filter=name ne example-instance.
8435
+ # You can filter on nested fields. For example, you could filter on instances
8436
+ # that have set the scheduling.automaticRestart field to true. Use filtering on
8437
+ # nested fields to take advantage of labels to organize and search for results
8438
+ # based on label values.
8439
+ # To filter on multiple expressions, provide each separate expression within
8440
+ # parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
8441
+ # central1-f). Multiple expressions are treated as AND expressions, meaning that
8442
+ # resources must match all expressions to pass the filters.
8443
+ # @param [Fixnum] max_results
8444
+ # The maximum number of results per page that should be returned. If the number
8445
+ # of available results is larger than maxResults, Compute Engine returns a
8446
+ # nextPageToken that can be used to get the next page of results in subsequent
8447
+ # list requests.
8448
+ # @param [String] order_by
8449
+ # Sorts list results by a certain order. By default, results are returned in
8450
+ # alphanumerical order based on the resource name.
8451
+ # You can also sort results in descending order based on the creation timestamp
8452
+ # using orderBy="creationTimestamp desc". This sorts results based on the
8453
+ # creationTimestamp field in reverse chronological order (newest result first).
8454
+ # Use this to sort resources like operations so that the newest operation is
8455
+ # returned first.
8456
+ # Currently, only sorting by name or creationTimestamp desc is supported.
8457
+ # @param [String] page_token
8458
+ # Specifies a page token to use. Set pageToken to the nextPageToken returned by
8459
+ # a previous list request to get the next page of results.
8460
+ # @param [String] fields
8461
+ # Selector specifying which fields to include in a partial response.
8462
+ # @param [String] quota_user
8463
+ # Available to use for quota purposes for server-side applications. Can be any
8464
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8465
+ # Overrides userIp if both are provided.
8466
+ # @param [String] user_ip
8467
+ # IP address of the site where the request originates. Use this if you want to
8468
+ # enforce per-user limits.
8469
+ # @param [Google::Apis::RequestOptions] options
8470
+ # Request-specific options
8471
+ #
8472
+ # @yield [result, err] Result & error if block supplied
8473
+ # @yieldparam result [Google::Apis::ComputeBeta::BackendServiceList] parsed result object
8474
+ # @yieldparam err [StandardError] error object if request failed
8475
+ #
8476
+ # @return [Google::Apis::ComputeBeta::BackendServiceList]
8477
+ #
8478
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8479
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8480
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8481
+ def list_region_backend_services(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8482
+ command = make_simple_command(:get, '{project}/regions/{region}/backendServices', options)
8483
+ command.response_representation = Google::Apis::ComputeBeta::BackendServiceList::Representation
8484
+ command.response_class = Google::Apis::ComputeBeta::BackendServiceList
8485
+ command.params['project'] = project unless project.nil?
8486
+ command.params['region'] = region unless region.nil?
8487
+ command.query['filter'] = filter unless filter.nil?
8488
+ command.query['maxResults'] = max_results unless max_results.nil?
8489
+ command.query['orderBy'] = order_by unless order_by.nil?
8490
+ command.query['pageToken'] = page_token unless page_token.nil?
8491
+ command.query['fields'] = fields unless fields.nil?
8492
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8493
+ command.query['userIp'] = user_ip unless user_ip.nil?
8494
+ execute_or_queue_command(command, &block)
8495
+ end
8496
+
8497
+ # Update the entire content of the regional BackendService resource. There are
8498
+ # several restrictions and guidelines to keep in mind when updating a backend
8499
+ # service. Read Restrictions and Guidelines for more information. This method
8500
+ # supports patch semantics.
8501
+ # @param [String] project
8502
+ # Project ID for this request.
8503
+ # @param [String] region
8504
+ # Name of the region scoping this request.
8505
+ # @param [String] backend_service
8506
+ # Name of the BackendService resource to update.
8507
+ # @param [Google::Apis::ComputeBeta::BackendService] backend_service_object
8508
+ # @param [String] fields
8509
+ # Selector specifying which fields to include in a partial response.
8510
+ # @param [String] quota_user
8511
+ # Available to use for quota purposes for server-side applications. Can be any
8512
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8513
+ # Overrides userIp if both are provided.
8514
+ # @param [String] user_ip
8515
+ # IP address of the site where the request originates. Use this if you want to
8516
+ # enforce per-user limits.
8517
+ # @param [Google::Apis::RequestOptions] options
8518
+ # Request-specific options
8519
+ #
8520
+ # @yield [result, err] Result & error if block supplied
8521
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
8522
+ # @yieldparam err [StandardError] error object if request failed
8523
+ #
8524
+ # @return [Google::Apis::ComputeBeta::Operation]
8525
+ #
8526
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8527
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8528
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8529
+ def patch_region_backend_service(project, region, backend_service, backend_service_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8530
+ command = make_simple_command(:patch, '{project}/regions/{region}/backendServices/{backendService}', options)
8531
+ command.request_representation = Google::Apis::ComputeBeta::BackendService::Representation
8532
+ command.request_object = backend_service_object
8533
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
8534
+ command.response_class = Google::Apis::ComputeBeta::Operation
8535
+ command.params['project'] = project unless project.nil?
8536
+ command.params['region'] = region unless region.nil?
8537
+ command.params['backendService'] = backend_service unless backend_service.nil?
8538
+ command.query['fields'] = fields unless fields.nil?
8539
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8540
+ command.query['userIp'] = user_ip unless user_ip.nil?
8541
+ execute_or_queue_command(command, &block)
8542
+ end
8543
+
8544
+ # Returns permissions that a caller has on the specified resource.
8545
+ # @param [String] project
8546
+ # Project ID for this request.
8547
+ # @param [String] region
8548
+ # The name of the region for this request.
8549
+ # @param [String] resource
8550
+ # Name of the resource for this request.
8551
+ # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
8552
+ # @param [String] fields
8553
+ # Selector specifying which fields to include in a partial response.
8554
+ # @param [String] quota_user
8555
+ # Available to use for quota purposes for server-side applications. Can be any
8556
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8557
+ # Overrides userIp if both are provided.
8558
+ # @param [String] user_ip
8559
+ # IP address of the site where the request originates. Use this if you want to
8560
+ # enforce per-user limits.
8561
+ # @param [Google::Apis::RequestOptions] options
8562
+ # Request-specific options
8563
+ #
8564
+ # @yield [result, err] Result & error if block supplied
8565
+ # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
8566
+ # @yieldparam err [StandardError] error object if request failed
8567
+ #
8568
+ # @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
8569
+ #
8570
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8571
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8572
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8573
+ def test_region_backend_service_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8574
+ command = make_simple_command(:post, '{project}/regions/{region}/backendServices/{resource}/testIamPermissions', options)
8575
+ command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
8576
+ command.request_object = test_permissions_request_object
8577
+ command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
8578
+ command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
8579
+ command.params['project'] = project unless project.nil?
8580
+ command.params['region'] = region unless region.nil?
8581
+ command.params['resource'] = resource unless resource.nil?
8582
+ command.query['fields'] = fields unless fields.nil?
8583
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8584
+ command.query['userIp'] = user_ip unless user_ip.nil?
8585
+ execute_or_queue_command(command, &block)
8586
+ end
8587
+
8588
+ # Update the entire content of the regional BackendService resource. There are
8589
+ # several restrictions and guidelines to keep in mind when updating a backend
8590
+ # service. Read Restrictions and Guidelines for more information.
8591
+ # @param [String] project
8592
+ # Project ID for this request.
8593
+ # @param [String] region
8594
+ # Name of the region scoping this request.
8595
+ # @param [String] backend_service
8596
+ # Name of the BackendService resource to update.
8597
+ # @param [Google::Apis::ComputeBeta::BackendService] backend_service_object
8598
+ # @param [String] fields
8599
+ # Selector specifying which fields to include in a partial response.
8600
+ # @param [String] quota_user
8601
+ # Available to use for quota purposes for server-side applications. Can be any
8602
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8603
+ # Overrides userIp if both are provided.
8604
+ # @param [String] user_ip
8605
+ # IP address of the site where the request originates. Use this if you want to
8606
+ # enforce per-user limits.
8607
+ # @param [Google::Apis::RequestOptions] options
8608
+ # Request-specific options
8609
+ #
8610
+ # @yield [result, err] Result & error if block supplied
8611
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
8612
+ # @yieldparam err [StandardError] error object if request failed
8613
+ #
8614
+ # @return [Google::Apis::ComputeBeta::Operation]
8615
+ #
8616
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8617
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8618
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8619
+ def update_region_backend_service(project, region, backend_service, backend_service_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8620
+ command = make_simple_command(:put, '{project}/regions/{region}/backendServices/{backendService}', options)
8621
+ command.request_representation = Google::Apis::ComputeBeta::BackendService::Representation
8622
+ command.request_object = backend_service_object
8623
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
8624
+ command.response_class = Google::Apis::ComputeBeta::Operation
8625
+ command.params['project'] = project unless project.nil?
8626
+ command.params['region'] = region unless region.nil?
8627
+ command.params['backendService'] = backend_service unless backend_service.nil?
8628
+ command.query['fields'] = fields unless fields.nil?
8629
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8630
+ command.query['userIp'] = user_ip unless user_ip.nil?
8631
+ execute_or_queue_command(command, &block)
8632
+ end
8633
+
8169
8634
  # Schedules a group action to remove the specified instances from the managed
8170
8635
  # instance group. Abandoning an instance does not delete the instance, but it
8171
8636
  # does remove the instance from any target pools that are applied by the managed