google-api-client 0.14.3 → 0.14.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/generated/google/apis/acceleratedmobilepageurl_v1.rb +1 -1
- data/generated/google/apis/analytics_v3/service.rb +1 -1
- data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +1 -1
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +77 -9
- data/generated/google/apis/compute_alpha/representations.rb +33 -0
- data/generated/google/apis/compute_alpha/service.rb +122 -0
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +57 -9
- data/generated/google/apis/compute_beta/representations.rb +5 -0
- data/generated/google/apis/compute_beta/service.rb +180 -0
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +30 -9
- data/generated/google/apis/compute_v1/representations.rb +4 -0
- data/generated/google/apis/compute_v1/service.rb +1 -1
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +137 -8
- data/generated/google/apis/content_v2/representations.rb +38 -0
- data/generated/google/apis/content_v2/service.rb +13 -1
- data/generated/google/apis/content_v2sandbox.rb +1 -1
- data/generated/google/apis/content_v2sandbox/classes.rb +9 -1
- data/generated/google/apis/resourceviews_v1beta1/service.rb +1 -1
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +47 -17
- data/generated/google/apis/servicecontrol_v1/representations.rb +16 -1
- data/generated/google/apis/servicecontrol_v1/service.rb +10 -18
- data/generated/google/apis/taskqueue_v1beta2/service.rb +1 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f4a5db27f0cfe4fbf1a568e5098b98229ecb808
|
4
|
+
data.tar.gz: 43e812085fc023aa6bdc2b92a8ddea4a4ae39895
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35fb03817bd24cdcfb020f86952c744ab44b4257eed706d5f01e3a970999c4f217af83b77f36f6b340b331efc3ac6d7b7e6691151de17e2d863566535e987512
|
7
|
+
data.tar.gz: cb7302602941b3abe8d0cd07f0316fba9b94aab524f7a76c5afd267b3b656deb0b058ff7a60dc36de9e80a741f0ea678e3565af297ff498d14473a4ba7de916e
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
# 0.14.4
|
2
|
+
* Backwards compatible changes:
|
3
|
+
* Updated `acceleratedmobilepageurl_v1`
|
4
|
+
* Updated `compute_alpha`
|
5
|
+
* Updated `compute_beta`
|
6
|
+
* Updated `compute_v1`
|
7
|
+
* Updated `content_v2`
|
8
|
+
* Updated `content_v2sandbox`
|
9
|
+
* Updated `servicecontrol_v1`
|
10
|
+
|
1
11
|
# 0.14.3
|
2
12
|
|
3
13
|
# 0.14.2
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://developers.google.com/compute/docs/reference/latest/
|
26
26
|
module ComputeAlpha
|
27
27
|
VERSION = 'Alpha'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20170908'
|
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'
|
@@ -536,7 +536,7 @@ module Google
|
|
536
536
|
class Address
|
537
537
|
include Google::Apis::Core::Hashable
|
538
538
|
|
539
|
-
# The static
|
539
|
+
# The static IP address represented by this resource.
|
540
540
|
# Corresponds to the JSON property `address`
|
541
541
|
# @return [String]
|
542
542
|
attr_accessor :address
|
@@ -2411,6 +2411,11 @@ module Google
|
|
2411
2411
|
# @return [Fixnum]
|
2412
2412
|
attr_accessor :affinity_cookie_ttl_sec
|
2413
2413
|
|
2414
|
+
# Configuration of a App Engine backend.
|
2415
|
+
# Corresponds to the JSON property `appEngineBackend`
|
2416
|
+
# @return [Google::Apis::ComputeAlpha::BackendServiceAppEngineBackend]
|
2417
|
+
attr_accessor :app_engine_backend
|
2418
|
+
|
2414
2419
|
# The list of backends that serve this BackendService.
|
2415
2420
|
# Corresponds to the JSON property `backends`
|
2416
2421
|
# @return [Array<Google::Apis::ComputeAlpha::Backend>]
|
@@ -2421,6 +2426,11 @@ module Google
|
|
2421
2426
|
# @return [Google::Apis::ComputeAlpha::BackendServiceCdnPolicy]
|
2422
2427
|
attr_accessor :cdn_policy
|
2423
2428
|
|
2429
|
+
# Configuration of a Cloud Function backend.
|
2430
|
+
# Corresponds to the JSON property `cloudFunctionBackend`
|
2431
|
+
# @return [Google::Apis::ComputeAlpha::BackendServiceCloudFunctionBackend]
|
2432
|
+
attr_accessor :cloud_function_backend
|
2433
|
+
|
2424
2434
|
# Message containing connection draining configuration.
|
2425
2435
|
# Corresponds to the JSON property `connectionDraining`
|
2426
2436
|
# @return [Google::Apis::ComputeAlpha::ConnectionDraining]
|
@@ -2571,8 +2581,10 @@ module Google
|
|
2571
2581
|
# Update properties of this object
|
2572
2582
|
def update!(**args)
|
2573
2583
|
@affinity_cookie_ttl_sec = args[:affinity_cookie_ttl_sec] if args.key?(:affinity_cookie_ttl_sec)
|
2584
|
+
@app_engine_backend = args[:app_engine_backend] if args.key?(:app_engine_backend)
|
2574
2585
|
@backends = args[:backends] if args.key?(:backends)
|
2575
2586
|
@cdn_policy = args[:cdn_policy] if args.key?(:cdn_policy)
|
2587
|
+
@cloud_function_backend = args[:cloud_function_backend] if args.key?(:cloud_function_backend)
|
2576
2588
|
@connection_draining = args[:connection_draining] if args.key?(:connection_draining)
|
2577
2589
|
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
|
2578
2590
|
@custom_request_headers = args[:custom_request_headers] if args.key?(:custom_request_headers)
|
@@ -2714,6 +2726,39 @@ module Google
|
|
2714
2726
|
end
|
2715
2727
|
end
|
2716
2728
|
|
2729
|
+
# Configuration of a App Engine backend.
|
2730
|
+
class BackendServiceAppEngineBackend
|
2731
|
+
include Google::Apis::Core::Hashable
|
2732
|
+
|
2733
|
+
# Optional. App Engine app service name.
|
2734
|
+
# Corresponds to the JSON property `appEngineService`
|
2735
|
+
# @return [String]
|
2736
|
+
attr_accessor :app_engine_service
|
2737
|
+
|
2738
|
+
# Required. Project ID of the project hosting the app. This is the project ID of
|
2739
|
+
# this project. Reference to another project is not allowed.
|
2740
|
+
# Corresponds to the JSON property `targetProject`
|
2741
|
+
# @return [String]
|
2742
|
+
attr_accessor :target_project
|
2743
|
+
|
2744
|
+
# Optional. Version of App Engine app service. When empty, App Engine will do
|
2745
|
+
# its normal traffic split.
|
2746
|
+
# Corresponds to the JSON property `version`
|
2747
|
+
# @return [String]
|
2748
|
+
attr_accessor :version
|
2749
|
+
|
2750
|
+
def initialize(**args)
|
2751
|
+
update!(**args)
|
2752
|
+
end
|
2753
|
+
|
2754
|
+
# Update properties of this object
|
2755
|
+
def update!(**args)
|
2756
|
+
@app_engine_service = args[:app_engine_service] if args.key?(:app_engine_service)
|
2757
|
+
@target_project = args[:target_project] if args.key?(:target_project)
|
2758
|
+
@version = args[:version] if args.key?(:version)
|
2759
|
+
end
|
2760
|
+
end
|
2761
|
+
|
2717
2762
|
# Message containing Cloud CDN configuration for a backend service.
|
2718
2763
|
class BackendServiceCdnPolicy
|
2719
2764
|
include Google::Apis::Core::Hashable
|
@@ -2752,6 +2797,32 @@ module Google
|
|
2752
2797
|
end
|
2753
2798
|
end
|
2754
2799
|
|
2800
|
+
# Configuration of a Cloud Function backend.
|
2801
|
+
class BackendServiceCloudFunctionBackend
|
2802
|
+
include Google::Apis::Core::Hashable
|
2803
|
+
|
2804
|
+
# Required. A cloud function name. Special value ?*? represents all cloud
|
2805
|
+
# functions in the project.
|
2806
|
+
# Corresponds to the JSON property `functionName`
|
2807
|
+
# @return [String]
|
2808
|
+
attr_accessor :function_name
|
2809
|
+
|
2810
|
+
# Required. Project ID of the project hosting the cloud function.
|
2811
|
+
# Corresponds to the JSON property `targetProject`
|
2812
|
+
# @return [String]
|
2813
|
+
attr_accessor :target_project
|
2814
|
+
|
2815
|
+
def initialize(**args)
|
2816
|
+
update!(**args)
|
2817
|
+
end
|
2818
|
+
|
2819
|
+
# Update properties of this object
|
2820
|
+
def update!(**args)
|
2821
|
+
@function_name = args[:function_name] if args.key?(:function_name)
|
2822
|
+
@target_project = args[:target_project] if args.key?(:target_project)
|
2823
|
+
end
|
2824
|
+
end
|
2825
|
+
|
2755
2826
|
#
|
2756
2827
|
class BackendServiceFailoverPolicy
|
2757
2828
|
include Google::Apis::Core::Hashable
|
@@ -6023,8 +6094,7 @@ module Google
|
|
6023
6094
|
|
6024
6095
|
# The type of supported feature. Currently only VIRTIO_SCSI_MULTIQUEUE is
|
6025
6096
|
# supported. For newer Windows images, the server might also populate this
|
6026
|
-
# property with the value WINDOWS to indicate that this is a Windows image.
|
6027
|
-
# value is purely informational and does not enable or disable any features.
|
6097
|
+
# property with the value WINDOWS to indicate that this is a Windows image.
|
6028
6098
|
# Corresponds to the JSON property `type`
|
6029
6099
|
# @return [String]
|
6030
6100
|
attr_accessor :type
|
@@ -8000,9 +8070,8 @@ module Google
|
|
8000
8070
|
# can only enable VIRTIO_SCSI_MULTIQUEUE on images with driver version 1.2.0.
|
8001
8071
|
# 1621 or higher. Linux images with kernel versions 3.17 and higher will support
|
8002
8072
|
# VIRTIO_SCSI_MULTIQUEUE.
|
8003
|
-
# For
|
8004
|
-
# value WINDOWS
|
8005
|
-
# informational and does not enable or disable any features.
|
8073
|
+
# For newer Windows images, the server might also populate this property with
|
8074
|
+
# the value WINDOWS to indicate that this is a Windows image.
|
8006
8075
|
# Corresponds to the JSON property `guestOsFeatures`
|
8007
8076
|
# @return [Array<Google::Apis::ComputeAlpha::GuestOsFeature>]
|
8008
8077
|
attr_accessor :guest_os_features
|
@@ -19352,9 +19421,8 @@ module Google
|
|
19352
19421
|
# @return [String]
|
19353
19422
|
attr_accessor :status
|
19354
19423
|
|
19355
|
-
# [Output Only] A size of the
|
19356
|
-
#
|
19357
|
-
# deletion.
|
19424
|
+
# [Output Only] A size of the storage used by the snapshot. As snapshots share
|
19425
|
+
# storage, this number is expected to change with snapshot creation/deletion.
|
19358
19426
|
# Corresponds to the JSON property `storageBytes`
|
19359
19427
|
# @return [Fixnum]
|
19360
19428
|
attr_accessor :storage_bytes
|
@@ -352,12 +352,24 @@ module Google
|
|
352
352
|
include Google::Apis::Core::JsonObjectSupport
|
353
353
|
end
|
354
354
|
|
355
|
+
class BackendServiceAppEngineBackend
|
356
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
357
|
+
|
358
|
+
include Google::Apis::Core::JsonObjectSupport
|
359
|
+
end
|
360
|
+
|
355
361
|
class BackendServiceCdnPolicy
|
356
362
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
357
363
|
|
358
364
|
include Google::Apis::Core::JsonObjectSupport
|
359
365
|
end
|
360
366
|
|
367
|
+
class BackendServiceCloudFunctionBackend
|
368
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
369
|
+
|
370
|
+
include Google::Apis::Core::JsonObjectSupport
|
371
|
+
end
|
372
|
+
|
361
373
|
class BackendServiceFailoverPolicy
|
362
374
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
363
375
|
|
@@ -4001,10 +4013,14 @@ module Google
|
|
4001
4013
|
# @private
|
4002
4014
|
class Representation < Google::Apis::Core::JsonRepresentation
|
4003
4015
|
property :affinity_cookie_ttl_sec, as: 'affinityCookieTtlSec'
|
4016
|
+
property :app_engine_backend, as: 'appEngineBackend', class: Google::Apis::ComputeAlpha::BackendServiceAppEngineBackend, decorator: Google::Apis::ComputeAlpha::BackendServiceAppEngineBackend::Representation
|
4017
|
+
|
4004
4018
|
collection :backends, as: 'backends', class: Google::Apis::ComputeAlpha::Backend, decorator: Google::Apis::ComputeAlpha::Backend::Representation
|
4005
4019
|
|
4006
4020
|
property :cdn_policy, as: 'cdnPolicy', class: Google::Apis::ComputeAlpha::BackendServiceCdnPolicy, decorator: Google::Apis::ComputeAlpha::BackendServiceCdnPolicy::Representation
|
4007
4021
|
|
4022
|
+
property :cloud_function_backend, as: 'cloudFunctionBackend', class: Google::Apis::ComputeAlpha::BackendServiceCloudFunctionBackend, decorator: Google::Apis::ComputeAlpha::BackendServiceCloudFunctionBackend::Representation
|
4023
|
+
|
4008
4024
|
property :connection_draining, as: 'connectionDraining', class: Google::Apis::ComputeAlpha::ConnectionDraining, decorator: Google::Apis::ComputeAlpha::ConnectionDraining::Representation
|
4009
4025
|
|
4010
4026
|
property :creation_timestamp, as: 'creationTimestamp'
|
@@ -4064,6 +4080,15 @@ module Google
|
|
4064
4080
|
end
|
4065
4081
|
end
|
4066
4082
|
|
4083
|
+
class BackendServiceAppEngineBackend
|
4084
|
+
# @private
|
4085
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
4086
|
+
property :app_engine_service, as: 'appEngineService'
|
4087
|
+
property :target_project, as: 'targetProject'
|
4088
|
+
property :version, as: 'version'
|
4089
|
+
end
|
4090
|
+
end
|
4091
|
+
|
4067
4092
|
class BackendServiceCdnPolicy
|
4068
4093
|
# @private
|
4069
4094
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -4074,6 +4099,14 @@ module Google
|
|
4074
4099
|
end
|
4075
4100
|
end
|
4076
4101
|
|
4102
|
+
class BackendServiceCloudFunctionBackend
|
4103
|
+
# @private
|
4104
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
4105
|
+
property :function_name, as: 'functionName'
|
4106
|
+
property :target_project, as: 'targetProject'
|
4107
|
+
end
|
4108
|
+
end
|
4109
|
+
|
4077
4110
|
class BackendServiceFailoverPolicy
|
4078
4111
|
# @private
|
4079
4112
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -12256,6 +12256,128 @@ module Google
|
|
12256
12256
|
execute_or_queue_command(command, &block)
|
12257
12257
|
end
|
12258
12258
|
|
12259
|
+
# Gets the access control policy for a resource. May be empty if no such policy
|
12260
|
+
# or resource exists.
|
12261
|
+
# @param [String] project
|
12262
|
+
# Project ID for this request.
|
12263
|
+
# @param [String] resource
|
12264
|
+
# Name of the resource for this request.
|
12265
|
+
# @param [String] fields
|
12266
|
+
# Selector specifying which fields to include in a partial response.
|
12267
|
+
# @param [String] quota_user
|
12268
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
12269
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
12270
|
+
# Overrides userIp if both are provided.
|
12271
|
+
# @param [String] user_ip
|
12272
|
+
# IP address of the site where the request originates. Use this if you want to
|
12273
|
+
# enforce per-user limits.
|
12274
|
+
# @param [Google::Apis::RequestOptions] options
|
12275
|
+
# Request-specific options
|
12276
|
+
#
|
12277
|
+
# @yield [result, err] Result & error if block supplied
|
12278
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
|
12279
|
+
# @yieldparam err [StandardError] error object if request failed
|
12280
|
+
#
|
12281
|
+
# @return [Google::Apis::ComputeAlpha::Policy]
|
12282
|
+
#
|
12283
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
12284
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
12285
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
12286
|
+
def get_license_code_iam_policy(project, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
12287
|
+
command = make_simple_command(:get, '{project}/global/licenseCodes/{resource}/getIamPolicy', options)
|
12288
|
+
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
12289
|
+
command.response_class = Google::Apis::ComputeAlpha::Policy
|
12290
|
+
command.params['project'] = project unless project.nil?
|
12291
|
+
command.params['resource'] = resource unless resource.nil?
|
12292
|
+
command.query['fields'] = fields unless fields.nil?
|
12293
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
12294
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
12295
|
+
execute_or_queue_command(command, &block)
|
12296
|
+
end
|
12297
|
+
|
12298
|
+
# Sets the access control policy on the specified resource. Replaces any
|
12299
|
+
# existing policy.
|
12300
|
+
# @param [String] project
|
12301
|
+
# Project ID for this request.
|
12302
|
+
# @param [String] resource
|
12303
|
+
# Name of the resource for this request.
|
12304
|
+
# @param [Google::Apis::ComputeAlpha::Policy] policy_object
|
12305
|
+
# @param [String] fields
|
12306
|
+
# Selector specifying which fields to include in a partial response.
|
12307
|
+
# @param [String] quota_user
|
12308
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
12309
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
12310
|
+
# Overrides userIp if both are provided.
|
12311
|
+
# @param [String] user_ip
|
12312
|
+
# IP address of the site where the request originates. Use this if you want to
|
12313
|
+
# enforce per-user limits.
|
12314
|
+
# @param [Google::Apis::RequestOptions] options
|
12315
|
+
# Request-specific options
|
12316
|
+
#
|
12317
|
+
# @yield [result, err] Result & error if block supplied
|
12318
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
|
12319
|
+
# @yieldparam err [StandardError] error object if request failed
|
12320
|
+
#
|
12321
|
+
# @return [Google::Apis::ComputeAlpha::Policy]
|
12322
|
+
#
|
12323
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
12324
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
12325
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
12326
|
+
def set_license_code_iam_policy(project, resource, policy_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
12327
|
+
command = make_simple_command(:post, '{project}/global/licenseCodes/{resource}/setIamPolicy', options)
|
12328
|
+
command.request_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
12329
|
+
command.request_object = policy_object
|
12330
|
+
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
12331
|
+
command.response_class = Google::Apis::ComputeAlpha::Policy
|
12332
|
+
command.params['project'] = project unless project.nil?
|
12333
|
+
command.params['resource'] = resource unless resource.nil?
|
12334
|
+
command.query['fields'] = fields unless fields.nil?
|
12335
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
12336
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
12337
|
+
execute_or_queue_command(command, &block)
|
12338
|
+
end
|
12339
|
+
|
12340
|
+
# Returns permissions that a caller has on the specified resource.
|
12341
|
+
# @param [String] project
|
12342
|
+
# Project ID for this request.
|
12343
|
+
# @param [String] resource
|
12344
|
+
# Name of the resource for this request.
|
12345
|
+
# @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
|
12346
|
+
# @param [String] fields
|
12347
|
+
# Selector specifying which fields to include in a partial response.
|
12348
|
+
# @param [String] quota_user
|
12349
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
12350
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
12351
|
+
# Overrides userIp if both are provided.
|
12352
|
+
# @param [String] user_ip
|
12353
|
+
# IP address of the site where the request originates. Use this if you want to
|
12354
|
+
# enforce per-user limits.
|
12355
|
+
# @param [Google::Apis::RequestOptions] options
|
12356
|
+
# Request-specific options
|
12357
|
+
#
|
12358
|
+
# @yield [result, err] Result & error if block supplied
|
12359
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
|
12360
|
+
# @yieldparam err [StandardError] error object if request failed
|
12361
|
+
#
|
12362
|
+
# @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
|
12363
|
+
#
|
12364
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
12365
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
12366
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
12367
|
+
def test_license_code_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
12368
|
+
command = make_simple_command(:post, '{project}/global/licenseCodes/{resource}/testIamPermissions', options)
|
12369
|
+
command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
|
12370
|
+
command.request_object = test_permissions_request_object
|
12371
|
+
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
|
12372
|
+
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
|
12373
|
+
command.params['project'] = project unless project.nil?
|
12374
|
+
command.params['resource'] = resource unless resource.nil?
|
12375
|
+
command.query['fields'] = fields unless fields.nil?
|
12376
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
12377
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
12378
|
+
execute_or_queue_command(command, &block)
|
12379
|
+
end
|
12380
|
+
|
12259
12381
|
# Deletes the specified license.
|
12260
12382
|
# @param [String] project
|
12261
12383
|
# Project ID for this request.
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://developers.google.com/compute/docs/reference/latest/
|
26
26
|
module ComputeBeta
|
27
27
|
VERSION = 'Beta'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20170908'
|
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'
|
@@ -473,6 +473,19 @@ module Google
|
|
473
473
|
# @return [String]
|
474
474
|
attr_accessor :nat_ip
|
475
475
|
|
476
|
+
# The DNS domain name for the public PTR record. This field can only be set when
|
477
|
+
# the set_public_ptr field is enabled.
|
478
|
+
# Corresponds to the JSON property `publicPtrDomainName`
|
479
|
+
# @return [String]
|
480
|
+
attr_accessor :public_ptr_domain_name
|
481
|
+
|
482
|
+
# Specifies whether a public DNS ?PTR? record should be created to map the
|
483
|
+
# external IP address of the instance to a DNS domain name.
|
484
|
+
# Corresponds to the JSON property `setPublicPtr`
|
485
|
+
# @return [Boolean]
|
486
|
+
attr_accessor :set_public_ptr
|
487
|
+
alias_method :set_public_ptr?, :set_public_ptr
|
488
|
+
|
476
489
|
# The type of configuration. The default and only option is ONE_TO_ONE_NAT.
|
477
490
|
# Corresponds to the JSON property `type`
|
478
491
|
# @return [String]
|
@@ -487,6 +500,8 @@ module Google
|
|
487
500
|
@kind = args[:kind] if args.key?(:kind)
|
488
501
|
@name = args[:name] if args.key?(:name)
|
489
502
|
@nat_ip = args[:nat_ip] if args.key?(:nat_ip)
|
503
|
+
@public_ptr_domain_name = args[:public_ptr_domain_name] if args.key?(:public_ptr_domain_name)
|
504
|
+
@set_public_ptr = args[:set_public_ptr] if args.key?(:set_public_ptr)
|
490
505
|
@type = args[:type] if args.key?(:type)
|
491
506
|
end
|
492
507
|
end
|
@@ -495,7 +510,7 @@ module Google
|
|
495
510
|
class Address
|
496
511
|
include Google::Apis::Core::Hashable
|
497
512
|
|
498
|
-
# The static
|
513
|
+
# The static IP address represented by this resource.
|
499
514
|
# Corresponds to the JSON property `address`
|
500
515
|
# @return [String]
|
501
516
|
attr_accessor :address
|
@@ -5597,8 +5612,7 @@ module Google
|
|
5597
5612
|
|
5598
5613
|
# The type of supported feature. Currently only VIRTIO_SCSI_MULTIQUEUE is
|
5599
5614
|
# supported. For newer Windows images, the server might also populate this
|
5600
|
-
# property with the value WINDOWS to indicate that this is a Windows image.
|
5601
|
-
# value is purely informational and does not enable or disable any features.
|
5615
|
+
# property with the value WINDOWS to indicate that this is a Windows image.
|
5602
5616
|
# Corresponds to the JSON property `type`
|
5603
5617
|
# @return [String]
|
5604
5618
|
attr_accessor :type
|
@@ -6537,9 +6551,8 @@ module Google
|
|
6537
6551
|
# can only enable VIRTIO_SCSI_MULTIQUEUE on images with driver version 1.2.0.
|
6538
6552
|
# 1621 or higher. Linux images with kernel versions 3.17 and higher will support
|
6539
6553
|
# VIRTIO_SCSI_MULTIQUEUE.
|
6540
|
-
# For
|
6541
|
-
# value WINDOWS
|
6542
|
-
# informational and does not enable or disable any features.
|
6554
|
+
# For newer Windows images, the server might also populate this property with
|
6555
|
+
# the value WINDOWS to indicate that this is a Windows image.
|
6543
6556
|
# Corresponds to the JSON property `guestOsFeatures`
|
6544
6557
|
# @return [Array<Google::Apis::ComputeBeta::GuestOsFeature>]
|
6545
6558
|
attr_accessor :guest_os_features
|
@@ -11677,6 +11690,14 @@ module Google
|
|
11677
11690
|
# @return [Array<Google::Apis::ComputeBeta::AliasIpRange>]
|
11678
11691
|
attr_accessor :alias_ip_ranges
|
11679
11692
|
|
11693
|
+
# Fingerprint hash of contents stored in this network interface. This field will
|
11694
|
+
# be ignored when inserting an Instance or adding a NetworkInterface. An up-to-
|
11695
|
+
# date fingerprint must be provided in order to update the NetworkInterface.
|
11696
|
+
# Corresponds to the JSON property `fingerprint`
|
11697
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
11698
|
+
# @return [String]
|
11699
|
+
attr_accessor :fingerprint
|
11700
|
+
|
11680
11701
|
# [Output Only] Type of the resource. Always compute#networkInterface for
|
11681
11702
|
# network interfaces.
|
11682
11703
|
# Corresponds to the JSON property `kind`
|
@@ -11733,6 +11754,7 @@ module Google
|
|
11733
11754
|
def update!(**args)
|
11734
11755
|
@access_configs = args[:access_configs] if args.key?(:access_configs)
|
11735
11756
|
@alias_ip_ranges = args[:alias_ip_ranges] if args.key?(:alias_ip_ranges)
|
11757
|
+
@fingerprint = args[:fingerprint] if args.key?(:fingerprint)
|
11736
11758
|
@kind = args[:kind] if args.key?(:kind)
|
11737
11759
|
@name = args[:name] if args.key?(:name)
|
11738
11760
|
@network = args[:network] if args.key?(:network)
|
@@ -15610,9 +15632,8 @@ module Google
|
|
15610
15632
|
# @return [String]
|
15611
15633
|
attr_accessor :status
|
15612
15634
|
|
15613
|
-
# [Output Only] A size of the
|
15614
|
-
#
|
15615
|
-
# deletion.
|
15635
|
+
# [Output Only] A size of the storage used by the snapshot. As snapshots share
|
15636
|
+
# storage, this number is expected to change with snapshot creation/deletion.
|
15616
15637
|
# Corresponds to the JSON property `storageBytes`
|
15617
15638
|
# @return [Fixnum]
|
15618
15639
|
attr_accessor :storage_bytes
|
@@ -15963,6 +15984,22 @@ module Google
|
|
15963
15984
|
class Subnetwork
|
15964
15985
|
include Google::Apis::Core::Hashable
|
15965
15986
|
|
15987
|
+
# Whether this subnetwork can conflict with static routes. Setting this to true
|
15988
|
+
# allows this subnetwork's primary and secondary ranges to conflict with routes
|
15989
|
+
# that have already been configured on the corresponding network. Static routes
|
15990
|
+
# will take precedence over the subnetwork route if the route prefix length is
|
15991
|
+
# at least as large as the subnetwork prefix length.
|
15992
|
+
# Also, packets destined to IPs within subnetwork may contain private/sensitive
|
15993
|
+
# data and are prevented from leaving the virtual network. Setting this field to
|
15994
|
+
# true will disable this feature.
|
15995
|
+
# The default value is false and applies to all existing subnetworks and
|
15996
|
+
# automatically created subnetworks.
|
15997
|
+
# This field cannot be set to true at resource creation time.
|
15998
|
+
# Corresponds to the JSON property `allowSubnetCidrRoutesOverlap`
|
15999
|
+
# @return [Boolean]
|
16000
|
+
attr_accessor :allow_subnet_cidr_routes_overlap
|
16001
|
+
alias_method :allow_subnet_cidr_routes_overlap?, :allow_subnet_cidr_routes_overlap
|
16002
|
+
|
15966
16003
|
# [Output Only] Creation timestamp in RFC3339 text format.
|
15967
16004
|
# Corresponds to the JSON property `creationTimestamp`
|
15968
16005
|
# @return [String]
|
@@ -15974,6 +16011,15 @@ module Google
|
|
15974
16011
|
# @return [String]
|
15975
16012
|
attr_accessor :description
|
15976
16013
|
|
16014
|
+
# Fingerprint of this resource. A hash of the contents stored in this object.
|
16015
|
+
# This field is used in optimistic locking. This field will be ignored when
|
16016
|
+
# inserting a Subnetwork. An up-to-date fingerprint must be provided in order to
|
16017
|
+
# update the Subnetwork.
|
16018
|
+
# Corresponds to the JSON property `fingerprint`
|
16019
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
16020
|
+
# @return [String]
|
16021
|
+
attr_accessor :fingerprint
|
16022
|
+
|
15977
16023
|
# [Output Only] The gateway address for default routes to reach destination
|
15978
16024
|
# addresses outside this subnetwork. This field can be set only at resource
|
15979
16025
|
# creation time.
|
@@ -16052,8 +16098,10 @@ module Google
|
|
16052
16098
|
|
16053
16099
|
# Update properties of this object
|
16054
16100
|
def update!(**args)
|
16101
|
+
@allow_subnet_cidr_routes_overlap = args[:allow_subnet_cidr_routes_overlap] if args.key?(:allow_subnet_cidr_routes_overlap)
|
16055
16102
|
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
|
16056
16103
|
@description = args[:description] if args.key?(:description)
|
16104
|
+
@fingerprint = args[:fingerprint] if args.key?(:fingerprint)
|
16057
16105
|
@gateway_address = args[:gateway_address] if args.key?(:gateway_address)
|
16058
16106
|
@id = args[:id] if args.key?(:id)
|
16059
16107
|
@ip_cidr_range = args[:ip_cidr_range] if args.key?(:ip_cidr_range)
|