google-api-client 0.21.0 → 0.21.1
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +19 -0
- data/generated/google/apis/analytics_v3/representations.rb +2 -0
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +872 -162
- data/generated/google/apis/compute_alpha/representations.rb +311 -19
- data/generated/google/apis/compute_alpha/service.rb +516 -60
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +61 -2
- data/generated/google/apis/compute_beta/representations.rb +18 -0
- data/generated/google/apis/compute_beta/service.rb +7 -8
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +199 -1
- data/generated/google/apis/compute_v1/representations.rb +81 -0
- data/generated/google/apis/compute_v1/service.rb +548 -5
- data/generated/google/apis/sourcerepo_v1.rb +1 -1
- data/generated/google/apis/sourcerepo_v1/classes.rb +160 -8
- data/generated/google/apis/sourcerepo_v1/representations.rb +63 -0
- data/generated/google/apis/sourcerepo_v1/service.rb +99 -0
- data/lib/google/apis/version.rb +1 -1
- metadata +2 -2
@@ -122,8 +122,7 @@ module Google
|
|
122
122
|
execute_or_queue_command(command, &block)
|
123
123
|
end
|
124
124
|
|
125
|
-
# Returns the specified accelerator type.
|
126
|
-
# types by making a list() request.
|
125
|
+
# Returns the specified accelerator type.
|
127
126
|
# @param [String] project
|
128
127
|
# Project ID for this request.
|
129
128
|
# @param [String] zone
|
@@ -1467,7 +1466,7 @@ module Google
|
|
1467
1466
|
# Project ID for this request.
|
1468
1467
|
# @param [String] resource
|
1469
1468
|
# Name of the resource for this request.
|
1470
|
-
# @param [Google::Apis::ComputeAlpha::
|
1469
|
+
# @param [Google::Apis::ComputeAlpha::GlobalSetPolicyRequest] global_set_policy_request_object
|
1471
1470
|
# @param [String] fields
|
1472
1471
|
# Selector specifying which fields to include in a partial response.
|
1473
1472
|
# @param [String] quota_user
|
@@ -1487,10 +1486,10 @@ module Google
|
|
1487
1486
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1488
1487
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1489
1488
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1490
|
-
def set_backend_bucket_iam_policy(project, resource,
|
1489
|
+
def set_backend_bucket_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1491
1490
|
command = make_simple_command(:post, '{project}/global/backendBuckets/{resource}/setIamPolicy', options)
|
1492
|
-
command.request_representation = Google::Apis::ComputeAlpha::
|
1493
|
-
command.request_object =
|
1491
|
+
command.request_representation = Google::Apis::ComputeAlpha::GlobalSetPolicyRequest::Representation
|
1492
|
+
command.request_object = global_set_policy_request_object
|
1494
1493
|
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
1495
1494
|
command.response_class = Google::Apis::ComputeAlpha::Policy
|
1496
1495
|
command.params['project'] = project unless project.nil?
|
@@ -2962,7 +2961,7 @@ module Google
|
|
2962
2961
|
# The name of the zone for this request.
|
2963
2962
|
# @param [String] resource
|
2964
2963
|
# Name of the resource for this request.
|
2965
|
-
# @param [Google::Apis::ComputeAlpha::
|
2964
|
+
# @param [Google::Apis::ComputeAlpha::ZoneSetPolicyRequest] zone_set_policy_request_object
|
2966
2965
|
# @param [String] fields
|
2967
2966
|
# Selector specifying which fields to include in a partial response.
|
2968
2967
|
# @param [String] quota_user
|
@@ -2982,10 +2981,10 @@ module Google
|
|
2982
2981
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2983
2982
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2984
2983
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2985
|
-
def set_disk_iam_policy(project, zone, resource,
|
2984
|
+
def set_disk_iam_policy(project, zone, resource, zone_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
2986
2985
|
command = make_simple_command(:post, '{project}/zones/{zone}/disks/{resource}/setIamPolicy', options)
|
2987
|
-
command.request_representation = Google::Apis::ComputeAlpha::
|
2988
|
-
command.request_object =
|
2986
|
+
command.request_representation = Google::Apis::ComputeAlpha::ZoneSetPolicyRequest::Representation
|
2987
|
+
command.request_object = zone_set_policy_request_object
|
2989
2988
|
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
2990
2989
|
command.response_class = Google::Apis::ComputeAlpha::Policy
|
2991
2990
|
command.params['project'] = project unless project.nil?
|
@@ -5811,7 +5810,7 @@ module Google
|
|
5811
5810
|
# The name of the zone for this request.
|
5812
5811
|
# @param [String] resource
|
5813
5812
|
# Name of the resource for this request.
|
5814
|
-
# @param [Google::Apis::ComputeAlpha::
|
5813
|
+
# @param [Google::Apis::ComputeAlpha::ZoneSetPolicyRequest] zone_set_policy_request_object
|
5815
5814
|
# @param [String] fields
|
5816
5815
|
# Selector specifying which fields to include in a partial response.
|
5817
5816
|
# @param [String] quota_user
|
@@ -5831,10 +5830,10 @@ module Google
|
|
5831
5830
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5832
5831
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5833
5832
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5834
|
-
def set_host_iam_policy(project, zone, resource,
|
5833
|
+
def set_host_iam_policy(project, zone, resource, zone_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
5835
5834
|
command = make_simple_command(:post, '{project}/zones/{zone}/hosts/{resource}/setIamPolicy', options)
|
5836
|
-
command.request_representation = Google::Apis::ComputeAlpha::
|
5837
|
-
command.request_object =
|
5835
|
+
command.request_representation = Google::Apis::ComputeAlpha::ZoneSetPolicyRequest::Representation
|
5836
|
+
command.request_object = zone_set_policy_request_object
|
5838
5837
|
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
5839
5838
|
command.response_class = Google::Apis::ComputeAlpha::Policy
|
5840
5839
|
command.params['project'] = project unless project.nil?
|
@@ -6932,7 +6931,7 @@ module Google
|
|
6932
6931
|
# Project ID for this request.
|
6933
6932
|
# @param [String] resource
|
6934
6933
|
# Name of the resource for this request.
|
6935
|
-
# @param [Google::Apis::ComputeAlpha::
|
6934
|
+
# @param [Google::Apis::ComputeAlpha::GlobalSetPolicyRequest] global_set_policy_request_object
|
6936
6935
|
# @param [String] fields
|
6937
6936
|
# Selector specifying which fields to include in a partial response.
|
6938
6937
|
# @param [String] quota_user
|
@@ -6952,10 +6951,10 @@ module Google
|
|
6952
6951
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6953
6952
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6954
6953
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6955
|
-
def set_image_iam_policy(project, resource,
|
6954
|
+
def set_image_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
6956
6955
|
command = make_simple_command(:post, '{project}/global/images/{resource}/setIamPolicy', options)
|
6957
|
-
command.request_representation = Google::Apis::ComputeAlpha::
|
6958
|
-
command.request_object =
|
6956
|
+
command.request_representation = Google::Apis::ComputeAlpha::GlobalSetPolicyRequest::Representation
|
6957
|
+
command.request_object = global_set_policy_request_object
|
6959
6958
|
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
6960
6959
|
command.response_class = Google::Apis::ComputeAlpha::Policy
|
6961
6960
|
command.params['project'] = project unless project.nil?
|
@@ -10166,7 +10165,7 @@ module Google
|
|
10166
10165
|
# The name of the zone for this request.
|
10167
10166
|
# @param [String] resource
|
10168
10167
|
# Name of the resource for this request.
|
10169
|
-
# @param [Google::Apis::ComputeAlpha::
|
10168
|
+
# @param [Google::Apis::ComputeAlpha::ZoneSetPolicyRequest] zone_set_policy_request_object
|
10170
10169
|
# @param [String] fields
|
10171
10170
|
# Selector specifying which fields to include in a partial response.
|
10172
10171
|
# @param [String] quota_user
|
@@ -10186,10 +10185,10 @@ module Google
|
|
10186
10185
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
10187
10186
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
10188
10187
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
10189
|
-
def set_instance_iam_policy(project, zone, resource,
|
10188
|
+
def set_instance_iam_policy(project, zone, resource, zone_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
10190
10189
|
command = make_simple_command(:post, '{project}/zones/{zone}/instances/{resource}/setIamPolicy', options)
|
10191
|
-
command.request_representation = Google::Apis::ComputeAlpha::
|
10192
|
-
command.request_object =
|
10190
|
+
command.request_representation = Google::Apis::ComputeAlpha::ZoneSetPolicyRequest::Representation
|
10191
|
+
command.request_object = zone_set_policy_request_object
|
10193
10192
|
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
10194
10193
|
command.response_class = Google::Apis::ComputeAlpha::Policy
|
10195
10194
|
command.params['project'] = project unless project.nil?
|
@@ -11564,7 +11563,7 @@ module Google
|
|
11564
11563
|
# The name of the region for this request.
|
11565
11564
|
# @param [String] resource
|
11566
11565
|
# Name of the resource for this request.
|
11567
|
-
# @param [Google::Apis::ComputeAlpha::
|
11566
|
+
# @param [Google::Apis::ComputeAlpha::RegionSetPolicyRequest] region_set_policy_request_object
|
11568
11567
|
# @param [String] fields
|
11569
11568
|
# Selector specifying which fields to include in a partial response.
|
11570
11569
|
# @param [String] quota_user
|
@@ -11584,10 +11583,10 @@ module Google
|
|
11584
11583
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
11585
11584
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
11586
11585
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
11587
|
-
def set_interconnect_attachment_iam_policy(project, region, resource,
|
11586
|
+
def set_interconnect_attachment_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
11588
11587
|
command = make_simple_command(:post, '{project}/regions/{region}/interconnectAttachments/{resource}/setIamPolicy', options)
|
11589
|
-
command.request_representation = Google::Apis::ComputeAlpha::
|
11590
|
-
command.request_object =
|
11588
|
+
command.request_representation = Google::Apis::ComputeAlpha::RegionSetPolicyRequest::Representation
|
11589
|
+
command.request_object = region_set_policy_request_object
|
11591
11590
|
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
11592
11591
|
command.response_class = Google::Apis::ComputeAlpha::Policy
|
11593
11592
|
command.params['project'] = project unless project.nil?
|
@@ -11892,7 +11891,7 @@ module Google
|
|
11892
11891
|
execute_or_queue_command(command, &block)
|
11893
11892
|
end
|
11894
11893
|
|
11895
|
-
# Returns the specified interconnect.
|
11894
|
+
# Returns the specified interconnect. Get a list of available interconnects by
|
11896
11895
|
# making a list() request.
|
11897
11896
|
# @param [String] project
|
11898
11897
|
# Project ID for this request.
|
@@ -12145,7 +12144,7 @@ module Google
|
|
12145
12144
|
# Project ID for this request.
|
12146
12145
|
# @param [String] resource
|
12147
12146
|
# Name of the resource for this request.
|
12148
|
-
# @param [Google::Apis::ComputeAlpha::
|
12147
|
+
# @param [Google::Apis::ComputeAlpha::GlobalSetPolicyRequest] global_set_policy_request_object
|
12149
12148
|
# @param [String] fields
|
12150
12149
|
# Selector specifying which fields to include in a partial response.
|
12151
12150
|
# @param [String] quota_user
|
@@ -12165,10 +12164,10 @@ module Google
|
|
12165
12164
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
12166
12165
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
12167
12166
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
12168
|
-
def set_interconnect_iam_policy(project, resource,
|
12167
|
+
def set_interconnect_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
12169
12168
|
command = make_simple_command(:post, '{project}/global/interconnects/{resource}/setIamPolicy', options)
|
12170
|
-
command.request_representation = Google::Apis::ComputeAlpha::
|
12171
|
-
command.request_object =
|
12169
|
+
command.request_representation = Google::Apis::ComputeAlpha::GlobalSetPolicyRequest::Representation
|
12170
|
+
command.request_object = global_set_policy_request_object
|
12172
12171
|
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
12173
12172
|
command.response_class = Google::Apis::ComputeAlpha::Policy
|
12174
12173
|
command.params['project'] = project unless project.nil?
|
@@ -12338,7 +12337,7 @@ module Google
|
|
12338
12337
|
# Project ID for this request.
|
12339
12338
|
# @param [String] resource
|
12340
12339
|
# Name of the resource for this request.
|
12341
|
-
# @param [Google::Apis::ComputeAlpha::
|
12340
|
+
# @param [Google::Apis::ComputeAlpha::GlobalSetPolicyRequest] global_set_policy_request_object
|
12342
12341
|
# @param [String] fields
|
12343
12342
|
# Selector specifying which fields to include in a partial response.
|
12344
12343
|
# @param [String] quota_user
|
@@ -12358,10 +12357,10 @@ module Google
|
|
12358
12357
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
12359
12358
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
12360
12359
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
12361
|
-
def set_license_code_iam_policy(project, resource,
|
12360
|
+
def set_license_code_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
12362
12361
|
command = make_simple_command(:post, '{project}/global/licenseCodes/{resource}/setIamPolicy', options)
|
12363
|
-
command.request_representation = Google::Apis::ComputeAlpha::
|
12364
|
-
command.request_object =
|
12362
|
+
command.request_representation = Google::Apis::ComputeAlpha::GlobalSetPolicyRequest::Representation
|
12363
|
+
command.request_object = global_set_policy_request_object
|
12365
12364
|
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
12366
12365
|
command.response_class = Google::Apis::ComputeAlpha::Policy
|
12367
12366
|
command.params['project'] = project unless project.nil?
|
@@ -12582,7 +12581,7 @@ module Google
|
|
12582
12581
|
|
12583
12582
|
# Retrieves the list of licenses available in the specified project. This method
|
12584
12583
|
# does not get any licenses that belong to other projects, including licenses
|
12585
|
-
# attached to publicly-available images, like Debian
|
12584
|
+
# attached to publicly-available images, like Debian 9. If you want to get a
|
12586
12585
|
# list of publicly-available licenses, use this method to make a request to the
|
12587
12586
|
# respective image project, such as debian-cloud or windows-cloud.
|
12588
12587
|
# @param [String] project
|
@@ -12661,7 +12660,7 @@ module Google
|
|
12661
12660
|
# Project ID for this request.
|
12662
12661
|
# @param [String] resource
|
12663
12662
|
# Name of the resource for this request.
|
12664
|
-
# @param [Google::Apis::ComputeAlpha::
|
12663
|
+
# @param [Google::Apis::ComputeAlpha::GlobalSetPolicyRequest] global_set_policy_request_object
|
12665
12664
|
# @param [String] fields
|
12666
12665
|
# Selector specifying which fields to include in a partial response.
|
12667
12666
|
# @param [String] quota_user
|
@@ -12681,10 +12680,10 @@ module Google
|
|
12681
12680
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
12682
12681
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
12683
12682
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
12684
|
-
def set_license_iam_policy(project, resource,
|
12683
|
+
def set_license_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
12685
12684
|
command = make_simple_command(:post, '{project}/global/licenses/{resource}/setIamPolicy', options)
|
12686
|
-
command.request_representation = Google::Apis::ComputeAlpha::
|
12687
|
-
command.request_object =
|
12685
|
+
command.request_representation = Google::Apis::ComputeAlpha::GlobalSetPolicyRequest::Representation
|
12686
|
+
command.request_object = global_set_policy_request_object
|
12688
12687
|
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
12689
12688
|
command.response_class = Google::Apis::ComputeAlpha::Policy
|
12690
12689
|
command.params['project'] = project unless project.nil?
|
@@ -14434,7 +14433,7 @@ module Google
|
|
14434
14433
|
# The name of the zone for this request.
|
14435
14434
|
# @param [String] resource
|
14436
14435
|
# Name of the resource for this request.
|
14437
|
-
# @param [Google::Apis::ComputeAlpha::
|
14436
|
+
# @param [Google::Apis::ComputeAlpha::ZoneSetPolicyRequest] zone_set_policy_request_object
|
14438
14437
|
# @param [String] fields
|
14439
14438
|
# Selector specifying which fields to include in a partial response.
|
14440
14439
|
# @param [String] quota_user
|
@@ -14454,10 +14453,10 @@ module Google
|
|
14454
14453
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
14455
14454
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
14456
14455
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
14457
|
-
def set_node_group_iam_policy(project, zone, resource,
|
14456
|
+
def set_node_group_iam_policy(project, zone, resource, zone_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
14458
14457
|
command = make_simple_command(:post, '{project}/zones/{zone}/nodeGroups/{resource}/setIamPolicy', options)
|
14459
|
-
command.request_representation = Google::Apis::ComputeAlpha::
|
14460
|
-
command.request_object =
|
14458
|
+
command.request_representation = Google::Apis::ComputeAlpha::ZoneSetPolicyRequest::Representation
|
14459
|
+
command.request_object = zone_set_policy_request_object
|
14461
14460
|
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
14462
14461
|
command.response_class = Google::Apis::ComputeAlpha::Policy
|
14463
14462
|
command.params['project'] = project unless project.nil?
|
@@ -14901,7 +14900,7 @@ module Google
|
|
14901
14900
|
# The name of the region for this request.
|
14902
14901
|
# @param [String] resource
|
14903
14902
|
# Name of the resource for this request.
|
14904
|
-
# @param [Google::Apis::ComputeAlpha::
|
14903
|
+
# @param [Google::Apis::ComputeAlpha::RegionSetPolicyRequest] region_set_policy_request_object
|
14905
14904
|
# @param [String] fields
|
14906
14905
|
# Selector specifying which fields to include in a partial response.
|
14907
14906
|
# @param [String] quota_user
|
@@ -14921,10 +14920,10 @@ module Google
|
|
14921
14920
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
14922
14921
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
14923
14922
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
14924
|
-
def set_node_template_iam_policy(project, region, resource,
|
14923
|
+
def set_node_template_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
14925
14924
|
command = make_simple_command(:post, '{project}/regions/{region}/nodeTemplates/{resource}/setIamPolicy', options)
|
14926
|
-
command.request_representation = Google::Apis::ComputeAlpha::
|
14927
|
-
command.request_object =
|
14925
|
+
command.request_representation = Google::Apis::ComputeAlpha::RegionSetPolicyRequest::Representation
|
14926
|
+
command.request_object = region_set_policy_request_object
|
14928
14927
|
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
14929
14928
|
command.response_class = Google::Apis::ComputeAlpha::Policy
|
14930
14929
|
command.params['project'] = project unless project.nil?
|
@@ -20455,7 +20454,7 @@ module Google
|
|
20455
20454
|
# The name of the region for this request.
|
20456
20455
|
# @param [String] resource
|
20457
20456
|
# Name of the resource for this request.
|
20458
|
-
# @param [Google::Apis::ComputeAlpha::
|
20457
|
+
# @param [Google::Apis::ComputeAlpha::RegionSetPolicyRequest] region_set_policy_request_object
|
20459
20458
|
# @param [String] fields
|
20460
20459
|
# Selector specifying which fields to include in a partial response.
|
20461
20460
|
# @param [String] quota_user
|
@@ -20475,10 +20474,10 @@ module Google
|
|
20475
20474
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
20476
20475
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
20477
20476
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
20478
|
-
def set_resource_policy_iam_policy(project, region, resource,
|
20477
|
+
def set_resource_policy_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
20479
20478
|
command = make_simple_command(:post, '{project}/regions/{region}/resourcePolicies/{resource}/setIamPolicy', options)
|
20480
|
-
command.request_representation = Google::Apis::ComputeAlpha::
|
20481
|
-
command.request_object =
|
20479
|
+
command.request_representation = Google::Apis::ComputeAlpha::RegionSetPolicyRequest::Representation
|
20480
|
+
command.request_object = region_set_policy_request_object
|
20482
20481
|
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
20483
20482
|
command.response_class = Google::Apis::ComputeAlpha::Policy
|
20484
20483
|
command.params['project'] = project unless project.nil?
|
@@ -21586,6 +21585,78 @@ module Google
|
|
21586
21585
|
execute_or_queue_command(command, &block)
|
21587
21586
|
end
|
21588
21587
|
|
21588
|
+
# Gets the current list of preconfigured Web Application Firewall (WAF)
|
21589
|
+
# expressions.
|
21590
|
+
# @param [String] project
|
21591
|
+
# Project ID for this request.
|
21592
|
+
# @param [String] filter
|
21593
|
+
# A filter expression that filters resources listed in the response. The
|
21594
|
+
# expression must specify the field name, a comparison operator, and the value
|
21595
|
+
# that you want to use for filtering. The value must be a string, a number, or a
|
21596
|
+
# boolean. The comparison operator must be either =, !=, >, or <.
|
21597
|
+
# For example, if you are filtering Compute Engine instances, you can exclude
|
21598
|
+
# instances named example-instance by specifying name != example-instance.
|
21599
|
+
# You can also filter nested fields. For example, you could specify scheduling.
|
21600
|
+
# automaticRestart = false to include instances only if they are not scheduled
|
21601
|
+
# for automatic restarts. You can use filtering on nested fields to filter based
|
21602
|
+
# on resource labels.
|
21603
|
+
# To filter on multiple expressions, provide each separate expression within
|
21604
|
+
# parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "
|
21605
|
+
# Intel Skylake"). By default, each expression is an AND expression. However,
|
21606
|
+
# you can include AND and OR expressions explicitly. For example, (cpuPlatform =
|
21607
|
+
# "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
|
21608
|
+
# automaticRestart = true).
|
21609
|
+
# @param [Fixnum] max_results
|
21610
|
+
# The maximum number of results per page that should be returned. If the number
|
21611
|
+
# of available results is larger than maxResults, Compute Engine returns a
|
21612
|
+
# nextPageToken that can be used to get the next page of results in subsequent
|
21613
|
+
# list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
|
21614
|
+
# @param [String] order_by
|
21615
|
+
# Sorts list results by a certain order. By default, results are returned in
|
21616
|
+
# alphanumerical order based on the resource name.
|
21617
|
+
# You can also sort results in descending order based on the creation timestamp
|
21618
|
+
# using orderBy="creationTimestamp desc". This sorts results based on the
|
21619
|
+
# creationTimestamp field in reverse chronological order (newest result first).
|
21620
|
+
# Use this to sort resources like operations so that the newest operation is
|
21621
|
+
# returned first.
|
21622
|
+
# Currently, only sorting by name or creationTimestamp desc is supported.
|
21623
|
+
# @param [String] page_token
|
21624
|
+
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
|
21625
|
+
# a previous list request to get the next page of results.
|
21626
|
+
# @param [String] fields
|
21627
|
+
# Selector specifying which fields to include in a partial response.
|
21628
|
+
# @param [String] quota_user
|
21629
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
21630
|
+
# characters.
|
21631
|
+
# @param [String] user_ip
|
21632
|
+
# Deprecated. Please use quotaUser instead.
|
21633
|
+
# @param [Google::Apis::RequestOptions] options
|
21634
|
+
# Request-specific options
|
21635
|
+
#
|
21636
|
+
# @yield [result, err] Result & error if block supplied
|
21637
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::SecurityPoliciesListPreconfiguredExpressionSetsResponse] parsed result object
|
21638
|
+
# @yieldparam err [StandardError] error object if request failed
|
21639
|
+
#
|
21640
|
+
# @return [Google::Apis::ComputeAlpha::SecurityPoliciesListPreconfiguredExpressionSetsResponse]
|
21641
|
+
#
|
21642
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
21643
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
21644
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
21645
|
+
def list_security_policy_preconfigured_expression_sets(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
21646
|
+
command = make_simple_command(:get, '{project}/global/securityPolicies/listPreconfiguredExpressionSets', options)
|
21647
|
+
command.response_representation = Google::Apis::ComputeAlpha::SecurityPoliciesListPreconfiguredExpressionSetsResponse::Representation
|
21648
|
+
command.response_class = Google::Apis::ComputeAlpha::SecurityPoliciesListPreconfiguredExpressionSetsResponse
|
21649
|
+
command.params['project'] = project unless project.nil?
|
21650
|
+
command.query['filter'] = filter unless filter.nil?
|
21651
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
21652
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
21653
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
21654
|
+
command.query['fields'] = fields unless fields.nil?
|
21655
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
21656
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
21657
|
+
execute_or_queue_command(command, &block)
|
21658
|
+
end
|
21659
|
+
|
21589
21660
|
# Patches the specified policy with the data included in the request.
|
21590
21661
|
# @param [String] project
|
21591
21662
|
# Project ID for this request.
|
@@ -21964,7 +22035,7 @@ module Google
|
|
21964
22035
|
# Project ID for this request.
|
21965
22036
|
# @param [String] resource
|
21966
22037
|
# Name of the resource for this request.
|
21967
|
-
# @param [Google::Apis::ComputeAlpha::
|
22038
|
+
# @param [Google::Apis::ComputeAlpha::GlobalSetPolicyRequest] global_set_policy_request_object
|
21968
22039
|
# @param [String] fields
|
21969
22040
|
# Selector specifying which fields to include in a partial response.
|
21970
22041
|
# @param [String] quota_user
|
@@ -21984,10 +22055,10 @@ module Google
|
|
21984
22055
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
21985
22056
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
21986
22057
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
21987
|
-
def set_snapshot_iam_policy(project, resource,
|
22058
|
+
def set_snapshot_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
21988
22059
|
command = make_simple_command(:post, '{project}/global/snapshots/{resource}/setIamPolicy', options)
|
21989
|
-
command.request_representation = Google::Apis::ComputeAlpha::
|
21990
|
-
command.request_object =
|
22060
|
+
command.request_representation = Google::Apis::ComputeAlpha::GlobalSetPolicyRequest::Representation
|
22061
|
+
command.request_object = global_set_policy_request_object
|
21991
22062
|
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
21992
22063
|
command.response_class = Google::Apis::ComputeAlpha::Policy
|
21993
22064
|
command.params['project'] = project unless project.nil?
|
@@ -23211,7 +23282,7 @@ module Google
|
|
23211
23282
|
# The name of the region for this request.
|
23212
23283
|
# @param [String] resource
|
23213
23284
|
# Name of the resource for this request.
|
23214
|
-
# @param [Google::Apis::ComputeAlpha::
|
23285
|
+
# @param [Google::Apis::ComputeAlpha::RegionSetPolicyRequest] region_set_policy_request_object
|
23215
23286
|
# @param [String] fields
|
23216
23287
|
# Selector specifying which fields to include in a partial response.
|
23217
23288
|
# @param [String] quota_user
|
@@ -23231,10 +23302,10 @@ module Google
|
|
23231
23302
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
23232
23303
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
23233
23304
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
23234
|
-
def set_subnetwork_iam_policy(project, region, resource,
|
23305
|
+
def set_subnetwork_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
23235
23306
|
command = make_simple_command(:post, '{project}/regions/{region}/subnetworks/{resource}/setIamPolicy', options)
|
23236
|
-
command.request_representation = Google::Apis::ComputeAlpha::
|
23237
|
-
command.request_object =
|
23307
|
+
command.request_representation = Google::Apis::ComputeAlpha::RegionSetPolicyRequest::Representation
|
23308
|
+
command.request_object = region_set_policy_request_object
|
23238
23309
|
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
23239
23310
|
command.response_class = Google::Apis::ComputeAlpha::Policy
|
23240
23311
|
command.params['project'] = project unless project.nil?
|
@@ -26768,6 +26839,391 @@ module Google
|
|
26768
26839
|
execute_or_queue_command(command, &block)
|
26769
26840
|
end
|
26770
26841
|
|
26842
|
+
# Retrieves an aggregated list of VPN gateways.
|
26843
|
+
# @param [String] project
|
26844
|
+
# Project ID for this request.
|
26845
|
+
# @param [String] filter
|
26846
|
+
# A filter expression that filters resources listed in the response. The
|
26847
|
+
# expression must specify the field name, a comparison operator, and the value
|
26848
|
+
# that you want to use for filtering. The value must be a string, a number, or a
|
26849
|
+
# boolean. The comparison operator must be either =, !=, >, or <.
|
26850
|
+
# For example, if you are filtering Compute Engine instances, you can exclude
|
26851
|
+
# instances named example-instance by specifying name != example-instance.
|
26852
|
+
# You can also filter nested fields. For example, you could specify scheduling.
|
26853
|
+
# automaticRestart = false to include instances only if they are not scheduled
|
26854
|
+
# for automatic restarts. You can use filtering on nested fields to filter based
|
26855
|
+
# on resource labels.
|
26856
|
+
# To filter on multiple expressions, provide each separate expression within
|
26857
|
+
# parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "
|
26858
|
+
# Intel Skylake"). By default, each expression is an AND expression. However,
|
26859
|
+
# you can include AND and OR expressions explicitly. For example, (cpuPlatform =
|
26860
|
+
# "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
|
26861
|
+
# automaticRestart = true).
|
26862
|
+
# @param [Fixnum] max_results
|
26863
|
+
# The maximum number of results per page that should be returned. If the number
|
26864
|
+
# of available results is larger than maxResults, Compute Engine returns a
|
26865
|
+
# nextPageToken that can be used to get the next page of results in subsequent
|
26866
|
+
# list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
|
26867
|
+
# @param [String] order_by
|
26868
|
+
# Sorts list results by a certain order. By default, results are returned in
|
26869
|
+
# alphanumerical order based on the resource name.
|
26870
|
+
# You can also sort results in descending order based on the creation timestamp
|
26871
|
+
# using orderBy="creationTimestamp desc". This sorts results based on the
|
26872
|
+
# creationTimestamp field in reverse chronological order (newest result first).
|
26873
|
+
# Use this to sort resources like operations so that the newest operation is
|
26874
|
+
# returned first.
|
26875
|
+
# Currently, only sorting by name or creationTimestamp desc is supported.
|
26876
|
+
# @param [String] page_token
|
26877
|
+
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
|
26878
|
+
# a previous list request to get the next page of results.
|
26879
|
+
# @param [String] fields
|
26880
|
+
# Selector specifying which fields to include in a partial response.
|
26881
|
+
# @param [String] quota_user
|
26882
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
26883
|
+
# characters.
|
26884
|
+
# @param [String] user_ip
|
26885
|
+
# Deprecated. Please use quotaUser instead.
|
26886
|
+
# @param [Google::Apis::RequestOptions] options
|
26887
|
+
# Request-specific options
|
26888
|
+
#
|
26889
|
+
# @yield [result, err] Result & error if block supplied
|
26890
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::VpnGatewayAggregatedList] parsed result object
|
26891
|
+
# @yieldparam err [StandardError] error object if request failed
|
26892
|
+
#
|
26893
|
+
# @return [Google::Apis::ComputeAlpha::VpnGatewayAggregatedList]
|
26894
|
+
#
|
26895
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
26896
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
26897
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
26898
|
+
def aggregated_vpn_gateway_list(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
26899
|
+
command = make_simple_command(:get, '{project}/aggregated/vpnGateways', options)
|
26900
|
+
command.response_representation = Google::Apis::ComputeAlpha::VpnGatewayAggregatedList::Representation
|
26901
|
+
command.response_class = Google::Apis::ComputeAlpha::VpnGatewayAggregatedList
|
26902
|
+
command.params['project'] = project unless project.nil?
|
26903
|
+
command.query['filter'] = filter unless filter.nil?
|
26904
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
26905
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
26906
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
26907
|
+
command.query['fields'] = fields unless fields.nil?
|
26908
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
26909
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
26910
|
+
execute_or_queue_command(command, &block)
|
26911
|
+
end
|
26912
|
+
|
26913
|
+
# Deletes the specified VPN gateway.
|
26914
|
+
# @param [String] project
|
26915
|
+
# Project ID for this request.
|
26916
|
+
# @param [String] region
|
26917
|
+
# Name of the region for this request.
|
26918
|
+
# @param [String] vpn_gateway
|
26919
|
+
# Name of the VPN gateway to delete.
|
26920
|
+
# @param [String] request_id
|
26921
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
26922
|
+
# that if you must retry your request, the server will know to ignore the
|
26923
|
+
# request if it has already been completed.
|
26924
|
+
# For example, consider a situation where you make an initial request and the
|
26925
|
+
# request times out. If you make the request again with the same request ID, the
|
26926
|
+
# server can check if original operation with the same request ID was received,
|
26927
|
+
# and if so, will ignore the second request. This prevents clients from
|
26928
|
+
# accidentally creating duplicate commitments.
|
26929
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
26930
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
26931
|
+
# @param [String] fields
|
26932
|
+
# Selector specifying which fields to include in a partial response.
|
26933
|
+
# @param [String] quota_user
|
26934
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
26935
|
+
# characters.
|
26936
|
+
# @param [String] user_ip
|
26937
|
+
# Deprecated. Please use quotaUser instead.
|
26938
|
+
# @param [Google::Apis::RequestOptions] options
|
26939
|
+
# Request-specific options
|
26940
|
+
#
|
26941
|
+
# @yield [result, err] Result & error if block supplied
|
26942
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
26943
|
+
# @yieldparam err [StandardError] error object if request failed
|
26944
|
+
#
|
26945
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
26946
|
+
#
|
26947
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
26948
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
26949
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
26950
|
+
def delete_vpn_gateway(project, region, vpn_gateway, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
26951
|
+
command = make_simple_command(:delete, '{project}/regions/{region}/vpnGateways/{vpnGateway}', options)
|
26952
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
26953
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
26954
|
+
command.params['project'] = project unless project.nil?
|
26955
|
+
command.params['region'] = region unless region.nil?
|
26956
|
+
command.params['vpnGateway'] = vpn_gateway unless vpn_gateway.nil?
|
26957
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
26958
|
+
command.query['fields'] = fields unless fields.nil?
|
26959
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
26960
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
26961
|
+
execute_or_queue_command(command, &block)
|
26962
|
+
end
|
26963
|
+
|
26964
|
+
# Returns the specified VPN gateway. Gets a list of available VPN gateways by
|
26965
|
+
# making a list() request.
|
26966
|
+
# @param [String] project
|
26967
|
+
# Project ID for this request.
|
26968
|
+
# @param [String] region
|
26969
|
+
# Name of the region for this request.
|
26970
|
+
# @param [String] vpn_gateway
|
26971
|
+
# Name of the VPN gateway to return.
|
26972
|
+
# @param [String] fields
|
26973
|
+
# Selector specifying which fields to include in a partial response.
|
26974
|
+
# @param [String] quota_user
|
26975
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
26976
|
+
# characters.
|
26977
|
+
# @param [String] user_ip
|
26978
|
+
# Deprecated. Please use quotaUser instead.
|
26979
|
+
# @param [Google::Apis::RequestOptions] options
|
26980
|
+
# Request-specific options
|
26981
|
+
#
|
26982
|
+
# @yield [result, err] Result & error if block supplied
|
26983
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::VpnGateway] parsed result object
|
26984
|
+
# @yieldparam err [StandardError] error object if request failed
|
26985
|
+
#
|
26986
|
+
# @return [Google::Apis::ComputeAlpha::VpnGateway]
|
26987
|
+
#
|
26988
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
26989
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
26990
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
26991
|
+
def get_vpn_gateway(project, region, vpn_gateway, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
26992
|
+
command = make_simple_command(:get, '{project}/regions/{region}/vpnGateways/{vpnGateway}', options)
|
26993
|
+
command.response_representation = Google::Apis::ComputeAlpha::VpnGateway::Representation
|
26994
|
+
command.response_class = Google::Apis::ComputeAlpha::VpnGateway
|
26995
|
+
command.params['project'] = project unless project.nil?
|
26996
|
+
command.params['region'] = region unless region.nil?
|
26997
|
+
command.params['vpnGateway'] = vpn_gateway unless vpn_gateway.nil?
|
26998
|
+
command.query['fields'] = fields unless fields.nil?
|
26999
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
27000
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
27001
|
+
execute_or_queue_command(command, &block)
|
27002
|
+
end
|
27003
|
+
|
27004
|
+
# Creates a VPN gateway in the specified project and region using the data
|
27005
|
+
# included in the request.
|
27006
|
+
# @param [String] project
|
27007
|
+
# Project ID for this request.
|
27008
|
+
# @param [String] region
|
27009
|
+
# Name of the region for this request.
|
27010
|
+
# @param [Google::Apis::ComputeAlpha::VpnGateway] vpn_gateway_object
|
27011
|
+
# @param [String] request_id
|
27012
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
27013
|
+
# that if you must retry your request, the server will know to ignore the
|
27014
|
+
# request if it has already been completed.
|
27015
|
+
# For example, consider a situation where you make an initial request and the
|
27016
|
+
# request times out. If you make the request again with the same request ID, the
|
27017
|
+
# server can check if original operation with the same request ID was received,
|
27018
|
+
# and if so, will ignore the second request. This prevents clients from
|
27019
|
+
# accidentally creating duplicate commitments.
|
27020
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
27021
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
27022
|
+
# @param [String] fields
|
27023
|
+
# Selector specifying which fields to include in a partial response.
|
27024
|
+
# @param [String] quota_user
|
27025
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
27026
|
+
# characters.
|
27027
|
+
# @param [String] user_ip
|
27028
|
+
# Deprecated. Please use quotaUser instead.
|
27029
|
+
# @param [Google::Apis::RequestOptions] options
|
27030
|
+
# Request-specific options
|
27031
|
+
#
|
27032
|
+
# @yield [result, err] Result & error if block supplied
|
27033
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
27034
|
+
# @yieldparam err [StandardError] error object if request failed
|
27035
|
+
#
|
27036
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
27037
|
+
#
|
27038
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
27039
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
27040
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
27041
|
+
def insert_vpn_gateway(project, region, vpn_gateway_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
27042
|
+
command = make_simple_command(:post, '{project}/regions/{region}/vpnGateways', options)
|
27043
|
+
command.request_representation = Google::Apis::ComputeAlpha::VpnGateway::Representation
|
27044
|
+
command.request_object = vpn_gateway_object
|
27045
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
27046
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
27047
|
+
command.params['project'] = project unless project.nil?
|
27048
|
+
command.params['region'] = region unless region.nil?
|
27049
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
27050
|
+
command.query['fields'] = fields unless fields.nil?
|
27051
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
27052
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
27053
|
+
execute_or_queue_command(command, &block)
|
27054
|
+
end
|
27055
|
+
|
27056
|
+
# Retrieves a list of VPN gateways available to the specified project and region.
|
27057
|
+
# @param [String] project
|
27058
|
+
# Project ID for this request.
|
27059
|
+
# @param [String] region
|
27060
|
+
# Name of the region for this request.
|
27061
|
+
# @param [String] filter
|
27062
|
+
# A filter expression that filters resources listed in the response. The
|
27063
|
+
# expression must specify the field name, a comparison operator, and the value
|
27064
|
+
# that you want to use for filtering. The value must be a string, a number, or a
|
27065
|
+
# boolean. The comparison operator must be either =, !=, >, or <.
|
27066
|
+
# For example, if you are filtering Compute Engine instances, you can exclude
|
27067
|
+
# instances named example-instance by specifying name != example-instance.
|
27068
|
+
# You can also filter nested fields. For example, you could specify scheduling.
|
27069
|
+
# automaticRestart = false to include instances only if they are not scheduled
|
27070
|
+
# for automatic restarts. You can use filtering on nested fields to filter based
|
27071
|
+
# on resource labels.
|
27072
|
+
# To filter on multiple expressions, provide each separate expression within
|
27073
|
+
# parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "
|
27074
|
+
# Intel Skylake"). By default, each expression is an AND expression. However,
|
27075
|
+
# you can include AND and OR expressions explicitly. For example, (cpuPlatform =
|
27076
|
+
# "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
|
27077
|
+
# automaticRestart = true).
|
27078
|
+
# @param [Fixnum] max_results
|
27079
|
+
# The maximum number of results per page that should be returned. If the number
|
27080
|
+
# of available results is larger than maxResults, Compute Engine returns a
|
27081
|
+
# nextPageToken that can be used to get the next page of results in subsequent
|
27082
|
+
# list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
|
27083
|
+
# @param [String] order_by
|
27084
|
+
# Sorts list results by a certain order. By default, results are returned in
|
27085
|
+
# alphanumerical order based on the resource name.
|
27086
|
+
# You can also sort results in descending order based on the creation timestamp
|
27087
|
+
# using orderBy="creationTimestamp desc". This sorts results based on the
|
27088
|
+
# creationTimestamp field in reverse chronological order (newest result first).
|
27089
|
+
# Use this to sort resources like operations so that the newest operation is
|
27090
|
+
# returned first.
|
27091
|
+
# Currently, only sorting by name or creationTimestamp desc is supported.
|
27092
|
+
# @param [String] page_token
|
27093
|
+
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
|
27094
|
+
# a previous list request to get the next page of results.
|
27095
|
+
# @param [String] fields
|
27096
|
+
# Selector specifying which fields to include in a partial response.
|
27097
|
+
# @param [String] quota_user
|
27098
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
27099
|
+
# characters.
|
27100
|
+
# @param [String] user_ip
|
27101
|
+
# Deprecated. Please use quotaUser instead.
|
27102
|
+
# @param [Google::Apis::RequestOptions] options
|
27103
|
+
# Request-specific options
|
27104
|
+
#
|
27105
|
+
# @yield [result, err] Result & error if block supplied
|
27106
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::VpnGatewayList] parsed result object
|
27107
|
+
# @yieldparam err [StandardError] error object if request failed
|
27108
|
+
#
|
27109
|
+
# @return [Google::Apis::ComputeAlpha::VpnGatewayList]
|
27110
|
+
#
|
27111
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
27112
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
27113
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
27114
|
+
def list_vpn_gateways(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
27115
|
+
command = make_simple_command(:get, '{project}/regions/{region}/vpnGateways', options)
|
27116
|
+
command.response_representation = Google::Apis::ComputeAlpha::VpnGatewayList::Representation
|
27117
|
+
command.response_class = Google::Apis::ComputeAlpha::VpnGatewayList
|
27118
|
+
command.params['project'] = project unless project.nil?
|
27119
|
+
command.params['region'] = region unless region.nil?
|
27120
|
+
command.query['filter'] = filter unless filter.nil?
|
27121
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
27122
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
27123
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
27124
|
+
command.query['fields'] = fields unless fields.nil?
|
27125
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
27126
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
27127
|
+
execute_or_queue_command(command, &block)
|
27128
|
+
end
|
27129
|
+
|
27130
|
+
# Sets the labels on a VpnGateway. To learn more about labels, read the Labeling
|
27131
|
+
# Resources documentation.
|
27132
|
+
# @param [String] project
|
27133
|
+
# Project ID for this request.
|
27134
|
+
# @param [String] region
|
27135
|
+
# The region for this request.
|
27136
|
+
# @param [String] resource
|
27137
|
+
# Name of the resource for this request.
|
27138
|
+
# @param [Google::Apis::ComputeAlpha::RegionSetLabelsRequest] region_set_labels_request_object
|
27139
|
+
# @param [String] request_id
|
27140
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
27141
|
+
# that if you must retry your request, the server will know to ignore the
|
27142
|
+
# request if it has already been completed.
|
27143
|
+
# For example, consider a situation where you make an initial request and the
|
27144
|
+
# request times out. If you make the request again with the same request ID, the
|
27145
|
+
# server can check if original operation with the same request ID was received,
|
27146
|
+
# and if so, will ignore the second request. This prevents clients from
|
27147
|
+
# accidentally creating duplicate commitments.
|
27148
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
27149
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
27150
|
+
# @param [String] fields
|
27151
|
+
# Selector specifying which fields to include in a partial response.
|
27152
|
+
# @param [String] quota_user
|
27153
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
27154
|
+
# characters.
|
27155
|
+
# @param [String] user_ip
|
27156
|
+
# Deprecated. Please use quotaUser instead.
|
27157
|
+
# @param [Google::Apis::RequestOptions] options
|
27158
|
+
# Request-specific options
|
27159
|
+
#
|
27160
|
+
# @yield [result, err] Result & error if block supplied
|
27161
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
27162
|
+
# @yieldparam err [StandardError] error object if request failed
|
27163
|
+
#
|
27164
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
27165
|
+
#
|
27166
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
27167
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
27168
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
27169
|
+
def set_vpn_gateway_labels(project, region, resource, region_set_labels_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
27170
|
+
command = make_simple_command(:post, '{project}/regions/{region}/vpnGateways/{resource}/setLabels', options)
|
27171
|
+
command.request_representation = Google::Apis::ComputeAlpha::RegionSetLabelsRequest::Representation
|
27172
|
+
command.request_object = region_set_labels_request_object
|
27173
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
27174
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
27175
|
+
command.params['project'] = project unless project.nil?
|
27176
|
+
command.params['region'] = region unless region.nil?
|
27177
|
+
command.params['resource'] = resource unless resource.nil?
|
27178
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
27179
|
+
command.query['fields'] = fields unless fields.nil?
|
27180
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
27181
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
27182
|
+
execute_or_queue_command(command, &block)
|
27183
|
+
end
|
27184
|
+
|
27185
|
+
# Returns permissions that a caller has on the specified resource.
|
27186
|
+
# @param [String] project
|
27187
|
+
# Project ID for this request.
|
27188
|
+
# @param [String] region
|
27189
|
+
# The name of the region for this request.
|
27190
|
+
# @param [String] resource
|
27191
|
+
# Name of the resource for this request.
|
27192
|
+
# @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
|
27193
|
+
# @param [String] fields
|
27194
|
+
# Selector specifying which fields to include in a partial response.
|
27195
|
+
# @param [String] quota_user
|
27196
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
27197
|
+
# characters.
|
27198
|
+
# @param [String] user_ip
|
27199
|
+
# Deprecated. Please use quotaUser instead.
|
27200
|
+
# @param [Google::Apis::RequestOptions] options
|
27201
|
+
# Request-specific options
|
27202
|
+
#
|
27203
|
+
# @yield [result, err] Result & error if block supplied
|
27204
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
|
27205
|
+
# @yieldparam err [StandardError] error object if request failed
|
27206
|
+
#
|
27207
|
+
# @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
|
27208
|
+
#
|
27209
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
27210
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
27211
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
27212
|
+
def test_vpn_gateway_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
27213
|
+
command = make_simple_command(:post, '{project}/regions/{region}/vpnGateways/{resource}/testIamPermissions', options)
|
27214
|
+
command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
|
27215
|
+
command.request_object = test_permissions_request_object
|
27216
|
+
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
|
27217
|
+
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
|
27218
|
+
command.params['project'] = project unless project.nil?
|
27219
|
+
command.params['region'] = region unless region.nil?
|
27220
|
+
command.params['resource'] = resource unless resource.nil?
|
27221
|
+
command.query['fields'] = fields unless fields.nil?
|
27222
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
27223
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
27224
|
+
execute_or_queue_command(command, &block)
|
27225
|
+
end
|
27226
|
+
|
26771
27227
|
# Retrieves an aggregated list of VPN tunnels.
|
26772
27228
|
# @param [String] project
|
26773
27229
|
# Project ID for this request.
|