google-apis-compute_beta 0.140.0 → 0.142.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.
|
@@ -16,13 +16,13 @@ module Google
|
|
|
16
16
|
module Apis
|
|
17
17
|
module ComputeBeta
|
|
18
18
|
# Version of the google-apis-compute_beta gem
|
|
19
|
-
GEM_VERSION = "0.
|
|
19
|
+
GEM_VERSION = "0.142.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
22
|
GENERATOR_VERSION = "0.19.0"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20260629"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -2662,6 +2662,12 @@ module Google
|
|
|
2662
2662
|
include Google::Apis::Core::JsonObjectSupport
|
|
2663
2663
|
end
|
|
2664
2664
|
|
|
2665
|
+
class ImageView
|
|
2666
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
2667
|
+
|
|
2668
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
2669
|
+
end
|
|
2670
|
+
|
|
2665
2671
|
class InitialStateConfig
|
|
2666
2672
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
2667
2673
|
|
|
@@ -5794,6 +5800,12 @@ module Google
|
|
|
5794
5800
|
include Google::Apis::Core::JsonObjectSupport
|
|
5795
5801
|
end
|
|
5796
5802
|
|
|
5803
|
+
class PersistentDiskResourceCommitment
|
|
5804
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
5805
|
+
|
|
5806
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
5807
|
+
end
|
|
5808
|
+
|
|
5797
5809
|
class Policy
|
|
5798
5810
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
5799
5811
|
|
|
@@ -6046,6 +6058,12 @@ module Google
|
|
|
6046
6058
|
include Google::Apis::Core::JsonObjectSupport
|
|
6047
6059
|
end
|
|
6048
6060
|
|
|
6061
|
+
class RegexRewrite
|
|
6062
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
6063
|
+
|
|
6064
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
6065
|
+
end
|
|
6066
|
+
|
|
6049
6067
|
class Region
|
|
6050
6068
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
6051
6069
|
|
|
@@ -6430,6 +6448,30 @@ module Google
|
|
|
6430
6448
|
include Google::Apis::Core::JsonObjectSupport
|
|
6431
6449
|
end
|
|
6432
6450
|
|
|
6451
|
+
class ReliabilityRisk
|
|
6452
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
6453
|
+
|
|
6454
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
6455
|
+
end
|
|
6456
|
+
|
|
6457
|
+
class ReliabilityRisksListResponse
|
|
6458
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
6459
|
+
|
|
6460
|
+
class Warning
|
|
6461
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
6462
|
+
|
|
6463
|
+
class Datum
|
|
6464
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
6465
|
+
|
|
6466
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
6467
|
+
end
|
|
6468
|
+
|
|
6469
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
6470
|
+
end
|
|
6471
|
+
|
|
6472
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
6473
|
+
end
|
|
6474
|
+
|
|
6433
6475
|
class RequestMirrorPolicy
|
|
6434
6476
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
6435
6477
|
|
|
@@ -6898,6 +6940,24 @@ module Google
|
|
|
6898
6940
|
include Google::Apis::Core::JsonObjectSupport
|
|
6899
6941
|
end
|
|
6900
6942
|
|
|
6943
|
+
class RiskDetails
|
|
6944
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
6945
|
+
|
|
6946
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
6947
|
+
end
|
|
6948
|
+
|
|
6949
|
+
class RiskDetailsGlobalDnsInsight
|
|
6950
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
6951
|
+
|
|
6952
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
6953
|
+
end
|
|
6954
|
+
|
|
6955
|
+
class RiskRecommendation
|
|
6956
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
6957
|
+
|
|
6958
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
6959
|
+
end
|
|
6960
|
+
|
|
6901
6961
|
class Rollout
|
|
6902
6962
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
6903
6963
|
|
|
@@ -11487,6 +11547,8 @@ module Google
|
|
|
11487
11547
|
property :name, as: 'name'
|
|
11488
11548
|
property :params, as: 'params', class: Google::Apis::ComputeBeta::CommitmentParams, decorator: Google::Apis::ComputeBeta::CommitmentParams::Representation
|
|
11489
11549
|
|
|
11550
|
+
collection :persistent_disk_resources, as: 'persistentDiskResources', class: Google::Apis::ComputeBeta::PersistentDiskResourceCommitment, decorator: Google::Apis::ComputeBeta::PersistentDiskResourceCommitment::Representation
|
|
11551
|
+
|
|
11490
11552
|
property :plan, as: 'plan'
|
|
11491
11553
|
property :region, as: 'region'
|
|
11492
11554
|
collection :reservations, as: 'reservations', class: Google::Apis::ComputeBeta::Reservation, decorator: Google::Apis::ComputeBeta::Reservation::Representation
|
|
@@ -14604,6 +14666,14 @@ module Google
|
|
|
14604
14666
|
end
|
|
14605
14667
|
end
|
|
14606
14668
|
|
|
14669
|
+
class ImageView
|
|
14670
|
+
# @private
|
|
14671
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
14672
|
+
property :image, as: 'image', class: Google::Apis::ComputeBeta::Image, decorator: Google::Apis::ComputeBeta::Image::Representation
|
|
14673
|
+
|
|
14674
|
+
end
|
|
14675
|
+
end
|
|
14676
|
+
|
|
14607
14677
|
class InitialStateConfig
|
|
14608
14678
|
# @private
|
|
14609
14679
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -14649,6 +14719,7 @@ module Google
|
|
|
14649
14719
|
property :last_start_timestamp, as: 'lastStartTimestamp'
|
|
14650
14720
|
property :last_stop_timestamp, as: 'lastStopTimestamp'
|
|
14651
14721
|
property :last_suspended_timestamp, as: 'lastSuspendedTimestamp'
|
|
14722
|
+
property :local_ssd_encryption_mode, as: 'localSsdEncryptionMode'
|
|
14652
14723
|
property :machine_type, as: 'machineType'
|
|
14653
14724
|
property :metadata, as: 'metadata', class: Google::Apis::ComputeBeta::Metadata, decorator: Google::Apis::ComputeBeta::Metadata::Representation
|
|
14654
14725
|
|
|
@@ -15931,6 +16002,7 @@ module Google
|
|
|
15931
16002
|
|
|
15932
16003
|
property :key_revocation_action_type, as: 'keyRevocationActionType'
|
|
15933
16004
|
hash :labels, as: 'labels'
|
|
16005
|
+
property :local_ssd_encryption_mode, as: 'localSsdEncryptionMode'
|
|
15934
16006
|
property :machine_type, as: 'machineType'
|
|
15935
16007
|
property :metadata, as: 'metadata', class: Google::Apis::ComputeBeta::Metadata, decorator: Google::Apis::ComputeBeta::Metadata::Representation
|
|
15936
16008
|
|
|
@@ -20482,6 +20554,15 @@ module Google
|
|
|
20482
20554
|
end
|
|
20483
20555
|
end
|
|
20484
20556
|
|
|
20557
|
+
class PersistentDiskResourceCommitment
|
|
20558
|
+
# @private
|
|
20559
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
20560
|
+
property :amount, :numeric_string => true, as: 'amount'
|
|
20561
|
+
property :dimension_type, as: 'dimensionType'
|
|
20562
|
+
property :product_type, as: 'productType'
|
|
20563
|
+
end
|
|
20564
|
+
end
|
|
20565
|
+
|
|
20485
20566
|
class Policy
|
|
20486
20567
|
# @private
|
|
20487
20568
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -20947,6 +21028,14 @@ module Google
|
|
|
20947
21028
|
end
|
|
20948
21029
|
end
|
|
20949
21030
|
|
|
21031
|
+
class RegexRewrite
|
|
21032
|
+
# @private
|
|
21033
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
21034
|
+
property :path_pattern, as: 'pathPattern'
|
|
21035
|
+
property :path_substitution, as: 'pathSubstitution'
|
|
21036
|
+
end
|
|
21037
|
+
end
|
|
21038
|
+
|
|
20950
21039
|
class Region
|
|
20951
21040
|
# @private
|
|
20952
21041
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -21541,6 +21630,56 @@ module Google
|
|
|
21541
21630
|
end
|
|
21542
21631
|
end
|
|
21543
21632
|
|
|
21633
|
+
class ReliabilityRisk
|
|
21634
|
+
# @private
|
|
21635
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
21636
|
+
property :creation_timestamp, as: 'creationTimestamp'
|
|
21637
|
+
property :description, as: 'description'
|
|
21638
|
+
property :details, as: 'details', class: Google::Apis::ComputeBeta::RiskDetails, decorator: Google::Apis::ComputeBeta::RiskDetails::Representation
|
|
21639
|
+
|
|
21640
|
+
property :id, :numeric_string => true, as: 'id'
|
|
21641
|
+
property :kind, as: 'kind'
|
|
21642
|
+
property :name, as: 'name'
|
|
21643
|
+
property :recommendation, as: 'recommendation', class: Google::Apis::ComputeBeta::RiskRecommendation, decorator: Google::Apis::ComputeBeta::RiskRecommendation::Representation
|
|
21644
|
+
|
|
21645
|
+
property :self_link, as: 'selfLink'
|
|
21646
|
+
property :self_link_with_id, as: 'selfLinkWithId'
|
|
21647
|
+
end
|
|
21648
|
+
end
|
|
21649
|
+
|
|
21650
|
+
class ReliabilityRisksListResponse
|
|
21651
|
+
# @private
|
|
21652
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
21653
|
+
property :etag, as: 'etag'
|
|
21654
|
+
property :id, as: 'id'
|
|
21655
|
+
collection :items, as: 'items', class: Google::Apis::ComputeBeta::ReliabilityRisk, decorator: Google::Apis::ComputeBeta::ReliabilityRisk::Representation
|
|
21656
|
+
|
|
21657
|
+
property :next_page_token, as: 'nextPageToken'
|
|
21658
|
+
property :self_link, as: 'selfLink'
|
|
21659
|
+
collection :unreachables, as: 'unreachables'
|
|
21660
|
+
property :warning, as: 'warning', class: Google::Apis::ComputeBeta::ReliabilityRisksListResponse::Warning, decorator: Google::Apis::ComputeBeta::ReliabilityRisksListResponse::Warning::Representation
|
|
21661
|
+
|
|
21662
|
+
end
|
|
21663
|
+
|
|
21664
|
+
class Warning
|
|
21665
|
+
# @private
|
|
21666
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
21667
|
+
property :code, as: 'code'
|
|
21668
|
+
collection :data, as: 'data', class: Google::Apis::ComputeBeta::ReliabilityRisksListResponse::Warning::Datum, decorator: Google::Apis::ComputeBeta::ReliabilityRisksListResponse::Warning::Datum::Representation
|
|
21669
|
+
|
|
21670
|
+
property :message, as: 'message'
|
|
21671
|
+
end
|
|
21672
|
+
|
|
21673
|
+
class Datum
|
|
21674
|
+
# @private
|
|
21675
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
21676
|
+
property :key, as: 'key'
|
|
21677
|
+
property :value, as: 'value'
|
|
21678
|
+
end
|
|
21679
|
+
end
|
|
21680
|
+
end
|
|
21681
|
+
end
|
|
21682
|
+
|
|
21544
21683
|
class RequestMirrorPolicy
|
|
21545
21684
|
# @private
|
|
21546
21685
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -22390,6 +22529,36 @@ module Google
|
|
|
22390
22529
|
end
|
|
22391
22530
|
end
|
|
22392
22531
|
|
|
22532
|
+
class RiskDetails
|
|
22533
|
+
# @private
|
|
22534
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
22535
|
+
property :duration, as: 'duration'
|
|
22536
|
+
property :global_dns_insight, as: 'globalDnsInsight', class: Google::Apis::ComputeBeta::RiskDetailsGlobalDnsInsight, decorator: Google::Apis::ComputeBeta::RiskDetailsGlobalDnsInsight::Representation
|
|
22537
|
+
|
|
22538
|
+
property :last_update_timestamp, as: 'lastUpdateTimestamp'
|
|
22539
|
+
property :severity, as: 'severity'
|
|
22540
|
+
property :type, as: 'type'
|
|
22541
|
+
end
|
|
22542
|
+
end
|
|
22543
|
+
|
|
22544
|
+
class RiskDetailsGlobalDnsInsight
|
|
22545
|
+
# @private
|
|
22546
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
22547
|
+
property :project_default_is_global_dns, as: 'projectDefaultIsGlobalDns'
|
|
22548
|
+
property :query_observation_window, as: 'queryObservationWindow'
|
|
22549
|
+
property :risky_query_count, :numeric_string => true, as: 'riskyQueryCount'
|
|
22550
|
+
property :total_query_count, :numeric_string => true, as: 'totalQueryCount'
|
|
22551
|
+
end
|
|
22552
|
+
end
|
|
22553
|
+
|
|
22554
|
+
class RiskRecommendation
|
|
22555
|
+
# @private
|
|
22556
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
22557
|
+
property :content, as: 'content'
|
|
22558
|
+
property :reference_url, as: 'referenceUrl'
|
|
22559
|
+
end
|
|
22560
|
+
end
|
|
22561
|
+
|
|
22393
22562
|
class Rollout
|
|
22394
22563
|
# @private
|
|
22395
22564
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -23891,6 +24060,7 @@ module Google
|
|
|
23891
24060
|
property :kind, as: 'kind'
|
|
23892
24061
|
hash :metadata, as: 'metadata'
|
|
23893
24062
|
property :name, as: 'name'
|
|
24063
|
+
property :nat_ips_per_endpoint, as: 'natIpsPerEndpoint'
|
|
23894
24064
|
collection :nat_subnets, as: 'natSubnets'
|
|
23895
24065
|
property :producer_forwarding_rule, as: 'producerForwardingRule'
|
|
23896
24066
|
property :propagated_connection_limit, as: 'propagatedConnectionLimit'
|
|
@@ -25122,6 +25292,7 @@ module Google
|
|
|
25122
25292
|
property :ipv6_access_type, as: 'ipv6AccessType'
|
|
25123
25293
|
property :ipv6_cidr_range, as: 'ipv6CidrRange'
|
|
25124
25294
|
property :ipv6_gce_endpoint, as: 'ipv6GceEndpoint'
|
|
25295
|
+
property :ipv6_network_tier, as: 'ipv6NetworkTier'
|
|
25125
25296
|
property :kind, as: 'kind'
|
|
25126
25297
|
property :log_config, as: 'logConfig', class: Google::Apis::ComputeBeta::SubnetworkLogConfig, decorator: Google::Apis::ComputeBeta::SubnetworkLogConfig::Representation
|
|
25127
25298
|
|
|
@@ -26530,6 +26701,8 @@ module Google
|
|
|
26530
26701
|
property :host_rewrite, as: 'hostRewrite'
|
|
26531
26702
|
property :path_prefix_rewrite, as: 'pathPrefixRewrite'
|
|
26532
26703
|
property :path_template_rewrite, as: 'pathTemplateRewrite'
|
|
26704
|
+
property :regex_rewrite, as: 'regexRewrite', class: Google::Apis::ComputeBeta::RegexRewrite, decorator: Google::Apis::ComputeBeta::RegexRewrite::Representation
|
|
26705
|
+
|
|
26533
26706
|
end
|
|
26534
26707
|
end
|
|
26535
26708
|
|
|
@@ -3044,7 +3044,10 @@ module Google
|
|
|
3044
3044
|
execute_or_queue_command(command, &block)
|
|
3045
3045
|
end
|
|
3046
3046
|
|
|
3047
|
-
# Retrieves a list of all usable backend services
|
|
3047
|
+
# Retrieves a list of all usable backend services for Application Load
|
|
3048
|
+
# Balancers and Proxy Network Load Balancers in the specified project.
|
|
3049
|
+
# Backend services for external and internal passthrough Network Load
|
|
3050
|
+
# Balancers are not included in the response.
|
|
3048
3051
|
# @param [String] project
|
|
3049
3052
|
# Project ID for this request.
|
|
3050
3053
|
# @param [String] filter
|
|
@@ -12444,6 +12447,46 @@ module Google
|
|
|
12444
12447
|
execute_or_queue_command(command, &block)
|
|
12445
12448
|
end
|
|
12446
12449
|
|
|
12450
|
+
# Returns the specified global ImageView resource, with a regional
|
|
12451
|
+
# context.
|
|
12452
|
+
# @param [String] project
|
|
12453
|
+
# Required. Project ID for this request.
|
|
12454
|
+
# @param [String] region
|
|
12455
|
+
# Required. Name of the region for this request.
|
|
12456
|
+
# @param [String] resource_id
|
|
12457
|
+
# Name of the image resource to return.
|
|
12458
|
+
# @param [String] fields
|
|
12459
|
+
# Selector specifying which fields to include in a partial response.
|
|
12460
|
+
# @param [String] quota_user
|
|
12461
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
12462
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
12463
|
+
# @param [String] user_ip
|
|
12464
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
12465
|
+
# @param [Google::Apis::RequestOptions] options
|
|
12466
|
+
# Request-specific options
|
|
12467
|
+
#
|
|
12468
|
+
# @yield [result, err] Result & error if block supplied
|
|
12469
|
+
# @yieldparam result [Google::Apis::ComputeBeta::ImageView] parsed result object
|
|
12470
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
12471
|
+
#
|
|
12472
|
+
# @return [Google::Apis::ComputeBeta::ImageView]
|
|
12473
|
+
#
|
|
12474
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
12475
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
12476
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
12477
|
+
def get_image_view(project, region, resource_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
12478
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/imageViews/{resourceId}', options)
|
|
12479
|
+
command.response_representation = Google::Apis::ComputeBeta::ImageView::Representation
|
|
12480
|
+
command.response_class = Google::Apis::ComputeBeta::ImageView
|
|
12481
|
+
command.params['project'] = project unless project.nil?
|
|
12482
|
+
command.params['region'] = region unless region.nil?
|
|
12483
|
+
command.params['resourceId'] = resource_id unless resource_id.nil?
|
|
12484
|
+
command.query['fields'] = fields unless fields.nil?
|
|
12485
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
12486
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
12487
|
+
execute_or_queue_command(command, &block)
|
|
12488
|
+
end
|
|
12489
|
+
|
|
12447
12490
|
# Deletes the specified image.
|
|
12448
12491
|
# @param [String] project
|
|
12449
12492
|
# Project ID for this request.
|
|
@@ -35786,8 +35829,10 @@ module Google
|
|
|
35786
35829
|
execute_or_queue_command(command, &block)
|
|
35787
35830
|
end
|
|
35788
35831
|
|
|
35789
|
-
# Retrieves a list of all usable backend services
|
|
35790
|
-
# the
|
|
35832
|
+
# Retrieves a list of all usable backend services for Application Load
|
|
35833
|
+
# Balancers and Proxy Network Load Balancers in the specified project in the
|
|
35834
|
+
# given region. Backend services for external and internal passthrough
|
|
35835
|
+
# Network Load Balancers are not included in the response.
|
|
35791
35836
|
# @param [String] project
|
|
35792
35837
|
# Project ID for this request.
|
|
35793
35838
|
# @param [String] region
|
|
@@ -51531,6 +51576,156 @@ module Google
|
|
|
51531
51576
|
execute_or_queue_command(command, &block)
|
|
51532
51577
|
end
|
|
51533
51578
|
|
|
51579
|
+
# Returns the specified ReliabilityRisk resource.
|
|
51580
|
+
# @param [String] project
|
|
51581
|
+
# Project ID for this request.
|
|
51582
|
+
# @param [String] reliability_risk
|
|
51583
|
+
# Name of the ReliabilityRisk resource to return.
|
|
51584
|
+
# @param [String] fields
|
|
51585
|
+
# Selector specifying which fields to include in a partial response.
|
|
51586
|
+
# @param [String] quota_user
|
|
51587
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
51588
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
51589
|
+
# @param [String] user_ip
|
|
51590
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
51591
|
+
# @param [Google::Apis::RequestOptions] options
|
|
51592
|
+
# Request-specific options
|
|
51593
|
+
#
|
|
51594
|
+
# @yield [result, err] Result & error if block supplied
|
|
51595
|
+
# @yieldparam result [Google::Apis::ComputeBeta::ReliabilityRisk] parsed result object
|
|
51596
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
51597
|
+
#
|
|
51598
|
+
# @return [Google::Apis::ComputeBeta::ReliabilityRisk]
|
|
51599
|
+
#
|
|
51600
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
51601
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
51602
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
51603
|
+
def get_reliability_risk(project, reliability_risk, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
51604
|
+
command = make_simple_command(:get, 'projects/{project}/global/reliabilityRisks/{reliabilityRisk}', options)
|
|
51605
|
+
command.response_representation = Google::Apis::ComputeBeta::ReliabilityRisk::Representation
|
|
51606
|
+
command.response_class = Google::Apis::ComputeBeta::ReliabilityRisk
|
|
51607
|
+
command.params['project'] = project unless project.nil?
|
|
51608
|
+
command.params['reliabilityRisk'] = reliability_risk unless reliability_risk.nil?
|
|
51609
|
+
command.query['fields'] = fields unless fields.nil?
|
|
51610
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
51611
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
51612
|
+
execute_or_queue_command(command, &block)
|
|
51613
|
+
end
|
|
51614
|
+
|
|
51615
|
+
# Retrieves the list of reliabilityRisks available in the specified project.
|
|
51616
|
+
# @param [String] project
|
|
51617
|
+
# Project ID for this request.
|
|
51618
|
+
# @param [String] filter
|
|
51619
|
+
# A filter expression that filters resources listed in the response. Most
|
|
51620
|
+
# Compute resources support two types of filter expressions:
|
|
51621
|
+
# expressions that support regular expressions and expressions that follow
|
|
51622
|
+
# API improvement proposal AIP-160.
|
|
51623
|
+
# These two types of filter expressions cannot be mixed in one request.
|
|
51624
|
+
# If you want to use AIP-160, your expression must specify the field name, an
|
|
51625
|
+
# operator, and the value that you want to use for filtering. The value
|
|
51626
|
+
# must be a string, a number, or a boolean. The operator
|
|
51627
|
+
# must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
|
|
51628
|
+
# For example, if you are filtering Compute Engine instances, you can
|
|
51629
|
+
# exclude instances named `example-instance` by specifying
|
|
51630
|
+
# `name != example-instance`.
|
|
51631
|
+
# The `:*` comparison can be used to test whether a key has been defined.
|
|
51632
|
+
# For example, to find all objects with `owner` label use:
|
|
51633
|
+
# ```
|
|
51634
|
+
# labels.owner:*
|
|
51635
|
+
# ```
|
|
51636
|
+
# You can also filter nested fields. For example, you could specify
|
|
51637
|
+
# `scheduling.automaticRestart = false` to include instances only
|
|
51638
|
+
# if they are not scheduled for automatic restarts. You can use filtering
|
|
51639
|
+
# on nested fields to filter based onresource labels.
|
|
51640
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
51641
|
+
# parentheses. For example:
|
|
51642
|
+
# ```
|
|
51643
|
+
# (scheduling.automaticRestart = true)
|
|
51644
|
+
# (cpuPlatform = "Intel Skylake")
|
|
51645
|
+
# ```
|
|
51646
|
+
# By default, each expression is an `AND` expression. However, you
|
|
51647
|
+
# can include `AND` and `OR` expressions explicitly.
|
|
51648
|
+
# For example:
|
|
51649
|
+
# ```
|
|
51650
|
+
# (cpuPlatform = "Intel Skylake") OR
|
|
51651
|
+
# (cpuPlatform = "Intel Broadwell") AND
|
|
51652
|
+
# (scheduling.automaticRestart = true)
|
|
51653
|
+
# ```
|
|
51654
|
+
# If you want to use a regular expression, use the `eq` (equal) or `ne`
|
|
51655
|
+
# (not equal) operator against a single un-parenthesized expression with or
|
|
51656
|
+
# without quotes or against multiple parenthesized expressions. Examples:
|
|
51657
|
+
# `fieldname eq unquoted literal`
|
|
51658
|
+
# `fieldname eq 'single quoted literal'`
|
|
51659
|
+
# `fieldname eq "double quoted literal"`
|
|
51660
|
+
# `(fieldname1 eq literal) (fieldname2 ne "literal")`
|
|
51661
|
+
# The literal value is interpreted as a regular expression using GoogleRE2
|
|
51662
|
+
# library syntax.
|
|
51663
|
+
# The literal value must match the entire field.
|
|
51664
|
+
# For example, to filter for instances that do not end with name "instance",
|
|
51665
|
+
# you would use `name ne .*instance`.
|
|
51666
|
+
# You cannot combine constraints on multiple fields using regular
|
|
51667
|
+
# expressions.
|
|
51668
|
+
# @param [Fixnum] max_results
|
|
51669
|
+
# The maximum number of results per page that should be returned.
|
|
51670
|
+
# If the number of available results is larger than `maxResults`,
|
|
51671
|
+
# Compute Engine returns a `nextPageToken` that can be used to get
|
|
51672
|
+
# the next page of results in subsequent list requests. Acceptable values are
|
|
51673
|
+
# `0` to `500`, inclusive. (Default: `500`)
|
|
51674
|
+
# @param [String] order_by
|
|
51675
|
+
# Sorts list results by a certain order. By default, results
|
|
51676
|
+
# are returned in alphanumerical order based on the resource name.
|
|
51677
|
+
# You can also sort results in descending order based on the creation
|
|
51678
|
+
# timestamp using `orderBy="creationTimestamp desc"`. This sorts
|
|
51679
|
+
# results based on the `creationTimestamp` field in
|
|
51680
|
+
# reverse chronological order (newest result first). Use this to sort
|
|
51681
|
+
# resources like operations so that the newest operation is returned first.
|
|
51682
|
+
# Currently, only sorting by `name` or
|
|
51683
|
+
# `creationTimestamp desc` is supported.
|
|
51684
|
+
# @param [String] page_token
|
|
51685
|
+
# Specifies a page token to use. Set `pageToken` to the
|
|
51686
|
+
# `nextPageToken` returned by a previous list request to get
|
|
51687
|
+
# the next page of results.
|
|
51688
|
+
# @param [Boolean] return_partial_success
|
|
51689
|
+
# Opt-in for partial success behavior which provides partial results in case
|
|
51690
|
+
# of failure. The default value is false.
|
|
51691
|
+
# For example, when partial success behavior is enabled, aggregatedList for a
|
|
51692
|
+
# single zone scope either returns all resources in the zone or no resources,
|
|
51693
|
+
# with an error code.
|
|
51694
|
+
# @param [String] fields
|
|
51695
|
+
# Selector specifying which fields to include in a partial response.
|
|
51696
|
+
# @param [String] quota_user
|
|
51697
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
51698
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
51699
|
+
# @param [String] user_ip
|
|
51700
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
51701
|
+
# @param [Google::Apis::RequestOptions] options
|
|
51702
|
+
# Request-specific options
|
|
51703
|
+
#
|
|
51704
|
+
# @yield [result, err] Result & error if block supplied
|
|
51705
|
+
# @yieldparam result [Google::Apis::ComputeBeta::ReliabilityRisksListResponse] parsed result object
|
|
51706
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
51707
|
+
#
|
|
51708
|
+
# @return [Google::Apis::ComputeBeta::ReliabilityRisksListResponse]
|
|
51709
|
+
#
|
|
51710
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
51711
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
51712
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
51713
|
+
def list_reliability_risks(project, 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)
|
|
51714
|
+
command = make_simple_command(:get, 'projects/{project}/global/reliabilityRisks', options)
|
|
51715
|
+
command.response_representation = Google::Apis::ComputeBeta::ReliabilityRisksListResponse::Representation
|
|
51716
|
+
command.response_class = Google::Apis::ComputeBeta::ReliabilityRisksListResponse
|
|
51717
|
+
command.params['project'] = project unless project.nil?
|
|
51718
|
+
command.query['filter'] = filter unless filter.nil?
|
|
51719
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
51720
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
51721
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
51722
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
|
51723
|
+
command.query['fields'] = fields unless fields.nil?
|
|
51724
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
51725
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
51726
|
+
execute_or_queue_command(command, &block)
|
|
51727
|
+
end
|
|
51728
|
+
|
|
51534
51729
|
# Retrieves information about the specified reservation block.
|
|
51535
51730
|
# @param [String] project
|
|
51536
51731
|
# Project ID for this request.
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-apis-compute_beta
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.142.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_beta/CHANGELOG.md
|
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-compute_beta/v0.
|
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-compute_beta/v0.142.0
|
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_beta
|
|
62
62
|
rdoc_options: []
|
|
63
63
|
require_paths:
|