google-apis-networkservices_v1beta1 0.26.0 → 0.27.0
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 +4 -0
- data/lib/google/apis/networkservices_v1beta1/classes.rb +156 -5
- data/lib/google/apis/networkservices_v1beta1/gem_version.rb +2 -2
- data/lib/google/apis/networkservices_v1beta1/representations.rb +64 -0
- data/lib/google/apis/networkservices_v1beta1/service.rb +302 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79e373c3cce4c31f19242ed303a06f2209e2a2d615c8876bb7d530ae6f09f7e1
|
4
|
+
data.tar.gz: d28b18ce15047cbfa31fefad8e1a7886bdf6229ddc478198568eda80fdd14c66
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13f89859bdc5935d762cd26440b38cc3edf1012f49d495154f79675dbc5d3a50c6018a4ac2e060485aa53d73a5d61fa790980c90c58afb774abff909f2f5f9cd
|
7
|
+
data.tar.gz: 2feb54ff52ab93496032b0682ec0c804bbffedd553a87f036d9047d2b708a8d13bb75ad04b371ce46d135b0acdc9fbe10e0b50900966a0930d52d60b88044a7a
|
data/CHANGELOG.md
CHANGED
@@ -376,10 +376,10 @@ module Google
|
|
376
376
|
class Gateway
|
377
377
|
include Google::Apis::Core::Hashable
|
378
378
|
|
379
|
-
# Optional. Zero or one IPv4
|
380
|
-
# traffic. When no address is provided, an IP from the subnetwork is
|
381
|
-
# This field only applies to gateways of type 'SECURE_WEB_GATEWAY'.
|
382
|
-
# type 'OPEN_MESH' listen on 0.0.0.0.
|
379
|
+
# Optional. Zero or one IPv4 or IPv6 address on which the Gateway will receive
|
380
|
+
# the traffic. When no address is provided, an IP from the subnetwork is
|
381
|
+
# allocated This field only applies to gateways of type 'SECURE_WEB_GATEWAY'.
|
382
|
+
# Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6.
|
383
383
|
# Corresponds to the JSON property `addresses`
|
384
384
|
# @return [Array<String>]
|
385
385
|
attr_accessor :addresses
|
@@ -430,7 +430,7 @@ module Google
|
|
430
430
|
# Required. One or more port numbers (1-65535), on which the Gateway will
|
431
431
|
# receive traffic. The proxy binds to the specified ports. Gateways of type '
|
432
432
|
# SECURE_WEB_GATEWAY' are limited to 1 port. Gateways of type 'OPEN_MESH' listen
|
433
|
-
# on 0.0.0.0 and support multiple ports.
|
433
|
+
# on 0.0.0.0 for IPv4 and :: for IPv6 and support multiple ports.
|
434
434
|
# Corresponds to the JSON property `ports`
|
435
435
|
# @return [Array<Fixnum>]
|
436
436
|
attr_accessor :ports
|
@@ -1942,6 +1942,33 @@ module Google
|
|
1942
1942
|
end
|
1943
1943
|
end
|
1944
1944
|
|
1945
|
+
# Response returned by the ListServiceLbPolicies method.
|
1946
|
+
class ListServiceLbPoliciesResponse
|
1947
|
+
include Google::Apis::Core::Hashable
|
1948
|
+
|
1949
|
+
# If there might be more results than those appearing in this response, then `
|
1950
|
+
# next_page_token` is included. To get the next set of results, call this method
|
1951
|
+
# again using the value of `next_page_token` as `page_token`.
|
1952
|
+
# Corresponds to the JSON property `nextPageToken`
|
1953
|
+
# @return [String]
|
1954
|
+
attr_accessor :next_page_token
|
1955
|
+
|
1956
|
+
# List of ServiceLbPolicy resources.
|
1957
|
+
# Corresponds to the JSON property `serviceLbPolicies`
|
1958
|
+
# @return [Array<Google::Apis::NetworkservicesV1beta1::ServiceLbPolicy>]
|
1959
|
+
attr_accessor :service_lb_policies
|
1960
|
+
|
1961
|
+
def initialize(**args)
|
1962
|
+
update!(**args)
|
1963
|
+
end
|
1964
|
+
|
1965
|
+
# Update properties of this object
|
1966
|
+
def update!(**args)
|
1967
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1968
|
+
@service_lb_policies = args[:service_lb_policies] if args.key?(:service_lb_policies)
|
1969
|
+
end
|
1970
|
+
end
|
1971
|
+
|
1945
1972
|
# Response returned by the ListTcpRoutes method.
|
1946
1973
|
class ListTcpRoutesResponse
|
1947
1974
|
include Google::Apis::Core::Hashable
|
@@ -2418,6 +2445,14 @@ module Google
|
|
2418
2445
|
# @return [String]
|
2419
2446
|
attr_accessor :service
|
2420
2447
|
|
2448
|
+
# Output only. The unique identifier of the Service Directory Service against
|
2449
|
+
# which the Service Binding resource is validated. This is populated when the
|
2450
|
+
# Service Binding resource is used in another resource (like Backend Service).
|
2451
|
+
# This is of the UUID4 format.
|
2452
|
+
# Corresponds to the JSON property `serviceId`
|
2453
|
+
# @return [String]
|
2454
|
+
attr_accessor :service_id
|
2455
|
+
|
2421
2456
|
# Output only. The timestamp when the resource was updated.
|
2422
2457
|
# Corresponds to the JSON property `updateTime`
|
2423
2458
|
# @return [String]
|
@@ -2434,10 +2469,126 @@ module Google
|
|
2434
2469
|
@labels = args[:labels] if args.key?(:labels)
|
2435
2470
|
@name = args[:name] if args.key?(:name)
|
2436
2471
|
@service = args[:service] if args.key?(:service)
|
2472
|
+
@service_id = args[:service_id] if args.key?(:service_id)
|
2437
2473
|
@update_time = args[:update_time] if args.key?(:update_time)
|
2438
2474
|
end
|
2439
2475
|
end
|
2440
2476
|
|
2477
|
+
# ServiceLbPolicy holds global load balancing and traffic distribution
|
2478
|
+
# configuration that can be applied to a BackendService.
|
2479
|
+
class ServiceLbPolicy
|
2480
|
+
include Google::Apis::Core::Hashable
|
2481
|
+
|
2482
|
+
# Option to specify if an unhealthy IG/NEG should be considered for global load
|
2483
|
+
# balancing and traffic routing.
|
2484
|
+
# Corresponds to the JSON property `autoCapacityDrain`
|
2485
|
+
# @return [Google::Apis::NetworkservicesV1beta1::ServiceLbPolicyAutoCapacityDrain]
|
2486
|
+
attr_accessor :auto_capacity_drain
|
2487
|
+
|
2488
|
+
# Output only. The timestamp when this resource was created.
|
2489
|
+
# Corresponds to the JSON property `createTime`
|
2490
|
+
# @return [String]
|
2491
|
+
attr_accessor :create_time
|
2492
|
+
|
2493
|
+
# Optional. A free-text description of the resource. Max length 1024 characters.
|
2494
|
+
# Corresponds to the JSON property `description`
|
2495
|
+
# @return [String]
|
2496
|
+
attr_accessor :description
|
2497
|
+
|
2498
|
+
# Option to specify health based failover behavior. This is not related to
|
2499
|
+
# Network load balancer FailoverPolicy.
|
2500
|
+
# Corresponds to the JSON property `failoverConfig`
|
2501
|
+
# @return [Google::Apis::NetworkservicesV1beta1::ServiceLbPolicyFailoverConfig]
|
2502
|
+
attr_accessor :failover_config
|
2503
|
+
|
2504
|
+
# Optional. Set of label tags associated with the ServiceLbPolicy resource.
|
2505
|
+
# Corresponds to the JSON property `labels`
|
2506
|
+
# @return [Hash<String,String>]
|
2507
|
+
attr_accessor :labels
|
2508
|
+
|
2509
|
+
# Optional. The type of load balancing algorithm to be used. The default
|
2510
|
+
# behavior is WATERFALL_BY_REGION.
|
2511
|
+
# Corresponds to the JSON property `loadBalancingAlgorithm`
|
2512
|
+
# @return [String]
|
2513
|
+
attr_accessor :load_balancing_algorithm
|
2514
|
+
|
2515
|
+
# Required. Name of the ServiceLbPolicy resource. It matches pattern `projects/`
|
2516
|
+
# project`/locations/`location`/serviceLbPolicies/`service_lb_policy_name``.
|
2517
|
+
# Corresponds to the JSON property `name`
|
2518
|
+
# @return [String]
|
2519
|
+
attr_accessor :name
|
2520
|
+
|
2521
|
+
# Output only. The timestamp when this resource was last updated.
|
2522
|
+
# Corresponds to the JSON property `updateTime`
|
2523
|
+
# @return [String]
|
2524
|
+
attr_accessor :update_time
|
2525
|
+
|
2526
|
+
def initialize(**args)
|
2527
|
+
update!(**args)
|
2528
|
+
end
|
2529
|
+
|
2530
|
+
# Update properties of this object
|
2531
|
+
def update!(**args)
|
2532
|
+
@auto_capacity_drain = args[:auto_capacity_drain] if args.key?(:auto_capacity_drain)
|
2533
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
2534
|
+
@description = args[:description] if args.key?(:description)
|
2535
|
+
@failover_config = args[:failover_config] if args.key?(:failover_config)
|
2536
|
+
@labels = args[:labels] if args.key?(:labels)
|
2537
|
+
@load_balancing_algorithm = args[:load_balancing_algorithm] if args.key?(:load_balancing_algorithm)
|
2538
|
+
@name = args[:name] if args.key?(:name)
|
2539
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
2540
|
+
end
|
2541
|
+
end
|
2542
|
+
|
2543
|
+
# Option to specify if an unhealthy IG/NEG should be considered for global load
|
2544
|
+
# balancing and traffic routing.
|
2545
|
+
class ServiceLbPolicyAutoCapacityDrain
|
2546
|
+
include Google::Apis::Core::Hashable
|
2547
|
+
|
2548
|
+
# Optional. If set to 'True', an unhealthy IG/NEG will be set as drained. - An
|
2549
|
+
# IG/NEG is considered unhealthy if less than 25% of the instances/endpoints in
|
2550
|
+
# the IG/NEG are healthy. - This option will never result in draining more than
|
2551
|
+
# 50% of the configured IGs/NEGs for the Backend Service.
|
2552
|
+
# Corresponds to the JSON property `enable`
|
2553
|
+
# @return [Boolean]
|
2554
|
+
attr_accessor :enable
|
2555
|
+
alias_method :enable?, :enable
|
2556
|
+
|
2557
|
+
def initialize(**args)
|
2558
|
+
update!(**args)
|
2559
|
+
end
|
2560
|
+
|
2561
|
+
# Update properties of this object
|
2562
|
+
def update!(**args)
|
2563
|
+
@enable = args[:enable] if args.key?(:enable)
|
2564
|
+
end
|
2565
|
+
end
|
2566
|
+
|
2567
|
+
# Option to specify health based failover behavior. This is not related to
|
2568
|
+
# Network load balancer FailoverPolicy.
|
2569
|
+
class ServiceLbPolicyFailoverConfig
|
2570
|
+
include Google::Apis::Core::Hashable
|
2571
|
+
|
2572
|
+
# Optional. The percentage threshold that a load balancer will begin to send
|
2573
|
+
# traffic to failover backends. If the percentage of endpoints in a MIG/NEG is
|
2574
|
+
# smaller than this value, traffic would be sent to failover backends if
|
2575
|
+
# possible. This field should be set to a value between 1 and 99. The default
|
2576
|
+
# value is 50 for Global external HTTP(S) load balancer (classic) and Proxyless
|
2577
|
+
# service mesh, and 70 for others.
|
2578
|
+
# Corresponds to the JSON property `failoverHealthThreshold`
|
2579
|
+
# @return [Fixnum]
|
2580
|
+
attr_accessor :failover_health_threshold
|
2581
|
+
|
2582
|
+
def initialize(**args)
|
2583
|
+
update!(**args)
|
2584
|
+
end
|
2585
|
+
|
2586
|
+
# Update properties of this object
|
2587
|
+
def update!(**args)
|
2588
|
+
@failover_health_threshold = args[:failover_health_threshold] if args.key?(:failover_health_threshold)
|
2589
|
+
end
|
2590
|
+
end
|
2591
|
+
|
2441
2592
|
# Request message for `SetIamPolicy` method.
|
2442
2593
|
class SetIamPolicyRequest
|
2443
2594
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module NetworkservicesV1beta1
|
18
18
|
# Version of the google-apis-networkservices_v1beta1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.27.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230619"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -292,6 +292,12 @@ module Google
|
|
292
292
|
include Google::Apis::Core::JsonObjectSupport
|
293
293
|
end
|
294
294
|
|
295
|
+
class ListServiceLbPoliciesResponse
|
296
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
297
|
+
|
298
|
+
include Google::Apis::Core::JsonObjectSupport
|
299
|
+
end
|
300
|
+
|
295
301
|
class ListTcpRoutesResponse
|
296
302
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
297
303
|
|
@@ -352,6 +358,24 @@ module Google
|
|
352
358
|
include Google::Apis::Core::JsonObjectSupport
|
353
359
|
end
|
354
360
|
|
361
|
+
class ServiceLbPolicy
|
362
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
363
|
+
|
364
|
+
include Google::Apis::Core::JsonObjectSupport
|
365
|
+
end
|
366
|
+
|
367
|
+
class ServiceLbPolicyAutoCapacityDrain
|
368
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
369
|
+
|
370
|
+
include Google::Apis::Core::JsonObjectSupport
|
371
|
+
end
|
372
|
+
|
373
|
+
class ServiceLbPolicyFailoverConfig
|
374
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
375
|
+
|
376
|
+
include Google::Apis::Core::JsonObjectSupport
|
377
|
+
end
|
378
|
+
|
355
379
|
class SetIamPolicyRequest
|
356
380
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
357
381
|
|
@@ -917,6 +941,15 @@ module Google
|
|
917
941
|
end
|
918
942
|
end
|
919
943
|
|
944
|
+
class ListServiceLbPoliciesResponse
|
945
|
+
# @private
|
946
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
947
|
+
property :next_page_token, as: 'nextPageToken'
|
948
|
+
collection :service_lb_policies, as: 'serviceLbPolicies', class: Google::Apis::NetworkservicesV1beta1::ServiceLbPolicy, decorator: Google::Apis::NetworkservicesV1beta1::ServiceLbPolicy::Representation
|
949
|
+
|
950
|
+
end
|
951
|
+
end
|
952
|
+
|
920
953
|
class ListTcpRoutesResponse
|
921
954
|
# @private
|
922
955
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1021,10 +1054,41 @@ module Google
|
|
1021
1054
|
hash :labels, as: 'labels'
|
1022
1055
|
property :name, as: 'name'
|
1023
1056
|
property :service, as: 'service'
|
1057
|
+
property :service_id, as: 'serviceId'
|
1058
|
+
property :update_time, as: 'updateTime'
|
1059
|
+
end
|
1060
|
+
end
|
1061
|
+
|
1062
|
+
class ServiceLbPolicy
|
1063
|
+
# @private
|
1064
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1065
|
+
property :auto_capacity_drain, as: 'autoCapacityDrain', class: Google::Apis::NetworkservicesV1beta1::ServiceLbPolicyAutoCapacityDrain, decorator: Google::Apis::NetworkservicesV1beta1::ServiceLbPolicyAutoCapacityDrain::Representation
|
1066
|
+
|
1067
|
+
property :create_time, as: 'createTime'
|
1068
|
+
property :description, as: 'description'
|
1069
|
+
property :failover_config, as: 'failoverConfig', class: Google::Apis::NetworkservicesV1beta1::ServiceLbPolicyFailoverConfig, decorator: Google::Apis::NetworkservicesV1beta1::ServiceLbPolicyFailoverConfig::Representation
|
1070
|
+
|
1071
|
+
hash :labels, as: 'labels'
|
1072
|
+
property :load_balancing_algorithm, as: 'loadBalancingAlgorithm'
|
1073
|
+
property :name, as: 'name'
|
1024
1074
|
property :update_time, as: 'updateTime'
|
1025
1075
|
end
|
1026
1076
|
end
|
1027
1077
|
|
1078
|
+
class ServiceLbPolicyAutoCapacityDrain
|
1079
|
+
# @private
|
1080
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1081
|
+
property :enable, as: 'enable'
|
1082
|
+
end
|
1083
|
+
end
|
1084
|
+
|
1085
|
+
class ServiceLbPolicyFailoverConfig
|
1086
|
+
# @private
|
1087
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1088
|
+
property :failover_health_threshold, as: 'failoverHealthThreshold'
|
1089
|
+
end
|
1090
|
+
end
|
1091
|
+
|
1028
1092
|
class SetIamPolicyRequest
|
1029
1093
|
# @private
|
1030
1094
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1784,6 +1784,308 @@ module Google
|
|
1784
1784
|
execute_or_queue_command(command, &block)
|
1785
1785
|
end
|
1786
1786
|
|
1787
|
+
# Creates a new ServiceLbPolicy in a given project and location.
|
1788
|
+
# @param [String] parent
|
1789
|
+
# Required. The parent resource of the ServiceLbPolicy. Must be in the format `
|
1790
|
+
# projects/`project`/locations/`location``.
|
1791
|
+
# @param [Google::Apis::NetworkservicesV1beta1::ServiceLbPolicy] service_lb_policy_object
|
1792
|
+
# @param [String] service_lb_policy_id
|
1793
|
+
# Required. Short name of the ServiceLbPolicy resource to be created. E.g. for
|
1794
|
+
# resource name `projects/`project`/locations/`location`/serviceLbPolicies/`
|
1795
|
+
# service_lb_policy_name``. the id is value of `service_lb_policy_name`
|
1796
|
+
# @param [String] fields
|
1797
|
+
# Selector specifying which fields to include in a partial response.
|
1798
|
+
# @param [String] quota_user
|
1799
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1800
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1801
|
+
# @param [Google::Apis::RequestOptions] options
|
1802
|
+
# Request-specific options
|
1803
|
+
#
|
1804
|
+
# @yield [result, err] Result & error if block supplied
|
1805
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::Operation] parsed result object
|
1806
|
+
# @yieldparam err [StandardError] error object if request failed
|
1807
|
+
#
|
1808
|
+
# @return [Google::Apis::NetworkservicesV1beta1::Operation]
|
1809
|
+
#
|
1810
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1811
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1812
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1813
|
+
def create_project_location_service_lb_policy(parent, service_lb_policy_object = nil, service_lb_policy_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1814
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/serviceLbPolicies', options)
|
1815
|
+
command.request_representation = Google::Apis::NetworkservicesV1beta1::ServiceLbPolicy::Representation
|
1816
|
+
command.request_object = service_lb_policy_object
|
1817
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::Operation::Representation
|
1818
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::Operation
|
1819
|
+
command.params['parent'] = parent unless parent.nil?
|
1820
|
+
command.query['serviceLbPolicyId'] = service_lb_policy_id unless service_lb_policy_id.nil?
|
1821
|
+
command.query['fields'] = fields unless fields.nil?
|
1822
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1823
|
+
execute_or_queue_command(command, &block)
|
1824
|
+
end
|
1825
|
+
|
1826
|
+
# Deletes a single ServiceLbPolicy.
|
1827
|
+
# @param [String] name
|
1828
|
+
# Required. A name of the ServiceLbPolicy to delete. Must be in the format `
|
1829
|
+
# projects/`project`/locations/`location`/serviceLbPolicies/*`.
|
1830
|
+
# @param [String] fields
|
1831
|
+
# Selector specifying which fields to include in a partial response.
|
1832
|
+
# @param [String] quota_user
|
1833
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1834
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1835
|
+
# @param [Google::Apis::RequestOptions] options
|
1836
|
+
# Request-specific options
|
1837
|
+
#
|
1838
|
+
# @yield [result, err] Result & error if block supplied
|
1839
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::Operation] parsed result object
|
1840
|
+
# @yieldparam err [StandardError] error object if request failed
|
1841
|
+
#
|
1842
|
+
# @return [Google::Apis::NetworkservicesV1beta1::Operation]
|
1843
|
+
#
|
1844
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1845
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1846
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1847
|
+
def delete_project_location_service_lb_policy(name, fields: nil, quota_user: nil, options: nil, &block)
|
1848
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
1849
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::Operation::Representation
|
1850
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::Operation
|
1851
|
+
command.params['name'] = name unless name.nil?
|
1852
|
+
command.query['fields'] = fields unless fields.nil?
|
1853
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1854
|
+
execute_or_queue_command(command, &block)
|
1855
|
+
end
|
1856
|
+
|
1857
|
+
# Gets details of a single ServiceLbPolicy.
|
1858
|
+
# @param [String] name
|
1859
|
+
# Required. A name of the ServiceLbPolicy to get. Must be in the format `
|
1860
|
+
# projects/`project`/locations/`location`/serviceLbPolicies/*`.
|
1861
|
+
# @param [String] fields
|
1862
|
+
# Selector specifying which fields to include in a partial response.
|
1863
|
+
# @param [String] quota_user
|
1864
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1865
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1866
|
+
# @param [Google::Apis::RequestOptions] options
|
1867
|
+
# Request-specific options
|
1868
|
+
#
|
1869
|
+
# @yield [result, err] Result & error if block supplied
|
1870
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::ServiceLbPolicy] parsed result object
|
1871
|
+
# @yieldparam err [StandardError] error object if request failed
|
1872
|
+
#
|
1873
|
+
# @return [Google::Apis::NetworkservicesV1beta1::ServiceLbPolicy]
|
1874
|
+
#
|
1875
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1876
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1877
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1878
|
+
def get_project_location_service_lb_policy(name, fields: nil, quota_user: nil, options: nil, &block)
|
1879
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
1880
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::ServiceLbPolicy::Representation
|
1881
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::ServiceLbPolicy
|
1882
|
+
command.params['name'] = name unless name.nil?
|
1883
|
+
command.query['fields'] = fields unless fields.nil?
|
1884
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1885
|
+
execute_or_queue_command(command, &block)
|
1886
|
+
end
|
1887
|
+
|
1888
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
1889
|
+
# resource exists and does not have a policy set.
|
1890
|
+
# @param [String] resource
|
1891
|
+
# REQUIRED: The resource for which the policy is being requested. See [Resource
|
1892
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
1893
|
+
# appropriate value for this field.
|
1894
|
+
# @param [Fixnum] options_requested_policy_version
|
1895
|
+
# Optional. The maximum policy version that will be used to format the policy.
|
1896
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
1897
|
+
# rejected. Requests for policies with any conditional role bindings must
|
1898
|
+
# specify version 3. Policies with no conditional role bindings may specify any
|
1899
|
+
# valid value or leave the field unset. The policy in the response might use the
|
1900
|
+
# policy version that you specified, or it might use a lower policy version. For
|
1901
|
+
# example, if you specify version 3, but the policy has no conditional role
|
1902
|
+
# bindings, the response uses version 1. To learn which resources support
|
1903
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
1904
|
+
# google.com/iam/help/conditions/resource-policies).
|
1905
|
+
# @param [String] fields
|
1906
|
+
# Selector specifying which fields to include in a partial response.
|
1907
|
+
# @param [String] quota_user
|
1908
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1909
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1910
|
+
# @param [Google::Apis::RequestOptions] options
|
1911
|
+
# Request-specific options
|
1912
|
+
#
|
1913
|
+
# @yield [result, err] Result & error if block supplied
|
1914
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::Policy] parsed result object
|
1915
|
+
# @yieldparam err [StandardError] error object if request failed
|
1916
|
+
#
|
1917
|
+
# @return [Google::Apis::NetworkservicesV1beta1::Policy]
|
1918
|
+
#
|
1919
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1920
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1921
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1922
|
+
def get_project_location_service_lb_policy_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1923
|
+
command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options)
|
1924
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::Policy::Representation
|
1925
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::Policy
|
1926
|
+
command.params['resource'] = resource unless resource.nil?
|
1927
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
1928
|
+
command.query['fields'] = fields unless fields.nil?
|
1929
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1930
|
+
execute_or_queue_command(command, &block)
|
1931
|
+
end
|
1932
|
+
|
1933
|
+
# Lists ServiceLbPolicies in a given project and location.
|
1934
|
+
# @param [String] parent
|
1935
|
+
# Required. The project and location from which the ServiceLbPolicies should be
|
1936
|
+
# listed, specified in the format `projects/`project`/locations/`location``.
|
1937
|
+
# @param [Fixnum] page_size
|
1938
|
+
# Maximum number of ServiceLbPolicies to return per call.
|
1939
|
+
# @param [String] page_token
|
1940
|
+
# The value returned by the last `ListServiceLbPoliciesResponse` Indicates that
|
1941
|
+
# this is a continuation of a prior `ListRouters` call, and that the system
|
1942
|
+
# should return the next page of data.
|
1943
|
+
# @param [String] fields
|
1944
|
+
# Selector specifying which fields to include in a partial response.
|
1945
|
+
# @param [String] quota_user
|
1946
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1947
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1948
|
+
# @param [Google::Apis::RequestOptions] options
|
1949
|
+
# Request-specific options
|
1950
|
+
#
|
1951
|
+
# @yield [result, err] Result & error if block supplied
|
1952
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::ListServiceLbPoliciesResponse] parsed result object
|
1953
|
+
# @yieldparam err [StandardError] error object if request failed
|
1954
|
+
#
|
1955
|
+
# @return [Google::Apis::NetworkservicesV1beta1::ListServiceLbPoliciesResponse]
|
1956
|
+
#
|
1957
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1958
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1959
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1960
|
+
def list_project_location_service_lb_policies(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1961
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/serviceLbPolicies', options)
|
1962
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::ListServiceLbPoliciesResponse::Representation
|
1963
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::ListServiceLbPoliciesResponse
|
1964
|
+
command.params['parent'] = parent unless parent.nil?
|
1965
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1966
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1967
|
+
command.query['fields'] = fields unless fields.nil?
|
1968
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1969
|
+
execute_or_queue_command(command, &block)
|
1970
|
+
end
|
1971
|
+
|
1972
|
+
# Updates the parameters of a single ServiceLbPolicy.
|
1973
|
+
# @param [String] name
|
1974
|
+
# Required. Name of the ServiceLbPolicy resource. It matches pattern `projects/`
|
1975
|
+
# project`/locations/`location`/serviceLbPolicies/`service_lb_policy_name``.
|
1976
|
+
# @param [Google::Apis::NetworkservicesV1beta1::ServiceLbPolicy] service_lb_policy_object
|
1977
|
+
# @param [String] update_mask
|
1978
|
+
# Optional. Field mask is used to specify the fields to be overwritten in the
|
1979
|
+
# ServiceLbPolicy resource by the update. The fields specified in the
|
1980
|
+
# update_mask are relative to the resource, not the full request. A field will
|
1981
|
+
# be overwritten if it is in the mask. If the user does not provide a mask then
|
1982
|
+
# all fields will be overwritten.
|
1983
|
+
# @param [String] fields
|
1984
|
+
# Selector specifying which fields to include in a partial response.
|
1985
|
+
# @param [String] quota_user
|
1986
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1987
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1988
|
+
# @param [Google::Apis::RequestOptions] options
|
1989
|
+
# Request-specific options
|
1990
|
+
#
|
1991
|
+
# @yield [result, err] Result & error if block supplied
|
1992
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::Operation] parsed result object
|
1993
|
+
# @yieldparam err [StandardError] error object if request failed
|
1994
|
+
#
|
1995
|
+
# @return [Google::Apis::NetworkservicesV1beta1::Operation]
|
1996
|
+
#
|
1997
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1998
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1999
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2000
|
+
def patch_project_location_service_lb_policy(name, service_lb_policy_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2001
|
+
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
|
2002
|
+
command.request_representation = Google::Apis::NetworkservicesV1beta1::ServiceLbPolicy::Representation
|
2003
|
+
command.request_object = service_lb_policy_object
|
2004
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::Operation::Representation
|
2005
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::Operation
|
2006
|
+
command.params['name'] = name unless name.nil?
|
2007
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
2008
|
+
command.query['fields'] = fields unless fields.nil?
|
2009
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2010
|
+
execute_or_queue_command(command, &block)
|
2011
|
+
end
|
2012
|
+
|
2013
|
+
# Sets the access control policy on the specified resource. Replaces any
|
2014
|
+
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
2015
|
+
# PERMISSION_DENIED` errors.
|
2016
|
+
# @param [String] resource
|
2017
|
+
# REQUIRED: The resource for which the policy is being specified. See [Resource
|
2018
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
2019
|
+
# appropriate value for this field.
|
2020
|
+
# @param [Google::Apis::NetworkservicesV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
|
2021
|
+
# @param [String] fields
|
2022
|
+
# Selector specifying which fields to include in a partial response.
|
2023
|
+
# @param [String] quota_user
|
2024
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2025
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2026
|
+
# @param [Google::Apis::RequestOptions] options
|
2027
|
+
# Request-specific options
|
2028
|
+
#
|
2029
|
+
# @yield [result, err] Result & error if block supplied
|
2030
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::Policy] parsed result object
|
2031
|
+
# @yieldparam err [StandardError] error object if request failed
|
2032
|
+
#
|
2033
|
+
# @return [Google::Apis::NetworkservicesV1beta1::Policy]
|
2034
|
+
#
|
2035
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2036
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2037
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2038
|
+
def set_service_lb_policy_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2039
|
+
command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
|
2040
|
+
command.request_representation = Google::Apis::NetworkservicesV1beta1::SetIamPolicyRequest::Representation
|
2041
|
+
command.request_object = set_iam_policy_request_object
|
2042
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::Policy::Representation
|
2043
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::Policy
|
2044
|
+
command.params['resource'] = resource unless resource.nil?
|
2045
|
+
command.query['fields'] = fields unless fields.nil?
|
2046
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2047
|
+
execute_or_queue_command(command, &block)
|
2048
|
+
end
|
2049
|
+
|
2050
|
+
# Returns permissions that a caller has on the specified resource. If the
|
2051
|
+
# resource does not exist, this will return an empty set of permissions, not a `
|
2052
|
+
# NOT_FOUND` error. Note: This operation is designed to be used for building
|
2053
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
2054
|
+
# This operation may "fail open" without warning.
|
2055
|
+
# @param [String] resource
|
2056
|
+
# REQUIRED: The resource for which the policy detail is being requested. See [
|
2057
|
+
# Resource names](https://cloud.google.com/apis/design/resource_names) for the
|
2058
|
+
# appropriate value for this field.
|
2059
|
+
# @param [Google::Apis::NetworkservicesV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
2060
|
+
# @param [String] fields
|
2061
|
+
# Selector specifying which fields to include in a partial response.
|
2062
|
+
# @param [String] quota_user
|
2063
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2064
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2065
|
+
# @param [Google::Apis::RequestOptions] options
|
2066
|
+
# Request-specific options
|
2067
|
+
#
|
2068
|
+
# @yield [result, err] Result & error if block supplied
|
2069
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::TestIamPermissionsResponse] parsed result object
|
2070
|
+
# @yieldparam err [StandardError] error object if request failed
|
2071
|
+
#
|
2072
|
+
# @return [Google::Apis::NetworkservicesV1beta1::TestIamPermissionsResponse]
|
2073
|
+
#
|
2074
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2075
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2076
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2077
|
+
def test_service_lb_policy_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2078
|
+
command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
|
2079
|
+
command.request_representation = Google::Apis::NetworkservicesV1beta1::TestIamPermissionsRequest::Representation
|
2080
|
+
command.request_object = test_iam_permissions_request_object
|
2081
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::TestIamPermissionsResponse::Representation
|
2082
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::TestIamPermissionsResponse
|
2083
|
+
command.params['resource'] = resource unless resource.nil?
|
2084
|
+
command.query['fields'] = fields unless fields.nil?
|
2085
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2086
|
+
execute_or_queue_command(command, &block)
|
2087
|
+
end
|
2088
|
+
|
1787
2089
|
# Creates a new TcpRoute in a given project and location.
|
1788
2090
|
# @param [String] parent
|
1789
2091
|
# Required. The parent resource of the TcpRoute. Must be in the format `projects/
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-networkservices_v1beta1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.27.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-06-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-networkservices_v1beta1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-networkservices_v1beta1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-networkservices_v1beta1/v0.27.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-networkservices_v1beta1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|