google-apis-compute_alpha 0.113.0 → 0.114.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a9eb684359f3077d8f75a599b78393a60e264b08add7cfd0f611c52393c1f7e2
|
4
|
+
data.tar.gz: d3d8b9810f285574d2336f75416bf9cefc26533e5f69249a03c715581a6b0998
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a795eb97ec8c1992047d2d0399563df638f35f8383d08da3f016457e868b8ddb1d4f285f333606deb006b0b76ff4aad794fe95f551692545c8f06891569fc20d
|
7
|
+
data.tar.gz: b9c8cf892d0d135c1a2228c52c0a385112bf255ef4ccec3139eb2edaa2c314ad9b663b4ba53b1cf892a960f513a07345a24806a68ea9b23106ea66dcd7970314
|
data/CHANGELOG.md
CHANGED
@@ -4149,7 +4149,8 @@ module Google
|
|
4149
4149
|
# be set for Internal Passthrough Network Load Balancers when the haPolicy is
|
4150
4150
|
# enabled, and for External Passthrough Network Load Balancers when the haPolicy
|
4151
4151
|
# fastIpMove is enabled. This field can only be specified when the load
|
4152
|
-
# balancing scheme is set to INTERNAL
|
4152
|
+
# balancing scheme is set to INTERNAL, or when the load balancing scheme is set
|
4153
|
+
# to EXTERNAL and haPolicy fastIpMove is enabled.
|
4153
4154
|
# Corresponds to the JSON property `network`
|
4154
4155
|
# @return [String]
|
4155
4156
|
attr_accessor :network
|
@@ -6759,6 +6760,273 @@ module Google
|
|
6759
6760
|
end
|
6760
6761
|
end
|
6761
6762
|
|
6763
|
+
# A request to provide Assistant Scores. These scores determine VM obtainability
|
6764
|
+
# and preemption likelihood.
|
6765
|
+
class CapacityAdviceRequest
|
6766
|
+
include Google::Apis::Core::Hashable
|
6767
|
+
|
6768
|
+
# Policy specifying the distribution of instances across zones within the
|
6769
|
+
# requested region.
|
6770
|
+
# Corresponds to the JSON property `distributionPolicy`
|
6771
|
+
# @return [Google::Apis::ComputeAlpha::CapacityAdviceRequestDistributionPolicy]
|
6772
|
+
attr_accessor :distribution_policy
|
6773
|
+
|
6774
|
+
# Specification of alternative, flexible instance subsets.
|
6775
|
+
# Corresponds to the JSON property `instanceFlexibilityPolicy`
|
6776
|
+
# @return [Google::Apis::ComputeAlpha::CapacityAdviceRequestInstanceFlexibilityPolicy]
|
6777
|
+
attr_accessor :instance_flexibility_policy
|
6778
|
+
|
6779
|
+
# Instance provisining properties.
|
6780
|
+
# Corresponds to the JSON property `instanceProperties`
|
6781
|
+
# @return [Google::Apis::ComputeAlpha::CapacityAdviceRequestInstanceProperties]
|
6782
|
+
attr_accessor :instance_properties
|
6783
|
+
|
6784
|
+
def initialize(**args)
|
6785
|
+
update!(**args)
|
6786
|
+
end
|
6787
|
+
|
6788
|
+
# Update properties of this object
|
6789
|
+
def update!(**args)
|
6790
|
+
@distribution_policy = args[:distribution_policy] if args.key?(:distribution_policy)
|
6791
|
+
@instance_flexibility_policy = args[:instance_flexibility_policy] if args.key?(:instance_flexibility_policy)
|
6792
|
+
@instance_properties = args[:instance_properties] if args.key?(:instance_properties)
|
6793
|
+
end
|
6794
|
+
end
|
6795
|
+
|
6796
|
+
#
|
6797
|
+
class CapacityAdviceRequestDistributionPolicy
|
6798
|
+
include Google::Apis::Core::Hashable
|
6799
|
+
|
6800
|
+
# The distribution shape to which the group converges.
|
6801
|
+
# Corresponds to the JSON property `targetShape`
|
6802
|
+
# @return [String]
|
6803
|
+
attr_accessor :target_shape
|
6804
|
+
|
6805
|
+
# Zones where Capacity Advisor looks for capacity.
|
6806
|
+
# Corresponds to the JSON property `zones`
|
6807
|
+
# @return [Array<Google::Apis::ComputeAlpha::CapacityAdviceRequestDistributionPolicyZoneConfiguration>]
|
6808
|
+
attr_accessor :zones
|
6809
|
+
|
6810
|
+
def initialize(**args)
|
6811
|
+
update!(**args)
|
6812
|
+
end
|
6813
|
+
|
6814
|
+
# Update properties of this object
|
6815
|
+
def update!(**args)
|
6816
|
+
@target_shape = args[:target_shape] if args.key?(:target_shape)
|
6817
|
+
@zones = args[:zones] if args.key?(:zones)
|
6818
|
+
end
|
6819
|
+
end
|
6820
|
+
|
6821
|
+
#
|
6822
|
+
class CapacityAdviceRequestDistributionPolicyZoneConfiguration
|
6823
|
+
include Google::Apis::Core::Hashable
|
6824
|
+
|
6825
|
+
# The URL of the zone.
|
6826
|
+
# Corresponds to the JSON property `zone`
|
6827
|
+
# @return [String]
|
6828
|
+
attr_accessor :zone
|
6829
|
+
|
6830
|
+
def initialize(**args)
|
6831
|
+
update!(**args)
|
6832
|
+
end
|
6833
|
+
|
6834
|
+
# Update properties of this object
|
6835
|
+
def update!(**args)
|
6836
|
+
@zone = args[:zone] if args.key?(:zone)
|
6837
|
+
end
|
6838
|
+
end
|
6839
|
+
|
6840
|
+
# Specification of alternative, flexible instance subsets.
|
6841
|
+
class CapacityAdviceRequestInstanceFlexibilityPolicy
|
6842
|
+
include Google::Apis::Core::Hashable
|
6843
|
+
|
6844
|
+
# Named instance selections configure properties. The key is an arbitrary,
|
6845
|
+
# unique RFC1035 string that identifies the instance selection.
|
6846
|
+
# Corresponds to the JSON property `instanceSelections`
|
6847
|
+
# @return [Hash<String,Google::Apis::ComputeAlpha::CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelection>]
|
6848
|
+
attr_accessor :instance_selections
|
6849
|
+
|
6850
|
+
def initialize(**args)
|
6851
|
+
update!(**args)
|
6852
|
+
end
|
6853
|
+
|
6854
|
+
# Update properties of this object
|
6855
|
+
def update!(**args)
|
6856
|
+
@instance_selections = args[:instance_selections] if args.key?(:instance_selections)
|
6857
|
+
end
|
6858
|
+
end
|
6859
|
+
|
6860
|
+
# Machine specification.
|
6861
|
+
class CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelection
|
6862
|
+
include Google::Apis::Core::Hashable
|
6863
|
+
|
6864
|
+
# Full machine-type names, e.g. "n1-standard-16".
|
6865
|
+
# Corresponds to the JSON property `machineTypes`
|
6866
|
+
# @return [Array<String>]
|
6867
|
+
attr_accessor :machine_types
|
6868
|
+
|
6869
|
+
def initialize(**args)
|
6870
|
+
update!(**args)
|
6871
|
+
end
|
6872
|
+
|
6873
|
+
# Update properties of this object
|
6874
|
+
def update!(**args)
|
6875
|
+
@machine_types = args[:machine_types] if args.key?(:machine_types)
|
6876
|
+
end
|
6877
|
+
end
|
6878
|
+
|
6879
|
+
# Instance provisining properties.
|
6880
|
+
class CapacityAdviceRequestInstanceProperties
|
6881
|
+
include Google::Apis::Core::Hashable
|
6882
|
+
|
6883
|
+
# Defines the instance scheduling options.
|
6884
|
+
# Corresponds to the JSON property `scheduling`
|
6885
|
+
# @return [Google::Apis::ComputeAlpha::CapacityAdviceRequestInstancePropertiesScheduling]
|
6886
|
+
attr_accessor :scheduling
|
6887
|
+
|
6888
|
+
def initialize(**args)
|
6889
|
+
update!(**args)
|
6890
|
+
end
|
6891
|
+
|
6892
|
+
# Update properties of this object
|
6893
|
+
def update!(**args)
|
6894
|
+
@scheduling = args[:scheduling] if args.key?(:scheduling)
|
6895
|
+
end
|
6896
|
+
end
|
6897
|
+
|
6898
|
+
# Defines the instance scheduling options.
|
6899
|
+
class CapacityAdviceRequestInstancePropertiesScheduling
|
6900
|
+
include Google::Apis::Core::Hashable
|
6901
|
+
|
6902
|
+
# Specifies the provisioning model of the instance.
|
6903
|
+
# Corresponds to the JSON property `provisioningModel`
|
6904
|
+
# @return [String]
|
6905
|
+
attr_accessor :provisioning_model
|
6906
|
+
|
6907
|
+
def initialize(**args)
|
6908
|
+
update!(**args)
|
6909
|
+
end
|
6910
|
+
|
6911
|
+
# Update properties of this object
|
6912
|
+
def update!(**args)
|
6913
|
+
@provisioning_model = args[:provisioning_model] if args.key?(:provisioning_model)
|
6914
|
+
end
|
6915
|
+
end
|
6916
|
+
|
6917
|
+
# A response contains multiple scoring recommendations.
|
6918
|
+
class CapacityAdviceResponse
|
6919
|
+
include Google::Apis::Core::Hashable
|
6920
|
+
|
6921
|
+
# Initially the API will provide one recommendation which balances the
|
6922
|
+
# individual scores according to Google's preference.
|
6923
|
+
# Corresponds to the JSON property `recommendations`
|
6924
|
+
# @return [Array<Google::Apis::ComputeAlpha::CapacityAdviceResponseRecommendation>]
|
6925
|
+
attr_accessor :recommendations
|
6926
|
+
|
6927
|
+
def initialize(**args)
|
6928
|
+
update!(**args)
|
6929
|
+
end
|
6930
|
+
|
6931
|
+
# Update properties of this object
|
6932
|
+
def update!(**args)
|
6933
|
+
@recommendations = args[:recommendations] if args.key?(:recommendations)
|
6934
|
+
end
|
6935
|
+
end
|
6936
|
+
|
6937
|
+
#
|
6938
|
+
class CapacityAdviceResponseRecommendation
|
6939
|
+
include Google::Apis::Core::Hashable
|
6940
|
+
|
6941
|
+
# The Scores message groups information about a shard of capacity.
|
6942
|
+
# Corresponds to the JSON property `scores`
|
6943
|
+
# @return [Google::Apis::ComputeAlpha::CapacityAdviceResponseRecommendationScores]
|
6944
|
+
attr_accessor :scores
|
6945
|
+
|
6946
|
+
#
|
6947
|
+
# Corresponds to the JSON property `shards`
|
6948
|
+
# @return [Array<Google::Apis::ComputeAlpha::CapacityAdviceResponseRecommendationShard>]
|
6949
|
+
attr_accessor :shards
|
6950
|
+
|
6951
|
+
def initialize(**args)
|
6952
|
+
update!(**args)
|
6953
|
+
end
|
6954
|
+
|
6955
|
+
# Update properties of this object
|
6956
|
+
def update!(**args)
|
6957
|
+
@scores = args[:scores] if args.key?(:scores)
|
6958
|
+
@shards = args[:shards] if args.key?(:shards)
|
6959
|
+
end
|
6960
|
+
end
|
6961
|
+
|
6962
|
+
# The Scores message groups information about a shard of capacity.
|
6963
|
+
class CapacityAdviceResponseRecommendationScores
|
6964
|
+
include Google::Apis::Core::Hashable
|
6965
|
+
|
6966
|
+
# The obtainability score indicates the likelihood of successfully obtaining (
|
6967
|
+
# provisioning) the requested number of VMs. The score range is 0.0 through 1.0.
|
6968
|
+
# Higher is better.
|
6969
|
+
# Corresponds to the JSON property `obtainability`
|
6970
|
+
# @return [Float]
|
6971
|
+
attr_accessor :obtainability
|
6972
|
+
|
6973
|
+
# The preemption score indicates the likelihood that your Spot VMs is preempted.
|
6974
|
+
# For more information about the preemption process, see Preemption of Spot VMs.
|
6975
|
+
# The score range is 0.0 through 1.0. Higher is better.
|
6976
|
+
# Corresponds to the JSON property `spotPreemption`
|
6977
|
+
# @return [Float]
|
6978
|
+
attr_accessor :spot_preemption
|
6979
|
+
|
6980
|
+
def initialize(**args)
|
6981
|
+
update!(**args)
|
6982
|
+
end
|
6983
|
+
|
6984
|
+
# Update properties of this object
|
6985
|
+
def update!(**args)
|
6986
|
+
@obtainability = args[:obtainability] if args.key?(:obtainability)
|
6987
|
+
@spot_preemption = args[:spot_preemption] if args.key?(:spot_preemption)
|
6988
|
+
end
|
6989
|
+
end
|
6990
|
+
|
6991
|
+
# Shards represent blocks of uniform capacity in recommendations. Each shard is
|
6992
|
+
# for a single zone, single instance selection, and a single machine shape. Each
|
6993
|
+
# shard defines a size expressed as the number of VMs.
|
6994
|
+
class CapacityAdviceResponseRecommendationShard
|
6995
|
+
include Google::Apis::Core::Hashable
|
6996
|
+
|
6997
|
+
#
|
6998
|
+
# Corresponds to the JSON property `instanceCount`
|
6999
|
+
# @return [Fixnum]
|
7000
|
+
attr_accessor :instance_count
|
7001
|
+
|
7002
|
+
# The machine type corresponds to the instance selection in the request.
|
7003
|
+
# Corresponds to the JSON property `machineType`
|
7004
|
+
# @return [String]
|
7005
|
+
attr_accessor :machine_type
|
7006
|
+
|
7007
|
+
# Provisioning model of the recommended capacity.
|
7008
|
+
# Corresponds to the JSON property `provisioningModel`
|
7009
|
+
# @return [String]
|
7010
|
+
attr_accessor :provisioning_model
|
7011
|
+
|
7012
|
+
# The zone name for this shard.
|
7013
|
+
# Corresponds to the JSON property `zone`
|
7014
|
+
# @return [String]
|
7015
|
+
attr_accessor :zone
|
7016
|
+
|
7017
|
+
def initialize(**args)
|
7018
|
+
update!(**args)
|
7019
|
+
end
|
7020
|
+
|
7021
|
+
# Update properties of this object
|
7022
|
+
def update!(**args)
|
7023
|
+
@instance_count = args[:instance_count] if args.key?(:instance_count)
|
7024
|
+
@machine_type = args[:machine_type] if args.key?(:machine_type)
|
7025
|
+
@provisioning_model = args[:provisioning_model] if args.key?(:provisioning_model)
|
7026
|
+
@zone = args[:zone] if args.key?(:zone)
|
7027
|
+
end
|
7028
|
+
end
|
7029
|
+
|
6762
7030
|
# [Deprecated] gRPC channel credentials to access the SDS server. gRPC channel
|
6763
7031
|
# credentials to access the SDS server.
|
6764
7032
|
class ChannelCredentials
|
@@ -20211,7 +20479,8 @@ module Google
|
|
20211
20479
|
# @return [Fixnum]
|
20212
20480
|
attr_accessor :target_size
|
20213
20481
|
|
20214
|
-
#
|
20482
|
+
# The policy that specifies how the MIG creates its VMs to achieve the target
|
20483
|
+
# size.
|
20215
20484
|
# Corresponds to the JSON property `targetSizePolicy`
|
20216
20485
|
# @return [Google::Apis::ComputeAlpha::InstanceGroupManagerTargetSizePolicy]
|
20217
20486
|
attr_accessor :target_size_policy
|
@@ -21578,7 +21847,8 @@ module Google
|
|
21578
21847
|
# @return [String]
|
21579
21848
|
attr_accessor :autoscaler
|
21580
21849
|
|
21581
|
-
#
|
21850
|
+
# Bulk instance operation is the creation of VMs in a MIG when the
|
21851
|
+
# targetSizePolicy.mode is set to BULK.
|
21582
21852
|
# Corresponds to the JSON property `bulkInstanceOperation`
|
21583
21853
|
# @return [Google::Apis::ComputeAlpha::InstanceGroupManagerStatusBulkInstanceOperation]
|
21584
21854
|
attr_accessor :bulk_instance_operation
|
@@ -21648,7 +21918,8 @@ module Google
|
|
21648
21918
|
end
|
21649
21919
|
end
|
21650
21920
|
|
21651
|
-
#
|
21921
|
+
# Bulk instance operation is the creation of VMs in a MIG when the
|
21922
|
+
# targetSizePolicy.mode is set to BULK.
|
21652
21923
|
class InstanceGroupManagerStatusBulkInstanceOperation
|
21653
21924
|
include Google::Apis::Core::Hashable
|
21654
21925
|
|
@@ -21658,7 +21929,8 @@ module Google
|
|
21658
21929
|
attr_accessor :in_progress
|
21659
21930
|
alias_method :in_progress?, :in_progress
|
21660
21931
|
|
21661
|
-
# [Output Only] Information from last progress check of bulk instance
|
21932
|
+
# [Output Only] Information from the last progress check of bulk instance
|
21933
|
+
# operation.
|
21662
21934
|
# Corresponds to the JSON property `lastProgressCheck`
|
21663
21935
|
# @return [Google::Apis::ComputeAlpha::InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck]
|
21664
21936
|
attr_accessor :last_progress_check
|
@@ -21678,7 +21950,7 @@ module Google
|
|
21678
21950
|
class InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck
|
21679
21951
|
include Google::Apis::Core::Hashable
|
21680
21952
|
|
21681
|
-
# [Output Only]
|
21953
|
+
# [Output Only] Errors encountered during bulk instance operation.
|
21682
21954
|
# Corresponds to the JSON property `error`
|
21683
21955
|
# @return [Google::Apis::ComputeAlpha::InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck::Error]
|
21684
21956
|
attr_accessor :error
|
@@ -21699,7 +21971,7 @@ module Google
|
|
21699
21971
|
@timestamp = args[:timestamp] if args.key?(:timestamp)
|
21700
21972
|
end
|
21701
21973
|
|
21702
|
-
# [Output Only]
|
21974
|
+
# [Output Only] Errors encountered during bulk instance operation.
|
21703
21975
|
class Error
|
21704
21976
|
include Google::Apis::Core::Hashable
|
21705
21977
|
|
@@ -21900,7 +22172,8 @@ module Google
|
|
21900
22172
|
class InstanceGroupManagerTargetSizePolicy
|
21901
22173
|
include Google::Apis::Core::Hashable
|
21902
22174
|
|
21903
|
-
#
|
22175
|
+
# The mode of target size policy based on which the MIG creates its VMs
|
22176
|
+
# individually or all at once.
|
21904
22177
|
# Corresponds to the JSON property `mode`
|
21905
22178
|
# @return [String]
|
21906
22179
|
attr_accessor :mode
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module ComputeAlpha
|
18
18
|
# Version of the google-apis-compute_alpha gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.114.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.17.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20250511"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -820,6 +820,72 @@ module Google
|
|
820
820
|
include Google::Apis::Core::JsonObjectSupport
|
821
821
|
end
|
822
822
|
|
823
|
+
class CapacityAdviceRequest
|
824
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
825
|
+
|
826
|
+
include Google::Apis::Core::JsonObjectSupport
|
827
|
+
end
|
828
|
+
|
829
|
+
class CapacityAdviceRequestDistributionPolicy
|
830
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
831
|
+
|
832
|
+
include Google::Apis::Core::JsonObjectSupport
|
833
|
+
end
|
834
|
+
|
835
|
+
class CapacityAdviceRequestDistributionPolicyZoneConfiguration
|
836
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
837
|
+
|
838
|
+
include Google::Apis::Core::JsonObjectSupport
|
839
|
+
end
|
840
|
+
|
841
|
+
class CapacityAdviceRequestInstanceFlexibilityPolicy
|
842
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
843
|
+
|
844
|
+
include Google::Apis::Core::JsonObjectSupport
|
845
|
+
end
|
846
|
+
|
847
|
+
class CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelection
|
848
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
849
|
+
|
850
|
+
include Google::Apis::Core::JsonObjectSupport
|
851
|
+
end
|
852
|
+
|
853
|
+
class CapacityAdviceRequestInstanceProperties
|
854
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
855
|
+
|
856
|
+
include Google::Apis::Core::JsonObjectSupport
|
857
|
+
end
|
858
|
+
|
859
|
+
class CapacityAdviceRequestInstancePropertiesScheduling
|
860
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
861
|
+
|
862
|
+
include Google::Apis::Core::JsonObjectSupport
|
863
|
+
end
|
864
|
+
|
865
|
+
class CapacityAdviceResponse
|
866
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
867
|
+
|
868
|
+
include Google::Apis::Core::JsonObjectSupport
|
869
|
+
end
|
870
|
+
|
871
|
+
class CapacityAdviceResponseRecommendation
|
872
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
873
|
+
|
874
|
+
include Google::Apis::Core::JsonObjectSupport
|
875
|
+
end
|
876
|
+
|
877
|
+
class CapacityAdviceResponseRecommendationScores
|
878
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
879
|
+
|
880
|
+
include Google::Apis::Core::JsonObjectSupport
|
881
|
+
end
|
882
|
+
|
883
|
+
class CapacityAdviceResponseRecommendationShard
|
884
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
885
|
+
|
886
|
+
include Google::Apis::Core::JsonObjectSupport
|
887
|
+
end
|
888
|
+
|
823
889
|
class ChannelCredentials
|
824
890
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
825
891
|
|
@@ -10529,6 +10595,100 @@ module Google
|
|
10529
10595
|
end
|
10530
10596
|
end
|
10531
10597
|
|
10598
|
+
class CapacityAdviceRequest
|
10599
|
+
# @private
|
10600
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
10601
|
+
property :distribution_policy, as: 'distributionPolicy', class: Google::Apis::ComputeAlpha::CapacityAdviceRequestDistributionPolicy, decorator: Google::Apis::ComputeAlpha::CapacityAdviceRequestDistributionPolicy::Representation
|
10602
|
+
|
10603
|
+
property :instance_flexibility_policy, as: 'instanceFlexibilityPolicy', class: Google::Apis::ComputeAlpha::CapacityAdviceRequestInstanceFlexibilityPolicy, decorator: Google::Apis::ComputeAlpha::CapacityAdviceRequestInstanceFlexibilityPolicy::Representation
|
10604
|
+
|
10605
|
+
property :instance_properties, as: 'instanceProperties', class: Google::Apis::ComputeAlpha::CapacityAdviceRequestInstanceProperties, decorator: Google::Apis::ComputeAlpha::CapacityAdviceRequestInstanceProperties::Representation
|
10606
|
+
|
10607
|
+
end
|
10608
|
+
end
|
10609
|
+
|
10610
|
+
class CapacityAdviceRequestDistributionPolicy
|
10611
|
+
# @private
|
10612
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
10613
|
+
property :target_shape, as: 'targetShape'
|
10614
|
+
collection :zones, as: 'zones', class: Google::Apis::ComputeAlpha::CapacityAdviceRequestDistributionPolicyZoneConfiguration, decorator: Google::Apis::ComputeAlpha::CapacityAdviceRequestDistributionPolicyZoneConfiguration::Representation
|
10615
|
+
|
10616
|
+
end
|
10617
|
+
end
|
10618
|
+
|
10619
|
+
class CapacityAdviceRequestDistributionPolicyZoneConfiguration
|
10620
|
+
# @private
|
10621
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
10622
|
+
property :zone, as: 'zone'
|
10623
|
+
end
|
10624
|
+
end
|
10625
|
+
|
10626
|
+
class CapacityAdviceRequestInstanceFlexibilityPolicy
|
10627
|
+
# @private
|
10628
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
10629
|
+
hash :instance_selections, as: 'instanceSelections', class: Google::Apis::ComputeAlpha::CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelection, decorator: Google::Apis::ComputeAlpha::CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelection::Representation
|
10630
|
+
|
10631
|
+
end
|
10632
|
+
end
|
10633
|
+
|
10634
|
+
class CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelection
|
10635
|
+
# @private
|
10636
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
10637
|
+
collection :machine_types, as: 'machineTypes'
|
10638
|
+
end
|
10639
|
+
end
|
10640
|
+
|
10641
|
+
class CapacityAdviceRequestInstanceProperties
|
10642
|
+
# @private
|
10643
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
10644
|
+
property :scheduling, as: 'scheduling', class: Google::Apis::ComputeAlpha::CapacityAdviceRequestInstancePropertiesScheduling, decorator: Google::Apis::ComputeAlpha::CapacityAdviceRequestInstancePropertiesScheduling::Representation
|
10645
|
+
|
10646
|
+
end
|
10647
|
+
end
|
10648
|
+
|
10649
|
+
class CapacityAdviceRequestInstancePropertiesScheduling
|
10650
|
+
# @private
|
10651
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
10652
|
+
property :provisioning_model, as: 'provisioningModel'
|
10653
|
+
end
|
10654
|
+
end
|
10655
|
+
|
10656
|
+
class CapacityAdviceResponse
|
10657
|
+
# @private
|
10658
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
10659
|
+
collection :recommendations, as: 'recommendations', class: Google::Apis::ComputeAlpha::CapacityAdviceResponseRecommendation, decorator: Google::Apis::ComputeAlpha::CapacityAdviceResponseRecommendation::Representation
|
10660
|
+
|
10661
|
+
end
|
10662
|
+
end
|
10663
|
+
|
10664
|
+
class CapacityAdviceResponseRecommendation
|
10665
|
+
# @private
|
10666
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
10667
|
+
property :scores, as: 'scores', class: Google::Apis::ComputeAlpha::CapacityAdviceResponseRecommendationScores, decorator: Google::Apis::ComputeAlpha::CapacityAdviceResponseRecommendationScores::Representation
|
10668
|
+
|
10669
|
+
collection :shards, as: 'shards', class: Google::Apis::ComputeAlpha::CapacityAdviceResponseRecommendationShard, decorator: Google::Apis::ComputeAlpha::CapacityAdviceResponseRecommendationShard::Representation
|
10670
|
+
|
10671
|
+
end
|
10672
|
+
end
|
10673
|
+
|
10674
|
+
class CapacityAdviceResponseRecommendationScores
|
10675
|
+
# @private
|
10676
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
10677
|
+
property :obtainability, as: 'obtainability'
|
10678
|
+
property :spot_preemption, as: 'spotPreemption'
|
10679
|
+
end
|
10680
|
+
end
|
10681
|
+
|
10682
|
+
class CapacityAdviceResponseRecommendationShard
|
10683
|
+
# @private
|
10684
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
10685
|
+
property :instance_count, as: 'instanceCount'
|
10686
|
+
property :machine_type, as: 'machineType'
|
10687
|
+
property :provisioning_model, as: 'provisioningModel'
|
10688
|
+
property :zone, as: 'zone'
|
10689
|
+
end
|
10690
|
+
end
|
10691
|
+
|
10532
10692
|
class ChannelCredentials
|
10533
10693
|
# @private
|
10534
10694
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -821,6 +821,49 @@ module Google
|
|
821
821
|
execute_or_queue_command(command, &block)
|
822
822
|
end
|
823
823
|
|
824
|
+
# Advice on making real-time decisions (such as choosing zone or machine types)
|
825
|
+
# during deployment to maximize your chances of obtaining capacity.
|
826
|
+
# @param [String] project
|
827
|
+
# Project ID for this request.
|
828
|
+
# @param [String] region
|
829
|
+
# Name of the region for this request.
|
830
|
+
# @param [Fixnum] size
|
831
|
+
# Size of requested capacity.
|
832
|
+
# @param [Google::Apis::ComputeAlpha::CapacityAdviceRequest] capacity_advice_request_object
|
833
|
+
# @param [String] fields
|
834
|
+
# Selector specifying which fields to include in a partial response.
|
835
|
+
# @param [String] quota_user
|
836
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
837
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
838
|
+
# @param [String] user_ip
|
839
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
840
|
+
# @param [Google::Apis::RequestOptions] options
|
841
|
+
# Request-specific options
|
842
|
+
#
|
843
|
+
# @yield [result, err] Result & error if block supplied
|
844
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::CapacityAdviceResponse] parsed result object
|
845
|
+
# @yieldparam err [StandardError] error object if request failed
|
846
|
+
#
|
847
|
+
# @return [Google::Apis::ComputeAlpha::CapacityAdviceResponse]
|
848
|
+
#
|
849
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
850
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
851
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
852
|
+
def capacity_advice(project, region, size, capacity_advice_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
853
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/advice/capacity', options)
|
854
|
+
command.request_representation = Google::Apis::ComputeAlpha::CapacityAdviceRequest::Representation
|
855
|
+
command.request_object = capacity_advice_request_object
|
856
|
+
command.response_representation = Google::Apis::ComputeAlpha::CapacityAdviceResponse::Representation
|
857
|
+
command.response_class = Google::Apis::ComputeAlpha::CapacityAdviceResponse
|
858
|
+
command.params['project'] = project unless project.nil?
|
859
|
+
command.params['region'] = region unless region.nil?
|
860
|
+
command.query['size'] = size unless size.nil?
|
861
|
+
command.query['fields'] = fields unless fields.nil?
|
862
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
863
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
864
|
+
execute_or_queue_command(command, &block)
|
865
|
+
end
|
866
|
+
|
824
867
|
# Retrieves an aggregated list of autoscalers. To prevent failure, Google
|
825
868
|
# recommends that you set the `returnPartialSuccess` parameter to `true`.
|
826
869
|
# @param [String] project
|
@@ -30639,6 +30682,526 @@ module Google
|
|
30639
30682
|
execute_or_queue_command(command, &block)
|
30640
30683
|
end
|
30641
30684
|
|
30685
|
+
# Deletes the specified regional BackendBucket resource.
|
30686
|
+
# @param [String] project
|
30687
|
+
# Project ID for this request.
|
30688
|
+
# @param [String] region
|
30689
|
+
# Name of the region scoping this request.
|
30690
|
+
# @param [String] backend_bucket
|
30691
|
+
# Name of the BackendBucket resource to delete.
|
30692
|
+
# @param [Boolean] force_delete
|
30693
|
+
# Force delete the backend bucket even if it is still in use by other resources.
|
30694
|
+
# It's intended to be used internally only for requests from wipeout.
|
30695
|
+
# @param [String] request_id
|
30696
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
30697
|
+
# that if you must retry your request, the server will know to ignore the
|
30698
|
+
# request if it has already been completed. For example, consider a situation
|
30699
|
+
# where you make an initial request and the request times out. If you make the
|
30700
|
+
# request again with the same request ID, the server can check if original
|
30701
|
+
# operation with the same request ID was received, and if so, will ignore the
|
30702
|
+
# second request. This prevents clients from accidentally creating duplicate
|
30703
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
30704
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface:
|
30705
|
+
# MixerMutationRequestBuilder
|
30706
|
+
# @param [String] fields
|
30707
|
+
# Selector specifying which fields to include in a partial response.
|
30708
|
+
# @param [String] quota_user
|
30709
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
30710
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
30711
|
+
# @param [String] user_ip
|
30712
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
30713
|
+
# @param [Google::Apis::RequestOptions] options
|
30714
|
+
# Request-specific options
|
30715
|
+
#
|
30716
|
+
# @yield [result, err] Result & error if block supplied
|
30717
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
30718
|
+
# @yieldparam err [StandardError] error object if request failed
|
30719
|
+
#
|
30720
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
30721
|
+
#
|
30722
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
30723
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
30724
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
30725
|
+
def delete_region_backend_bucket(project, region, backend_bucket, force_delete: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
30726
|
+
command = make_simple_command(:delete, 'projects/{project}/regions/{region}/backendBuckets/{backendBucket}', options)
|
30727
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
30728
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
30729
|
+
command.params['project'] = project unless project.nil?
|
30730
|
+
command.params['region'] = region unless region.nil?
|
30731
|
+
command.params['backendBucket'] = backend_bucket unless backend_bucket.nil?
|
30732
|
+
command.query['forceDelete'] = force_delete unless force_delete.nil?
|
30733
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
30734
|
+
command.query['fields'] = fields unless fields.nil?
|
30735
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
30736
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
30737
|
+
execute_or_queue_command(command, &block)
|
30738
|
+
end
|
30739
|
+
|
30740
|
+
# Returns the specified regional BackendBucket resource.
|
30741
|
+
# @param [String] project
|
30742
|
+
# Project ID for this request.
|
30743
|
+
# @param [String] region
|
30744
|
+
# Name of the region scoping this request.
|
30745
|
+
# @param [String] backend_bucket
|
30746
|
+
# Name of the BackendBucket resource to return.
|
30747
|
+
# @param [String] fields
|
30748
|
+
# Selector specifying which fields to include in a partial response.
|
30749
|
+
# @param [String] quota_user
|
30750
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
30751
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
30752
|
+
# @param [String] user_ip
|
30753
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
30754
|
+
# @param [Google::Apis::RequestOptions] options
|
30755
|
+
# Request-specific options
|
30756
|
+
#
|
30757
|
+
# @yield [result, err] Result & error if block supplied
|
30758
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::BackendBucket] parsed result object
|
30759
|
+
# @yieldparam err [StandardError] error object if request failed
|
30760
|
+
#
|
30761
|
+
# @return [Google::Apis::ComputeAlpha::BackendBucket]
|
30762
|
+
#
|
30763
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
30764
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
30765
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
30766
|
+
def get_region_backend_bucket(project, region, backend_bucket, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
30767
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/backendBuckets/{backendBucket}', options)
|
30768
|
+
command.response_representation = Google::Apis::ComputeAlpha::BackendBucket::Representation
|
30769
|
+
command.response_class = Google::Apis::ComputeAlpha::BackendBucket
|
30770
|
+
command.params['project'] = project unless project.nil?
|
30771
|
+
command.params['region'] = region unless region.nil?
|
30772
|
+
command.params['backendBucket'] = backend_bucket unless backend_bucket.nil?
|
30773
|
+
command.query['fields'] = fields unless fields.nil?
|
30774
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
30775
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
30776
|
+
execute_or_queue_command(command, &block)
|
30777
|
+
end
|
30778
|
+
|
30779
|
+
# Gets the access control policy for a resource. May be empty if no such policy
|
30780
|
+
# or resource exists.
|
30781
|
+
# @param [String] project
|
30782
|
+
# Project ID for this request.
|
30783
|
+
# @param [String] region
|
30784
|
+
# The name of the region for this request.
|
30785
|
+
# @param [String] resource
|
30786
|
+
# Name or id of the resource for this request.
|
30787
|
+
# @param [Fixnum] options_requested_policy_version
|
30788
|
+
# Requested IAM Policy version.
|
30789
|
+
# @param [String] fields
|
30790
|
+
# Selector specifying which fields to include in a partial response.
|
30791
|
+
# @param [String] quota_user
|
30792
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
30793
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
30794
|
+
# @param [String] user_ip
|
30795
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
30796
|
+
# @param [Google::Apis::RequestOptions] options
|
30797
|
+
# Request-specific options
|
30798
|
+
#
|
30799
|
+
# @yield [result, err] Result & error if block supplied
|
30800
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
|
30801
|
+
# @yieldparam err [StandardError] error object if request failed
|
30802
|
+
#
|
30803
|
+
# @return [Google::Apis::ComputeAlpha::Policy]
|
30804
|
+
#
|
30805
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
30806
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
30807
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
30808
|
+
def get_region_backend_bucket_iam_policy(project, region, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
30809
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/backendBuckets/{resource}/getIamPolicy', options)
|
30810
|
+
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
30811
|
+
command.response_class = Google::Apis::ComputeAlpha::Policy
|
30812
|
+
command.params['project'] = project unless project.nil?
|
30813
|
+
command.params['region'] = region unless region.nil?
|
30814
|
+
command.params['resource'] = resource unless resource.nil?
|
30815
|
+
command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
30816
|
+
command.query['fields'] = fields unless fields.nil?
|
30817
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
30818
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
30819
|
+
execute_or_queue_command(command, &block)
|
30820
|
+
end
|
30821
|
+
|
30822
|
+
# Creates a RegionBackendBucket in the specified project in the given scope
|
30823
|
+
# using the parameters that are included in the request.
|
30824
|
+
# @param [String] project
|
30825
|
+
# Project ID for this request.
|
30826
|
+
# @param [String] region
|
30827
|
+
# Name of the region of this request.
|
30828
|
+
# @param [Google::Apis::ComputeAlpha::BackendBucket] backend_bucket_object
|
30829
|
+
# @param [String] request_id
|
30830
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
30831
|
+
# that if you must retry your request, the server will know to ignore the
|
30832
|
+
# request if it has already been completed. For example, consider a situation
|
30833
|
+
# where you make an initial request and the request times out. If you make the
|
30834
|
+
# request again with the same request ID, the server can check if original
|
30835
|
+
# operation with the same request ID was received, and if so, will ignore the
|
30836
|
+
# second request. This prevents clients from accidentally creating duplicate
|
30837
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
30838
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
30839
|
+
# @param [String] fields
|
30840
|
+
# Selector specifying which fields to include in a partial response.
|
30841
|
+
# @param [String] quota_user
|
30842
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
30843
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
30844
|
+
# @param [String] user_ip
|
30845
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
30846
|
+
# @param [Google::Apis::RequestOptions] options
|
30847
|
+
# Request-specific options
|
30848
|
+
#
|
30849
|
+
# @yield [result, err] Result & error if block supplied
|
30850
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
30851
|
+
# @yieldparam err [StandardError] error object if request failed
|
30852
|
+
#
|
30853
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
30854
|
+
#
|
30855
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
30856
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
30857
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
30858
|
+
def insert_region_backend_bucket(project, region, backend_bucket_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
30859
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/regionBackendBuckets', options)
|
30860
|
+
command.request_representation = Google::Apis::ComputeAlpha::BackendBucket::Representation
|
30861
|
+
command.request_object = backend_bucket_object
|
30862
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
30863
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
30864
|
+
command.params['project'] = project unless project.nil?
|
30865
|
+
command.params['region'] = region unless region.nil?
|
30866
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
30867
|
+
command.query['fields'] = fields unless fields.nil?
|
30868
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
30869
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
30870
|
+
execute_or_queue_command(command, &block)
|
30871
|
+
end
|
30872
|
+
|
30873
|
+
# Retrieves the list of BackendBucket resources available to the specified
|
30874
|
+
# project in the given region.
|
30875
|
+
# @param [String] project
|
30876
|
+
# Project ID for this request.
|
30877
|
+
# @param [String] region
|
30878
|
+
# Name of the region of this request.
|
30879
|
+
# @param [String] filter
|
30880
|
+
# A filter expression that filters resources listed in the response. Most
|
30881
|
+
# Compute resources support two types of filter expressions: expressions that
|
30882
|
+
# support regular expressions and expressions that follow API improvement
|
30883
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
30884
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
30885
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
30886
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
30887
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
30888
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
30889
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
30890
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
30891
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
30892
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
30893
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
30894
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
30895
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
30896
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
30897
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
30898
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
30899
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
30900
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
30901
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
30902
|
+
# un-parenthesized expression with or without quotes or against multiple
|
30903
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
30904
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
30905
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
30906
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
30907
|
+
# literal value must match the entire field. For example, to filter for
|
30908
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
30909
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
30910
|
+
# expressions.
|
30911
|
+
# @param [Fixnum] max_results
|
30912
|
+
# The maximum number of results per page that should be returned. If the number
|
30913
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
30914
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
30915
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
30916
|
+
# @param [String] order_by
|
30917
|
+
# Sorts list results by a certain order. By default, results are returned in
|
30918
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
30919
|
+
# descending order based on the creation timestamp using `orderBy="
|
30920
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
30921
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
30922
|
+
# resources like operations so that the newest operation is returned first.
|
30923
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
30924
|
+
# @param [String] page_token
|
30925
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
30926
|
+
# by a previous list request to get the next page of results.
|
30927
|
+
# @param [Boolean] return_partial_success
|
30928
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
30929
|
+
# failure. The default value is false. For example, when partial success
|
30930
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
30931
|
+
# resources in the zone or no resources, with an error code.
|
30932
|
+
# @param [String] fields
|
30933
|
+
# Selector specifying which fields to include in a partial response.
|
30934
|
+
# @param [String] quota_user
|
30935
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
30936
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
30937
|
+
# @param [String] user_ip
|
30938
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
30939
|
+
# @param [Google::Apis::RequestOptions] options
|
30940
|
+
# Request-specific options
|
30941
|
+
#
|
30942
|
+
# @yield [result, err] Result & error if block supplied
|
30943
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::BackendBucketList] parsed result object
|
30944
|
+
# @yieldparam err [StandardError] error object if request failed
|
30945
|
+
#
|
30946
|
+
# @return [Google::Apis::ComputeAlpha::BackendBucketList]
|
30947
|
+
#
|
30948
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
30949
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
30950
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
30951
|
+
def list_region_backend_buckets(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
30952
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/backendBuckets', options)
|
30953
|
+
command.response_representation = Google::Apis::ComputeAlpha::BackendBucketList::Representation
|
30954
|
+
command.response_class = Google::Apis::ComputeAlpha::BackendBucketList
|
30955
|
+
command.params['project'] = project unless project.nil?
|
30956
|
+
command.params['region'] = region unless region.nil?
|
30957
|
+
command.query['filter'] = filter unless filter.nil?
|
30958
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
30959
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
30960
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
30961
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
30962
|
+
command.query['fields'] = fields unless fields.nil?
|
30963
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
30964
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
30965
|
+
execute_or_queue_command(command, &block)
|
30966
|
+
end
|
30967
|
+
|
30968
|
+
# Retrieves a list of all usable backend buckets in the specified project in the
|
30969
|
+
# given region.
|
30970
|
+
# @param [String] project
|
30971
|
+
# Project ID for this request.
|
30972
|
+
# @param [String] region
|
30973
|
+
# Name of the region scoping this request. It must be a string that meets the
|
30974
|
+
# requirements in RFC1035.
|
30975
|
+
# @param [String] filter
|
30976
|
+
# A filter expression that filters resources listed in the response. Most
|
30977
|
+
# Compute resources support two types of filter expressions: expressions that
|
30978
|
+
# support regular expressions and expressions that follow API improvement
|
30979
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
30980
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
30981
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
30982
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
30983
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
30984
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
30985
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
30986
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
30987
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
30988
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
30989
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
30990
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
30991
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
30992
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
30993
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
30994
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
30995
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
30996
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
30997
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
30998
|
+
# un-parenthesized expression with or without quotes or against multiple
|
30999
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
31000
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
31001
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
31002
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
31003
|
+
# literal value must match the entire field. For example, to filter for
|
31004
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
31005
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
31006
|
+
# expressions.
|
31007
|
+
# @param [Fixnum] max_results
|
31008
|
+
# The maximum number of results per page that should be returned. If the number
|
31009
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
31010
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
31011
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
31012
|
+
# @param [String] order_by
|
31013
|
+
# Sorts list results by a certain order. By default, results are returned in
|
31014
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
31015
|
+
# descending order based on the creation timestamp using `orderBy="
|
31016
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
31017
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
31018
|
+
# resources like operations so that the newest operation is returned first.
|
31019
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
31020
|
+
# @param [String] page_token
|
31021
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
31022
|
+
# by a previous list request to get the next page of results.
|
31023
|
+
# @param [Boolean] return_partial_success
|
31024
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
31025
|
+
# failure. The default value is false. For example, when partial success
|
31026
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
31027
|
+
# resources in the zone or no resources, with an error code.
|
31028
|
+
# @param [String] fields
|
31029
|
+
# Selector specifying which fields to include in a partial response.
|
31030
|
+
# @param [String] quota_user
|
31031
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
31032
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
31033
|
+
# @param [String] user_ip
|
31034
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
31035
|
+
# @param [Google::Apis::RequestOptions] options
|
31036
|
+
# Request-specific options
|
31037
|
+
#
|
31038
|
+
# @yield [result, err] Result & error if block supplied
|
31039
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::BackendBucketListUsable] parsed result object
|
31040
|
+
# @yieldparam err [StandardError] error object if request failed
|
31041
|
+
#
|
31042
|
+
# @return [Google::Apis::ComputeAlpha::BackendBucketListUsable]
|
31043
|
+
#
|
31044
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
31045
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
31046
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
31047
|
+
def list_region_backend_bucket_usable(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
31048
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/backendBuckets/listUsable', options)
|
31049
|
+
command.response_representation = Google::Apis::ComputeAlpha::BackendBucketListUsable::Representation
|
31050
|
+
command.response_class = Google::Apis::ComputeAlpha::BackendBucketListUsable
|
31051
|
+
command.params['project'] = project unless project.nil?
|
31052
|
+
command.params['region'] = region unless region.nil?
|
31053
|
+
command.query['filter'] = filter unless filter.nil?
|
31054
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
31055
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
31056
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
31057
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
31058
|
+
command.query['fields'] = fields unless fields.nil?
|
31059
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
31060
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
31061
|
+
execute_or_queue_command(command, &block)
|
31062
|
+
end
|
31063
|
+
|
31064
|
+
# Updates the specified BackendBucket resource with the data included in the
|
31065
|
+
# request. This method supports PATCH semantics and uses the JSON merge patch
|
31066
|
+
# format and processing rules.
|
31067
|
+
# @param [String] project
|
31068
|
+
# Project ID for this request.
|
31069
|
+
# @param [String] region
|
31070
|
+
# Name of the region scoping this request.
|
31071
|
+
# @param [String] backend_bucket
|
31072
|
+
# Name of the BackendBucket resource to patch.
|
31073
|
+
# @param [Google::Apis::ComputeAlpha::BackendBucket] backend_bucket_object
|
31074
|
+
# @param [String] request_id
|
31075
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
31076
|
+
# that if you must retry your request, the server will know to ignore the
|
31077
|
+
# request if it has already been completed. For example, consider a situation
|
31078
|
+
# where you make an initial request and the request times out. If you make the
|
31079
|
+
# request again with the same request ID, the server can check if original
|
31080
|
+
# operation with the same request ID was received, and if so, will ignore the
|
31081
|
+
# second request. This prevents clients from accidentally creating duplicate
|
31082
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
31083
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface:
|
31084
|
+
# MixerMutationRequestBuilder
|
31085
|
+
# @param [String] fields
|
31086
|
+
# Selector specifying which fields to include in a partial response.
|
31087
|
+
# @param [String] quota_user
|
31088
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
31089
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
31090
|
+
# @param [String] user_ip
|
31091
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
31092
|
+
# @param [Google::Apis::RequestOptions] options
|
31093
|
+
# Request-specific options
|
31094
|
+
#
|
31095
|
+
# @yield [result, err] Result & error if block supplied
|
31096
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
31097
|
+
# @yieldparam err [StandardError] error object if request failed
|
31098
|
+
#
|
31099
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
31100
|
+
#
|
31101
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
31102
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
31103
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
31104
|
+
def patch_region_backend_bucket(project, region, backend_bucket, backend_bucket_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
31105
|
+
command = make_simple_command(:patch, 'projects/{project}/regions/{region}/backendBuckets/{backendBucket}', options)
|
31106
|
+
command.request_representation = Google::Apis::ComputeAlpha::BackendBucket::Representation
|
31107
|
+
command.request_object = backend_bucket_object
|
31108
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
31109
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
31110
|
+
command.params['project'] = project unless project.nil?
|
31111
|
+
command.params['region'] = region unless region.nil?
|
31112
|
+
command.params['backendBucket'] = backend_bucket unless backend_bucket.nil?
|
31113
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
31114
|
+
command.query['fields'] = fields unless fields.nil?
|
31115
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
31116
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
31117
|
+
execute_or_queue_command(command, &block)
|
31118
|
+
end
|
31119
|
+
|
31120
|
+
# Sets the access control policy on the specified resource. Replaces any
|
31121
|
+
# existing policy.
|
31122
|
+
# @param [String] project
|
31123
|
+
# Project ID for this request.
|
31124
|
+
# @param [String] region
|
31125
|
+
# The name of the region for this request.
|
31126
|
+
# @param [String] resource
|
31127
|
+
# Name or id of the resource for this request.
|
31128
|
+
# @param [Google::Apis::ComputeAlpha::RegionSetPolicyRequest] region_set_policy_request_object
|
31129
|
+
# @param [String] fields
|
31130
|
+
# Selector specifying which fields to include in a partial response.
|
31131
|
+
# @param [String] quota_user
|
31132
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
31133
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
31134
|
+
# @param [String] user_ip
|
31135
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
31136
|
+
# @param [Google::Apis::RequestOptions] options
|
31137
|
+
# Request-specific options
|
31138
|
+
#
|
31139
|
+
# @yield [result, err] Result & error if block supplied
|
31140
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
|
31141
|
+
# @yieldparam err [StandardError] error object if request failed
|
31142
|
+
#
|
31143
|
+
# @return [Google::Apis::ComputeAlpha::Policy]
|
31144
|
+
#
|
31145
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
31146
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
31147
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
31148
|
+
def set_region_backend_bucket_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
31149
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/backendBuckets/{resource}/setIamPolicy', options)
|
31150
|
+
command.request_representation = Google::Apis::ComputeAlpha::RegionSetPolicyRequest::Representation
|
31151
|
+
command.request_object = region_set_policy_request_object
|
31152
|
+
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
31153
|
+
command.response_class = Google::Apis::ComputeAlpha::Policy
|
31154
|
+
command.params['project'] = project unless project.nil?
|
31155
|
+
command.params['region'] = region unless region.nil?
|
31156
|
+
command.params['resource'] = resource unless resource.nil?
|
31157
|
+
command.query['fields'] = fields unless fields.nil?
|
31158
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
31159
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
31160
|
+
execute_or_queue_command(command, &block)
|
31161
|
+
end
|
31162
|
+
|
31163
|
+
# Returns permissions that a caller has on the specified resource.
|
31164
|
+
# @param [String] project
|
31165
|
+
# Project ID for this request.
|
31166
|
+
# @param [String] region
|
31167
|
+
# The name of the region for this request.
|
31168
|
+
# @param [String] resource
|
31169
|
+
# Name or id of the resource for this request.
|
31170
|
+
# @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
|
31171
|
+
# @param [String] fields
|
31172
|
+
# Selector specifying which fields to include in a partial response.
|
31173
|
+
# @param [String] quota_user
|
31174
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
31175
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
31176
|
+
# @param [String] user_ip
|
31177
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
31178
|
+
# @param [Google::Apis::RequestOptions] options
|
31179
|
+
# Request-specific options
|
31180
|
+
#
|
31181
|
+
# @yield [result, err] Result & error if block supplied
|
31182
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
|
31183
|
+
# @yieldparam err [StandardError] error object if request failed
|
31184
|
+
#
|
31185
|
+
# @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
|
31186
|
+
#
|
31187
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
31188
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
31189
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
31190
|
+
def test_region_backend_bucket_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
31191
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/backendBuckets/{resource}/testIamPermissions', options)
|
31192
|
+
command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
|
31193
|
+
command.request_object = test_permissions_request_object
|
31194
|
+
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
|
31195
|
+
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
|
31196
|
+
command.params['project'] = project unless project.nil?
|
31197
|
+
command.params['region'] = region unless region.nil?
|
31198
|
+
command.params['resource'] = resource unless resource.nil?
|
31199
|
+
command.query['fields'] = fields unless fields.nil?
|
31200
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
31201
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
31202
|
+
execute_or_queue_command(command, &block)
|
31203
|
+
end
|
31204
|
+
|
30642
31205
|
# Deletes the specified regional BackendService resource.
|
30643
31206
|
# @param [String] project
|
30644
31207
|
# Project ID for this request.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-compute_alpha
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.114.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
@@ -57,7 +57,7 @@ licenses:
|
|
57
57
|
metadata:
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_alpha/CHANGELOG.md
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-compute_alpha/v0.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-compute_alpha/v0.114.0
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_alpha
|
62
62
|
rdoc_options: []
|
63
63
|
require_paths:
|
@@ -73,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: '0'
|
75
75
|
requirements: []
|
76
|
-
rubygems_version: 3.6.
|
76
|
+
rubygems_version: 3.6.9
|
77
77
|
specification_version: 4
|
78
78
|
summary: Simple REST client for Compute Engine API Alpha
|
79
79
|
test_files: []
|